Repository navigation
fix(ci): select the Dylint closure for --latest gate measurements - #2094
Merged
Merged
Conversation
`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.
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
ci/measure_dylint_gate.py(#1643's recorder) documented--latest Nas "measure the newest N runs" — butbosn ci listreturns the newest runs of every workflow, and the selector took the first N ids unfiltered. On this host that meant: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_WORKFLOWis the default selection;--workflow PATHoverrides 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.--latestwith nothing to measure now exits withno <workflow> run to measureinstead of the generic argparse error.ci/README.mdand the module docstring state the filter.Receipts
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).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.--latest 12 --no-logs): 8 Dylint runs only,evidence: yeson the two successes, pairs stillchanged-source warm PROVEN by 1 pair,cold: NOT PROVABLE from a bosn recordunchanged.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 Fullcompleted rather than being skipped).