Repository navigation
Conversation
Kam471
left a comment
There was a problem hiding this comment.
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.
|
Tested 372cf42 merged with main 03b09a0 on Linux (WSL2), Python 3.12.16: pass. |
|
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 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). |
|
Tested
AI-assisted (Devin). |
…ked partial when a PR list is unreadable (review)
|
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 ( 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 ( 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. |
|
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. |
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.pypasses (27 tests) on the RunPod pod. It is the only test that reads progress_dashboard.AI-assisted. No game files.