docs: preserve CTest skips in dashboard reports (DOC-DASH-CTEST-JUNIT) #965

Merged
leonida/mandy
TheGeogeo merged 2 commits from docs/dashboard-ctest-junit into main 2026-11-25 21:26:55 +00:00

Pull request successfully merged and closed

TheGeogeo commented 2026-11-24 15:58:28 +00:00

Claimed in the coordination issue as: DOC-DASH-CTEST-JUNIT

What and why

Document the --ctest-junit workflow for dashboard runs where CTest tests may use SKIP_RETURN_CODE. In a synthetic run on CTest 4.3.1-msvc1, LastTest.log marked an exit-77 skip as Test Passed. while the JUnit report retained the skipped status. The example shows how to generate and prefer that JUnit report and explains that --junit adds independent runs. It merges with the separate table changes in #757 (merged since).

a7eb8782 applies 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 on main 1504c1af); it merges cleanly with main 6fe83805. Windows 11, Python 3.12.4:

  • Synthetic CTest project, CTest 4.3.1, PowerShell 7.6.10. With the previous example, after a passing run, a second run with a missing build directory made CTest exit 1 and the dashboard exit 0 with the previous result. With the new example, the missing directory throws and no snapshot is written; a failing test (CTest exit 8) is recorded as failed, the passing test stays verified and the exit-77 test stays unknown. Reproduced again on the same head in a later check.
  • python -I -B tests/test_progress_dashboard.py: 50 passed; all tests/test_docs_*.py passed; git diff --check and python -I -B scripts/check_no_game_data.py docs/progress_dashboard.md: clean.
  • Merged with main 6261ca91: tests/test_progress_dashboard.py 51 passed. Merged with main 6fe83805: tests/test_progress_dashboard.py 51 passed, the 47 tests of tests/test_docs_*.py passed, and test_tool_stdout_encoding.py and test_text_write_line_endings.py passed.

Earlier head a83f0c3e:

  • Windows, Python 3.12.4 and CTest 4.3.1-msvc1. A synthetic CTest suite with one pass and one exit-77 skip produced a dashboard showing verified and unknown, 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 --check and python -I -B scripts/check_no_game_data.py docs/progress_dashboard.md: passed.
  • Isolated merge with #757 (92152f3f): no conflicts.

GPUs tested: n/a. Synthetic CPU-only tests.

AI-assisted: yes (Codex; a7eb8782 with Claude Code).

Checklist

  • Based on current main.
  • One topic.
  • No game data, keys, or decryption.
  • Translator contract entry: not applicable.
Claimed in the coordination issue as: [DOC-DASH-CTEST-JUNIT](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7136847196) ### What and why Document the `--ctest-junit` workflow for dashboard runs where CTest tests may use `SKIP_RETURN_CODE`. In a synthetic run on CTest 4.3.1-msvc1, `LastTest.log` marked an exit-77 skip as `Test Passed.` while the JUnit report retained the skipped status. The example shows how to generate and prefer that JUnit report and explains that `--junit` adds independent runs. It merges with the separate table changes in #757 (merged since). `a7eb8782` applies the [review suggestion](https://github.com/ubiquitarianism/leonida/pull/965#discussion_r4686020290): 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 on `main` `1504c1af`); it merges cleanly with `main` `6fe83805`. Windows 11, Python 3.12.4: - Synthetic CTest project, CTest 4.3.1, PowerShell 7.6.10. With the previous example, after a passing run, a second run with a missing build directory made CTest exit 1 and the dashboard exit 0 with the previous result. With the new example, the missing directory throws and no snapshot is written; a failing test (CTest exit 8) is recorded as `failed`, the passing test stays `verified` and the exit-77 test stays `unknown`. Reproduced again on the same head in a later check. - `python -I -B tests/test_progress_dashboard.py`: 50 passed; all `tests/test_docs_*.py` passed; `git diff --check` and `python -I -B scripts/check_no_game_data.py docs/progress_dashboard.md`: clean. - Merged with `main` `6261ca91`: `tests/test_progress_dashboard.py` 51 passed. Merged with `main` `6fe83805`: `tests/test_progress_dashboard.py` 51 passed, the 47 tests of `tests/test_docs_*.py` passed, and `test_tool_stdout_encoding.py` and `test_text_write_line_endings.py` passed. Earlier head `a83f0c3e`: - Windows, Python 3.12.4 and CTest 4.3.1-msvc1. A synthetic CTest suite with one pass and one exit-77 skip produced a dashboard showing `verified` and `unknown`, 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 --check` and `python -I -B scripts/check_no_game_data.py docs/progress_dashboard.md`: passed. - Isolated merge with #757 (`92152f3f`): no conflicts. GPUs tested: n/a. Synthetic CPU-only tests. AI-assisted: yes (Codex; `a7eb8782` with Claude Code). ### Checklist - [x] Based on current `main`. - [x] One topic. - [x] No game data, keys, or decryption. - Translator contract entry: not applicable.
KernelSmoker approved these changes 2026-11-24 16:05:01 +00:00
KernelSmoker left a comment

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 synthetic SKIP_RETURN_CODE 77 test is reported as skipped by CTest, parsed from --output-junit as skip, and the dashboard command completed with the supplied --ctest-junit report. No game data or GPU used.

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 synthetic `SKIP_RETURN_CODE 77` test is reported as skipped by CTest, parsed from `--output-junit` as `skip`, and the dashboard command completed with the supplied `--ctest-junit` report. No game data or GPU used.
xel1uz reviewed 2026-11-24 20:21:33 +00:00
TheGeogeo reviewed 2026-11-24 20:52:40 +00:00
Sign in to join this conversation.
No description provided.