Skip to content

Commit 043ade9

Browse files
sjarmakclaude
andcommitted
fix: add git config to 50 Dockerfile.sg_only files to fix MCP build failures
The sg_only truncation step (`git commit -m "sg_only truncation"`) failed with exit code 128 in Docker builds because git user.email/user.name were not configured. This caused RuntimeError for all MCP configs on tasks using the backup+truncate pattern (build, debug, fix, design suites plus 6 test/perf tasks). Adds `git config user.email "agent@example.com" && git config user.name "Agent"` before the git commit in all three workspace path variants: /workspace (21 files), /app (21 files), /app/repo (8 files). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent f40c5d8 commit 043ade9

File tree

50 files changed

+50
-50
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+50
-50
lines changed

benchmarks/ccb_build/bustub-hyperloglog-impl-001/environment/Dockerfile.sg_only

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ RUN find /workspace -type f \( -name "*.py" -o -name "*.pyx" -o -name "*.pyi" -o
2222
# Recommit truncated state so git history cannot recover full files.
2323
# Without this, `git show HEAD:<file>` or `git checkout HEAD -- <file>`
2424
# would bypass truncation by reading from the pre-truncation commit.
25-
RUN cd /workspace && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
25+
RUN cd /workspace && git config user.email "agent@example.com" && git config user.name "Agent" && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
2626
RUN touch /tmp/.sg_only_mode && echo '/workspace' > /tmp/.sg_only_workdir
2727
CMD ["bash"]

benchmarks/ccb_build/cgen-deps-install-001/environment/Dockerfile.sg_only

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ RUN find /app/repo -type f \( -name "*.py" -o -name "*.pyx" -o -name "*.pyi" -o
2222
# Recommit truncated state so git history cannot recover full files.
2323
# Without this, `git show HEAD:<file>` or `git checkout HEAD -- <file>`
2424
# would bypass truncation by reading from the pre-truncation commit.
25-
RUN cd /app/repo && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
25+
RUN cd /app/repo && git config user.email "agent@example.com" && git config user.name "Agent" && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
2626
RUN touch /tmp/.sg_only_mode && echo '/app/repo' > /tmp/.sg_only_workdir
2727

2828
WORKDIR /app/repo

benchmarks/ccb_build/codecoverage-deps-install-001/environment/Dockerfile.sg_only

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RUN find /app/repo -type f \( -name "*.py" -o -name "*.pyx" -o -name "*.pyi" -o
2626
# Recommit truncated state so git history cannot recover full files.
2727
# Without this, `git show HEAD:<file>` or `git checkout HEAD -- <file>`
2828
# would bypass truncation by reading from the pre-truncation commit.
29-
RUN cd /app/repo && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
29+
RUN cd /app/repo && git config user.email "agent@example.com" && git config user.name "Agent" && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
3030
RUN touch /tmp/.sg_only_mode && echo '/app/repo' > /tmp/.sg_only_workdir
3131

3232
WORKDIR /app/repo

benchmarks/ccb_build/dotenv-expand-deps-install-001/environment/Dockerfile.sg_only

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ RUN find /app/repo -type f \( -name "*.py" -o -name "*.pyx" -o -name "*.pyi" -o
2424
# Recommit truncated state so git history cannot recover full files.
2525
# Without this, `git show HEAD:<file>` or `git checkout HEAD -- <file>`
2626
# would bypass truncation by reading from the pre-truncation commit.
27-
RUN cd /app/repo && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
27+
RUN cd /app/repo && git config user.email "agent@example.com" && git config user.name "Agent" && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
2828
RUN touch /tmp/.sg_only_mode && echo '/app/repo' > /tmp/.sg_only_workdir
2929

3030
WORKDIR /app/repo

benchmarks/ccb_build/dotnetkoans-deps-install-001/environment/Dockerfile.sg_only

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RUN find /app/repo -type f \( -name "*.py" -o -name "*.pyx" -o -name "*.pyi" -o
2626
# Recommit truncated state so git history cannot recover full files.
2727
# Without this, `git show HEAD:<file>` or `git checkout HEAD -- <file>`
2828
# would bypass truncation by reading from the pre-truncation commit.
29-
RUN cd /app/repo && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
29+
RUN cd /app/repo && git config user.email "agent@example.com" && git config user.name "Agent" && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
3030
RUN touch /tmp/.sg_only_mode && echo '/app/repo' > /tmp/.sg_only_workdir
3131

3232
WORKDIR /app/repo

benchmarks/ccb_build/envoy-grpc-server-impl-001/environment/Dockerfile.sg_only

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ RUN find /workspace -type f \( -name "*.py" -o -name "*.pyx" -o -name "*.pyi" -o
4141
# Recommit truncated state so git history cannot recover full files.
4242
# Without this, `git show HEAD:<file>` or `git checkout HEAD -- <file>`
4343
# would bypass truncation by reading from the pre-truncation commit.
44-
RUN cd /workspace && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
44+
RUN cd /workspace && git config user.email "agent@example.com" && git config user.name "Agent" && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
4545
RUN touch /tmp/.sg_only_mode && echo '/workspace' > /tmp/.sg_only_workdir
4646
CMD ["/bin/bash"]

benchmarks/ccb_build/eslint-markdown-deps-install-001/environment/Dockerfile.sg_only

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ RUN find /app/repo -type f \( -name "*.py" -o -name "*.pyx" -o -name "*.pyi" -o
2424
# Recommit truncated state so git history cannot recover full files.
2525
# Without this, `git show HEAD:<file>` or `git checkout HEAD -- <file>`
2626
# would bypass truncation by reading from the pre-truncation commit.
27-
RUN cd /app/repo && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
27+
RUN cd /app/repo && git config user.email "agent@example.com" && git config user.name "Agent" && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
2828
RUN touch /tmp/.sg_only_mode && echo '/app/repo' > /tmp/.sg_only_workdir
2929

3030
WORKDIR /app/repo

benchmarks/ccb_build/iamactionhunter-deps-install-001/environment/Dockerfile.sg_only

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ RUN find /app/repo -type f \( -name "*.py" -o -name "*.pyx" -o -name "*.pyi" -o
2222
# Recommit truncated state so git history cannot recover full files.
2323
# Without this, `git show HEAD:<file>` or `git checkout HEAD -- <file>`
2424
# would bypass truncation by reading from the pre-truncation commit.
25-
RUN cd /app/repo && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
25+
RUN cd /app/repo && git config user.email "agent@example.com" && git config user.name "Agent" && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
2626
RUN touch /tmp/.sg_only_mode && echo '/app/repo' > /tmp/.sg_only_workdir
2727

2828
WORKDIR /app/repo

benchmarks/ccb_build/k8s-runtime-object-impl-001/environment/Dockerfile.sg_only

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,6 @@ RUN find /workspace -type f \( -name "*.py" -o -name "*.pyx" -o -name "*.pyi" -o
3636
# Recommit truncated state so git history cannot recover full files.
3737
# Without this, `git show HEAD:<file>` or `git checkout HEAD -- <file>`
3838
# would bypass truncation by reading from the pre-truncation commit.
39-
RUN cd /workspace && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
39+
RUN cd /workspace && git config user.email "agent@example.com" && git config user.name "Agent" && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
4040
RUN touch /tmp/.sg_only_mode && echo '/workspace' > /tmp/.sg_only_workdir
4141
CMD ["/bin/bash"]

benchmarks/ccb_build/pcap-parser-deps-install-001/environment/Dockerfile.sg_only

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ RUN find /app/repo -type f \( -name "*.py" -o -name "*.pyx" -o -name "*.pyi" -o
2424
# Recommit truncated state so git history cannot recover full files.
2525
# Without this, `git show HEAD:<file>` or `git checkout HEAD -- <file>`
2626
# would bypass truncation by reading from the pre-truncation commit.
27-
RUN cd /app/repo && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
27+
RUN cd /app/repo && git config user.email "agent@example.com" && git config user.name "Agent" && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
2828
RUN touch /tmp/.sg_only_mode && echo '/app/repo' > /tmp/.sg_only_workdir
2929

3030
WORKDIR /app/repo

0 commit comments

Comments
 (0)