Skip to content

Commit a554dea

Browse files
sjarmakclaude
andcommitted
fix: correct workdir detection in artifact Dockerfiles (ccb-repo uses /workspace)
The regeneration script's detect_workdir() fell back to /app for Dockerfiles without explicit WORKDIR, but ccb-repo-* base images use /workspace. This caused 39 Dockerfile.artifact_only files to use cp -a /app /repo_full which fails because /app doesn't exist. Fix: detect_workdir() now infers workdir from base image pattern (ccb-repo-* -> /workspace, sweap-images -> /app). Also adds fix_workdir_in_existing() to correct already-generated files. Also adds 3 protonmail stub Dockerfiles that were missing backups. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 08b01e1 commit a554dea

File tree

40 files changed

+176
-128
lines changed

40 files changed

+176
-128
lines changed

benchmarks/ccb_build/camel-fix-protocol-feat-001/environment/Dockerfile.artifact_only

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
FROM ccb-repo-camel-1006f047
77
# --- artifact_only: backup full repo for verifier scoring ---
8-
# Source stays in /app (readable by baseline agent).
8+
# Source stays in /workspace (readable by baseline agent).
99
# MCP agent deletes source files at runtime via agent startup script.
10-
RUN cp -a /app /repo_full
10+
RUN cp -a /workspace /repo_full
1111
RUN chmod 700 /repo_full
12-
RUN touch /tmp/.artifact_only_mode && echo '/app' > /tmp/.artifact_only_workdir
12+
RUN touch /tmp/.artifact_only_mode && echo '/workspace' > /tmp/.artifact_only_workdir
1313

1414
ENTRYPOINT []

benchmarks/ccb_build/django-dep-refactor-001/environment/Dockerfile.artifact_only

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
FROM ccb-repo-flipt-3d5a345f
77
# --- artifact_only: backup full repo for verifier scoring ---
8-
# Source stays in /app (readable by baseline agent).
8+
# Source stays in /workspace (readable by baseline agent).
99
# MCP agent deletes source files at runtime via agent startup script.
10-
RUN cp -a /app /repo_full
10+
RUN cp -a /workspace /repo_full
1111
RUN chmod 700 /repo_full
12-
RUN touch /tmp/.artifact_only_mode && echo '/app' > /tmp/.artifact_only_workdir
12+
RUN touch /tmp/.artifact_only_mode && echo '/workspace' > /tmp/.artifact_only_workdir
1313

1414
ENTRYPOINT []

benchmarks/ccb_build/flink-pricing-window-feat-001/environment/Dockerfile.artifact_only

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
FROM ccb-repo-flink-0cc95fcc
77
# --- artifact_only: backup full repo for verifier scoring ---
8-
# Source stays in /app (readable by baseline agent).
8+
# Source stays in /workspace (readable by baseline agent).
99
# MCP agent deletes source files at runtime via agent startup script.
10-
RUN cp -a /app /repo_full
10+
RUN cp -a /workspace /repo_full
1111
RUN chmod 700 /repo_full
12-
RUN touch /tmp/.artifact_only_mode && echo '/app' > /tmp/.artifact_only_workdir
12+
RUN touch /tmp/.artifact_only_mode && echo '/workspace' > /tmp/.artifact_only_workdir
1313

1414
ENTRYPOINT []

benchmarks/ccb_build/flipt-dep-refactor-001/environment/Dockerfile.artifact_only

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
FROM ccb-repo-flipt-3d5a345f
77
# --- artifact_only: backup full repo for verifier scoring ---
8-
# Source stays in /app (readable by baseline agent).
8+
# Source stays in /workspace (readable by baseline agent).
99
# MCP agent deletes source files at runtime via agent startup script.
10-
RUN cp -a /app /repo_full
10+
RUN cp -a /workspace /repo_full
1111
RUN chmod 700 /repo_full
12-
RUN touch /tmp/.artifact_only_mode && echo '/app' > /tmp/.artifact_only_workdir
12+
RUN touch /tmp/.artifact_only_mode && echo '/workspace' > /tmp/.artifact_only_workdir
1313

1414
ENTRYPOINT []

benchmarks/ccb_build/k8s-noschedule-taint-feat-001/environment/Dockerfile.artifact_only

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
FROM ccb-repo-k8s-11602f08
77
# --- artifact_only: backup full repo for verifier scoring ---
8-
# Source stays in /app (readable by baseline agent).
8+
# Source stays in /workspace (readable by baseline agent).
99
# MCP agent deletes source files at runtime via agent startup script.
10-
RUN cp -a /app /repo_full
10+
RUN cp -a /workspace /repo_full
1111
RUN chmod 700 /repo_full
12-
RUN touch /tmp/.artifact_only_mode && echo '/app' > /tmp/.artifact_only_workdir
12+
RUN touch /tmp/.artifact_only_mode && echo '/workspace' > /tmp/.artifact_only_workdir
1313

1414
ENTRYPOINT []

benchmarks/ccb_build/k8s-score-normalizer-refac-001/environment/Dockerfile.artifact_only

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
FROM ccb-repo-k8s-11602f08
77
# --- artifact_only: backup full repo for verifier scoring ---
8-
# Source stays in /app (readable by baseline agent).
8+
# Source stays in /workspace (readable by baseline agent).
99
# MCP agent deletes source files at runtime via agent startup script.
10-
RUN cp -a /app /repo_full
10+
RUN cp -a /workspace /repo_full
1111
RUN chmod 700 /repo_full
12-
RUN touch /tmp/.artifact_only_mode && echo '/app' > /tmp/.artifact_only_workdir
12+
RUN touch /tmp/.artifact_only_mode && echo '/workspace' > /tmp/.artifact_only_workdir
1313

1414
ENTRYPOINT []

benchmarks/ccb_build/kafka-batch-accumulator-refac-001/environment/Dockerfile.artifact_only

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
FROM ccb-repo-kafka-0753c489
77
# --- artifact_only: backup full repo for verifier scoring ---
8-
# Source stays in /app (readable by baseline agent).
8+
# Source stays in /workspace (readable by baseline agent).
99
# MCP agent deletes source files at runtime via agent startup script.
10-
RUN cp -a /app /repo_full
10+
RUN cp -a /workspace /repo_full
1111
RUN chmod 700 /repo_full
12-
RUN touch /tmp/.artifact_only_mode && echo '/app' > /tmp/.artifact_only_workdir
12+
RUN touch /tmp/.artifact_only_mode && echo '/workspace' > /tmp/.artifact_only_workdir
1313

1414
ENTRYPOINT []

benchmarks/ccb_build/strata-cds-tranche-feat-001/environment/Dockerfile.artifact_only

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
FROM ccb-repo-strata-66225ca9
77
# --- artifact_only: backup full repo for verifier scoring ---
8-
# Source stays in /app (readable by baseline agent).
8+
# Source stays in /workspace (readable by baseline agent).
99
# MCP agent deletes source files at runtime via agent startup script.
10-
RUN cp -a /app /repo_full
10+
RUN cp -a /workspace /repo_full
1111
RUN chmod 700 /repo_full
12-
RUN touch /tmp/.artifact_only_mode && echo '/app' > /tmp/.artifact_only_workdir
12+
RUN touch /tmp/.artifact_only_mode && echo '/workspace' > /tmp/.artifact_only_workdir
1313

1414
ENTRYPOINT []

benchmarks/ccb_build/strata-fx-european-refac-001/environment/Dockerfile.artifact_only

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
FROM ccb-repo-strata-66225ca9
77
# --- artifact_only: backup full repo for verifier scoring ---
8-
# Source stays in /app (readable by baseline agent).
8+
# Source stays in /workspace (readable by baseline agent).
99
# MCP agent deletes source files at runtime via agent startup script.
10-
RUN cp -a /app /repo_full
10+
RUN cp -a /workspace /repo_full
1111
RUN chmod 700 /repo_full
12-
RUN touch /tmp/.artifact_only_mode && echo '/app' > /tmp/.artifact_only_workdir
12+
RUN touch /tmp/.artifact_only_mode && echo '/workspace' > /tmp/.artifact_only_workdir
1313

1414
ENTRYPOINT []

benchmarks/ccb_design/camel-routing-arch-001/environment/Dockerfile.artifact_only

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
FROM ccb-repo-camel-1006f047
77
# --- artifact_only: backup full repo for verifier scoring ---
8-
# Source stays in /app (readable by baseline agent).
8+
# Source stays in /workspace (readable by baseline agent).
99
# MCP agent deletes source files at runtime via agent startup script.
10-
RUN cp -a /app /repo_full
10+
RUN cp -a /workspace /repo_full
1111
RUN chmod 700 /repo_full
12-
RUN touch /tmp/.artifact_only_mode && echo '/app' > /tmp/.artifact_only_workdir
12+
RUN touch /tmp/.artifact_only_mode && echo '/workspace' > /tmp/.artifact_only_workdir
1313

1414
ENTRYPOINT []

0 commit comments

Comments
 (0)