Repository navigation
perf(xtask): reuse successful covered-by enumeration argv - #7406
Conversation
|
Warning Review limit reachedThe included review limit has been reached and this organization has disabled usage-based review continuation. Wait for reviews to reset or ask a billing admin to change After included review limits. Next included review available in 7 minutes. View limit details
Comment |
There was a problem hiding this comment.
Code Review
This pull request optimizes the file policy validation by caching successful test-listing command outputs within a single invocation, preventing redundant command executions. Unit tests have been added to verify the caching behavior. The review feedback suggests further optimizing this caching mechanism by storing the parsed list of selected tests directly instead of the raw output tuple, which avoids redundant parsing and string cloning, and simplifies the cache hit/miss logic.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Published-head candidate inspection: REVIEW_INCOMPLETE for required hosted qualification; no blocking source or oracle findings.
Reviewed head: d3e40e0. Integration basis: 20be462; GitHub synthetic merge currently 050eee2. Full published two-file patch and current metadata match the locally reviewed candidate.
Semantic owner/consumers: validate_test_covered_by_with, production enumeration/spawn/capture, command parser/types and per-line report rendering. Independent /root/source_review inspected raw tuple and exact Vec argv identity, invocation lifetime, failure/host ordering and preserved diagnostics. Independent /root/oracle_review challenged command-string/coarse/joined key reuse, delimiter collisions, host skips, observation deduplication, cross-invocation leakage and suppressed rejections; it also independently inspected actual red/green and recorded Cargo argv/report receipts. Both exact-head reviews found no blocking defects.
Observed local qualification on this committed head: 18 focused tests passed, no failures/ignores; process policy; check-fast with strict workspace/all-target Clippy, 10 gates/1 designed fixture skip and a stable selector matching the independent two-path Git diff; canonical precommit with complete committed head/base/change-set binding and strict xtask/all-target Clippy. Raw successful output is cached only after nonzero validation, while every line repeats validation and records its original observation. No persistent cache, schema/identity change or exception.
Observed experiment: baseline 33 Cargo calls (13 warmups/20 listings), candidate 26 (13/13); exact structured argv sets equal. Reports byte-identical, retaining 20 observations and 540 listed subjects with overlap. Listing is not execution. No latency or runner-minute saving claim.
Hosted state inspected: security success; Rust-only detector success with the compile skipped for the actual paths; Graphite reports zero comments (not substituted for semantic review). CodeRabbit is quota-unavailable, not a clean review. UB review, wheel qualification and Windows subset are active; Droid is queued. No posted material findings or inline threads at inspection. No routed Rust qualification is active, so one Ready transition may request it without a duplicate run. Ready for hosted qualification is not REVIEW_READY or merge authorization.
Residuals: unchanged source/configuration/environment during one synchronous invocation is assumed; native Windows/full-workspace runtime and combined-tree required qualification remain unestablished. Classic protection read is denied to this integration, and the active-rules read endpoint is unavailable; those are permission/instrument gaps, not absence of protections. Parent retains final protected merge. Broad #5090 remains open.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Cumulative exact-head review: aecabc9. REVIEW_INCOMPLETE only for current required hosted qualification. No blocking source/oracle/documentation findings remain.
The cumulative production/regression blob 355ac0d31d22276f01d5168c82d9fb53959106d9 is identical to independently reviewed d3e40e0. The only follow-up delta repairs the valid Devin changelog-format finding with the documented Changed marker, bullet and trailing (#5090). Independent /root/source_review verified the exact committed repair and currentness. Gemini's optional parsed-result/early-continue optimizations were declined with source-backed replies because every ledger line must retain original validation; those replied threads were resolved. The changelog repair/reply was confirmed before resolving its thread.
Exact repair-head canonical pinned precommit completed exit 0, complete two-path committed change set, no limitations/skips, strict xtask/all-target Clippy; receipt digest sha256:cc13d48ce589ad3a749494edae9426bcab714c59cf391e65af6b4952f441b9d9. Static-language validation passed. Prior exact-production-blob evidence remains applicable: 18 focused tests pass; strict workspace Clippy/check-fast pass; regression first failed 4 actual vs 2 expected calls; one actual invocation removed seven spawns (33→26) and retained byte-identical 20-observation reports. No timing savings claim.
No required routed run exists on this new head at inspection. One Ready transition will replace the obsolete prior-head qualification under the existing workflow concurrency rule, without a duplicate current-head run. Main remains 20be462. The active main ruleset was read successfully and requires resolved threads; classic protection remains denied to this integration, not absent. CodeRabbit quota and queued Droid are missing review, not clean review. Parent retains final protected merge; broad #5090 stays open.
There was a problem hiding this comment.
Reporter summary
All five specialist lanes produced no contentful output (status degraded), so the lane review is effectively empty; the only substantive signal comes from the seeded thread (Gemini's parsed-cache optimization declined by author, Devin's changelog format finding already repaired in aecabc9, both independent reviews reporting no blocking defects, prior precommit receipt cc13d48c binding the exact head). The ripr sensor failed (exit 2) and the scheduled cargo-test timed out after 900s, so no fresh build/test evidence is available for the current HEAD, meaning the only proof of behavior is the author's pinned local runs and byte-identical report SHA. Given absence of any lane-level finding or residual risk statement, plus missing late test receipt, this is uncertainty rather than clearance.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Final published-head review: REVIEW_READY for ordinary protected squash merge convergence. Parent retains final merge; no merge or auto-merge requested.
Reviewed head: aecabc9. Integration basis: 20be462. GitHub synthetic merge: 8ae49c8. Head/base re-read unchanged at 21:45Z; GitHub reports mergeable=true, clean, no labels/explicit hold, no auto-merge. Full two-file published patch inspected.
Claim/owners: invocation-local reuse only of identical exact Vec enumeration argv, raw successful nonzero tuple, validate_test_covered_by_with and production spawn/capture/parser/report consumers. Source and oracle reviewers independently inspected exact committed objects, failures, host order, command boundaries/collisions, invocation isolation, retained line observations and actual red/green/argv/report receipts. The production/test blob is unchanged after the independently reviewed changelog-format repair. The regression ran one intended subject and failed against old behavior (4 actual calls vs 2 expected); 18 focused tests passed on that implementation blob. Wrong key, line deduplication, host leakage, invocation leakage and rejection suppression are challenged by the seam controls.
Current-head local proof: pinned Rust/Cargo1.95.0, normal profiles/two jobs; canonical precommit exit0, complete committed two-path set, no skips/limitations, strict xtask/all-target Clippy (receipt cc13d48ce589ad3a749494edae9426bcab714c59cf391e65af6b4952f441b9d9). Prior unchanged-blob check-fast/workspace Clippy and process policy passed. One qualified policy invocation removed seven Cargo spawns (33→26), preserving byte-identical reports, 20 observations and 540 listed subjects with overlap; no latency claim and listing is not execution.
Current hosted proof: run38173584897 attempt1 completed success at head aecabc9; GitHub-hosted gate114571290994 and required aggregate114582765395 both success. Actual steps inspected: policy, evidence honesty, dependency/process/network, workspace/all-target and all-feature check, strict workspace Clippy, required nextest tests, doctests, goldens, fixtures, verdict corpora and PR evidence all succeeded. Initial nextest log selects14396 tests across74 binaries with2 skipped; final XML denominator was not independently read. Required step guard requires a fresh nonempty JUnit report, and artifact11716133256 identity/digest is bound to this head/run, but host transfer is denied by CONNECT403. This residual artifact inspection gap is recorded, not promoted to read proof. Old d3e40e cancelled-run failures are excluded.
Late advisory evidence: security success; Windows cache-warning subset success, full Windows lane skipped; Linux wheel source/metadata/payload/negative controls and independent clean uv/pip consumer journeys success. UB workflow success contains five empty/degraded specialist lanes, sensor exit2 and a900-second scheduled cargo-test timeout at21:11: missing advisory review/proof, not clean review or a candidate defect. Later required tests/gates passed at21:36–21:42. CodeRabbit quota-unavailable despite its success status; Graphite zero comments is not semantic review; Droid workflow remains pending. Adequate independent source/oracle alternatives satisfy the repository review route without treating unavailable providers as clearance.
Findings: valid changelog-format defect repaired and reply confirmed before resolution. Gemini parsed-result/early-continue suggestions declined with source-backed scope rationale because every original line must still validate. All four threads read back resolved. No blocking source/oracle/test/doc or current hosted finding remains. No changed receipt schema, source identity, persistent cache, validator exception, workflow, release or settings.
Policy/route: AGENTS.md and finish-pr require current substantive REVIEW_READY, actual required checks and addressed findings. docs/MERGE_WATCH_POLICY.md explicitly permits equivalent REST inspection and uses hosted protection state when required-context acquisition is unavailable. No mandatory normal-PR policy-acquisition receipt is prescribed. Repository allows squash merge; the normal GitHub merge endpoint supports an expected_head_sha guard with no bypass parameter. Classic-protection read remains denied (not re-probed, not absence of policy); the previously read ruleset is not substituted for complete live protection. GitHub's ordinary protected path must enforce current requirements; any refusal must be diagnosed, never bypassed.
Residuals/nonclaims: fixed source/config/environment during the synchronous invocation; no latency/CPU/runner-minute saving measurement; full native Windows and artifact XML contents not independently established. Preserve compact receipts and preexisting shared target/toolchain; clean only confirmed lane-owned disposable resources after consumer release. Broad#5090 remains open.
Summary
File-policy already shares identical
--no-runwarmups but repeated successful test listings for each applicable ledger entry. This change reuses the raw successful enumeration result for exact structured argv within one synchronous validation call. Every ledger line still applies the original host decision, timeout/status/nonzero checks, test parsing and observation rendering.Governing issue: #5090; this is a bounded contribution and leaves its broader CI programme open. Evidence: #5090 (comment).
Scope and acceptance
Candidate:
perf/5090-covered-by-enumeration-reuse, headaecabc913b2543bd42276b232860aafc416ac2c4, basis20be462ca537a212ad91bb4a8a97e03846d4468f. No stack or replacement. Ordinary same-repository automation work; one production behavior.BTreeMap<Vec<String>, (bool, String, String)>invalidate_test_covered_by_with, populated only after successful nonzero validation.Validation
Pinned Rust/Cargo 1.95.0, Linux x86_64, normal profiles, two build jobs.
worktree doctor,check-fast(6 gates, 0 paths) andcargo check --locked -p xtask --all-targetspassed before source repair.d3e40e03(unchanged production/test blob at current head) focused file-policy suite: 18 passed, 0 failed, 0 ignored.check-fast: passed; 10 gates ran, 1 fixture gate skipped as designed; independent diff and stable selector both name exactly 2 paths. Strict workspace/all-target Clippy passed as part of check-fast.precommit: passed. Its schema 0.2 receipt binds the exact head/base, complete two-path committed change set, all policy outcomes, and strictclippy -p xtask --all-targets; no limitations or skipped commands.One recorded successful baseline invocation made 33 Cargo spawns (13 warmups + 20 listings). The committed candidate made 26 (13 + 13), removing 1 duplicate pilot_ranking listing and 6 duplicate public_proof listings. Exact argv sets are equal. Reports are byte-identical (SHA256
0b7980bd8167143d5f94087e6a7f490478b59c2bb831b8cc2f3b77ab97514da6), retaining 20 observations and 540 listed subjects with overlaps. Enumeration is not execution of those 540 tests. Baseline production is exact-base with the regression-only tests present in its tree; candidate is final-head production.Independent exact-head reviews found no blocking defects:
/root/source_reviewinspected the full diff, enumeration/spawn/capture owners, parser/types, diagnostic/host paths, raw tuple identity and lifetime;/root/oracle_reviewinspected the four regression stimuli/oracles, actual red/green logs, argv collision/isolation/host controls and independently verified recorded call counts and report parity. New tests intentionally omit spec traceability mappings because this is operational efficiency under #5090; portable-consumer acceptance and its existing mappings stay unchanged.Limits and rollback
No latency, CPU, runner-minute or whole-CI speedup claim. No local whole-workspace test run. Hosted full-workspace Rust qualification passed on the current head; Windows advisory subset passed, while full Windows qualification remains unestablished. Final nextest artifact identity was inspected but its XML transfer is blocked by the host proxy.
Revert this bounded change; no persisted state or migration.
CI economics
Draft opening still starts UB review, xtask-matched Python wheel qualification, Windows advisory subset, security and PR metadata; Droid review may queue on self-hosted capacity. Required routed Rust waits for Ready. Label-gated broad lanes remain unrequested. No CI trigger/configuration changes are included. Final-head local results and the full trigger audit were handed to the parent before Draft creation. The parent authorized normal Draft advisory triggers and a later Ready transition after findings are satisfied. Parent retains final merge; no protection or required check is weakened.
Review follow-up
Exact current head
aecabc913b2543bd42276b232860aafc416ac2c4repairs the valid changelog-format finding. The production/test blob is unchanged fromd3e40e03e79a6a349e4b42c317966da2a6b3704a, where the focused tests and spawn/report experiment were recorded. Independent review confirmed the committed documentation repair; static-language and canonical pinned precommit passed on the new exact head (digestsha256:cc13d48ce589ad3a749494edae9426bcab714c59cf391e65af6b4952f441b9d9, complete two paths, no limitations, strict xtask/all-target Clippy). Parsed-result cache/early-continue suggestions were declined with source-backed replies to retain per-line validation. All four addressed threads resolved with readback. Current required hosted proof passed; parent retains merge and no merge/auto-merge was requested in this lane.Final qualification and disposition
REVIEW_READYat current headaecabc913b2543bd42276b232860aafc416ac2c4, base20be462ca537a212ad91bb4a8a97e03846d4468f, synthetic merge8ae49c8fb100ed301e613b487ff7f9eee40c7bfe. Required run 38173584897 completed success (attempt 1), including the actual Rust gate andRipr Rust Small Result; source/hosted qualification, substantive independent review and all four resolved threads inspected. Security, Windows subset and Linux wheel/clean pip+uv consumer qualification passed. UB's five empty/degraded specialist lanes, sensor failure and 900-second advisory test timeout are missing advisory review/proof, not a clean review; later required tests and remaining gates succeeded. CodeRabbit remains quota-unavailable; Droid remains pending; independent source/oracle reviews are the adequate substantive alternatives. Artifact 11716133256 is exact-head/run-bound, but final XML counts remain unread because host transfer returns CONNECT 403.Equivalent REST readiness inspection is permitted by the repository's merge watcher policy. No additional mandatory policy-acquisition receipt was found for ordinary development PRs. Classic-protection read is denied, not absent, and ruleset evidence does not replace complete policy. Normal expected-head-guarded GitHub protected squash merge is supported; parent owns that final action. No bypass, duplicate CI, timeout change, merge or auto-merge action occurred. Broad #5090 stays open.