Skip to content

progress_dashboard: count D3D- items merged on main from PR titles too (BUILD-1283) - #4450

Closed
sperm wants to merge 1 commit into
ItsNotRexed:mainfrom
sperm:build-1283-d3d-merged-items
Closed

sperm wants to merge 1 commit into
ItsNotRexed:mainfrom
sperm:build-1283-d3d-merged-items

Conversation

@sperm

@sperm sperm commented Nov 23, 2026

Copy link
Copy Markdown

Claim: BUILD-1283 (#4421 (comment)), found by Mast3rL.

What and why

The dashboard's "D3D- items merged on main" metric reads only #313's "Who builds what" table. That table drops an item once it is done, so it holds in-progress rows and the metric stays near zero (4 / 141).

The new d3d_items(table, merged, open_prs) keeps every table row with its existing d3d_state. It adds each D3D- ID that a merged or open PR title names but the table no longer lists (item_ids, the parser the "Coordination items with a merged pull request" metric already uses):

  • implemented when a merged PR names it and no open PR does;
  • partial while an open PR names it.

Those items also appear as rows in the D3D12 panel. If gh pr list fails, only the table counts, as before. Titles only, not PR bodies, the same rule as the existing items metric.

Result

Run against the live repository (read-only, --github) at 03b09a08, on the same data:

Implemented Items
main 4 141
this PR 78 231

The 90 added items split into 74 merged (no open PR names them) and 16 still with an open PR. The 141 table rows keep their states.

Tested

  • python -I tests/test_progress_dashboard.py: 28 run, OK. Two new tests cover an item that left the table, an item with a merged and an open PR, a table row that keeps its own state, and the no-PR-list fallback.
  • python -m compileall -q tools/progress_dashboard.py; git diff --check clean.
  • Linux 7.3.4 (CachyOS), Python 3. No GPU, no game files.

AI-assisted (Claude Code).

🤖 Generated with Claude Code

…o (BUILD-1283)

ItsNotRexed#313's "Who builds what" table drops an item once it is done, so the metric
counted only in-progress rows (4 / 141). Items that merged PR titles name and
the table no longer lists now count as implemented (no open PR naming them),
or partial while one is open: 78 / 231 at 03b09a0.

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

Kam471 commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Duplicate note: #4442 (\372cf42e) implements the same BUILD-1283 change (count merged \D3D-\ items from PR titles) and is the earlier PR. The branches both edit \ ools/progress_dashboard.py\ and \ ests/test_progress_dashboard.py; \git merge-tree\ reports a conflict. #4442's tests pass (27 OK) and it is MERGEABLE, so this one should close or rebase onto it.

@sperm

sperm commented Nov 23, 2026

Copy link
Copy Markdown
Author

Closing in favour of #4442, which implements the same BUILD-1283 change and was opened first. Thanks @Kam471 for spotting the duplicate.

@sperm sperm closed this Nov 23, 2026
@kapitche

Copy link
Copy Markdown
Contributor

Tested 4d2690c merged with main 03b09a0 on Linux (WSL2), Python 3.12.16: pass. tests/test_progress_dashboard.py 28 tests OK. Negative control: tools/progress_dashboard.py restored from main with the PR tests kept -> FAILED (errors=2), so the new tests exercise the change. Diff read: d3d_items returns the #313 rows unchanged and adds IDs named only by PR titles (implemented if a merged PR names it and no open one does, partial if an open one does); with the PR lists missing (gh failed) only the table counts; the old n = merged = 0 that rebound the merged list is gone. Note for the maintainer: #4442 fixes the same thing (BUILD-1283) in the same two files and the two conflict with each other (merging #4442 on top of this branch gives a content conflict in tools/progress_dashboard.py), so only one can land.

@Atomic258

Copy link
Copy Markdown

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

AI-assisted (Devin).

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.

4 participants