~ knotless Search/
↑↓ move↵ open⇧↵ all results

grain.social/grain

photography-focused photo sharing platform

grain.social
1 collaborator
0
2

A feature/ branch's pushes warm the caches its pulls start from

Merged chadtmiller.com asked to merge into feature/rust from grain.social/grain:ci/warm-feature

Only what this pull adds. It is built on grain runs on a Rust server modelled on knotless, without hatk.

.knotless/workflows/e2e.yml+5−6
@@ -9,17 +9,16 @@
# picture, beside what the servers said.
#
# Node, the packages, Chromium, the libraries it needs, the alpha and the
# build are kept between runs as main's runs leave them: nothing is fetched
# again until what it is made from changes. Until this workflow runs on
# main, a pull's run has none of it kept, and builds the alpha again.
# build are kept between runs as main's runs, or a feature/ branch's,
# leave them: nothing is fetched again until what it is made from changes.
image: rust:1.98
runners: [runner.knotless.dev]
# Every push to main, and pulls into it or a feature/ branch that change
# the pages, the server they log in to and write through, the lexicons
# Every push to main or a feature/ branch, and pulls into either that
# change the pages, the server they log in to and write through, the lexicons
# between them, the harness they run over, or this file. A pull changing
# none passes at once, noted as skipped.
on:
push: { refs: [refs/heads/main] }
push: { refs: [refs/heads/main, refs/heads/feature/*] }
pull:
base: [refs/heads/main, refs/heads/feature/*]
paths:
.knotless/workflows/harness.yml+4−1
@@ -26,8 +26,11 @@ runners: [runner.knotless.dev]
# once this has passed at its head, so one whose tests fail on their own
# costs no batch and no halving.
queue: first
# Pushes to main and to a feature/ branch, which keeps caches of its own
# for the pulls into it: a branch keeps them only where both push and
# pull name it.
on:
push: { refs: [refs/heads/main] }
push: { refs: [refs/heads/main, refs/heads/feature/*] }
pull: { base: [refs/heads/main, refs/heads/feature/*] }
cache:
[
.knotless/workflows/rust.yml+4−1
@@ -14,8 +14,11 @@ runners: [runner.knotless.dev]
# A pre-flight: the merge queue takes a pull into a batch only once this
# has passed at its head, so one that does not build fails no batch.
queue: first
# Pushes to main and to a feature/ branch, which keeps caches of its own
# for the pulls into it: a branch keeps them only where both push and
# pull name it.
on:
push: { refs: [refs/heads/main] }
push: { refs: [refs/heads/main, refs/heads/feature/*] }
pull: { base: [refs/heads/main, refs/heads/feature/*] }
cache: [target, /usr/local/cargo/registry, /usr/local/rustup]
steps: