Repository navigation
fix(aggregator): deploy from checkout with stable state dir - #4050
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 15 minutes. 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. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0e67b09d1e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| set -euo pipefail | ||
|
|
||
| PKG="$(cd "$(dirname "$0")/.." && pwd)" | ||
| TMP="$(mktemp -d /tmp/opencode/pm-aggregator-install.XXXXXX)" |
There was a problem hiding this comment.
Create the rehearsal directory under an existing temporary root
On a fresh machine without /tmp/opencode, the rehearsal exits immediately with mktemp: ... No such file or directory, so none of the deployment assertions run. I reproduced this failure; the rehearsal passed after manually creating that parent directory. mktemp --help explicitly states that it “creates only the final component.” Use the existing temporary root (preferably honoring TMPDIR) or create the parent before invoking mktemp so the test runs without undocumented environment preparation.
Useful? React with 👍 / 👎.
Summary
Evidence
bash pm-stack/aggregator/test/install-rehearsal.shpasses in a temporary HOME, including second-run no-op, existing feed preservation, symlink preservation, mode checks, and primary-checkout guard.bash -npassed for installer, feed-push script, and rehearsal.push-fleet-feed.guard.shpassed.systemd-analyze verifyexited 0; it emitted only an unrelated existing cups/var/runwarning.Merge Danger
Door: two-way
Blast Radius: bounded
The change redirects the service and runtime files to the existing primary checkout/state directory. It does not remove or rewrite the live symlink or state; sandbox update and actual feed-delivery verification remain deferred.
Need help on this PR? Tag
@codesmith-botwith what you need.