Repository navigation
feat(dev-harness): opt-in make lane-backend (fast wheel install) for the mobile harness and pre-push gates - #14349
Conversation
app/test.sh skipped writing .dev.env when generated files already existed, so a leftover API_BASE_URL or mobile_beta/prod pairing could silently survive. Fail closed at the checker, test.sh, and doctor without rewriting the file. Failure-Class: new Co-authored-by: Cursor <[email protected]>
A linked worktree can run cheap pre-push gates and app/test.sh after one idempotent command: pinned Flutter, shared PUB_CACHE, Python 3.11 via uv, and yaml+dotenv only. An incomplete .venv directory is no longer treated as ready. Failure-Class: none Co-authored-by: Cursor <[email protected]>
Manifest-contract stubs only accepted `import yaml`. The resolver now probes `import dotenv, yaml` so an empty .venv is not treated as ready, and those stubs were skipped. Failure-Class: none Co-authored-by: Cursor <[email protected]>
…ock sync uv pip sync of pylock.macos.toml lists hashed sdist+wheel for av/llvmlite/scipy/pyarrow and stalled ~20 minutes; uv pip install -r requirements.txt takes index wheels (69s here) and covers uvicorn/pyright/yaml/dotenv/google.auth for session start and the pre-push typecheck. Lock-faithful sync stays in sync-python-deps.sh. Co-authored-by: Cursor <[email protected]>
…e-backend make setup-backend is the contributor lock-synced entrypoint; pointing it at unlocked requirements.txt broke scripts/test-make-setup.sh. The fast wheel install is make lane-backend. generate-app-env runs build_runner without the flags that deleted tracked manifest.g.dart. Co-authored-by: Cursor <[email protected]>
…-backend Co-authored-by: Cursor <[email protected]>
|
Hey @Git-on-my-level 👋 Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request. After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:
Before your next PR, please skim:
If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing. Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out. Thank you for being part of the Omi community! |
# Conflicts: # Makefile # scripts/dev-harness/LANE_BOOTSTRAP.md # scripts/dev-harness/_resolve_python.sh # scripts/dev-harness/bootstrap-lane-worktree.sh # scripts/dev-harness/cheap-gate-python-packages.txt # scripts/dev-harness/dev_harness/mobile_doctor.py # scripts/dev-harness/tests/test_mobile_doctor.py
Summary
make setup-backendas the lock-synced contributor entrypoint (backend/scripts/sync-python-deps.sh/uv pip sync pylock.macos.toml). The previous commit on this branch silently pointed that target at unlockedrequirements.txt, which brokescripts/test-make-setup.sh(the sandbox copies only the Makefile) and is not this lane's decision.make setupstill depends on the lock target.make lane-backend(scripts/dev-harness/lane-backend.sh):uv pip install -r backend/requirements.txtinto Python 3.11backend/.venv, with an incomplete-venv probe (uvicorn,pyright,yaml,dotenv,google.auth). Not lock-hash identical. Sufficient formobile-session startand the pre-push typecheck gate. Usemake setup/make setup-backendfor the locked environment._resolve_python.sh, andmake lane-bootstrapclosing text namemake lane-backend.scripts/dev-harness/generate-app-env.sh: fullflutter pub run build_runner buildwith neither--delete-conflicting-outputsnor--build-filter, then restores any tracked filesgit ls-files -dunlinked. A filtered env-only run deleted trackedapp/lib/utils/manifest/manifest.g.dartand cost a 301s failed iOS build.Stacked on #14321 (
make lane-bootstrap), recreated onorigin/task/msd-harness-v4-v7-bootstrap-hermeticity@5adcd221ba.Product invariants affected
Path-based (not intent-based):
scripts/dev-harness/tests/test_python_resolver.pyon this stack matches INV-MEM-4. This PR does not change memory promotion, intake, or consolidation.How it was verified
bash scripts/test-make-setup.sh: make setup baseline prerequisites, automatic worktree bootstrap, backend dependency sync rerun, linked-worktree repo-root fallback, repair-git-primary-worktree (boolean-spelling included) all passed.bash scripts/dev-harness/run-tests.sh: 304 passed, 6 skipped.scripts/pr-preflight --lane local --base origin/main --pr-body-file .local/pr-body-setup-backend.md(this body).Tests
test_setup_backend.py: Makefilesetup-backendstill callssync-python-deps.sh;lane-backendcalls the wheel script; bootstrap namesmake lane-backendand does not invoke destructive build_runner flags.test_generate_app_env.py: the real invocation omits the forbidden flags; a stubflutterthat deletes trackedmanifest.g.dartis restored viagit checkout.make lane-backend.Failure class (fixes)
Failure-Class: none
Part of the mobile self-driving program (Harness lane). Implemented by Cursor Grok 4.6. Not pushed.
Part of the mobile self-driving program (Harness lane). Stacked on #14321. Implemented by Cursor
cursor-grok-4.6-high. Coordinator verification on the head commit:bash scripts/test-make-setup.shpasses (the first version of this branch broke it by repointingmake setup-backend; that target is now byte-identical to main), harness suite 304 passed / 6 skipped.🤖 Generated with Claude Code