Repository navigation
fix: harden workspace setup, Spark workers and app ports - #106
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
configvalidates the workspace;app-configvalidates 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..env/.venv:./dev up, interactive./dev shell,uv sync --frozen --all-packages, thenmake backend-format-check backend-lint backend-typecheck backend-test-unit: pass (15 unit tests; MyPy 47 files).make backend-test-etl backend-test-seedin default and/var/tmp/lca-venvenvironments: 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../dev app-smokepasses; 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.