Skip to content

fix(ci): select the Dylint closure for --latest gate measurements - #2094

Merged
zackees merged 1 commit into
mainfrom
agent/measure-latest-filter
Nov 19, 2026
Merged

zackees merged 1 commit into
mainfrom
agent/measure-latest-filter

Conversation

@zackees

@zackees zackees commented Nov 19, 2026

Copy link
Copy Markdown
Member

Why

ci/measure_dylint_gate.py (#1643's recorder) documented --latest N as "measure the newest N runs" — but bosn ci list returns the newest runs of every workflow, and the selector took the first N ids unfiltered. On this host that meant:

old _latest_ids(12) -> 12 ids
   e8725c7b dylint.yml        37607e2c dylint.yml
   46fa132e dylint.yml        c72a3245 dylint.yml
   4a078a53 dylint.yml        0da75660 dylint.yml
   73f12c10 callee.yml        271e59e0 callee.yml
   cffd3f47 integration.yml   d48cbf7b caller.yml
   bcba015a caller.yml        60ea2bd1 ci.yml

Half the "measurement" was runs that never touched Dylint. That is a wrong measurement in the one tool whose job is measurement, so it is fixed in code rather than worked around.

What changed

  • DYLINT_WORKFLOW is the default selection; --workflow PATH overrides it.
  • _latest_ids(count, workflow) filters the listing by workflow and escalates the newest-N limit (50 -> 100 -> ..., cap 2000) until enough matches are visible or the listing is exhausted — the listing carries no workflow predicate and no cursor.
  • Fewer matches than requested is reported as what exists; --latest with nothing to measure now exits with no <workflow> run to measure instead of the generic argparse error.
  • ci/README.md and the module docstring state the filter.

Receipts

  • TDD: RED first — 4 new tests failed against the unfiltered selector (21 tests, FAILED (failures=4)), including ['dylint-a', 'callee', 'dylint-b'] != ['dylint-a', 'dylint-b'].
  • uv run --no-project python -m unittest ci.test_measure_dylint_gate — 21 tests OK (17 existing + 4 new: mixed-workflow filtering, limit escalation, exhausted listing, non-positive count).
  • Adjacent set test_measure_dylint_gate test_local_gate test_local_suites test_local_dylint_gate test_prooft_verify — 54 tests OK.
  • ci/check_python_types.py — 0 errors, 0 warnings, 0 notes (whole tracked tree).
  • ci/check_python_complexity.py — clean. ci/gate_script_coverage.py --budget 0 — every gate script accounted for. ci/check_test_layout.py — ok. ruff format + ruff check — clean.
  • Real run after the fix (--latest 12 --no-logs): 8 Dylint runs only, evidence: yes on the two successes, pairs still changed-source warm PROVEN by 1 pair, cold: NOT PROVABLE from a bosn record unchanged.

No Rust touched, no workflow added, no gate weakened: this only changes which records the reader selects, never what a record is allowed to prove.

Ref #1643 (that issue stays open: the controlled cold/fresh-engine-warm measurement still needs an idle host, and the release-fresh-execution cell is already attested by run 44457584065, where Full validation / dylint / Dylint Full completed rather than being skipped).

`bosn ci list` returns the newest runs of every workflow, so
`measure_dylint_gate --latest 12` on this host selected 12 runs of which six
were callee/integration/caller/ci -- runs that never touched the gate the
report claims to measure. The listing carries no workflow predicate or cursor,
so the filter now applies locally: keep only the requested workflow (default
`.github/workflows/dylint.yml`, overridable with `--workflow`), escalate the
newest-N limit until enough matches are visible or the listing is exhausted,
and report honestly when fewer exist.

Receipts: `uv run --no-project python -m unittest ci.test_measure_dylint_gate`
21 tests OK (4 new: mixed-workflow filtering, limit escalation, exhausted
listing, non-positive count). Real listing: old selector returned
[dylint x6, callee x2, integration, caller x2, ci]; new selector returns the 8
Dylint runs only, pairs still report `changed-source warm` and `cold` stays
NOT PROVABLE. Ref #1643.
@coderabbitai

coderabbitai Bot commented Nov 19, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@zackees
zackees added this pull request to the merge queue Nov 19, 2026
Merged via the queue into main with commit ade2c2b Nov 19, 2026
30 checks passed
@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Nov 20, 2026
@zackees
zackees deleted the agent/measure-latest-filter branch November 24, 2026 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

1 participant