Skip to content

Complete ordinary-PR Dylint parity and cold/warm measurement through Bosn → act2 #1643

Open

Description

@zackees

The adopted Linux local gate runs the two Ubuntu jobs from ci-minimal.yml, and accurately declares that limited scope. It does not run the independent PR-triggered dylint.yml workflow. A successful declared local gate therefore does not establish complete ordinary-PR Dylint parity. The first migration remains tracked in #1635; this is the focused Dylint proof and measurement follow-up to the broader rollout in #1639.

Evidence: ci/local_gate.py selects workflow ci-minimal.yml, job linux, with required check and python-facade-tests. dylint.yml independently runs on PRs and requires its policy, Dylint execution, and aggregator. Ordinary PR execution checks the entire Linux workspace; dispatch/full selection adds platform-specific cross-target passes. Preserve those event-dependent choices rather than measuring dispatch as if it were an ordinary PR.

Implement a separate source- and definition-bound local Dylint proof through Bosn → pinned act2, executing the unchanged existing workflow with the real PR context. Cover policy checks, shrink-only baselines, all lint libraries, all targets/features selected by the existing command, observed boundary evidence, and the final required Dylint status. Add no new GitHub workflow. Do not turn incomplete or skipped execution into a passing proof.

Measure complete cold, fresh-engine warm, changed-source warm, and identical-input attestation reuse separately, including checkout, setup, compiler, cache restore/save and aggregation overhead. Record exact source/tree, workflow closure, actual runtime/tool/target identity, executed steps, cache writer provenance and payload handoff. Ancestor reuse must preserve invalidation for changes. Retain remote checks until source-bound proof trust is validated; release validation always executes freshly.

Activity

  1. zackees commented on Oct 4, 2026

    @zackees
    MemberAuthor

    Implementation checkpoint: feat/local-dylint-pr-parity at 7c54f5a32aae2eff41be71478763b5243131fd5e, based on default branch f2dca463. The existing local gate now runs its Ubuntu pair and then the entire existing dylint.yml with PR/minimal context and no job selector. No workflow was added or edited. Dylint acceptance requires policy/dylint/gate exactly once with completed success and completed-success evidence for the named policy, library and workspace steps. Dispatch/full, job-filtered, missing, skipped and duplicate evidence is rejected.

    The first actual replay at d45e4146 completed all three Ubuntu graph jobs successfully (verify, check, python-facade-tests), but exposed a verifier error: the selected Linux job also includes its prerequisite. The outer gate correctly failed before Dylint; it produced no passing attestation. The count was corrected to require the actual three-job graph, with a missing-verifier regression. The actual terminal record reproduces rejection by the old selection and acceptance by the dependency-aware selection.

    31 focused helper/fractional/status tests, configured C901/RUF100 and formatting passed. The same primary reviewer approved both the implementation and correction. A fresh complete gate is currently running at 7c54f5a3; no complete Dylint pass, PR merge, runtime adoption or speedup is claimed yet. Concurrent correctness runs will not be presented as controlled cold/warm performance evidence.

  2. zackees commented on Oct 4, 2026

    @zackees
    MemberAuthor

    PR #1646 now includes the complete ordinary-PR Dylint workflow in the existing local gate, with no job filter. The updated-main source tree 11880321d07c88b62fe67844f2fbd1c628d3ded9 passed the original complete declared gate in 851 seconds, with every selected Ubuntu verifier/check/Python job and the independent Dylint workflow accepted. This was concurrent correctness validation, not a controlled cold/warm speed comparison.

    The remote branch independently merged the same main commit. Its tree and parents exactly matched the tested local merge. The normal checker reused the verified 3,370-input lane in under one second and issued fresh tree/parent-bound proof. A normal merge preserved the remote update; final head c95e9f8e1aec61c68ae09f226b0203fb6ac5d554 was pushed without force and passes explicit PR-context Local-Gate verification. This is positive unchanged-input proof reuse, not physical cache-handoff proof.

    The PR is still awaiting its latest remaining remote checks and normal landing. Keep this issue open for controlled Dylint/whole-workflow measurements, ancestor physical payload reuse, PR-to-main payload/attestation publication, a second fresh-checkout consumer, changed-input invalidation, and release fresh execution.

  3. zackees commented on Oct 4, 2026

    @zackees
    MemberAuthor

    PR #1646 merged normally as 35f1b2292cf41153adf900e32745f42cb5e3cd64 after every latest check completed successfully (with the existing conditional skips). The actual merged tree exactly matches the complete 851-second local-gate proof and the checker-issued unchanged-input reuse proof, 11880321d07c88b62fe67844f2fbd1c628d3ded9. Both independent Ubuntu and ordinary-PR Dylint workflow selections are now part of the declared local gate. No workflow files were added and existing coverage selection was preserved.

    Keep #1643 open: this lands parity, not the remaining controlled cold/warm Dylint measurements, ancestor physical payload reuse, PR-to-main payload publication, second fresh-checkout consumer and release non-reuse validation. Unchanged-input local proof reuse completed in under one second, but the overlapping 851-second correctness run is not a controlled workflow speedup comparison.

  4. zackees commented on Nov 19, 2026

    @zackees
    MemberAuthor

    Measured the current state on origin/main d2926d26 before working, and the parity and publication halves are already delivered — the open half was that nothing recorded a measurement. That is now a PR.

    Already on main (verified, not rebuilt):

    • Parity — #1646 (35f1b229). local-gate.toml declares [gate.lanes.dylint] plus the dylint.yml replay jobs (dylint, policy, gate, plus the merge_group-only queue-cache-janitor declared without steps), and the selection replays the file under its own workflow_dispatch trigger because that file has had no pull_request trigger since 79a5200a (#2086, fixed in #2087).
    • PR-to-main attestation publication/consumption — ./push stamps the Ci-Attestation: trailers via prooft run dylint -- … ci.local_gate --lane dylint, and ci/prooft_verify.py lets ci-minimal skip its Dylint call only when policy + dylint + gate are all credited by the head's trailers; merge-queue and main runs never skip. That is the "payload/attestation publication" cell for the PR path.

    Missing, now in PR #2092: a recorder. bosn ci show RUN --json already carries sha/git_tree/tree_digest/payload_sha256, the pinned engine_id/act_binary_digest/runner_image, and every step's duration_ms, and the log stream carries the snapshot/cache lines — so this is a reader, not another run. ci/measure_dylint_gate.py attributes durations into checkout / setup / work / cache / aggregation / frame, samples cache provenance from the log, and classifies run pairs only from identity fields: identical-input reuse, fresh-engine warm, changed-source warm. cold is reported as NOT PROVABLE (a Bosn record has no cache-state field — elapsed time is not warmth), and a run that did not complete successfully is rendered but never paired.

    First real numbers, from the two successful local Dylint-lane runs:

    37607e2c  wall 1458448 ms   work 1233194   setup 156279  checkout 14396  frame 64208
    e8725c7b  wall  894228 ms   work  789280   setup 101048  checkout 12352  frame  2143
    pair: changed-source warm  1458448 -> 894228 ms (-564220)
    

    Both were concurrent on a host at loadavg 19–33/16, so these are not presented as a controlled cold/warm comparison. The two identical-tree failures (46fa132e, c72a3245, both tree be539476) are reported evidence: NO and excluded from every pair.

    Still open here, each with its precondition: a controlled cold measurement (idle host + cleared cache; the cold half alone is ~850 s through Bosn → act2 and this box has been at load 20–130/16 all day), ancestor physical payload reuse, a second fresh-checkout consumer, and release fresh execution. Labelling this enhancement so it is visible as the CI-measurement feature it is rather than as unclassified work.

  5. added
    enhancement
    on Nov 19, 2026
  6. zackees commented on Nov 19, 2026

    @zackees
    MemberAuthor

    #2092 merged as 4851600e (2026-11-19T01:21:49Z, merge queue position 1, ~13 min; pre-enqueue: not draft, CLEAN/MERGEABLE, no reviews, 22 SUCCESS + 9 SKIPPED / 0 failing, head 9f4e570e == branch tip).

    Post-merge read-back on 4851600e: 18 success / 7 skipped / 5 running / 0 failure; ci/measure_dylint_gate.py + ci/test_measure_dylint_gate.py are on main, registered in ci/local_suites.py and the drift self-test step, documented in ci/README.md.

    Re-ran the recorder from main for a post-merge receipt: exit 0, e8725c7b → wall 894228 ms, checkout 12352 / setup 101048 / work 789280 / cache 0 / aggregation 316 / frame 2143, cold: NOT PROVABLE.

    What is now answerable with one command, and what still is not:

    uv run --no-project python -m ci.measure_dylint_gate <run> [<run> ...] [--json]
    
    • answerable: input identity and engine freshness per run, the per-overhead breakdown of any run in any lane (--lint and linux-minimal runs work the same way), and identical-input reuse / fresh-engine warm / changed-source warm whenever the record set contains such a pair;
    • still not answerable: cold. No bosn record has a cache-state field, so a cold measurement has to be taken deliberately — an idle host, a cleared cache, and the numbers recorded from that run. Same for ancestor physical payload reuse, a second fresh-checkout consumer, and release fresh execution.

    That is the whole of what remains here: the record-keeping half is a command, the measurement half needs an idle host.

  7. zackees commented on Nov 19, 2026

    @zackees
    MemberAuthor

    Recorder defect found and fixed while re-verifying this issue's remaining cells: ci/measure_dylint_gate.py --latest N selected the newest N runs of every workflow, because bosn ci list has no workflow predicate. On this host --latest 12 returned 6 Dylint runs plus callee.yml x2, integration.yml, caller.yml x2, ci.yml — i.e. half of a "Dylint gate measurement" was runs that never touched the gate. Fix is PR #2094 (unmerged): --latest now selects --workflow (default .github/workflows/dylint.yml) and escalates the listing limit until enough matches are visible or the listing is exhausted; fewer matches are reported as what exists. TDD: 4 new tests RED first (['dylint-a','callee','dylint-b'] != ['dylint-a','dylint-b']), then 21/21 OK; adjacent lane set 54/54 OK; check_python_types 0 errors; complexity/coverage/layout/ruff clean. Real re-run: 8 Dylint runs, changed-source warm still PROVEN by 1 pair, cold still NOT PROVABLE.

    Cell status on 2026-11-19 (main 48f10475):

    • release validation executes freshly — EVIDENCED: Autonomous Release dispatch run 44457584065 ran Full validation on release commit / dylint / Dylint Full (Linux builder, all OS targets) to success (not skipped), matching ci/prooft_verify.py's rule that every non-pull_request event skips nothing (test_non_pr_events_run_everything_without_calling_prooft covers merge_group/push/workflow_dispatch).
    • controlled cold / fresh-engine warm / changed-source warm / identical-input reuse — recorder delivered (feat(ci): record the Dylint gate cold/warm measurement from bosn runs #2092) and now selects the right runs; the controlled numbers still need an idle host (this box: loadavg 73/16). cold cannot come from a Bosn record at all (no cache-state field) — it must be recorded from an idle host with a cleared cache.
    • ancestor payload reuse with invalidation preserved / second fresh-checkout consumer — not measured; needs two controlled runs from different checkouts.

    No close keyword: the cold/warm timing cell is still open.

  8. zackees commented on Nov 19, 2026

    @zackees
    MemberAuthor

    #2094 merged as ade2c2b4 (2026-11-19T06:23:32Z, merge queue position 1, ~11 min; pre-enqueue re-verified: not draft, CLEAN/MERGEABLE, no reviews, 0 non-pass checks, head 2bdedcd1 == branch tip, queue empty, main's newest merge_group green).

    This is the recorder fix described above: --latest N now selects N runs of the Dylint workflow, not N runs of every workflow.

    Post-merge read-back on ade2c2b4: ci/measure_dylint_gate.py L78 DYLINT_WORKFLOW = ".github/workflows/dylint.yml", L490 the --workflow option, L536 _latest_ids(count, workflow=DYLINT_WORKFLOW); post-merge workflows so far: CI Workflow Drift, Formatting, Crate Gate, Validate Boards, Nightly Platforms all success, ci-minimal running, 0 failures.

    So a future measurement of this issue's remaining cells (cold / fresh-engine timing, ancestor + second-consumer reuse) now averages over gate runs only. Those cells still need an IDLE host — this box ran at loadavg 50-82 on 16 cores all tick, so I did not take a number here.

  9. zackees commented on Nov 19, 2026

    @zackees
    MemberAuthor

    Cell-coverage receipt (2026-11-19T07:4xZ), measured on origin/main ade2c2b4 — the recorder works; the remaining cells are blocked by things that are not in this repo. No timing number is claimed.

    Ran the merged recorder over every Dylint run Bosn retains:

    uv run --no-project python -m ci.measure_dylint_gate --latest 20 --json --no-logs → exit 0, 8 records, all .github/workflows/dylint.yml.

    regime provable now why not
    changed-source warm 1 pair (37607e2c 1,458,448 ms → e8725c7b 894,228 ms, −564,220 ms) —
    identical-input reuse none needs two runs with equal tree_digest and equal payload_sha256; the 8 records carry 6 distinct tree digests
    fresh-engine warm none needs equal tree_digest + different engine_id; all 8 records share one engine (a3a8fcab…, act 0.2.89-act2.36) — an act2 pin bump, not repo work
    cold none bosn ci show --json carries 39 top-level keys with no cache/warm/cold field at all; a record cannot decide whether a run started from an empty cache

    Only 2 of the 8 records are complete successes (e8725c7b, 37607e2c); the other 6 are failed/cancelled and the recorder marks them evidence: no and refuses to pair them — that behaviour is correct and is why one pair is all that exists.

    Ancestor / second-consumer reuse is not implementable here. git grep measure_dylint_gate origin/main returns only the module's own docstring: the recorder has no consumer in-tree, so there is no reuse path to make invalidation-preserving. The only attestation-reuse mechanism that exists is prooft's job-skip plan, and ci/prooft_verify.py pins it upstream (PROOFT_SOURCE = … forge-ci/prooft@d08d58be…), so ancestor crediting rules are that revision's logic — not fbuild's.

    What is genuinely left, and its precondition:

    1. a controlled cold + fresh-engine warm measurement — needs an idle host (fresh target dir, then a re-run after a one-line edit) and, for fresh-engine, an act2 engine change to pair against;
    2. identical-input reuse — needs one repeat run of an unchanged tree.

    This box has run at loadavg 26–45 (of 16) since 06:00Z and 14–149 all week, so no controlled number was taken; the issue forbids presenting one. Recording the block as hardware (idle-host capacity) until an idle window exists — then this receipt's table is the checklist to fill in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions