feat: update active hosted deployment compute - #527
Merged
Conversation
Greptile SummaryThe PR routes compute changes for running hosted push deployments through a deployment-scoped Platform request while avoiding the normal manager acquisition flow.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| crates/alien-deploy-cli/src/commands/up.rs | Adds the hosted compute-update fast path, explicit non-compute change checks, authenticated Platform request helper, and focused tests; both previously reported settings-handling defects are addressed. |
| crates/alien-deploy-cli/Cargo.toml | Adds httpmock as a test-only dependency. |
| Cargo.lock | Records the deploy CLI's new development dependency without changing runtime behavior. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[alien-deploy up] --> B{Running hosted push deployment<br/>with compute settings?}
B -->|No| C[Normal deployment workflow]
B -->|Yes| D{Explicit non-compute<br/>setting changed?}
D -->|Yes| E[Reject combined request]
D -->|No| F{Compute differs from<br/>persisted settings?}
F -->|No| G[Report already configured]
F -->|Yes| H[PATCH Platform compute endpoint<br/>with deployment token]
H --> I[Report update accepted]
Reviews (3): Last reviewed commit: "fix(deploy-cli): compare only explicit h..." | Re-trigger Greptile
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.
Summary
Test
cargo test -p alien-deploy-cli hosted_compute_update_uses_deployment_token_and_exact_payload --libcargo check -p alien-deploy-clicargo fmt -p alien-deploy-cli -- --checkALIEN-611