Skip to content

Share the pinned Docker test runner with Fix Evals - #1185

Merged
arminazimi merged 2 commits into
mainfrom
refactor/368-shared-test-runner
Nov 28, 2026
Merged

arminazimi merged 2 commits into
mainfrom
refactor/368-shared-test-runner

Conversation

@arminazimi

@arminazimi arminazimi commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Closes #835
Closes #847

What changed

Fix Evals and autopilot --test-only now prepare their pinned Docker images and checkout snapshots through the same test-runner code. A regression test covers digest overrides, the pinned Kubernetes recipe, and fresh snapshots on reused images.

The test-runner guide records the detected commands, the validated config override, and how to recover when Doctor cannot detect a test project.

Quality bar

Read docs/QUALITY.md and kept the existing quality gates and allowlist.

Checks CI cannot make

  • Tests added or updated for changed behavior
  • Changelog fragment added in changes/ for user-visible changes (this PR is a refactor and docs update)

Verification

  • OFFING_CHECK_COVERAGE=1 npm run check passed locally.
  • node --test dist/tests/{test-runners-detect,test-runners-result,fix-evals,autopilot}.test.js passed 44 tests.
  • A fresh offline install of the packed local 0.1.1 artifact detected npm install/build/test commands with offing doctor --tests. It validated the documented autopilot.tests override, executed both default and explicitly pinned test-only commands successfully, and supplied actionable guidance for an unsupported directory.
  • npm run fix-evals -- --out <new-directory> reproduced the November 28 raw evidence on the same 60 pins (50 eligible, 10 excluded) and the same image IDs. All report fields match after removing the source revision. The 60 raw rows also match on command, status, exit code, test totals and failures, flaky classifications, metrics, and patch digests. All 51 patch files and 216 log streams per run matched their recorded SHA-256 digests. This comparison does not require identical execution durations or log text between runs.

Notes for reviewers

The published 0.1.2 consumer-path acceptance remains tracked by #368 and #444.

@arminazimi
arminazimi merged commit 4319c96 into main Nov 28, 2026
37 of 39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant