Repository navigation
ci: check a dispatched image with the engine-set script - #443
Merged
Merged
Conversation
Rename the workflow title. Extract the baked manifest and run scripts/engine-image-gate.mjs so the manual gate uses the same production check as the image build. Prove a full manifest exits 0 and engineSet none exits 1.
Take the image-gate env binding from #431 so the dispatch ref is no longer interpolated inside the run script.
Bind the dispatch image through IMAGE. An empty lock or a lock without engines exits non-zero. Invoke the CLI via realpath so a symlink still gates. After the manifest check, --image runs each lock binary's --version in the image. Missing or malformed manifests fail. The workflow title stays GOX image gate so it does not collide with the renamed public workflow.
jencryzthers
marked this pull request as ready for review
October 14, 2026 04:28
3 of 5 tasks
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.
What changed
The manual gate (file unchanged:
gox-image-gate.yml, titleGOX image gate) now:inputs.imagetoenv.IMAGEand quotes"$IMAGE"(from ci: pass the image ref through env in the image gate #431, merged)/app/engines/manifest.jsonand runsscripts/engine-image-gate.mjs --manifest … --image "$IMAGE"realpath(a symlink still gates)--versionin the image, not only the manifestThe title stays
GOX image gateso it does not collide with #437's renamedimage gateworkflow.Why
A dispatch string must not be interpolated in the
run:script. A missing lock must not pass. A symlink invocation must not exit 0 without checking. A baked manifest can lie; the binaries have to be present and print a version.Preuve
HEAD
4fd9ea58aa5b0e16a48c5075b848725670047303Env (no interpolation)
The check step sets
IMAGE: ${{ inputs.image }}. Therun:script uses"$IMAGE"only.Valid manifest
Invalid manifest (
engineSet: "none")Missing manifest
Malformed JSON
Empty lock (fail closed)
Symlink
(
./gateis a symlink toscripts/engine-image-gate.mjs. Same path without a check would have exited 0.)Image binaries
assessEngineBinariesplus a fakedockeron PATH: every lockbin --versionprints a line → exit 0;claudemissing (exit 127) → exit 1,claude: claude missing or --version failed.Suite
pnpm lint,pnpm typecheck, andi18n:checkexited 0 on this revision (pre-push hook).