Skip to content

docs(install): upgrading from v0.1.0-alpha.7 adds the registry's collection timer, and builds - #570

Merged
samuelmbabhazi merged 3 commits into
mainfrom
docs/alpha8-upgrade
Nov 29, 2026
Merged

samuelmbabhazi merged 3 commits into
mainfrom
docs/alpha8-upgrade

Conversation

@samuelmbabhazi

@samuelmbabhazi samuelmbabhazi commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

What

docs/INSTALL.md, "Upgrade", now covers an upgrade from v0.1.0-alpha.7 to the next release, which adds builds and the installation registry.

  • Scripts. An upgrade replaces backup.sh and registry-gc.sh along with the compose files, and copies the files an earlier release did not have.
  • The registry's collection. From v0.1.0-alpha.7 or earlier, the timer of the nightly collection (feat(deploy): the registry frees unused layers every night, read-only meanwhile (part of #215) #553) is written by hand: two unit files, a daemon-reload, and enable --now. Only the installer writes this timer, and the installer does not upgrade.
  • Builds on existing servers. Upgrading an agent does not install the builder or the builds' filesystem, so a server installed before this release builds only once it is migrated (--migrate yes). The description of the migration now names the builder, which it already installs. A single machine cannot be migrated yet (A single machine upgraded from v0.1.0-alpha.7 cannot get the builder #569).

Why

These are the steps the next release needs. Without them, an upgraded installation would run:

Its servers would also fail every Git build with "The server's builder does not answer", without the docs saying why.

How it was tested

  • deploy/control-plane/install_test.sh extracts the two documented units from INSTALL.md and compares them with registry_gc_service /opt/shipkeep and registry_gc_timer from the installer. It passes locally. Two edits of the documented units each make it fail: a different OnCalendar and a different ExecStart.
  • I checked that --migrate yes accepts a server installed with v0.1.0-alpha.7:
    • its shipkeep-caddy.service is the current caddy_unit;
    • its agent unit is the current agent_unit without the builder's exports path, a layout agent_unit_layout accepts.
  • shellcheck and prettier pass.
  • The whole upgrade, from the published v0.1.0-alpha.7 to the next release's published artifacts, will be run in the lab once that release exists. "What has been tested" will be updated then.

Security considerations

None new. The documented units are the installer's own, and the test keeps them equal.

Summary by CodeRabbit

  • Documentation
    • Updated upgrade instructions to cover replacing release scripts and copying new files while preserving executable permissions.
    • Added steps for older installations to set up and manually run daily registry garbage collection. Registry pushes are refused while garbage collection is running.
    • Clarified builder migration requirements for older installations, including the impact on Git builds and the current single-machine migration limitation.

…ection timer, and builds

- Upgrade replaces backup.sh and registry-gc.sh too, and copies the files an earlier release did
  not have: the new backup.sh is the one that binds an archive's name (#565).
- From v0.1.0-alpha.7 or earlier, the timer of the registry's nightly collection, which only the
  installer writes, is added by hand. The installer test checks that the documented units are
  the installer's own.
- An agent upgrade does not install the builder. A server installed before v0.1.0-alpha.8 builds
  once migrated; a single machine cannot be migrated yet (#569).

Signed-off-by: samuel mbabhazi <[email protected]>
@samuelmbabhazi

Copy link
Copy Markdown
Collaborator Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Explain Change →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 21 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 12fef1e and d6b83ef.

Files selected for processing: 2

  • deploy/control-plane/install_test.sh
  • docs/INSTALL.md

No actionable comments were generated in the recent review.

Walkthrough

The upgrade guide now documents replacing release scripts, setting up registry garbage collection on older installations, and migrating older servers to use the builder. A test checks that the documented garbage-collection units match generated units.

Changes: Upgrade guide

Layer / File(s) Summary
Release files and registry garbage collection
docs/INSTALL.md, deploy/control-plane/install_test.sh
The upgrade steps now replace backup.sh and registry-gc.sh, and include newly introduced files. For older installations, the guide adds instructions for a daily 03:30 UTC garbage-collection timer and manual execution. The test compares the documented service and timer with generated units.
Builder migration guidance
docs/INSTALL.md
The guide explains that older servers need migration before Git builds can use the builder. It states that a single machine cannot yet be migrated and describes the builder's network rule.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Possibly related issues

  • shipkeepdev/shipkeep#569 — The guide documents the single-machine builder migration limitation described in this issue.
  • shipkeepdev/shipkeep#240 — The guide describes the builder migration as part of the upgrade path covered by this issue.

Possibly related PRs

  • shipkeepdev/shipkeep#553 — This PR documents the same registry garbage-collection timer and checks its unit configuration against generated units.
  • shipkeepdev/shipkeep#554 — This PR changes the builder filesystem and migration behavior described in the upgrade guide.

Suggested reviewers: iyuzhang

Merge Risk: Minimal · previous review 12fef

This change updates the upgrade guide and adds a test that keeps the documented registry collection units in line with the installer's. No actionable merge-blocking issue was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names two changes in the upgrade path from v0.1.0-alpha.7: the registry's collection timer and builds. The changeset matches both: docs/INSTALL.md adds a manual daily 03:30 UTC systemd timer…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names two changes in the upgrade path from v0.1.0-alpha.7: the registry's collection timer and builds. The changeset matches both: docs/INSTALL.md adds a manual daily 03:30 UTC systemd timer for registry garbage collection for installations on alpha.7 or earlier, and adds builder migration guidance for servers installed before alpha.8. The title is a conventional-commit style docs change, is specific, and is one sentence. It omits the builder migration detail and the backup.sh replacement, which is acceptable because the title need not cover every detail. The 93-character length is slightly long but readable.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • 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

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between d5161f4 and 12fef1e.

Files selected for processing: 2

  • deploy/control-plane/install_test.sh
  • docs/INSTALL.md

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Action not completed

Already reviewed the last commit. Use @coderabbitai full review to rerun a review of the entire changeset.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@samuelmbabhazi
samuelmbabhazi merged commit e2148b0 into main Nov 29, 2026
29 checks passed
@samuelmbabhazi
samuelmbabhazi deleted the docs/alpha8-upgrade branch November 29, 2026 09: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