chadtmiller.com/group-host
atmosphere group host
0
0
The deploy's docs say main is gated by each pull's checks, the queue off
.knotless/workflows/deploy.yml+6−5
| @@ -1,10 +1,11 @@ | ||
# Deploys main to next.opensocial.fyi on each push. | ||
# | ||
# Main takes pulls only through the merge queue, which lands a pull once | ||
# its batch, the commit that lands, passes every check; so what reaches | ||
# main has passed, and this does not wait for main's own checks. It | ||
# couldn't: a step can't read a private repository's checks (knotless | ||
# issue at://did:plc:bcgltzqazw5tb6k2g3ttenbj/dev.knotless.issue/3mzlv5ic46umh). | ||
# A pull is merged into main once its checks pass on it merged with main, | ||
# and the review bot approves it, so this does not wait for main's own | ||
# checks. It couldn't: a step can't read a private repository's checks | ||
# (knotless issue at://did:plc:bcgltzqazw5tb6k2g3ttenbj/dev.knotless.issue/3mzlv5ic46umh). | ||
# The merge queue is off while knotless can't land a private repository's | ||
# queue through its gateway. | ||
# | ||
# The host runs on the grain box as the compose project /etc/group-host | ||
# (hetzner-infra's stacks/opensocial). This run reaches it with | ||
docs/deploying.md+1−1
| @@ -153,7 +153,7 @@ On SIGTERM the host answers the requests already under way, within its 30-second | ||
| ||
## Deploying on each merge | ||
| ||
The host at next.opensocial.fyi deploys itself: `.knotless/workflows/deploy.yml` runs on each push to `main`. `main` takes pulls only through the merge queue, which lands a pull once its batch, the commit that reaches `main`, has passed `check`, `test`, `web`, `lexicons`, `e2e` and `docs`, so the deploy does not wait for `main`'s own checks. It sends a `git archive` of the commit to the machine over SSH, which builds it as `group-host:build-<commit>`. That image then becomes `group-host:current`, the image it replaces is kept as `group-host:before-<commit>`, and compose brings the host and the console up from the compose file at that commit, as the upgrade above does. The deploy passes once `/xrpc/_health` names the commit, on the machine and then through the proxy, within a minute. | ||
The host at next.opensocial.fyi deploys itself: `.knotless/workflows/deploy.yml` runs on each push to `main`. A pull is merged into `main` once its own checks, `check`, `test`, `web`, `lexicons`, `e2e` and `docs`, have passed on it merged with `main`, and the review bot has approved it, so the deploy does not wait for `main`'s own checks: a workflow's step cannot read a private repository's checks. The merge queue, which would check each batch as it lands, is off while knotless cannot land a private repository's queue. It sends a `git archive` of the commit to the machine over SSH, which builds it as `group-host:build-<commit>`. That image then becomes `group-host:current`, the image it replaces is kept as `group-host:before-<commit>`, and compose brings the host and the console up from the compose file at that commit, as the upgrade above does. The deploy passes once `/xrpc/_health` names the commit, on the machine and then through the proxy, within a minute. | ||
| ||
One deploy runs at a time, in the order `main` moved, and a newer commit's waits for the one before it to finish rather than cutting it off. | ||
AGENTS.md+1−1
| @@ -200,7 +200,7 @@ Two more check nothing. `mirror`: each push to `main` or a tag pushes | ||
the same commit to a private copy on GitHub | ||
(github.com/bluesky-social/group-host), for those who read the code | ||
there. Nothing is pushed to that copy but from here. `deploy`: each push | ||
to `main`, which takes pulls only once the merge queue's checks pass, | ||
to `main`, which takes a pull only once its checks pass, | ||
is built on the machine serving next.opensocial.fyi and goes up there | ||
(`docs/deploying.md`). Every workflow but `deploy` names | ||
`runner.knotless.dev`; `deploy` alone runs on `ci.knotless.dev`, which | ||