Skip to content

feat: add patch maintenance docs and test-libc.sh CI JUnit XML#124

Merged
tervezo-ai[bot] merged 4 commits intomainfrom
feat/add-comprehensive-patch-maintenance-documentation-and-test-h-swcqkqgckfvuk8qlnp3a9rse
Mar 15, 2026
Merged

feat: add patch maintenance docs and test-libc.sh CI JUnit XML#124
tervezo-ai[bot] merged 4 commits intomainfrom
feat/add-comprehensive-patch-maintenance-documentation-and-test-h-swcqkqgckfvuk8qlnp3a9rse

Conversation

@tervezo-ai
Copy link
Copy Markdown
Contributor

@tervezo-ai tervezo-ai bot commented Mar 14, 2026

Summary

  • scripts/test-libc.sh --ci: Added JUnit XML report generation (test-results/libc-<timestamp>.xml) with per-test tracking arrays, SECONDS-based timing, and XML-escaped failure output
  • scripts/test-libc.test.sh: New TDD test harness (10 tests) validating flag parsing, JUnit XML generation, summary format, and default behavior using mock toolchains
  • docs/FORK-MAINTENANCE.md: Comprehensive fork maintenance guide covering upstream pin policy, patch series with dependency graph, rebase workflow, adding patches, troubleshooting (header conflicts, symbol collisions, build system changes), and testing modes

Closes #37

Test plan

  • scripts/test-libc.test.sh — 10/10 tests pass
  • --ci flag generates well-formed JUnit XML with <testsuites>, <testsuite>, <testcase>, <skipped>, and <failure> elements
  • All existing flags (--help, --stock, --patched, --all) continue to work unchanged
  • Unknown flags still produce error and exit non-zero
  • docs/FORK-MAINTENANCE.md contains all 7 required sections

🤖 Generated with Claude Code

nadilas and others added 4 commits March 14, 2026 21:34
Create scripts/test-libc.test.sh with 10 tests covering flag parsing,
summary format, and JUnit XML output validation. Tests 1-6,9-10 pass
now; test 7 (--ci XML generation) intentionally fails as the feature
is not yet implemented (TDD red phase).

Closes #37

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add per-test result tracking arrays (name, classname, status, time,
output) populated during run_single_test(). New generate_junit_xml()
function writes well-formed JUnit XML to test-results/libc-<timestamp>.xml
when --ci flag is passed. All 10 TDD tests now pass.

Closes #37

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Create docs/FORK-MAINTENANCE.md covering upstream pin policy, patch
series with dependency graph, rebase workflow, adding new patches,
troubleshooting (header conflicts, symbol collisions, build system
changes), and testing modes including --ci JUnit XML output.

Closes #37

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The JUnit XML reports generated by test-libc.sh --ci are build
artifacts that should not be committed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@tervezo-ai tervezo-ai bot merged commit ec6564d into main Mar 15, 2026
3 of 10 checks passed
@tervezo-ai tervezo-ai bot deleted the feat/add-comprehensive-patch-maintenance-documentation-and-test-h-swcqkqgckfvuk8qlnp3a9rse branch March 15, 2026 06:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

US-213: Comprehensive patch maintenance documentation and test harness

1 participant