Repository navigation
task image: remove git history after HEAD on the Phase 1 template branch - #50
Merged
ArjunS07 merged 2 commits intoOct 8, 2026
Merged
Conversation
…on disk; fix the ref check that never failed
ArjunS07
merged commit Oct 8, 2026
ac86cde
into
survey/phase1-template-20261008
0 of 3 checks passed
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.
Purpose
Phase 1 builds task images from
survey/phase1-template-20261008. That branch does not have datasmith#46, which removes git history after the base commit at image build. This PR applies the same two commits to that branch, so new Phase 1 images come out clean without the separate scrub step.How it works
Changes
Effect: the last build step deletes refs that are not ancestors of HEAD, expires reflogs and prunes unreachable objects. The build fails if HEAD, the tree,
git describeorgit statuschange, or if a later commit is left.Before: on this branch, new images keep the history until
aws/scrub_worker.pyadds the scrub layer.docker_build_run.shcan fail.Effect: a ref ahead of HEAD stops the build.
Before: the check ended the build script with success, so it never failed.
Verification
pytest tests/docker/test_scrub_git.py tests/docker/test_harbor_adapter_render.py tests/docker/test_setup_baseline_commit.py: 5 passed.Notes
58b1b2e,4cddd54), cherry-picked without changes.render_source_sha256. Timing does not change, because HEAD and the tree stay the same.