Add deployment listing and sunset workflows#8
Conversation
|
Warning Review limit reached
More reviews will be available in 17 minutes. Learn how PR review limits work. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (3)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
2eb7c17 to
65901bd
Compare
1b60148 to
492516c
Compare
65901bd to
8d192bc
Compare
492516c to
1ceb02a
Compare
8d192bc to
eff0acb
Compare
1ceb02a to
5119815
Compare
5119815 to
f83655b
Compare
## Depends on - #8 - rainlanguage/raindex#2587 ## Motivation We want to test the deployment-id local DB remote flow with the raindex changes from rainlanguage/raindex#2587 before deploying a named sync instance. That upstream PR adds a `derived_trades` local DB read model and bumps the local DB schema to version 4. Testing it through this repository lets the remote deployment workflow build and install the CLI from the exact raindex commit that contains those schema changes. ## Solution - bump `lib/raindex` from `9b33a3c4eca44726b4602f1a2d4046982584ef93` to `cce428bf874443f55280705d8d2da157ef9921ab` - use the latest commit from rainlanguage/raindex#2587: `cce428bf874443f55280705d8d2da157ef9921ab` - include the upstream derived-trades changes needed for the local DB schema version 4 deployment test Relevant upstream raindex PR context: - PR: rainlanguage/raindex#2587 - Title: Add derived trades local DB read model - Branch: `arda/derived-trades-schema` - Latest commit: `cce428bf874443f55280705d8d2da157ef9921ab` - Main behavior: maintain `derived_trades` during local DB sync and read trade lists from that derived table ## Checks By submitting this for review, I am confirming I have done the following: - [x] made this PR as small as possible - [ ] unit-tested any new functionality - [x] linked any relevant issues or PRs - [ ] included screenshots (if this involves a front-end change) Validated locally with: - `git submodule status lib/raindex` - `git diff --stat feature/deployment-id-ops..HEAD` Not run: - no deploy was run from this branch - no local raindex build was run

Depends on
Motivation
Named deployments need basic operations after they are created: reviewers and operators should be able to see what is running, and old deployment instances should be easy to sunset after the web application has moved to a new manifest.
Solution
List Deploymentsworkflow that reports deployment ID, timer status, service status, settings URL, service start time, next timer run, and work directory sizeSunset Deploymentworkflow that stops and disables one named deploymentdelete_stateoption for removing a deployment's host-side stateREADME.mdChecks
By submitting this for review, I am confirming I have done the following:
Validated locally with:
.github/workflows/deploy.yaml,.github/workflows/list-deployments.yaml, and.github/workflows/sunset-deployment.yamlbash -n nixos/local-db-remote-run.shnix eval '.#nixosConfigurations.local-db-remote.config.systemd.timers."local-db-sync@".timerConfig.Unit'