A light deploy job, on a core whose gate does not depend on its machine
Build, test, deploy / site (push) Successful in 9m10s

The deploy server is a slow container with other work to do. Its job ran
core's tests, which failed there (no C compiler, no ICU, limits written
for a fast machine), so nothing was published.

- pixi run ci, which the deploy job runs, is the site's tests and core's
  mojo-status-strict at the pinned commit. Core's own tests and
  everything that builds Mojo are core's gate, on a runner of its own;
  pixi run core-test stays for moving the pointer.
- The workflow and docs/deploy.md describe the runner as it is: a new
  container for every job, not a host shell.
- core moves to b10a5c8: a pinned C compiler for the Mojo compiler to
  link with, a Dafny that starts without ICU, time limits at the
  machine's pace, and a prover whose time on the clock is the caller's
  (the Prove tab keeps its 3 seconds).
This commit is contained in:
alexm committed 2026-11-13 06:14:46 -05:00
1 parent e092cb029c
commit 3ebf2e2203
6 files changed
+36 -41

No files matched your search

+3 -3
View File
@@ -6,7 +6,7 @@
# keeps the two in step. Without pixi, `npm install && npm test` builds core
# (core/, the pplus-core submodule) and the site, and tests the site, with
# whatever node and python3 are on the PATH; everything else assumes the
# pinned environment below, and CI runs `pixi run ci` in it. Core's own
# pinned environment below, and the deploy job runs `pixi run ci` in it. Core's own
# commands are in core/pixi.toml: `pixi run --manifest-path core/pixi.toml <task>`.
[workspace]
@@ -28,7 +28,7 @@ pandoc = ">=3.6,<4" # the Quarto extension's tests run its Lua filter in pandoc
# --- build and test the site -----------------------------------------------
install = { cmd = "npm install", inputs = ["package.json"], outputs = ["node_modules/.package-lock.json"], description = "Install TypeScript (the only npm dependency)" }
core-build = { cmd = "npx tsc -p core/tsconfig.json", depends-on = ["install"], description = "Build pplus-core (core/, a git submodule) into core/dist/ with the site's TypeScript; the site imports it as #core/" }
core-test = { cmd = "node --test --test-concurrency=8 tests/*.test.mjs", cwd = "core", depends-on = ["core-build"], description = "Run pplus-core's own tests (its gate is core's pixi run ci)" }
core-test = { cmd = "node --test --test-concurrency=8 tests/*.test.mjs", cwd = "core", depends-on = ["core-build"], description = "Run pplus-core's own tests at the pinned commit, before moving the pointer (the deploy job does not run them; core's gate, its pixi run ci, does)" }
core-status = { cmd = "python scripts/mojo/corpus.py status --strict", cwd = "core", description = "Core's mojo-status-strict at the pinned commit: no Mojo program of ours fails, from godbolt's stored answers (offline)" }
build = { cmd = "npx tsc -p tsconfig.json", depends-on = ["install", "core-build"], description = "Build core, then compile src/ to dist/" }
watch = { cmd = "npx tsc -p tsconfig.json --watch", depends-on = ["install", "core-build"], description = "Rebuild dist/ on every change (core is built once first)" }
@@ -44,7 +44,7 @@ quarto-engine = { cmd = "node scripts/quarto-engine.mjs {{ dir }}", args = ["dir
quarto-example = { cmd = "quarto render quarto", depends-on = ["build"], description = "Render the example site in quarto/example with every shortcode (needs Quarto on the PATH)" }
# --- ship ------------------------------------------------------------------
ci = { depends-on = ["test", "core-test", "core-status"], description = "What CI runs: every test of the site, and core's tests and mojo-status-strict at the pinned commit (docs/deploy.md)" }
ci = { depends-on = ["test", "core-status"], description = "What the deploy job runs before it publishes: every test of the site, and core's mojo-status-strict at the pinned commit. Core's own tests are core's gate (docs/deploy.md)" }
release-check = { cmd = "node scripts/release.mjs check", depends-on = ["build"], description = "Is the chain web -> core -> library consistent: pointers checked out, clean and pushed to their branch, generated files current, Mojo pinned alike (docs/deploy.md); --offline asks no remote" }
release-bump = { cmd = "node scripts/release.mjs bump", depends-on = ["build"], description = "After a change in core/library or core: move the pointers bottom up, regenerate, run each gate, print what to push in order; --commit makes the commits, nothing pushes (docs/deploy.md)" }
site = { cmd = "scripts/assemble.sh", depends-on = ["test"], description = "Test, then assemble site/ for publishing" }