Skip to content

Model preview cluster lease lifecycle - #371

Merged
aRustyDev merged 1 commit into
mainfrom
codex/preview-cluster-lease-controller
Nov 23, 2026
Merged

aRustyDev merged 1 commit into
mainfrom
codex/preview-cluster-lease-controller

Conversation

@aRustyDev

Copy link
Copy Markdown
Owner

Summary

  • add a fail-closed, idempotent per-PR cluster lease state machine
  • make creation and deletion dependency ordering explicit and prevent PR cleanup from deleting shared snapshots
  • stage a changed snapshot fingerprint as a candidate while the ready lease remains active

This is a pure controller primitive only. It does not add Kubernetes credentials, deploy a controller, or change live schema reconciliation.

Validation

  • cargo fmt --all -- --check
  • cargo clippy -p thrust-preview-provisioner --all-targets -- -D warnings
  • cargo nextest run -p thrust-preview-provisioner --locked
  • scripts/rs cargo check -p thrust-preview-provisioner --target wasm32-unknown-unknown --locked

Control: reversing deletion to remove a Cluster before connectivity made controller_never_deletes_a_shared_snapshot_with_a_pr_lease fail; restored before commit.

Mutation follow-up: the focused run caught the new replacement and input-boundary mutants after test additions. The broader existing provisioner mutation campaign exceeded the interactive run window and remains a CI-scale follow-up.

@aRustyDev
aRustyDev temporarily deployed to preview-control-plane November 23, 2026 17:59 — with GitHub Actions Inactive
@aRustyDev
aRustyDev enabled auto-merge (squash) November 23, 2026 18:01
@aRustyDev
aRustyDev merged commit 8b4fef5 into main Nov 23, 2026
21 checks passed
@aRustyDev
aRustyDev deleted the codex/preview-cluster-lease-controller branch November 23, 2026 18:03

This branch was previously deployed

1 inactive deployment
preview-control-plane — 0e8f7491 Deployed Nov 23, 2026 by aRustyDev via reconcile #737
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