docs: preserve CTest skips in dashboard reports (DOC-DASH-CTEST-JUNIT) #965
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs rebase
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!965
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/965/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@TheGeogeo on GitHub · 2026-11-24 15:58 UTC · original
TheGeogeo:docs/dashboard-ctest-junit→main· +15 −0 · 1 files · 2 commits · merged 2026-11-25 21:26 UTCClaimed in the coordination issue as: DOC-DASH-CTEST-JUNIT
What and why
Document the
--ctest-junitworkflow for dashboard runs where CTest tests may useSKIP_RETURN_CODE. In a synthetic run on CTest 4.3.1-msvc1,LastTest.logmarked an exit-77 skip asTest Passed.while the JUnit report retained the skipped status. The example shows how to generate and prefer that JUnit report and explains that--junitadds independent runs. It merges with the separate table changes in #757 (merged since).a7eb8782applies the review suggestion: each run writes its report to a new file name, and the example stops with an error when CTest wrote no report. With the fixed path, an aborted run (for example a missing build directory) left the previous report in place, and the dashboard recorded those older results again.Tested
Head
a7eb8782(two commits onmain1504c1af); it merges cleanly withmain6fe83805. Windows 11, Python 3.12.4:failed, the passing test staysverifiedand the exit-77 test staysunknown. Reproduced again on the same head in a later check.python -I -B tests/test_progress_dashboard.py: 50 passed; alltests/test_docs_*.pypassed;git diff --checkandpython -I -B scripts/check_no_game_data.py docs/progress_dashboard.md: clean.main6261ca91:tests/test_progress_dashboard.py51 passed. Merged withmain6fe83805:tests/test_progress_dashboard.py51 passed, the 47 tests oftests/test_docs_*.pypassed, andtest_tool_stdout_encoding.pyandtest_text_write_line_endings.pypassed.Earlier head
a83f0c3e:verifiedandunknown, respectively, through--ctest-junit.python -I -B tests/test_progress_dashboard.py: 50 passed.python -I -B tests/test_docs_links.py: 16 passed.python -I -B tests/test_docs_cli_flags.py: 4 passed.git diff --checkandpython -I -B scripts/check_no_game_data.py docs/progress_dashboard.md: passed.92152f3f): no conflicts.GPUs tested: n/a. Synthetic CPU-only tests.
AI-assisted: yes (Codex;
a7eb8782with Claude Code).Checklist
main.@KernelSmoker on GitHub · 2026-11-24 16:05 UTC · original · approved these changes
Verified the submitted head
a83f0c3e14842adbc565b30f1b3fb9eccd7b44ec. On the Linux host, the dashboard suite passed 50/50, docs link checks 16/16, CLI docs checks 4/4, plus the no-game-data and diff checks. I also reproduced the documented behavior in an isolated Fedora 45 container with CMake/CTest 4.3: a syntheticSKIP_RETURN_CODE 77test is reported as skipped by CTest, parsed from--output-junitasskip, and the dashboard command completed with the supplied--ctest-junitreport. No game data or GPU used.@xel1uz on GitHub · 2026-11-24 20:21 UTC · original
On
docs/progress_dashboard.mdline 23 (outdated):I reproduced a stale-result case on Windows (CTest 4.4.3, PowerShell 7.6.9). After a successful run writes the fixed XML path, run the example again with a missing build directory. CTest exits 1 and leaves the old XML untouched. The dashboard then exits 0 and records the previous passing test as verified.
Using a fresh filename lets the example distinguish an aborted run from a completed run with failing tests. I tested the suggested block in both cases: a missing directory produced no snapshot, while a real failing fixture (CTest exit 8) still appeared as failed. A passing fixture and an exit-77 skip kept their expected statuses. The 50 dashboard and 20 documentation tests passed. AI-assisted reproduction and review.
@TheGeogeo on GitHub · 2026-11-24 20:52 UTC · original
On
docs/progress_dashboard.mdline 23 (outdated):Thanks, reproduced on Windows 11 (CTest 4.3.1, PowerShell 7.6.10) with a synthetic CTest project and applied in
a7eb8782, with a sentence on why the name changes for each run.failed; the passing test staysverified, and the exit-77 test keeps theunknownstatus it had with the previous block.tests/test_docs_*.pyfiles andtests/test_progress_dashboard.py(50) pass, data guard andgit diff --checkclean.AI-assisted: yes (Claude Code).