Skip to content

Commit 5c1fc7f

Browse files
sjarmakclaude
andcommitted
fix: use sg-evals mirrors in baseline Dockerfiles for new ccb_fix tasks
git fetch --depth 1 origin <sha> fails on GitHub for arbitrary commits. Clone from sg-evals mirrors instead (single orphan commit, --depth 1 works). Also fix workspace permission for clone-as-claude pattern. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0d31519 commit 5c1fc7f

File tree

3 files changed

+12
-21
lines changed
  • benchmarks/ccb_fix
    • envoy-dfp-host-leak-fix-001/environment
    • envoy-udp-proxy-cds-fix-001/environment
    • terraform-plan-null-unknown-fix-001/environment

3 files changed

+12
-21
lines changed
Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
FROM ubuntu:22.04
22

3-
WORKDIR /workspace
4-
53
# Install dependencies
64
RUN apt-get update && apt-get install -y --no-install-recommends \
75
git curl ca-certificates python3 && \
@@ -12,15 +10,14 @@ RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
1210
apt-get install -y --no-install-recommends nodejs && \
1311
rm -rf /var/lib/apt/lists/*
1412

15-
# Create claude user before cloning (clone-as-claude pattern)
13+
# Create claude user and workspace (clone-as-claude pattern)
1614
RUN adduser --disabled-password --gecos '' claude 2>/dev/null || true
15+
RUN mkdir -p /workspace && chown claude:claude /workspace
1716

1817
# Clone envoy at pre-fix commit as claude user
1918
USER claude
20-
RUN git clone --depth 1 https://github.com/envoyproxy/envoy.git /workspace && \
21-
cd /workspace && \
22-
git fetch --depth 1 origin 5160151e14837c6f352b9d0b3a9f55119a9317e8 && \
23-
git checkout FETCH_HEAD
19+
RUN git clone --depth 1 https://github.com/sg-evals/envoy--5160151e.git /workspace
2420
USER root
2521

22+
WORKDIR /workspace
2623
ENTRYPOINT []
Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
FROM ubuntu:22.04
22

3-
WORKDIR /workspace
4-
53
# Install dependencies
64
RUN apt-get update && apt-get install -y --no-install-recommends \
75
git curl ca-certificates python3 && \
@@ -12,15 +10,14 @@ RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
1210
apt-get install -y --no-install-recommends nodejs && \
1311
rm -rf /var/lib/apt/lists/*
1412

15-
# Create claude user before cloning (clone-as-claude pattern)
13+
# Create claude user and workspace (clone-as-claude pattern)
1614
RUN adduser --disabled-password --gecos '' claude 2>/dev/null || true
15+
RUN mkdir -p /workspace && chown claude:claude /workspace
1716

1817
# Clone envoy at pre-fix commit as claude user
1918
USER claude
20-
RUN git clone --depth 1 https://github.com/envoyproxy/envoy.git /workspace && \
21-
cd /workspace && \
22-
git fetch --depth 1 origin 1ae957c1f92b8e0b0322ab702c67612aa618d214 && \
23-
git checkout FETCH_HEAD
19+
RUN git clone --depth 1 https://github.com/sg-evals/envoy--1ae957c1.git /workspace
2420
USER root
2521

22+
WORKDIR /workspace
2623
ENTRYPOINT []
Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
FROM ubuntu:22.04
22

3-
WORKDIR /workspace
4-
53
# Install dependencies
64
RUN apt-get update && apt-get install -y --no-install-recommends \
75
git curl ca-certificates python3 && \
@@ -12,15 +10,14 @@ RUN curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
1210
apt-get install -y --no-install-recommends nodejs && \
1311
rm -rf /var/lib/apt/lists/*
1412

15-
# Create claude user before cloning (clone-as-claude pattern)
13+
# Create claude user and workspace (clone-as-claude pattern)
1614
RUN adduser --disabled-password --gecos '' claude 2>/dev/null || true
15+
RUN mkdir -p /workspace && chown claude:claude /workspace
1716

1817
# Clone terraform at pre-fix commit as claude user
1918
USER claude
20-
RUN git clone --depth 1 https://github.com/hashicorp/terraform.git /workspace && \
21-
cd /workspace && \
22-
git fetch --depth 1 origin abd6b9ef1ba5e98ed273f59f667d3b9f2077a87b && \
23-
git checkout FETCH_HEAD
19+
RUN git clone --depth 1 https://github.com/sg-evals/terraform--abd6b9ef.git /workspace
2420
USER root
2521

22+
WORKDIR /workspace
2623
ENTRYPOINT []

0 commit comments

Comments
 (0)