Commit Graph
200 Commits
Author SHA1 Message Date
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 9fe0627fb4 ci(freebsd): add bounded verified-download diagnostic 2026-11-19 04:01:00 +01: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 c0e799e2a0 fix(freebsd): bound release-file download retries 2026-11-19 03:23:37 +01:00
aiongg 6b0c83fa60 gate: cache-name and dev-strip inputs; manual Windows build diagnostic
cache-name gives each call of the gate in one job its own dependency-cache entry (gate-<name>); the default keeps today's key. dev-strip builds the test profile without debug info and strips symbols.
2026-11-19 02:21:58 +00:00
FredApps 204c556c5f Merge main and preserve artifact uploads on validated producers 2026-11-19 01:28:57 +01:00
aiongg 112ef59c08 gate: each shard leg records its latest status, so a re-run that fails replaces an earlier pass 2026-11-18 20:20:21 +00:00
aiongg 29d68afad0 gate: test-shards runs each runner's tests as N shard legs
With test-shards N > 0, the gate leg of each runner becomes N test <k>/<N>
(<os>) legs. Each has the full setup, restores the gate's Rust cache entry and
runs shard-command (windows-shard-command on Windows) with GATE_SHARD,
GATE_SHARDS and NEXTEST_PARTITION (hash:<k>/<N>) set, building and running
its share of the tests. Shard 1 saves the cache by the gate leg's rules (the
warm leg saves instead when there is one); the others only restore. lint and
cache warm legs run once per runner. A gate (<os>) job passes only when every
shard of that runner passed, from per-shard pass markers.

test-shards defaults to 0, which leaves every existing call as it was.
2026-11-18 19:09:44 +00:00
aiongg ea2e684a31 rust-cache: Swatinem v2.9.3 by commit; cache-version v2
StepSecurity's v2.9.1 cut every target/<profile>/build entry at its last '-',
so Cargo's new build-dir layout (build/<package>/<hash>/) lost most dependency
packages from each saved entry. v2.9.3 checks the exact name first (#371 there)
and keeps the Windows path fix (#355 there) that v2.9.1 was pinned for.

The cache-version default moves to v2 once: rust-cache never replaces an
exact-key entry, so the pruned v1 entries would otherwise be restored as they
are until the lockfile changes.
2026-11-18 18:54:00 +00:00
aiongg 13d451f0e6 Merge pull request #270 from aiongg/cache-after-build
gate: native-only cache key and an optional cache-warm leg
2026-11-18 09:50:08 -05:00
FredApps 42e99d3762 ci(freebsd): allow bounded compilation concurrency 2026-11-18 15:42:03 +01:00
aiongg a24d4fc3de gate: cache key from native profiles only, optional cache-warm leg saves after the build
The rust-cache key hashes the root [profile] tables except wasm-only ones (web, wasm-*), so a
web-profile edit no longer starts every native cache cold. A new warm-command input adds a
default-branch leg that runs only the build and saves the gate entry as soon as it succeeds,
instead of after the tests.
2026-11-18 14:14:58 +00:00
FredApps 96108275db Avoid worktree resync in read-only guest diagnostics 2026-11-18 12:41:06 +01:00
FredApps 3dba51aeae ci(freebsd): capture bounded resource evidence after failures 2026-11-18 12:38:19 +01:00
FredApps 6c1714ff04 fix(freebsd): reclaim hosted toolchains before VM allocation 2026-11-18 10:13:28 +01:00
aiongg efe146ee91 gate: key the caller cache on files too (cache-key-files)
A caller that keeps its pins in the fetch script names it in cache-key-files, so
the pin is written once and a new pin or fetch starts a new entry. The key is
computed once and used by both the restore and the save.
2026-11-17 18:57:53 +00:00
aiongg cd0795f15d gate: run platform legs on a pull request only when it can change them (select-os)
A select legs job (actions/select-platforms) runs the select-os legs on a pull
request only when a changed file is in a crate with platform cfg code or a crate
that depends on one (cargo metadata --no-deps and a scan of the sources), is part
of the build setup or select-paths, or lies outside every crate and is not
documentation. The select-label label (full-ci) and every other event run every
leg. Without select-os no select job runs and the matrix is os, as before.

On craft-libs today 37 of 177 crates have platform cfg code and 57 are affected
with their dependents; 39 of the last 80 merged pull requests would have run the
Linux leg only.
2026-11-17 18:55:31 +00:00
aiongg f8f8952237 gate: cache the data the caller's setup fetches (cache-paths, cache-key)
The cache-extra-paths item of #212. The paths are restored before setup-command
and saved after it under the dependency cache's save rule, one entry for every
OS, keyed on the caller's pins. craft-libs uses it for the PhotoCraft PSD corpus,
which otherwise builds PhotoCraft's xtask on every leg (1:51 on Windows).
2026-11-17 18:53:15 +00:00
aiongg 7d989465c1 gate: lint legs beside the test legs (lint-command)
With lint-command set, each runner in os gets a lint (<os>) leg that runs the
lint checks with the same setup, so clippy no longer runs before the test build
on the critical path. One job definition with a part matrix dimension; the test
part keeps the gate (<os>) check name, and the lint part has its own rust-cache
entry. Empty lint-command keeps today's behaviour.
2026-11-17 18:52:39 +00:00
Ephraim 42e79d293e gate: optional artifact upload 2026-11-16 19:00:57 +02:00
Martin BallandClaude Opus 5.5 f9e835af4f fix(rust-cache): pin v2.9.1 so Windows jobs save their cache (#249)
step-security/rust-cache v2.9.2 ships an ES-module bundle. Its bundled
minimatch 3 calls require('path'), which throws in an ES module, so it
falls back to '/' as the separator. On Windows no cache path then
matches and every save fails with "Path Validation Error". Windows legs
never saved a cache and built every dependency from scratch.

v2.9.1 is a CommonJS (ncc) bundle with the same inputs. Pin it
everywhere rust-cache is used and add a test that keeps every pin on
the action's commit and off v2.9.2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCXtSjB6e5jmy9Uq7u8
2026-11-16 12:19:03 +00:00
Martin Ball 59d1ecc4ea Fix shared cache save policy and target paths (#253)
Disable Rust cache saves after failed runs and resolve CARGO_TARGET_DIR relative to the checkout. Use dated FreeBSD cache entries and skip a matching same-day save. Keep inherited-target tests independent of the caller environment.

Contributor: @benandez.

Validated with the passing hosted test job, 95 focused passes plus one existing csh skip, and four inherited-target tests. Native Windows/FreeBSD VM and live cache-service execution were not claimed.
2026-11-15 19:19:40 -06:00
FredApps 5b4eeb2323 fix(freebsd): fail closed if the aarch64 job has no CARGO_BUILD_TARGET
The 15 November scheduled dry-run wrote x86_64 archives in the aarch64
job because an unset PKG_CONFIG_PATH in the cross env heredoc left
CARGO_BUILD_TARGET unset, and FreeBSD sh did not abort. #242 already
stops the heredoc from expanding that unset variable. This checks that
the env file actually exported the target, and that the build and
package steps still have it, so a similar miss fails before packaging.
2026-11-15 12:17:00 +01:00
Dylan M. Taylor c8f4b6ec2a fix(freebsd): include shared pkgconfig metadata in aarch64 sysroot (#247)
* fix(freebsd): include share pkgconfig in cross sysroot

* test(freebsd): cover share pkgconfig sysroot paths
2026-11-14 23:03:20 -05:00
Dylan M. Taylor 831527c68a fix(freebsd): include X11 protocol metadata in sysroot (#245) 2026-11-14 22:20:46 -05:00
skylar taylor-barrick 2537691a6b ci: share dependency-cache keys and read-only restores (#240)
* ci: share the gate dependency-cache key and read-only restores

* fix(rust-cache): compare cache directories, not their spelling

A Windows runner spells one directory two ways: git-bash reports $HOME/.cargo as
/c/Users/x/.cargo, and a native tool or workflow input passes C:\Users\x\.cargo. The
align-environment guard compared the strings, so the first Windows caller copying the
README example exited 1 with "sets ...; drop the input". It now resolves both sides when
they exist and otherwise normalises backslashes, a drive letter and its case before
comparing. Refusing a genuinely different cargo home is unchanged.

Regressions cover both Windows spellings, a trailing separator, a drive letter in either
case, two different Windows homes, and a symlinked home that resolves to $HOME/.cargo;
the five positive cases fail against the previous guard.
2026-11-14 21:01:18 -06:00
Dylan M. Taylor b85a0310a6 fix(freebsd): avoid unset variable in cross env heredoc (#242) 2026-11-14 21:35:17 -05:00
Dylan M. Taylor c2d9913691 ci: apply test thread limit to coverage run 2026-11-15 00:41:04 +00:00
Dylan M. Taylor 72d2fbfb3d ci: allow limiting unsharded Rust test threads 2026-11-15 00:34:08 +00:00
Dylan M. Taylor 0ed80a2122 fix(freebsd): validate aarch64 pkg-config paths 2026-11-14 23:23:30 +00:00
Dylan M. Taylor d0e829bfdb fix(freebsd): extract linked packages into aarch64 sysroot 2026-11-14 23:08:28 +00:00
Dylan M. Taylor 6c02f8de2a ci(freebsd): install WebKitGTK and libsoup dependencies (#237)
* ci(freebsd): install WebKitGTK and libsoup dependencies

* fix(freebsd): install WebKitGTK in release workflow
2026-11-14 17:58:48 -05:00
FredApps 9f9f16987c ci: never cancel a running main-branch Sonar scan (#151)
* ci: preserve every main-branch Sonar scan

* ci: never cancel a running main Sonar scan, as the app repos do

Per-run concurrency groups let main scans run side by side, so an older
commit's analysis can reach SonarCloud after a newer one. Keep one group
per ref and only stop cancelling on main, matching every app repo's
sonarcloud.yml.
2026-11-14 21:38:10 +01:00
FredApps f76646c68b Merge pull request #198 from storytold/ci/opt-in-sccache
gate: opt-in sccache; sonarcloud: free disk space in the background in the archive build
2026-11-13 22:08:20 +01:00
FredApps debd222436 Merge pull request #155 from storytold/fix/house-rules-preserve-local-text
Preserve local instructions when updating house rules
2026-11-13 21:24:00 +01:00
FredApps cb96afc6e2 Merge pull request #229 from storytold/sonarcloud/bin-exe-paths
sonarcloud: let shard tests find workspace binaries by their build path
2026-11-13 21:10:36 +01:00
FredApps bc67c8a00c Merge branch 'main' into ci/opt-in-sccache
# Conflicts:
#	.github/workflows/gate.yml
#	README.md
2026-11-13 20:46:39 +01:00
FredApps ce1d914f7c Merge branch 'main' into fix/house-rules-preserve-local-text 2026-11-13 20:42:47 +01:00
Dylan M. Taylor 7e30ba4fdf fix(sonar): prefetch locked test dependencies 2026-11-13 14:50:09 +00:00
FredApps 00db6e35c0 sonarcloud: let shard tests find workspace binaries by their build path
Tests that run a workspace binary through env!("CARGO_BIN_EXE_<name>")
hold the build job's absolute target path. nextest extracts the archive
to a temporary directory, so in every coverage shard those tests failed
with "No such file or directory" while the gate passed them. Since #222
made shard test failures fail the scan, that turned SonarCloud red on
designcraft, cadcraft, pdfcraft and wordcraft main.

The build job now records cargo's target directory next to the archive.
Each shard extracts the archive to a known directory and links the
recorded path to it before running its partition.
2026-11-13 15:24:29 +01:00
FredApps 7d19a7f5e4 release.yml: a publish input publishes a complete draft at the end of the run (#209)
* release.yml: a publish input publishes a complete draft at the end of the run

Part E of the faster-release plan: no one waits by the run to publish. Only on the release
branch, not in a dry run, only when no build job failed (the job already requires that) or was
cancelled, and only when the draft has at least as many assets as the last published release, so
a skipped build job can't publish an incomplete release. Off by default; apps opt in.

* publish: compare with the most recently published release, and say why in the summary

gh release list orders by creation, so the newest-created release was the baseline; an older
draft published later would have been missed. Every refusal now also writes its reason to the
job summary, not only an error annotation.

* tests: publish doesn't change the FreeBSD build, so it stays out of the cache key
2026-11-13 14:09:41 +01:00
Dylan M. Taylor 174ac23ed6 fix(sonar): fail on instrumented Rust test errors 2026-11-13 12:57:30 +00:00
Dylan M. Taylor 6a0e2fae07 fix(sonar): fail after coverage generation errors 2026-11-13 12:51:55 +00:00