Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,9 @@ jobs:
timeout-minutes: 30
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- run: docker build --file infra/docs.Dockerfile .
# The docs image caches no layers, so main, which tests nothing, skips it.
- if: *tests
run: docker build --file infra/docs.Dockerfile .
# Both Rust targets share the `backend` stage, which builds once. A build
# restores main's layers, so only what changed since main recompiles:
# usually just the workspace's own crates, after cargo-chef's dependencies.
Expand Down
3 changes: 2 additions & 1 deletion docs/dev/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,8 @@ merge queue start from, since GitHub lets every branch read `main`'s caches:

- `checks` and `docs` save no cache, and `web` saves only the pnpm store,
which `package` and `e2e` save too, so `main` skips them.
- `docker` builds the images, saving their layers.
- `docker` builds the auth and web images, saving their layers. It skips the
docs image, which caches none.
- The jobs that restore a Rust cache build only when no cache is saved under
their current key, as after a dependency or toolchain change, or after GitHub
evicts an unused cache. Then they build without testing. `package` and
Expand Down