Repository navigation
progress_dashboard: --tests without --run-tests is the usage error, not a silent no-op - #10
Open
GustawMatuszewski wants to merge 1 commit into
Conversation
…ot a silent no-op `--tests` is only read inside the `--run-tests` branch, so `--tests test_boot_trace` on its own exited 0 and wrote a dashboard without running the requested tests, and an invalid `--tests` regular expression was diagnosed only once tests actually ran. Refuse the combination before anything is written. tests/test_progress_dashboard.py: the new case checks exit 2, the message, no traceback and no output folder, for a plain filter and for an invalid one. python -I tests/test_progress_dashboard.py: 51 tests, 0 failures.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Claimed in the coordination issue as: n/a — this repository has no "Coordinating who works on what" issue, so the item is described here in full.
Depends on: none.
What and why
--testsis only read inside the--run-testsbranch, sopython -I tools/progress_dashboard.py --out <dir> --tests test_boot_traceexits 0 and writes a dashboard without running the requested tests — the filter silently does nothing — and an invalid--testsregular expression is diagnosed only once tests actually run.The combination is now a usage error before anything is written:
tests/test_progress_dashboard.pygainstest_tests_without_run_tests_is_an_argument_error: exit 2, the message, no traceback and no output folder, for a plain filter and for an invalid one. It fails onmain(exit 0, dashboard written) and passes with the change.Tested
python -I tests/test_progress_dashboard.py— 51 tests, 0 failures.python -I tools/progress_dashboard.py --out /tmp/pd_out --tests x→ exit 2 with the message above, no folder written.GPUs tested: n/a (no GPU test).
AI-assisted: yes (Claude Code). No game files.
Checklist
main(6591ba9), one commit, merges cleanly.