Skip to content

fix: harden workspace setup, Spark workers and app ports - #106

Merged
DavidVFitzGerald merged 2 commits into
mainfrom
fix/101-workspace-tooling
Nov 16, 2026
Merged

DavidVFitzGerald merged 2 commits into
mainfrom
fix/101-workspace-tooling

Conversation

@DavidVFitzGerald

@DavidVFitzGerald DavidVFitzGerald commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

Outcome

Fresh workspaces now document the frozen installation needed by backend checks, and Spark workers follow the active uv interpreter when its environment moves. App ports are checked only for app commands, preserving workspace commands when an app port is invalid. Refs #101.

Scope and acceptance evidence

Workspace/tooling hardening; application semantics and the single lock remain unchanged. The README and environment guide cover the explicit all-packages sync and exact test host/database guards. Port validation handles 1–65535, leading zeros and literal dotenv values with environment precedence. config validates the workspace; app-config validates the app, both without requiring a daemon. L2's collision guard remains intact.

The existing golden Spark test now inherits a nonexistent worker path, and the existing guard test covers every app command and all three ports. Narrow status corrections record merged L2; L3 remains unstarted. No new CI jobs or runtime-image changes.

Validation

Candidate: e1077a418a4294ac6a32cb28439f93395ec1c46a.

  • Real fresh clone, no .env/.venv: ./dev up, interactive ./dev shell, uv sync --frozen --all-packages, then make backend-format-check backend-lint backend-typecheck backend-test-unit: pass (15 unit tests; MyPy 47 files).
  • Isolated ETL/publication container: frozen all-packages sync, then make backend-test-etl backend-test-seed in default and /var/tmp/lca-venv environments: both pass (1 real Spark/PostgreSQL ETL + 6 seed tests each). Real worker probes confirm both active interpreter paths; a pre-fix control fails.
  • uv run --frozen python ops/local/test_project_guard.py: pass, including project collisions, all port boundaries and non-app isolation.
  • Actual invalid app-port workspace shell/up commands: pass. App negatives reject before container changes. Dedicated app stack with API port 8011 starts and ./dev app-smoke passes; stopped afterward with volumes preserved for QA.
  • git diff --check: pass; lock, API, Compose, runtime images and CI definitions unchanged.

Exact commands, isolation and evidence are in tooling verification. Independent QA PASS verifies AC1–AC5 at e1077a4, including a clean clone and both actual ETL/seed environments. All five hosted jobs pass at the same SHA. Ready for maintainer review.

Decisions and handoff

Ordinary tooling choices within specification §§3.1/3.3 and ADR 0003; no ADR needed. Historical folders were excluded. No host dependency installs, secrets or licensed inputs introduced. Issue remains open for independent QA and maintainer review; no merge authorization is requested or assumed.

@DavidVFitzGerald
DavidVFitzGerald marked this pull request as ready for review November 16, 2026 15:06
@DavidVFitzGerald
DavidVFitzGerald merged commit baff738 into main Nov 16, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant