Skip to content

Commit 8fa8689

Browse files
sjarmakclaude
andcommitted
fix: rebuild k8s Dockerfile.sg_only with correct ccb-repo base image
Two k8s build tasks had broken Dockerfile.sg_only using minimal ubuntu:22.04 instead of ccb-repo-k8s-11602f08. This meant MCP runs had no Go compiler, no k8s source, and no /repo_full backup — causing go build timeouts in the verifier while baseline passed fine. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 2e027aa commit 8fa8689

File tree

2 files changed

+30
-46
lines changed

2 files changed

+30
-46
lines changed
Lines changed: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,19 @@
11
# k8s-noschedule-taint-feat-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-k8s-11602f08
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: 15 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,19 @@
11
# k8s-score-normalizer-refac-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-k8s-11602f08
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 []

0 commit comments

Comments
 (0)