Repository navigation
Conversation
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.
Root Cause
In
Publish workbench images(images.yml),publish (worker)failed atapps/web/Dockerfile:14(scripts/build-codex-backend.sh) with:scripts/build-codex-backend.shcomparedgit diff --binary --no-ext-diff HEADbyte-for-byte againstscripts/codex-backend/agent-control.patchandderived-lock.patchwithout pinning--abbrev. Under Git's defaultcore.abbrev=auto:indexheaders (index a1c6feec..dfa8869e,index 2e557339..b751234a).git clone --depth 1 --single-branchhas fewer objects socore.abbrev=autoemits 7-charindexheaders (index a1c6fee..dfa8869,index 2e55733..b751234), causingcmp -sto fail even though all file contents and hunks are identical.Fix
indexabbreviation length viapatch_abbrev()and pass--abbrev="$agent_patch_abbrev"/--abbrev="$lock_patch_abbrev"explicitly togit diffinscripts/build-codex-backend.sh.agent-control.patch,derived-lock.patch, andupstream.json(lockPatchSha256) untouched and preserves strict byte-for-bytecmp -sverification of both blob hashes and patch bodies.Verification
bash -n scripts/build-codex-backend.shpassed.--depth 1 --single-branch --branch rust-v0.172.0shallow clone:cargo buildcleanly (exact byte-for-byte match for bothagent-control.patchandderived-lock.patch).Source worktree differs from the checked-in build patches..Source worktree differs from the checked-in build patches..