Commit 71ad211
fix: eliminate 30-min chown timeout on large-repo Docker overlay2
The runtime setup in claude_baseline_agent.py did unconditional
`chown -R claude:claude /workspace /app /testbed` which walked 350K+
files on overlay2, taking 30+ minutes and causing agent timeouts.
Replace with stat-based ownership probe (2ms when dirs already owned
by claude) with bounded maxdepth-1 fallback for mismatched dirs.
Also demonstrate clone-as-claude Dockerfile pattern on ccx-domain-071:
create claude user first, USER claude, then git clone — eliminates the
chown -R layer that duplicated all repo data in overlay2 (2.6GB→1.31GB).
Update _CHOWN_OPTIMIZATION comment in generate_sgonly_dockerfiles.py
to document that sg_only/artifact Dockerfiles (empty workspace) are
fine, but baseline Dockerfiles should use clone-as-claude instead.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent af3e69a commit 71ad211
File tree
3 files changed
+38
-18
lines changed- agents
- benchmarks/ccb_mcp_domain/ccx-domain-071/environment
- scripts
3 files changed
+38
-18
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1074 | 1074 | | |
1075 | 1075 | | |
1076 | 1076 | | |
1077 | | - | |
1078 | | - | |
1079 | | - | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
1080 | 1082 | | |
1081 | 1083 | | |
1082 | 1084 | | |
1083 | | - | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
| 1093 | + | |
| 1094 | + | |
| 1095 | + | |
| 1096 | + | |
| 1097 | + | |
| 1098 | + | |
1084 | 1099 | | |
1085 | 1100 | | |
1086 | 1101 | | |
| |||
Lines changed: 11 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
14 | 23 | | |
15 | | - | |
16 | | - | |
17 | 24 | | |
18 | 25 | | |
19 | 26 | | |
| |||
23 | 30 | | |
24 | 31 | | |
25 | 32 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
131 | | - | |
132 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
133 | 137 | | |
134 | | - | |
135 | | - | |
| 138 | + | |
136 | 139 | | |
137 | 140 | | |
138 | 141 | | |
| |||
0 commit comments