Skip to content

Commit 83d6159

Browse files
committed
fix: docker build error visibility + .dockerignore
- _build_image stderr was truncated to 500 chars, hiding apt errors - Now captures 3000 chars of combined stdout+stderr with --progress=plain - .dockerignore excludes .git/venv/dist/build from context (1.2G -> ~95MB) - README cell internals wording cleanup Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> Session-Id: 80f30d89-8f55-47d5-9fc2-2c47e009c4c7 Session-Msg: 552
1 parent 6ea7103 commit 83d6159

File tree

3 files changed

+19
-8
lines changed

3 files changed

+19
-8
lines changed

.dockerignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.git
2+
venv
3+
dist
4+
build
5+
*.egg-info
6+
__pycache__
7+
.pytest_cache
8+
.mypy_cache

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ hubs: 9d1e3f3d "FlexSearch SQL engine" (centrality: 0.0045)
9090
presets: @digest @story @genealogy @file @sprints @bridges ...
9191
```
9292

93-
3,000 tokens. Most of it is the schema itself. That's the entire onboarding.
94-
9593
---
9694

9795
## modulation tokens
@@ -195,13 +193,13 @@ Capture any query as a preset. Ship with your module. Discoverable via `@orient`
195193

196194
<details><summary>cell internals</summary>
197195

198-
The prefix declares the lifecycle, the mutability, the writer. No manifest. No config. The database describes itself.
196+
The prefix convention declares the intended lifecycle. Not enforced — semantic contract.
199197

200198
```
201-
_raw_* immutable content, embeddings written by compile
199+
_raw_* write-once content, embeddings written by compile
202200
_edges_* append-only relationships written by compile or modules
203-
_types_* immutable classification written by compile
204-
_enrich_* mutable graph scores written by manage
201+
_types_* write-once classification written by compile
202+
_enrich_* rebuildable graph scores written by manage
205203
```
206204

207205
Graph intelligence — centrality, hub status, community membership — lives in `_enrich_*` columns.

tests/docker/run_all.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,18 @@ def _model_mount_args(suite: dict) -> list[str]:
134134
def _build_image(dockerfile: str, image: str) -> tuple[bool, str]:
135135
"""Build Docker image. Returns (success, error_output)."""
136136
r = subprocess.run(
137-
["docker", "build",
137+
["docker", "build", "--progress=plain",
138138
"-f", str(DOCKER_DIR / dockerfile),
139139
"-t", image,
140140
str(REPO_ROOT)],
141141
capture_output=True, text=True, timeout=300,
142142
)
143-
return r.returncode == 0, r.stderr[-500:] if r.returncode != 0 else ""
143+
if r.returncode != 0:
144+
# Show full output so apt/pip errors aren't truncated
145+
combined = (r.stdout or "") + "\n" + (r.stderr or "")
146+
# Find the failing step output — last 3000 chars is enough context
147+
return False, combined[-3000:]
148+
return True, ""
144149

145150

146151
def _run_suite(name: str, suite: dict, *, record: bool = False) -> dict:

0 commit comments

Comments
 (0)