Skip to content

improvement(cli): say what is live after a deploy, and run a pinned deployment version - #10411

Merged
waleedlatif1 merged 3 commits into
stagingfrom
improvement/cli-deploy-live-pinned-runs
Nov 25, 2026
Merged

waleedlatif1 merged 3 commits into
stagingfrom
improvement/cli-deploy-live-pinned-runs

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • sim workflows deploy, rollback, activate and deployment status lead with a live line built only from the response: version 7, serving (this deploy), version 6 still serving; version 7 activating (next: deployment status), … failed: <reason> (next: deploy again), version 7 replaced by a later deployment, not deployed, version 7, matches the draft / draft has undeployed changes
  • After a successful deploy, next is sim workflows run <id>, which runs that deployment
  • Source apply responses carry deployedVersion beside needsRedeployment, read from one snapshot, so "never deployed" and "deployed and current" no longer look the same; source apply prints live, and --deploy no longer reports an admitted version as deployed while it activates
  • Workspace apply reports each workflow it created, updated, deployed or undeployed with its id and live state
  • sim workflows run --deployment-version <n> runs a pinned deployment version (sync, --follow, --async); refused beside any flag that runs the draft
  • Human output drops empty lint categories and the graph-fact sources/sinks lists

Type of Change

  • Improvement

Testing

  • New runtime/deployment-live.test.ts over every deployment state (pending, failed, overtaken, superseded, old servers without deployedVersion)
  • workflow-source-apply, workspace-source-apply, workflow-run-follow, result tests; full sim-cli suite (1222)
  • apply-workflow-source.integration.ts (real Postgres): deployedVersion on apply, dry run, revert, never deployed
  • v2 source route tests, deployment-status.test.ts; type-check; lint; generate

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing (new tests pass the test-audit authoring gate)
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

…eployment

Source apply, plan and create answered needsRedeployment: false both when
the draft matched the live version and when nothing was deployed. They now
also return deployedVersion (null when undeployed), read in the same
snapshot as the drift check.
…eployment version

- workflows deploy, rollback, versions activate and deployment status lead
  with a derived live line (serving, still activating, failed, or matching
  the draft) and a next command; human output drops empty lint categories
- source apply prints live (not deployed / matches / draft ahead) and, with
  --deploy, the honest activation state instead of the admitted version
- workspaces source apply lists each written workflow with its id, live
  version and whether the draft serves
- workflows run --deployment-version <n> runs a deployed version; refused
  beside any flag that runs the draft, and works with --async
@vercel

vercel Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docs Skipped Skipped Nov 25, 2026 7:50pm UTC

Request Review

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 27 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

@greptile-apps

greptile-apps Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The reviewed changes appear safe to merge.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The reviewed changes appear safe to merge.

Summary

The PR adds live-version messages, pinned workflow runs, and deployment details in source-apply results.

  • A workflow run can choose one deployed version.
  • Deployment results say which version is serving now.
  • Source apply shows which deployed version the draft matches.
  • Workspace apply lists live state for each workflow it writes.
  • Human lint output shows findings without empty graph details.

Reviews (2) · Last reviewed commit: "fix(cli): deploy a no-op apply while ano..." · Reviewed by Greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 27 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@waleedlatif1
waleedlatif1 merged commit 0a0febb into staging Nov 25, 2026
87 checks passed

This branch was previously deployed

1 inactive deployment
Preview — 979854ce Deployed Nov 25, 2026 by vercel[bot]
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