[PR #965] [MERGED] docs: preserve CTest skips in dashboard reports (DOC-DASH-CTEST-JUNIT) #1002

Closed
opened 2026-11-26 20:19:45 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/965
Author: @TheGeogeo
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @Andretuta

Base: main ← Head: docs/dashboard-ctest-junit


📝 Commits (2)

  • a83f0c3 Document how to preserve CTest skips in the dashboard
  • a7eb878 docs: write each CTest report to a new file (DOC-DASH-CTEST-JUNIT)

📊 Changes

1 file changed (+15 additions, -0 deletions)

View changed files

📝 docs/progress_dashboard.md (+15 -0)

📄 Description

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.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/965 **Author:** [@TheGeogeo](https://github.com/TheGeogeo) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/25/2026 **Merged by:** [@Andretuta](https://github.com/Andretuta) **Base:** `main` ← **Head:** `docs/dashboard-ctest-junit` --- ### 📝 Commits (2) - [`a83f0c3`](https://github.com/ubiquitarianism/leonida/commit/a83f0c3e14842adbc565b30f1b3fb9eccd7b44ec) Document how to preserve CTest skips in the dashboard - [`a7eb878`](https://github.com/ubiquitarianism/leonida/commit/a7eb87825142df6fba9feafd1c27fcd9528e23c9) docs: write each CTest report to a new file (DOC-DASH-CTEST-JUNIT) ### 📊 Changes **1 file changed** (+15 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/progress_dashboard.md` (+15 -0) </details> ### 📄 Description 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:19:45 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#1002
No description provided.