Repository navigation
Conversation
|
Warning Review limit reachedYou'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 1 minute. View limit details
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. |
✅ SSOT Configuration Compliance: Passing🎉 No new hardcoded values of either class — Known backlog in |
|
Code review on PR #20596 (head 45c517c): changes needed. Read only; nothing was run. Ref validation is solid (a 40-hex sha, ancestor of
|
|
Code review on PR #20596 (head 46b8733): approve, off by default. Read only; nothing was run. Behind |
|
Code review (code-reviewer pass) at d273b89 Verdict: APPROVE. Every expected fix is present in the code at this head; the 5 threads still open on train PR #21026 are resolved, the other 11 were already resolved.
|
|
Branch audit (zero-change deletion). This PR shows 0 changed files against |
Thinking Path
Updates go through the builtin updater only, but "deploy a specific commit" had no builtin path: the runbook told operators to check out an old commit and rsync it. The maintainer chose to add rollback: pick an earlier commit on the maintenance page, deploy through the updater path, and warn or refuse when a database migration is in the way.
What Changed
SLM_ROLLBACK_ENABLEDis false until a host test passes. Routes return 403 and the panel hides.mainwhile reporting success.is_safe_ref, exist, and be an ancestor oforigin/<branch>. Anything else gets 400 before anything runs. It is validated again after the fetch.git showandast, never executed.code.rollback, written before the run; if it can't be stored, the rollback is refused with 503._update_code_sourceresets toorigin/mainbefore each run, so the ref is passed on every run. A rollback leaves a detached HEAD that would fail the next update's pull, so_git_pull_localchecks out the branch first.docs/runbooks/CODE_UPDATE.mddescribes this.Verification
Backend 190 pass, using real git in
tmp_pathfor ancestry, migrations and the supported-target check. Ratchets 237 pass.CodeRollbackPanel.test.ts6 pass with@autobot/uimocked; it failed once in an earlier run and then passed three reruns, cause not found, so it may be flaky.Reading the code, a supported target's
_git_pull_local,_update_code_sourceandsync_deletionsall cope with a detached HEAD, and the playbook's branch read can't fail the play. That is reading only.Not safe to enable until run on a host
Nothing has run against a real playbook or host. The test before enabling: roll back to a supported earlier commit, then run Update Everything, and confirm the host updates forward. When that happens is the maintainer's call. Reasoned, not observed:
gitmodule with a commit asversion, then withversion: mainfrom a detached HEAD on the next update.sync_deletion_plannerin the reverse direction: it should remove files added after the target.Known limits:
.envand Postgres, every rollback is refused as unknown. Whether that holds in a separate-machine layout isn't known.main.pymakes throughcreate_allrather than the runner or alembic aren't tracked, so a migration in the way there is missed.completedfails if any node's commit differs from the target. That only runs in the process that ran the job, so a run spanning the SLM's restart isn't re-checked.update-all-nodes.ymlrun is pinned to the old commit by the resume plan, up to its 2-hour limit. Binding it to a job needs a change incode_sync.py. The runbook says not to start another sync during a rollback.main, not the target, with a warning.CodeSyncView.vuechange has no test that runs here, since its spec needsreka-ui, andvue-tscwas only checked for touched files.Refs #20214
Model Used
Claude Opus 5.5