Skip to content

progress_dashboard: count merged D3D- items from merged PR titles, not only #313's in-progress table (BUILD-1283) - #4442

Merged
ItsNotRexed merged 2 commits into
ProjectLeonida:mainfrom
tedin7:build-1283
Nov 23, 2026
Merged

ItsNotRexed merged 2 commits into
ProjectLeonida:mainfrom
tedin7:build-1283

Conversation

@tedin7

@tedin7 tedin7 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Item: BUILD-1283, claimed here.

Depends on: none.

Why

The "D3D- items merged on main" metric read only #313's table, which lists items still in progress. A merged item leaves the table, so the number stayed near zero (4 / 140).

What

The numerator is now the distinct D3D- IDs named by a merged PR title, plus table rows already implemented. The denominator is all known D3D- IDs: table rows plus IDs named by any merged or open PR title. The formula text says where the number comes from.

Tested

New test: 2 in-progress table rows and 3 merged PRs naming other D3D- IDs gives 3 / 5 (fails on main, passes now). tests/test_progress_dashboard.py passes (27 tests) on the RunPod pod. It is the only test that reads progress_dashboard.

AI-assisted. No game files.

@Kam471 Kam471 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ran this at 372cf42e on Windows 11: python -I tests/test_progress_dashboard.py -> 27 tests, OK; git diff --check clean.

Merged D3D- items are now counted from merged PR titles as well as the in-progress table. No blocking issue.

@kapitche

Copy link
Copy Markdown
Collaborator

Tested 372cf42 merged with main 03b09a0 on Linux (WSL2), Python 3.12.16: pass. tests/test_progress_dashboard.py 27 tests OK. Negative control: tools/progress_dashboard.py restored from main with the PR test kept -> FAILED (failures=1). Diff read: in collect_github the old n = merged = 0 rebound the list of merged PRs to an int; the new code no longer does that, and the metric is now computed from d3d_item_ids(merged) and d3d_item_ids(open_prs), guarded by merged_set is not None. One small note: the old metric text excluded items that still had an open PR; the new count takes the union of the #313 rows that merged and IDs named by merged PR titles, so an ID with both a merged and an open PR counts as merged. That fits the new description string.

@sperm

sperm commented Nov 23, 2026

Copy link
Copy Markdown

Code read of 372cf42: I opened #4450 for the same item without seeing this one, and I'm closing it so this PR carries BUILD-1283. One difference between the two is worth deciding before merge:

Either rule is defensible, and "merged" might fairly mean "has a merged PR". The metric's own description ("and no PR still open") came from the old formula, though. If you keep table_done | pr_done, the formula text should say a merged PR is enough.

For scale, #4450's rule on live data at 03b09a0 gave 78 / 231 (74 items only PR titles name, plus 4 table rows). Yours should come out somewhat higher by the table rows that have a merged PR title.

AI-assisted (Claude Code).

@Atomic258

Copy link
Copy Markdown
Contributor

Tested 372cf42e on Linux (Ubuntu), CPython 3.10.12, CPU only, no game files: pass.

AI-assisted (Devin).

…ked partial when a PR list is unreadable (review)
@tedin7

tedin7 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor Author

Thanks @sperm for the careful read and for #4450, and @kapitche for the note on the union. You were both right that an ID with an open PR should not count as merged. Fixed in 448fb32.

New numerator, stated in the metric's text: rows in #313 keep the table's state (d3d_state: counted only when implemented). D3D- IDs that are not in the table count as merged when a merged PR title names them and no open PR title names them. The denominator is unchanged (#313 rows plus IDs named by any merged or open PR title). Your D3D-3 example (merged #291, row still lists open #819) is now partial and not counted.

If the merged or open PR list could not be read, the metric no longer silently falls back to the table: its title ends in "(partial)" and its note says "partial: the merged or open PR list could not be read, so only the #313 rows are counted".

Tests (tests/test_progress_dashboard.py, Proxmox, Python 3.13): 29 passed. Two new cases fail on the previous commit: one with a table row that has an open PR, a merged-only ID, and a merged ID that also has an open PR (expects 2 of 4, not 3); one with an unreadable open list (expects the table-only number, "(partial)" in the title, the note). The earlier test (3 of 5) still holds.

On #4450's 78/231: I cannot reproduce that number from here. It comes from the live #313 body and the live PR lists, and the tests use synthetic data only (no network in this run). The rule is the same as in #4450, so the live run should give the same number; if the two differ on a real run, the first thing to compare is how an ID that is in the table but whose row says "merged" is treated.

@kapitche

Copy link
Copy Markdown
Collaborator

Tested 448fb32 merged with main 98fa503 on Linux (Python 3.12.16): pass - tests/test_progress_dashboard.py 29 tests OK. Negative control: tools/progress_dashboard.py restored from main with the PR test kept -> FAILED (failures=3: counts (1, 2) != (2, 4), (0, 2) != (3, 5), and a 'partial' label not found). Diff read: no concerns.

@ItsNotRexed
ItsNotRexed merged commit 3bcba34 into ProjectLeonida:main Nov 23, 2026
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.

6 participants