Skip to content

Commit f5ba584

Browse files
sjarmakclaude
andcommitted
fix: align 7 more Dockerfile.sg_only base images with baseline
- django-dep-refactor-001: FROM ccb-repo-flipt-3d5a345f (was ubuntu:22.04) - django-select-for-update-fix-001: FROM ccb-repo-django-9e7cc2b6 (was ubuntu:22.04) - rust-subtype-relation-refac-001: FROM rust:1.82-bookworm + clone (was ubuntu:22.04) - nodebb-notif-dropdown-fix-001: remove spurious -vnan tag suffix - openlibrary-fntocli-adapter-fix-001: truncate tag to match baseline (128-char limit) - openlibrary-search-query-fix-001: truncate tag to match baseline - openlibrary-solr-boolean-fix-001: truncate tag to match baseline All sg_only Dockerfiles now use the same base image as their baseline counterpart, ensuring compilation toolchains and repo state are available for the verifier to restore and test against. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent dc03e23 commit f5ba584

File tree

7 files changed

+55
-61
lines changed

7 files changed

+55
-61
lines changed
Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,19 @@
11
# django-dep-refactor-001 — sg_only_env variant
2-
# No local repo clone — agent uses Sourcegraph MCP exclusively for code access.
3-
4-
FROM ubuntu:22.04
5-
6-
ENV DEBIAN_FRONTEND=noninteractive
7-
8-
RUN apt-get update && apt-get install -y --no-install-recommends \
9-
git \
10-
ca-certificates \
11-
python3 \
12-
curl \
13-
&& rm -rf /var/lib/apt/lists/*
2+
# Source files truncated so agent must use Sourcegraph MCP for code access.
3+
# Verifier wrapper restores full repo before running tests.
4+
5+
FROM ccb-repo-flipt-3d5a345f
6+
7+
# --- sg_only_env: back up full repo, then truncate source ---
8+
RUN cp -a /workspace /repo_full
9+
RUN find /workspace -type f \( \
10+
-name "*.go" -o -name "*.py" -o -name "*.yaml" -o -name "*.yml" \
11+
-o -name "*.json" -o -name "*.proto" -o -name "*.sh" -o -name "*.md" \
12+
-o -name "*.txt" -o -name "*.toml" -o -name "*.cfg" \
13+
\) ! -path "*/.git/*" ! -path "*/vendor/*" -exec truncate -s 0 {} \;
14+
# Recommit truncated state so git history cannot recover full files.
15+
RUN cd /workspace && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
16+
RUN touch /tmp/.sg_only_mode && echo '/workspace' > /tmp/.sg_only_workdir
1417

1518
WORKDIR /workspace
16-
17-
# Empty git repo so agent can commit work
18-
RUN git init && \
19-
git config user.email "agent@example.com" && \
20-
git config user.name "Agent"
21-
22-
RUN mkdir -p /logs/agent /logs/verifier
23-
24-
# Mark sg_only mode so verifiers can skip local-path checks
25-
RUN touch /tmp/.sg_only_mode
26-
2719
ENTRYPOINT []
Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,34 @@
11
# rust-subtype-relation-refac-001 — sg_only_env variant
2-
# No local repo clone — agent uses Sourcegraph MCP exclusively for code access.
2+
# Source files truncated so agent must use Sourcegraph MCP for code access.
3+
# Verifier wrapper restores full repo before running tests.
34

4-
FROM debian:bookworm-slim
5+
FROM rust:1.82-bookworm
56

6-
ENV DEBIAN_FRONTEND=noninteractive
7+
WORKDIR /workspace
78

9+
# Install dependencies (match baseline)
810
RUN apt-get update && apt-get install -y --no-install-recommends \
911
git \
10-
ca-certificates \
11-
python3 \
1212
curl \
13+
python3 \
14+
python3-pip \
1315
&& rm -rf /var/lib/apt/lists/*
1416

15-
WORKDIR /workspace
16-
17-
# Empty git repo so agent can commit work
18-
RUN git init && \
17+
# Clone Rust compiler at pinned commit (match baseline)
18+
RUN git clone --filter=blob:none --no-checkout https://github.com/rust-lang/rust.git . && \
19+
git checkout 01f6ddf7588f42ae2d7eb0a2f21d44e8e96674cf && \
1920
git config user.email "agent@example.com" && \
2021
git config user.name "Agent"
2122

22-
RUN mkdir -p /logs/agent /logs/verifier
23-
24-
RUN touch /tmp/.sg_only_mode
23+
# --- sg_only_env: back up full repo, then truncate source ---
24+
RUN cp -a /workspace /repo_full
25+
RUN find /workspace -type f \( \
26+
-name "*.rs" -o -name "*.py" -o -name "*.yaml" -o -name "*.yml" \
27+
-o -name "*.json" -o -name "*.toml" -o -name "*.sh" -o -name "*.md" \
28+
-o -name "*.txt" -o -name "*.cfg" \
29+
\) ! -path "*/.git/*" -exec truncate -s 0 {} \;
30+
# Recommit truncated state so git history cannot recover full files.
31+
RUN cd /workspace && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
32+
RUN touch /tmp/.sg_only_mode && echo '/workspace' > /tmp/.sg_only_workdir
2533

2634
ENTRYPOINT []
Lines changed: 16 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,20 @@
11
# django-select-for-update-fix-001 — sg_only_env variant
2-
# No local repo clone — agent uses Sourcegraph MCP exclusively for code access.
3-
4-
FROM python:3.11-slim
5-
6-
ENV DEBIAN_FRONTEND=noninteractive
7-
8-
RUN apt-get update && apt-get install -y --no-install-recommends \
9-
git \
10-
ca-certificates \
11-
python3 \
12-
curl \
13-
&& rm -rf /var/lib/apt/lists/*
2+
# Source files truncated so agent must use Sourcegraph MCP for code access.
3+
# Verifier wrapper restores full repo before running tests.
4+
5+
FROM ccb-repo-django-9e7cc2b6
6+
7+
# --- sg_only_env: back up full repo, then truncate source ---
8+
RUN cp -a /workspace /repo_full
9+
RUN find /workspace -type f \( \
10+
-name "*.py" -o -name "*.html" -o -name "*.css" -o -name "*.js" \
11+
-o -name "*.yaml" -o -name "*.yml" -o -name "*.json" -o -name "*.cfg" \
12+
-o -name "*.ini" -o -name "*.sh" -o -name "*.md" -o -name "*.txt" \
13+
-o -name "*.toml" -o -name "*.rst" \
14+
\) ! -path "*/.git/*" ! -path "*/site-packages/*" -exec truncate -s 0 {} \;
15+
# Recommit truncated state so git history cannot recover full files.
16+
RUN cd /workspace && git add -A && git commit -m "sg_only truncation" --allow-empty --quiet
17+
RUN touch /tmp/.sg_only_mode && echo '/workspace' > /tmp/.sg_only_workdir
1418

1519
WORKDIR /workspace
16-
17-
# Empty git repo so agent can commit work
18-
RUN git init && \
19-
git config user.email "agent@example.com" && \
20-
git config user.name "Agent"
21-
22-
RUN mkdir -p /logs/agent /logs/verifier
23-
24-
RUN touch /tmp/.sg_only_mode
25-
2620
ENTRYPOINT []

benchmarks/ccb_fix/nodebb-notif-dropdown-fix-001/environment/Dockerfile.sg_only

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Instance: instance_NodeBB__NodeBB-eb49a64974ca844bca061744fb3383f5d13b02ad-vnan
77
# Repo: NodeBB/NodeBB
88

9-
FROM jefzda/sweap-images:nodebb.nodebb-NodeBB__NodeBB-eb49a64974ca844bca061744fb3383f5d13b02ad-vnan
9+
FROM jefzda/sweap-images:nodebb.nodebb-NodeBB__NodeBB-eb49a64974ca844bca061744fb3383f5d13b02ad
1010

1111
# Install uv for Python package management
1212
RUN curl -LsSf https://astral.sh/uv/0.7.13/install.sh | sh || true

benchmarks/ccb_fix/openlibrary-fntocli-adapter-fix-001/environment/Dockerfile.sg_only

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Instance: instance_internetarchive__openlibrary-c506c1b0b678892af5cb22c1c1dbc35d96787a0a-v0f5aece3601a5b4419f7ccec1dbda2071be28ee4
77
# Repo: internetarchive/openlibrary
88

9-
FROM jefzda/sweap-images:internetarchive.openlibrary-internetarchive__openlibrary-c506c1b0b678892af5cb22c1c1dbc35d96787a0a-v0f5aece3601a5b4419f7ccec1dbda2071be28ee4
9+
FROM jefzda/sweap-images:internetarchive.openlibrary-internetarchive__openlibrary-c506c1b0b678892af5cb22c1c1dbc35d96787a0a-v0f5aece3601a5b4419f7ccec1dbda
1010

1111
# Install uv for Python package management
1212
RUN curl -LsSf https://astral.sh/uv/0.7.13/install.sh | sh || true

benchmarks/ccb_fix/openlibrary-search-query-fix-001/environment/Dockerfile.sg_only

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Instance: instance_internetarchive__openlibrary-7f6b722a10f822171501d027cad60afe53337732-ve8c8d62a2b60610a3c4631f5f23ed866bada9818
77
# Repo: internetarchive/openlibrary
88

9-
FROM jefzda/sweap-images:internetarchive.openlibrary-internetarchive__openlibrary-7f6b722a10f822171501d027cad60afe53337732-ve8c8d62a2b60610a3c4631f5f23ed866bada9818
9+
FROM jefzda/sweap-images:internetarchive.openlibrary-internetarchive__openlibrary-7f6b722a10f822171501d027cad60afe53337732-ve8c8d62a2b60610a3c4631f5f23ed
1010

1111
# Install uv for Python package management
1212
RUN curl -LsSf https://astral.sh/uv/0.7.13/install.sh | sh || true

benchmarks/ccb_fix/openlibrary-solr-boolean-fix-001/environment/Dockerfile.sg_only

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Instance: instance_internetarchive__openlibrary-92db3454aeaa02f89b4cdbc3103f7e95c9759f92-v2c55207218fb8a0138425cbf7d9675272e240b90
77
# Repo: internetarchive/openlibrary
88

9-
FROM jefzda/sweap-images:internetarchive.openlibrary-internetarchive__openlibrary-92db3454aeaa02f89b4cdbc3103f7e95c9759f92-v2c55207218fb8a0138425cbf7d9675272e240b90
9+
FROM jefzda/sweap-images:internetarchive.openlibrary-internetarchive__openlibrary-92db3454aeaa02f89b4cdbc3103f7e95c9759f92-v2c55207218fb8a0138425cbf7d967
1010

1111
# Install uv for Python package management
1212
RUN curl -LsSf https://astral.sh/uv/0.7.13/install.sh | sh || true

0 commit comments

Comments
 (0)