Commit Graph
350 Commits
Author SHA1 Message Date
aiongg ced652cd37 gate: first-party actions at the gate-setup repin (runner cargo home for rust-cache) (#322) 2026-11-22 01:04:28 -05:00
aiongg ec2b41fc48 gate-setup: pin the first-party actions to the runner cargo home commit (#321) 2026-11-22 01:03:45 -05:00
aiongg fc3e1afc1c rust-cache: leave a runner-provided cargo home (CRAFT_RUNNER_CARGO_HOME) to the runner (#320)
rust-cache caches and, at save, prunes the registry, git and bin directories
under CARGO_HOME, with no input to leave them out. The cluster runners'
CARGO_HOME is a crate cache shared across jobs, and align-environment refused
it outright. When CARGO_HOME is the directory the runner names in
CRAFT_RUNNER_CARGO_HOME, rust-cache gets a job-private directory as its
CARGO_HOME, with or without align-environment; a CARGO_HOME the job sets
itself is still refused. GitHub-hosted runs take the same steps as before.
2026-11-22 01:02:38 -05:00
aiongg 8de85f814f gate: first-party actions at the gate-setup repin (WebDAV sccache on cluster runners) (#319) 2026-11-22 00:01:09 -05:00
aiongg 99ded52ec9 gate-setup: WebDAV sccache reads only where caches don't save, and a caller's GitHub Actions sccache settings can't override it (#318) 2026-11-21 23:47:55 -05:00
Dylan M. Taylorandaiongg 6f71b78a08 fix(gate-setup): use WebDAV sccache when SCCACHE_WEBDAV_ENDPOINT is set (#316)
* fix(gate-setup): use WebDAV sccache when SCCACHE_WEBDAV_ENDPOINT is set

* gate-setup: one WebDAV sccache prefix for every repository (sccache/<cache-version>), so dependency compiles hit across apps

---------

Co-authored-by: aiongg <aiongtaigi@gmail.com>
2026-11-21 23:44:22 -05:00
aiongg 0bef64f155 Merge pull request #303 from aiongg/ci-test-select
select-platforms: select the tests a pull request reaches
2026-11-20 12:16:52 -05:00
aiongg f5141455aa Merge pull request #302 from aiongg/ci-rust-channel
Dry runs save no cache; install the toolchain the checkout names
2026-11-19 23:34:36 -05:00
aiongg cb2451b558 select-platforms: select the tests a pull request reaches
With select-tests, the action also outputs the tests to run: those of the
crates that own a changed file, of the crates that declare a read of it
([package.metadata.craft] reads), and of every crate that depends on
them by any dependency kind, as a nextest filterset (filter), a member
list (skip) and all/some/none (tests). The build setup, a crate's own
Cargo.toml and non-documentation files outside the crates run every
test; documentation alone runs none. The same pass fails on an
undeclared or stale cross-crate read. The docs input adds documentation
globs for both selections.
2026-11-20 04:33:41 +00:00
aiongg e4a4048cb8 Merge the dry-run cache change 2026-11-20 04:14:21 +00:00
aiongg 2e04c2965b release, windows-arm64: install the toolchain the checkout's rust-toolchain.toml names
Part of storytold/photocraft#15711
2026-11-20 04:12:34 +00:00
aiongg e756744483 release: a dry run restores the caches and saves none
Part of storytold/photocraft#15711
2026-11-20 04:09:42 +00:00
aiongg 45f840aee1 Merge pull request #300 from aiongg/craft-agents-check
house-rules: accept the craft-agents block and add the generator
2026-11-19 22:20:40 -05:00
aiongg 873bcb3de6 house-rules: accept the craft-agents block and add the generator
The check accepts the old house-rules blocks or one craft-agents block
(standards/app-agents.md, RFC-0072). write-agents writes or refreshes the
block from a craft-contrib commit on main and keeps text outside it.
2026-11-20 03:06:30 +00:00
aiongg ab4f427845 Merge pull request #297 from aiongg/gate-shard-archives
gate: shard-archives input, one test archive per shard
2026-11-19 18:37:46 -05:00
aiongg 22a2474ee1 Merge pull request #298 from aiongg/ci-cache-trim
Cache budget: trim saved entries to the build's units, one save per parent entry, prune replaced entries
2026-11-19 18:37:32 -05:00
aiongg 94acf97a73 gate: trim a saving leg's cache entry to the build's units; first-party actions at the gate-setup repin
A leg that saves runs actions/cache-trim after its last build command (in the gate job, after the
artifact upload), before rust-cache's post step saves; it changes nothing unless the build recorded
its units in CRAFT_CACHE_UNITS, which actions/rust-cache sets only where the leg saves.
2026-11-19 23:19:14 +00:00
aiongg ab35cb2622 gate-setup: pin the first-party actions to the rust-cache unit-record commit 2026-11-19 23:19:14 +00:00
aiongg bf191401c5 rust-cache: name a run's entry after the one it restored and record the build's units; cache-trim and cache-prune
- rust-cache: a saving leg's crates entry is <job>-crates-<os>-<arch>-<parent run>-0, from
  .ci-cache-meta/entry, so of two runs that restored the same entry only the first to finish
  saves (GitHub refuses an existing key). Nothing restored gives -0-0; a cold build writes
  -<run>-<attempt>. A saving leg gets CRAFT_CACHE_UNITS, a file for the build's Cargo JSON
  messages; the name is outside the prefixes rust-cache hashes into its key.
- cache-trim: deletes every unit directory (<profile>/build/<package>/<hash>/) the record does
  not name, before rust-cache's post step saves; rust-cache's own cleanup matches package names
  only and keeps older builds of updated dependencies. No record, no change.
- cache-prune: for a caller job with actions: write. Keeps the newest rolling crates entry per
  job/OS/arch, and of other rust-cache entries and named <name>-<sha256> entries removes an older
  one once nothing used it since the newest was created. watch: prunes as the run's saving jobs
  finish and ends when none is queued or running.
2026-11-19 23:19:14 +00:00
aiongg 49918a1068 Merge pull request #296 from aiongg/restore-mtimes-sigpipe
restore-mtimes: list the first changed files without SIGPIPE under pipefail
2026-11-19 18:16:10 -05:00
aiongg 9c45691f44 gate: shard-archives input, one test archive per shard
With archive-command and shard-archives: true, the build job sets NEXTEST_ARCHIVE_DIR,
NEXTEST_ARCHIVE_NAME and GATE_SHARDS, archive-command writes one archive per shard, and each is
uploaded as gate-archive-<os>-<k>. Shard k downloads only its own, so it fetches only the test
binaries it runs. One upload step per archive caps shard-archives at 8 shards; the select job
rejects more, and shard-archives without archive-command. Off by default: one archive for every
shard, as before.
2026-11-19 20:44:30 +00:00
aiongg 102721f7a7 restore-mtimes: list the first changed files without SIGPIPE under pipefail 2026-11-19 20:27:47 +00:00
aiongg ecb64b2acb Merge pull request #292 from aiongg/ci-build-once-gate
gate: build the tests once per runner and keep workspace crates in a rolling cache entry
2026-11-19 09:18:48 -05:00
aiongg 8341b41f55 gate: drop the prune-cache job; a called workflow's job permissions are checked at run start 2026-11-19 14:05:10 +00:00
aiongg ac2e87d47a gate: cache budget inputs (lint-cache, prune-cache) and a confined prune job; sonarcloud: build-cache input 2026-11-19 13:57:40 +00:00
aiongg a8fb24c80e gate: pin the shared actions to #290's merge commit 2026-11-19 13:39:04 +00:00
aiongg d65d611f0e Merge pull request #290 from aiongg/ci-build-once
actions: gate-setup, gate-run, restore-mtimes and a rolling workspace-crates entry in rust-cache
2026-11-19 08:38:12 -05:00
aiongg 528446563c gate: build the tests once per runner and keep workspace crates in a rolling cache entry
With archive-command, a build (<os>) job per runner builds the tests once
into a nextest archive; the shard legs download it and build nothing, and
only they wait for the build job. after-archive-command runs in the build
job after the upload. With cache-workspace-crates, the saving leg writes a
rolling dependency entry that keeps the workspace crates, and every leg
restores the newest one with restore-mtimes. The lint legs move to a lint
job of their own that never waits for the build. Every job's setup is
actions/gate-setup; commands run through actions/gate-run. Every new input
defaults to today's behaviour.

The save-condition guards read the cache-save and writes inputs every job
passes to gate-setup: the build and lint jobs carry the approved condition,
the gate job the same narrowed to its one saving leg per runner.

Result markers are files named after their leg and download with
merge-multiple, so one shard or one build lands where the check reads it.
The archive upload overwrites on a re-run. archive-command without
test-shards is an error.

The first-party actions are pinned to the commit that added gate-setup.
2026-11-19 09:30:18 +00:00
aiongg 7513b173b4 Merge craft-common-actions#252 (canonical save-if) into the gate change
# Conflicts:
#	README.md
2026-11-19 09:25:52 +00:00
aiongg d82b20d6b7 actions: gate-setup, the setup every gate.yml job shares
The setup the gate's jobs repeat after their checkout, as one composite
action, so a build job and its shard legs can share it. Its first-party
actions are pinned to the commit that added rust-cache's
cache-workspace-crates and restore-mtimes. gate.yml does not call it yet.
2026-11-19 09:24:12 +00:00
aiongg fabe5cc9f4 actions: rolling workspace-crates entry in rust-cache, restore-mtimes and gate-run
actions/rust-cache gains cache-workspace-crates and restore. With
cache-workspace-crates the entry also keeps the workspace crates' compiled
libraries and unit-test executables, as a rolling entry: a saving run writes
an entry of its own and every run restores the newest under the job's prefix,
since rust-cache never replaces an existing key. Both inputs default to
today's behaviour.

actions/restore-mtimes records the commit an entry was built from (and the
commits of the craft-i18n and craft-fonts checkouts), and after a restore
touches only the files that changed since then, so Cargo rebuilds only what
they reach.

actions/gate-run runs one of gate.yml's commands with its optional timeout.

gate.yml is unchanged; it moves to these actions in a separate change.
2026-11-19 09:23:40 +00:00
FredApps 2c06746765 ci: pin nested shared gate actions to reviewed revision (#289) 2026-11-19 13:34:26 +07:00
FredApps 139cccb97f ci: pin native runner fixture to production Rust 1.100.0 (#288) 2026-11-19 13:10:45 +07:00
FredApps 438b785997 ci: validate native Cargo runner semantics with tiny fixtures (#287)
* ci: validate native Cargo runner semantics with tiny fixtures

* test: separate doctest runner context without weakening allowlist
2026-11-19 13:02:16 +07:00
FredApps 5e475d5d1e ci: audit implicit-host FreeBSD runtime planned-unit reuse (#286) 2026-11-19 12:46:00 +07:00
FredApps a44bf91fb5 ci: measure planned FreeBSD prebuild target projection without compiling (#285) 2026-11-19 12:33:12 +07:00
FredApps 0be61baefd ci: measure native bootstrap while preserving workspace features (#284)
* ci: guard a bounded native geometry measurement with exact planned closure

* ci: preserve workspace features while measuring native browser bootstrap
2026-11-19 12:20:14 +07:00
FredApps b5c6f5913e ci: compare planned Photo units on native FreeBSD without builds (#283)
* ci: compare planned Photo units on native FreeBSD without builds

* ci: verify transferred source without overriding Git ownership guard
2026-11-19 11:59:33 +07:00
FredApps cccebf20a1 ci: compare pinned Photo resolved features without builds (#282) 2026-11-19 11:43:25 +07:00
FredApps dbe0fbf6af ci: inventory pinned Photo targets without building (#281) 2026-11-19 11:34:22 +07:00
FredApps 2317dca7b2 test(ci): prototype bounded libtest subprocess fixtures (#280) 2026-11-19 11:01:46 +07:00
FredApps 21a58ac409 ci(freebsd): measure bounded complete target toolchain setup (#279) 2026-11-19 10:44:00 +07:00
FredApps 254d31bf25 Merge pull request #278 from FredApps/ci/778-freebsd-download-diagnostic
ci(freebsd): add bounded verified-download phase diagnostic
2026-11-19 10:13:03 +07:00
FredApps 9fe0627fb4 ci(freebsd): add bounded verified-download diagnostic 2026-11-19 04:01:00 +01:00
FredApps 3324beedeb Merge pull request #277 from FredApps/fix/778-freebsd-cross-cache-target
fix(freebsd): preserve and isolate cross-target Cargo caches
2026-11-19 09:51:22 +07:00
FredApps 2261f42f01 Merge current main for combined short-suite validation 2026-11-19 03:46:15 +01:00
FredApps fa34e3106d fix(freebsd): preserve and isolate cross-target Cargo caches 2026-11-19 03:42:06 +01:00
aiongg c5f8dc3b74 Merge pull request #275 from aiongg/ci-cache-name-strip
gate: cache-name and dev-strip inputs; manual Windows build diagnostic
2026-11-18 21:30:33 -05:00
FredApps 1db5954800 Merge pull request #276 from FredApps/fix/778-freebsd-download-retries
fix(freebsd): bound verified sysroot download retries
2026-11-19 09:29:53 +07:00
FredApps c0e799e2a0 fix(freebsd): bound release-file download retries 2026-11-19 03:23:37 +01:00