Skip to content

Commit 3dd7632

Browse files
sjarmakclaude
andcommitted
fix: replace git fetch --depth 1 origin <sha> with full clone + checkout
GitHub doesn't serve arbitrary commit SHAs via shallow fetch (git fetch --depth 1 origin <sha>). This fails with "upload-pack: not our ref". Replace all 14 affected Dockerfiles (7 standard + 7 artifact_only) to use: git clone <url> + git checkout <sha> Also extends run_selected_tasks.sh to support artifact configs: - Add --full-config flag (default: mcp-remote-direct) - Derive BASELINE_CONFIG using baseline_config_for() from _common.sh - Add Dockerfile.artifact_only swap/restore in run_benchmark() for *-artifact configs - Update main loop to use dynamic config vars Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent a31d90c commit 3dd7632

File tree

15 files changed

+63
-35
lines changed

15 files changed

+63
-35
lines changed

benchmarks/ccb_mcp_crossrepo_tracing/ccx-config-trace-010/environment/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ WORKDIR /workspace
1515

1616
# Clone local checkout repos (baseline config: agent has local access to these)
1717
RUN git clone --depth 1 --branch v1.32.0 https://github.com/kubernetes/kubernetes /workspace/kubernetes
18-
RUN git clone https://github.com/kubernetes/client-go /workspace/client-go --no-checkout && \
19-
cd /workspace/client-go && git fetch --depth 1 origin 8020fc4fcf89965904a5f43689f169d6e01d1e80 && git checkout FETCH_HEAD
18+
RUN git clone https://github.com/kubernetes/client-go /workspace/client-go && \
19+
cd /workspace/client-go && git checkout 8020fc4fcf89965904a5f43689f169d6e01d1e80
2020

2121
# Initialize git identity for agent commits
2222
RUN git config --global user.email "agent@example.com" && \

benchmarks/ccb_mcp_crossrepo_tracing/ccx-config-trace-010/environment/Dockerfile.artifact_only

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ WORKDIR /workspace
2020

2121
# Clone local checkout repos (baseline config: agent has local access to these)
2222
RUN git clone --depth 1 --branch v1.32.0 https://github.com/kubernetes/kubernetes /workspace/kubernetes
23-
RUN git clone https://github.com/kubernetes/client-go /workspace/client-go --no-checkout && \
24-
cd /workspace/client-go && git fetch --depth 1 origin 8020fc4fcf89965904a5f43689f169d6e01d1e80 && git checkout FETCH_HEAD
23+
RUN git clone https://github.com/kubernetes/client-go /workspace/client-go && \
24+
cd /workspace/client-go && git checkout 8020fc4fcf89965904a5f43689f169d6e01d1e80
2525

2626
# Initialize git identity for agent commits
2727
RUN git config --global user.email "agent@example.com" && \

benchmarks/ccb_mcp_crossrepo_tracing/ccx-dep-trace-001/environment/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ WORKDIR /workspace
1515

1616
# Clone local checkout repos (baseline config: agent has local access to these)
1717
RUN git clone --depth 1 --branch v1.32.0 https://github.com/kubernetes/kubernetes /workspace/kubernetes
18-
RUN git clone https://github.com/kubernetes/client-go /workspace/client-go --no-checkout && \
19-
cd /workspace/client-go && git fetch --depth 1 origin 8020fc4fcf89965904a5f43689f169d6e01d1e80 && git checkout FETCH_HEAD
18+
RUN git clone https://github.com/kubernetes/client-go /workspace/client-go && \
19+
cd /workspace/client-go && git checkout 8020fc4fcf89965904a5f43689f169d6e01d1e80
2020

2121
# Initialize git identity for agent commits
2222
RUN git config --global user.email "agent@example.com" && \

benchmarks/ccb_mcp_crossrepo_tracing/ccx-dep-trace-001/environment/Dockerfile.artifact_only

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ WORKDIR /workspace
2020

2121
# Clone local checkout repos (baseline config: agent has local access to these)
2222
RUN git clone --depth 1 --branch v1.32.0 https://github.com/kubernetes/kubernetes /workspace/kubernetes
23-
RUN git clone https://github.com/kubernetes/client-go /workspace/client-go --no-checkout && \
24-
cd /workspace/client-go && git fetch --depth 1 origin 8020fc4fcf89965904a5f43689f169d6e01d1e80 && git checkout FETCH_HEAD
23+
RUN git clone https://github.com/kubernetes/client-go /workspace/client-go && \
24+
cd /workspace/client-go && git checkout 8020fc4fcf89965904a5f43689f169d6e01d1e80
2525

2626
# Initialize git identity for agent commits
2727
RUN git config --global user.email "agent@example.com" && \

benchmarks/ccb_mcp_crossrepo_tracing/ccx-dep-trace-004/environment/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ WORKDIR /workspace
1515

1616
# Clone local checkout repos (baseline config: agent has local access to these)
1717
RUN git clone --depth 1 --branch v11.4.0 https://github.com/grafana/grafana /workspace/grafana
18-
RUN git clone https://github.com/grafana/loki /workspace/loki --no-checkout && \
19-
cd /workspace/loki && git fetch --depth 1 origin a3af38d4da899032d3ee46a30932d072d37e1b9c && git checkout FETCH_HEAD
18+
RUN git clone https://github.com/grafana/loki /workspace/loki && \
19+
cd /workspace/loki && git checkout a3af38d4da899032d3ee46a30932d072d37e1b9c
2020

2121
# Initialize git identity for agent commits
2222
RUN git config --global user.email "agent@example.com" && \

benchmarks/ccb_mcp_crossrepo_tracing/ccx-dep-trace-004/environment/Dockerfile.artifact_only

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ WORKDIR /workspace
2020

2121
# Clone local checkout repos (baseline config: agent has local access to these)
2222
RUN git clone --depth 1 --branch v11.4.0 https://github.com/grafana/grafana /workspace/grafana
23-
RUN git clone https://github.com/grafana/loki /workspace/loki --no-checkout && \
24-
cd /workspace/loki && git fetch --depth 1 origin a3af38d4da899032d3ee46a30932d072d37e1b9c && git checkout FETCH_HEAD
23+
RUN git clone https://github.com/grafana/loki /workspace/loki && \
24+
cd /workspace/loki && git checkout a3af38d4da899032d3ee46a30932d072d37e1b9c
2525

2626
# Initialize git identity for agent commits
2727
RUN git config --global user.email "agent@example.com" && \

benchmarks/ccb_mcp_onboarding/ccx-onboard-050-ds/environment/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ WORKDIR /workspace
1616
# Clone local checkout repos (baseline config: agent has local access to these)
1717
RUN git clone --depth 1 --branch v1.32.0 https://github.com/kubernetes/kubernetes /workspace/kubernetes
1818
RUN git clone --depth 1 --branch v3.5.17 https://github.com/etcd-io/etcd /workspace/etcd
19-
RUN git clone https://github.com/kubernetes/client-go /workspace/client-go --no-checkout && \
20-
cd /workspace/client-go && git fetch --depth 1 origin 8020fc4fcf89965904a5f43689f169d6e01d1e80 && git checkout FETCH_HEAD
19+
RUN git clone https://github.com/kubernetes/client-go /workspace/client-go && \
20+
cd /workspace/client-go && git checkout 8020fc4fcf89965904a5f43689f169d6e01d1e80
2121

2222
# Initialize git identity for agent commits
2323
RUN git config --global user.email "agent@example.com" && \

benchmarks/ccb_mcp_onboarding/ccx-onboard-050-ds/environment/Dockerfile.artifact_only

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ WORKDIR /workspace
2121
# Clone local checkout repos (baseline config: agent has local access to these)
2222
RUN git clone --depth 1 --branch v1.32.0 https://github.com/kubernetes/kubernetes /workspace/kubernetes
2323
RUN git clone --depth 1 --branch v3.5.17 https://github.com/etcd-io/etcd /workspace/etcd
24-
RUN git clone https://github.com/kubernetes/client-go /workspace/client-go --no-checkout && \
25-
cd /workspace/client-go && git fetch --depth 1 origin 8020fc4fcf89965904a5f43689f169d6e01d1e80 && git checkout FETCH_HEAD
24+
RUN git clone https://github.com/kubernetes/client-go /workspace/client-go && \
25+
cd /workspace/client-go && git checkout 8020fc4fcf89965904a5f43689f169d6e01d1e80
2626

2727
# Initialize git identity for agent commits
2828
RUN git config --global user.email "agent@example.com" && \

benchmarks/ccb_mcp_platform/ccx-explore-091-ds/environment/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ WORKDIR /workspace
1515

1616
# Clone local checkout repos (baseline config: agent has local access to these)
1717
RUN git clone --depth 1 --branch v1.32.0 https://github.com/kubernetes/kubernetes /workspace/kubernetes
18-
RUN git clone https://github.com/kubernetes/client-go /workspace/client-go --no-checkout && \
19-
cd /workspace/client-go && git fetch --depth 1 origin 8020fc4fcf89965904a5f43689f169d6e01d1e80 && git checkout FETCH_HEAD
20-
RUN git clone https://github.com/kubernetes/api /workspace/api --no-checkout && \
21-
cd /workspace/api && git fetch --depth 1 origin fa23dd302759dbb681c1a41f09d24190a38c1d58 && git checkout FETCH_HEAD
18+
RUN git clone https://github.com/kubernetes/client-go /workspace/client-go && \
19+
cd /workspace/client-go && git checkout 8020fc4fcf89965904a5f43689f169d6e01d1e80
20+
RUN git clone https://github.com/kubernetes/api /workspace/api && \
21+
cd /workspace/api && git checkout fa23dd302759dbb681c1a41f09d24190a38c1d58
2222

2323
# Initialize git identity for agent commits
2424
RUN git config --global user.email "agent@example.com" && \

benchmarks/ccb_mcp_platform/ccx-explore-091-ds/environment/Dockerfile.artifact_only

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ WORKDIR /workspace
2020

2121
# Clone local checkout repos (baseline config: agent has local access to these)
2222
RUN git clone --depth 1 --branch v1.32.0 https://github.com/kubernetes/kubernetes /workspace/kubernetes
23-
RUN git clone https://github.com/kubernetes/client-go /workspace/client-go --no-checkout && \
24-
cd /workspace/client-go && git fetch --depth 1 origin 8020fc4fcf89965904a5f43689f169d6e01d1e80 && git checkout FETCH_HEAD
25-
RUN git clone https://github.com/kubernetes/api /workspace/api --no-checkout && \
26-
cd /workspace/api && git fetch --depth 1 origin fa23dd302759dbb681c1a41f09d24190a38c1d58 && git checkout FETCH_HEAD
23+
RUN git clone https://github.com/kubernetes/client-go /workspace/client-go && \
24+
cd /workspace/client-go && git checkout 8020fc4fcf89965904a5f43689f169d6e01d1e80
25+
RUN git clone https://github.com/kubernetes/api /workspace/api && \
26+
cd /workspace/api && git checkout fa23dd302759dbb681c1a41f09d24190a38c1d58
2727

2828
# Initialize git identity for agent commits
2929
RUN git config --global user.email "agent@example.com" && \

0 commit comments

Comments
 (0)