monoscope/impact-review-worker/Dockerfile.browser
Anthony Alaribe 4c23e0f03e
Proofs build the PR's own server: warm workspaces for every review (#869)
* Proofs build the PR's own server: warm workspaces for every review

The review guest carries GHC with the server's compiled dependencies, Rust and Go. The worker's new
prepare script builds each pull request's base offline in its workspace checkpoint, so a proof
compiles only the change: monoscope-app --server rebuilds the server after a Lucid page edit in about
90 seconds, where the base build took 23 minutes. Workspace builds and checks get 4 CPUs and 6 GB.

* Guest: the review account writes cabal's build log

* Server proofs: room to build, toolchains on PATH, no stray symlink, honest records

Check sides get 300 s so a proof can build the head; the guest links GHC, cabal, cargo and go into
the reset environment's PATH; the root node_modules link is ignored; checkpoint manifests record
their real VM size; the guest's dependency stage builds from cabal files alone; Go builds no longer
rewrite go.mod; the worker pins 4 agent, 2 check and 1 build slots.

* Guest: build the shared library's source with the server's dependencies

* Guest: the server's dependencies include the local CLI package
2026-11-11 20:55:26 +01:00

84 lines
7 KiB