Skip to content

Deploy named local DB sync instances#7

Merged
findolor merged 1 commit into
mainfrom
feature/deployment-id-deploy-workflow
May 26, 2026
Merged

Deploy named local DB sync instances#7
findolor merged 1 commit into
mainfrom
feature/deployment-id-deploy-workflow

Conversation

@findolor
Copy link
Copy Markdown
Collaborator

@findolor findolor commented May 23, 2026

Depends on

Motivation

Once the host has deployment-id based systemd units, the deployment workflow needs to target one named deployment without stopping or replacing unrelated sync processes.

Solution

  • add a required deployment_id workflow input
  • validate deployment IDs before any deployment work runs
  • scope GitHub Actions concurrency to the deployment ID
  • upload the runtime env and CLI artifact into the selected deployment directory
  • stop, replace, enable, and start only local-db-sync@<deployment_id>.timer and local-db-sync@<deployment_id>.service
  • include the deployment ID and instance unit names in the workflow summary

Checks

By submitting this for review, I am confirming I have done the following:

  • made this PR as small as possible
  • unit-tested any new functionality
  • linked any relevant issues or PRs
  • included screenshots (if this involves a front-end change)

Validated locally with:

  • YAML parse for .github/workflows/deploy.yaml

Copy link
Copy Markdown
Collaborator Author

findolor commented May 23, 2026

@findolor findolor self-assigned this May 23, 2026
@findolor findolor changed the title feat: deploy named local db sync instances Deploy named local DB sync instances May 23, 2026
@findolor findolor force-pushed the feature/deployment-id-deploy-workflow branch from 2eb7c17 to 65901bd Compare May 24, 2026 16:22
@findolor findolor force-pushed the feature/deployment-id-runner branch from bca4841 to 4698d75 Compare May 24, 2026 16:22
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 24, 2026

Warning

Review limit reached

@findolor, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 18 minutes and 8 seconds. 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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: c3ffb5a8-0779-47cd-acce-01edbb6efcf5

📥 Commits

Reviewing files that changed from the base of the PR and between 282c4f2 and 6d7400e.

📒 Files selected for processing (2)
  • .github/workflows/deploy.yaml
  • lib/raindex
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/deployment-id-deploy-workflow

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 and usage tips.

@findolor findolor force-pushed the feature/deployment-id-deploy-workflow branch from 65901bd to 8d192bc Compare May 24, 2026 17:31
@findolor findolor force-pushed the feature/deployment-id-deploy-workflow branch from 8d192bc to eff0acb Compare May 26, 2026 08:05
@findolor findolor force-pushed the feature/deployment-id-runner branch from 4698d75 to 8698a0c Compare May 26, 2026 08:05
Copy link
Copy Markdown
Collaborator Author

findolor commented May 26, 2026

Merge activity

  • May 26, 3:00 PM UTC: A user started a stack merge that includes this pull request via Graphite.
  • May 26, 3:04 PM UTC: Graphite rebased this pull request as part of a merge.
  • May 26, 3:04 PM UTC: @findolor merged this pull request with Graphite.

@findolor findolor changed the base branch from feature/deployment-id-runner to graphite-base/7 May 26, 2026 15:01
@findolor findolor changed the base branch from graphite-base/7 to main May 26, 2026 15:02
@findolor findolor force-pushed the feature/deployment-id-deploy-workflow branch from eff0acb to 6d7400e Compare May 26, 2026 15:03
@findolor findolor merged commit 7c057e8 into main May 26, 2026
findolor added a commit that referenced this pull request May 26, 2026
## Depends on

- #7

## 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

- add a manual `List Deployments` workflow that reports deployment ID, timer status, service status, settings URL, service start time, next timer run, and work directory size
- add a manual `Sunset Deployment` workflow that stops and disables one named deployment
- keep deployment env, binary, and work state by default for rollback
- add an explicit `delete_state` option for removing a deployment's host-side state
- document deployment IDs, side-by-side operation, listing, and sunset behavior in `README.md`

## 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:
- YAML parse for `.github/workflows/deploy.yaml`, `.github/workflows/list-deployments.yaml`, and `.github/workflows/sunset-deployment.yaml`
- `bash -n nixos/local-db-remote-run.sh`
- `nix eval '.#nixosConfigurations.local-db-remote.config.systemd.timers."local-db-sync@".timerConfig.Unit'`
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.

3 participants