Repository navigation
ci: use approved quality runner with explicit baseline routing - #60
Merged
Merged
Conversation
Use a reviewed immutable digest when checkout lock/recipe/guard hashes match. Changed inputs explicitly retain the full baseline path so browser updates cannot deadlock behind trusted-main publication; malformed approvals and image execution failures remain visible CI failures. Preserve quality/test-gate identities, baseline commands and isolated DinD/publication behavior. Record matched benchmark evidence and refresh/rollback responsibilities. Co-authored-by: Codex <noreply@openai.com>
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.
The published quality runner has now passed clean anonymous pull/run and two matched cold/warm hosted pairs in #58. This PR uses it in the existing quality job for compatible checkouts.
A reviewed immutable image pin binds the Node 22/ABI127 contract and checkout test-lock/recipe/guard hashes. Matching inputs run the pinned image with only npm download-cache reuse; application/test dependencies still use npm ci. Changed or missing inputs explicitly run every existing baseline command, allowing lock updates to merge before a new trusted-main image is published. Malformed approval metadata fails visibly. Image pull, guard or test failures also fail quality; they never silently retry the baseline.
The quality job name, test gate and all DinD/build/publication jobs remain unchanged. The Docker client pulls anonymously with a fresh empty config; the quality container receives only its workspace/cache and CI flag, with no credentials, host socket or privileged mode. Weekly refreshed images require separate reviewed pin updates, with documented rollback to the prior approved digest.
Benchmark evidence: cold repeat baseline 326.72s → image 274.04s including 19.61s pull (52.68s/16.1% observed improvement). Warm medians 254.58s vs 256.18s were effectively tied. Another baseline cold run had a 577s browser/library-install outlier; that large gap is not a typical speedup claim. Historical normal jobs suggest usual gains may be only 10–15s, and DinD can still dominate whole-pipeline duration. The primary benefits are avoiding repeated preparation and reducing that setup exposure.
Validation: eight selector tests, six image-helper tests, shell/YAML checks and independent security audit pass. A synthetic changed-lock fixture exercises real GITHUB_OUTPUT baseline routing without mutating actual lockfiles. Structural checks confirm all nine baseline command definitions and non-quality jobs are preserved. Hosted validation passes: the actual quality job selected the approved image, skipped all nine baseline steps and passed 1,908 ordinary tests plus 61 root fixtures (65+1 expected skips), with eight selector tests. It took 4m43s overall. Candidate validation and six image-helper tests pass, the PR publisher is skipped, the Docker API/UI gate passes, and all four orchestrator/worker AMD64/ARM64 builds pass. Main-branch adoption remains to be verified after merge. Refs #47.