Skip to content

fix: preserve and reconcile local dev deployments - #900

Merged
islo-labs[bot] merged 56 commits into
mainfrom
alon/alien-1255-persistent-local-dev
Oct 6, 2026
Merged

islo-labs[bot] merged 56 commits into
mainfrom
alon/alien-1255-persistent-local-dev

Conversation

@alongubkin

@alongubkin alongubkin commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

Preserve the local manager database, deployment identity, and resource data across full alien dev restarts. Refresh session environment variables while exclusively owning the stopped state; own manager HTTP tasks and native workers through cancellation and graceful shutdown. Recover unchanged removed local containers through normal reconciliation, with local setup authority scoped to the local provider.

Create and watch deployments explicitly in local-dev. Cleanup requires a unique Local match in that group and rejects incomplete lists. Legacy records outside that group require explicit ID or group/name selection; migration preserves identity and resource state, rejects name collisions, and prevents implicit adoption or duplicate creation.

Includes the teardown compatibility changes from #899; land #899 first. The PR retains main as its base.

Validation: 14 local lifecycle tests and 6 combined destroy tests passed, including real SQLite state preservation/collision checks and HTTP other-group cleanup rejection. Missing explicit migration targets fail before creating state, including on a fresh project. The HTTP fixture enforces the manager’s group requirement for name filters. Final combined CLI all-features build passed. Actual runtime validation of the affected fresh-start/teardown flow passed. Latest normal required CI passed on 4053a7d, including Rust, TypeScript, worker integration and the aggregate check.

Combined CLI application validation passed all 11 conformance suites (113 checks), including native workers, uploads, nested projection, authentication and build tokens.

Following the main update, all 26 affected checks passed: 6 cleanup, 14 local lifecycle, 3 manager HTTP lifetime, 1 lock retention and 2 real Docker identity tests. All-features CLI build and actual application same-ID/data restart, direct native uploads, exact nested projection, unchanged-container recovery and CLI-only shutdown passed on 4053a7d. Required normal CI passed for this head.

@enclave-ai

enclave-ai Bot commented Oct 6, 2026

Copy link
Copy Markdown

Enclave skipped this draft pull request. It will run automatically when you mark the PR as Ready for review.

alongubkin and others added 27 commits October 6, 2026 03:18
@islo-labs
islo-labs Bot marked this pull request as ready for review October 6, 2026 06:12
Comment thread crates/alien-cli/src/commands/destroy.rs Outdated
Comment thread crates/alien-cli/src/commands/dev_helpers.rs
Comment thread crates/alien-cli/src/commands/dev_helpers.rs
@alongubkin
alongubkin marked this pull request as draft October 6, 2026 06:18
@islo-labs
islo-labs Bot marked this pull request as ready for review October 6, 2026 06:52
Comment thread crates/alien-cli/src/commands/dev_helpers.rs
@islo-labs
islo-labs Bot marked this pull request as draft October 6, 2026 06:57
@islo-labs
islo-labs Bot marked this pull request as ready for review October 6, 2026 07:16
@islo-labs
islo-labs Bot marked this pull request as draft October 6, 2026 07:57
@islo-labs
islo-labs Bot marked this pull request as ready for review October 6, 2026 08:10
@islo-labs
islo-labs Bot merged commit 1ef1265 into main Oct 6, 2026
31 checks passed
@islo-labs
islo-labs Bot deleted the alon/alien-1255-persistent-local-dev branch October 6, 2026 08:15
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