chadtmiller.com/monolith
An atproto PDS
0
0
# The nightly gates, as `just nightly` runs them, on main's tip every night
# at 10:00 UTC, and when the owner asks, on main or on a branch (`knotless
# run rerun <repo> --ref refs/heads/<branch> --workflow nightly`), as for a
# pull that changes how the server stores: the long crash runs, the server
# killed while it writes every 15 steps over runs of 1000, several at once;
# then the runs that time the server, alone. Too long to make every pull
# wait on (gates.yml runs a short crashing run instead); a failure here is
# fixed by a pull, as any other.
#
# Node, the harness's and the pages' packages and the build are kept
# between runs.
image: rust:1.98
runners: [runner.knotless.dev]
on:
schedule:
- cron: '0 10 * * *'
asked: {refs: [refs/heads/*]}
cache: [target, /usr/local/cargo/registry, /usr/local/rustup, /opt/node, harness/node_modules, web/node_modules]
steps:
- uses: chadtmiller.com/steps/node@1
with: {version: 24.22.1}
- uses: chadtmiller.com/steps/npm-ci@1
with: {dir: harness}
- uses: chadtmiller.com/steps/npm-ci@1
with: {dir: web}
# The pages, which pds-server embeds.
- name: web
run: cd web && PATH=/opt/node/bin:$PATH npm run build
- name: build
run: cargo build --release -p pds
- name: crash
run: cd harness && PATH=/opt/node/bin:$PATH node gates.mjs crash
- name: perf
run: cd harness && PATH=/opt/node/bin:$PATH node gates.mjs perf