Skip to content

feat(deployment): implement single-host SSH releases and rollback - #1775

Draft
Soner (shyim) wants to merge 1 commit into
feat/deployment-cachetool-runtimefrom
feat/deployment-ssh-releases
Draft

Soner (shyim) wants to merge 1 commit into
feat/deployment-cachetool-runtimefrom
feat/deployment-ssh-releases

Conversation

@shyim

Copy link
Copy Markdown
Member

What changed?

Implement the single-host SSH release lifecycle: checksum-cached uploads, deployment locking, shared paths, Deployment Helper execution, read-only releases, atomic activation, rollback, history and stored logs. Wire in CacheTool and the PHP restart fallback.

The Cobra commands are added later in #1573.

Why?

Review the release state machine and filesystem safety separately from host coordination and CLI interaction.

How was this tested?

Deployment-tagged tests and golangci-lint pass. Tests exercise successful and failed rollouts, cancellation, locking, permissions, retained activation and logs using local PHP/SSH fixtures.

Related issue or discussion

Split from #1573.

@coderabbitai

coderabbitai Bot commented Oct 30, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 86.57244% with 38 lines in your changes missing coverage. Please review.
✅ Project coverage is 68.62%. Comparing base (f5d73e9) to head (8b9064b).

Files with missing lines Patch % Lines
internal/deployment/ssh/ssh_rollout.go 86.18% 25 Missing ⚠️
internal/deployment/ssh/ssh_activation.go 84.61% 6 Missing ⚠️
internal/deployment/deployment.go 0.00% 3 Missing ⚠️
internal/deployment/ssh/ssh_logs.go 87.50% 3 Missing ⚠️
internal/deployment/ssh/reference.go 97.14% 1 Missing ⚠️
Additional details and impacted files
@@                          Coverage Diff                          @@
##           feat/deployment-cachetool-runtime    #1775      +/-   ##
=====================================================================
+ Coverage                              68.46%   68.62%   +0.15%     
=====================================================================
  Files                                    498      503       +5     
  Lines                                  33333    33615     +282     
=====================================================================
+ Hits                                   22823    23069     +246     
- Misses                                 10510    10546      +36     
Flag Coverage Δ
go-test 68.62% <86.57%> (+0.15%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This branch has not been deployed

No deployments
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.

2 participants