tests: the dashboard CI panel test names its GitHub repository (fixes a test #3398 broke) #3417

Merged
leonida/mandy
OreoFR merged 1 commit from oreofr/dashboard-ci-test into main 2026-12-04 01:42:15 +00:00 AGit

Pull request successfully merged and closed

Member

What broke

#3398 made tools/progress_dashboard.py default to the README's repository (https://git.leonida.now/leonida/mandy.git) and, with --github on a non-GitHub --repo, print a notice and mark the github source "missing" instead of querying GitHub. tests/test_progress_dashboard_ci.py::CIReporting::test_report_generation_preserves_its_exit_code_and_failure_evidence called main() with --github and no --repo, so it got the non-GitHub default, no CI panel row was built, and the test failed with StopIteration.

Fix

The test now passes --repo o/r, the GitHub repository its synthetic gh responses already point at (https://github.com/o/r/...). No assertion is weakened and the tool is unchanged: the non-GitHub default still refuses --github. No other test in tests/ runs the dashboard with --github through the collection path without --repo (the only other one, test_d3d_issue_option_is_checked, stops at argument validation).

Tested

  • python -I tests/test_progress_dashboard_ci.py: 1 error (StopIteration) on main 528614662, 21/21 OK after
  • python -I tests/test_progress_dashboard.py: OK
  • python -I tests/test_docs_links.py: OK
  • python -I tests/test_text_write_line_endings.py: OK
  • python -I scripts/check_no_game_data.py tests/test_progress_dashboard_ci.py: clean

No GPU involved (Python unit tests only, Windows 11). AI-assisted.

🤖 Generated with Claude Code

## What broke #3398 made `tools/progress_dashboard.py` default to the README's repository (`https://git.leonida.now/leonida/mandy.git`) and, with `--github` on a non-GitHub `--repo`, print a notice and mark the github source "missing" instead of querying GitHub. `tests/test_progress_dashboard_ci.py::CIReporting::test_report_generation_preserves_its_exit_code_and_failure_evidence` called `main()` with `--github` and no `--repo`, so it got the non-GitHub default, no CI panel row was built, and the test failed with `StopIteration`. ## Fix The test now passes `--repo o/r`, the GitHub repository its synthetic `gh` responses already point at (`https://github.com/o/r/...`). No assertion is weakened and the tool is unchanged: the non-GitHub default still refuses `--github`. No other test in `tests/` runs the dashboard with `--github` through the collection path without `--repo` (the only other one, `test_d3d_issue_option_is_checked`, stops at argument validation). ## Tested - `python -I tests/test_progress_dashboard_ci.py`: 1 error (StopIteration) on main 528614662, 21/21 OK after - `python -I tests/test_progress_dashboard.py`: OK - `python -I tests/test_docs_links.py`: OK - `python -I tests/test_text_write_line_endings.py`: OK - `python -I scripts/check_no_game_data.py tests/test_progress_dashboard_ci.py`: clean No GPU involved (Python unit tests only, Windows 11). AI-assisted. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
#3398 made the dashboard's default repository the README's git.leonida.now
URL and refuses --github for a non-GitHub repository. The CI panel test ran
main() with --github and no --repo, so the github source was marked missing
and no CI row was built (StopIteration). Pass --repo o/r, the repository its
synthetic gh responses already use.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OreoFR merged commit 22c68311d8 into main 2026-12-04 01:42:15 +00:00
Author
Member

Merging. Head 15b5f4170 (on main 528614662), main 528614662 → 22c68311d.

Local CI run by the merger on the head merged into current main (scripts/local_ci.py from #3383, quick mode, 4 min 30): PASS with no failure.

Step Result
Merge into main clean
No game data tracked PASS (3831 files)
No game data under another name PASS
D3D12 runtime (Rust) SKIP (quick: no Rust changed)
Compile Python PASS
make_game.py --help PASS
Python tests (standard library) PASS
Python tests (pytest) SKIP (pytest not installed)
Sensitive files unchanged PASS

Fixes the tests/test_progress_dashboard_ci.py failure #3398 caused on main (red on main, 21/21 green with this head). Test-only change. Approved by OreoFR (maintainer). Game not launched.

AI-assisted (Claude Code).

Merging. Head 15b5f4170 (on main 528614662), main 528614662 → 22c68311d. Local CI run by the merger on the head merged into current main (`scripts/local_ci.py` from #3383, quick mode, 4 min 30): PASS with no failure. | Step | Result | |---|---| | Merge into main | clean | | No game data tracked | PASS (3831 files) | | No game data under another name | PASS | | D3D12 runtime (Rust) | SKIP (quick: no Rust changed) | | Compile Python | PASS | | make_game.py --help | PASS | | Python tests (standard library) | PASS | | Python tests (pytest) | SKIP (pytest not installed) | | Sensitive files unchanged | PASS | Fixes the `tests/test_progress_dashboard_ci.py` failure #3398 caused on main (red on main, 21/21 green with this head). Test-only change. Approved by OreoFR (maintainer). Game not launched. AI-assisted (Claude Code).
Sign in to join this conversation.
No description provided.