Skip to content

docs/progress_dashboard: four statements the tool does not match (ASSET-379) - #7697

Open
aslan2142 wants to merge 1 commit into
ItsNotRexed:mainfrom
aslan2142:docs-sweep-progress_dashboard
Open

aslan2142 wants to merge 1 commit into
ItsNotRexed:mainfrom
aslan2142:docs-sweep-progress_dashboard

Conversation

@aslan2142

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as ASSET-379: #7599 (comment) (docs sweep in the style of #4688 and #4721).

docs/progress_dashboard.md checked line by line against tools/progress_dashboard.py and tools/progress_dashboard.html on current main. Paths, flags, the 30 latest merges, the 5000-PR limit, the CODE_DIRS list and the scrubbing rules all match. Four statements did not:

  • UNKNOWN status, "skipped, or git can't tell what changed". No status comes from git. A unit-test file is UNKNOWN only when every case in it skipped (tools/progress_dashboard.py:344). CTest, JUnit and GPU rows are UNKNOWN when skipped. When freshness can't be told (no digest, or code edited during the run, :337), the status stays VERIFIED. Fix: "skipped (a unit-test file whose every case skipped)".
  • Runtime tests, "CTest logs and XML reports are age-checked". Only the CTest log and CTest-flavoured JUnit reports are checked (is_ctest, :466, :477). A pytest --junitxml report is never marked stale. Fix: the CTest log and CTest XML reports are age-checked, and a pytest report is not.
  • Trend chart. The chart draws only the first eight metric IDs (progress_dashboard.html:413, .slice(0, 8)). The snapshot JSON is written with sort_keys, so the IDs come in alphabetical order. With every source present, runtime.current, tests.current and tests.passed are not drawn. Fix: say so, and say they stay in the metrics table.
  • Coordination issue. The page implied the issue is read only with --login. Every --github run reads it and puts the sizes of three sections in the page header (:892–:906). --login lists the account's 50 latest pull requests (:916). Fix: one sentence for each.

The status table's other cells, the Sources table and the "No game data" section are unchanged.

Tests (Linux, no GPU or game files needed):

  • python -I tests/test_progress_dashboard.py: OK.
  • every python -I tests/test_docs_*.py: OK except test_docs_cli_flags (2) and test_docs_links (1). Both fail the same way on main (dev-tools.md, embedded_shaders.md, gpu_test_results.md), not in this page.

Finding, not changed here: a test file whose freshness is unknown because code changed during the --run-tests run keeps status VERIFIED and counts toward tests.current (:337–:347). The comment at :313 ("code edited during the run: nothing is current") says the opposite.

  • Docs only; no game data, counts or paths from a game copy
  • Claimed in the coordination issue (ASSET-379)
  • Tests listed above

AI-assisted (Claude Code, Claude Opus 5.5).

…ET-379)

- UNKNOWN: no status comes from git failing to say what changed; a unit-test
  file is UNKNOWN when every case in it skipped (collect_unit), CTest and
  JUnit rows when skipped.
- Only the CTest log and CTest-flavoured JUnit reports are age-checked;
  a pytest report is always current (collect_ctest, is_ctest).
- The trend chart draws the first eight metric IDs only (trend() in
  progress_dashboard.html), alphabetical in the snapshot JSON, so with every
  source the three test metrics are not drawn.
- --github reads the coordination issue's section sizes on every run, not
  only with --login; --login lists the account's 50 latest pull requests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@wavehs

wavehs commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Tested 03a72890ba merged onto main dde82f27e on macOS arm64 (Apple M3 Pro, Python 3.15.2, CPU only, no GPU, no game files): pass on all four statements, with one wording fix and one minor precision note.

Checked each statement against the merged tree:

  1. UNKNOWN and git — tools/progress_dashboard.py:343-347: the status comes only from the run result (pass→verified, fail→failed); all_skipped makes it unknown at :344. An unknowable freshness (:337, no digest or code edited during the run) leaves the status VERIFIED, because only revalidation_required downgrades it (:346). Correct, and the "finding, not changed here" in the body is real: the comment at :313 says "nothing is current" while the code keeps VERIFIED.
  2. Runtime tests — :466 treats a JUnit report as CTest only when the root is <testsuite> with both disabled and hostname; the age check at :477 then runs only for the LastTest.log set and those reports. A pytest --junitxml report is parsed and never marked stale. Correct.
  3. Trend chart — tools/progress_dashboard.html:413 is .slice(0, 8). dump_json (tools/progress_dashboard.py:101-102) and the page payload (:974) sort keys; with every source present the 11 IDs in order are contract.gpu, contract.stated, corpus.validated, d3d12.merged, gpu.current, imports.bound, merged.items, merged.prs | runtime.current, tests.current, tests.passed. The three named metrics are indeed left out. Correct.
  4. Coordination issue — :892-906 reads the issue on every --github run (the call is :943) and counts "Up for grabs", "Ready for review or a GPU test" and "Needs a rebase on main"; tools/progress_dashboard.html:185-186 prints them in the header. --login uses --limit 50 at :916. Correct.

One fix requested: the new UNKNOWN cell says "skipped (a unit-test file whose every case skipped)", but the column is "Unit tests and CTest", and a skipped CTest/JUnit test is also UNKNOWN (:475; a skipped GPU row is :540). The old bare "skipped" covered both; the new parenthetical drops the CTest/JUnit case. Suggest: "skipped (a CTest or JUnit test marked skipped, or a unit-test file whose every case skipped)".

Minor: :413 selects metric IDs by first appearance in the history, not by sorting. It is alphabetical only when every snapshot carries the same sources; a history seeded by a run without --github/--work can put tests.passed inside the first eight. The "with every source present" conclusion still holds; "…of the history in alphabetical order" could read "…in the order they first appear (alphabetical when every snapshot carries the same sources)".

Tests on the merge (dde82f27e + this head):

No link is added by this PR, so no anchor was checked; no game data. AI-assisted (an agent session).

@memorypressure

Copy link
Copy Markdown

Tested 03a7289 on main dde82f2, merges clean (tree 52a5f90fd). Docs-only; all four corrections verified in code: only CTest reports are age-checked (is_ctest gate — pytest passes stay current/verified regardless of mtime); the chart draws Object.keys-order slice(0,8) of history metrics from sort_keys=True JSON, and of the 11 metric IDs the alphabetical first eight exclude exactly runtime.current, tests.current, tests.passed; coordination sizes feed header facts (:900-905, html:185); login PR list is --limit 50 (:917); UNKNOWN is skip/all-skipped (:345) — the removed "git can't tell" was indeed wrong, since a missing digest sets freshness, not status. No flags. AI-assisted: yes. Tested on Linux (RTX 5080 host, CPU-only run).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants