Commit Graph
259 Commits
Author SHA1 Message Date
skylartaylor 783fca77ec Accept main's current Sonar vulnerabilities as debt for the first run
The policy's Sonar debt is now exactly main's 15 open VULNERABILITY issues,
re-read live from SonarCloud at analysis 19880b44-8bb0-4538-a124-437045a56be2
(commit 27c629f789): the 8 pinned before plus 7 new
pythonsecurity:S8707 issues in scripts/engine_split. The gate conditions are
unchanged. The epoch names the new analysis, and the guide records it.
2026-11-24 14:40:01 +01:00
skylartaylor c4f05da1ce Fill in the producer workflow ID now that nightly.yml is on main
producer_workflow_id is 428462603, read from
gh api repos/storytold/photocraft/actions/workflows/nightly.yml (path
.github/workflows/nightly.yml, state active). The shared validator at the
callers' pin now accepts the policy as committed, and the contract test
requires a real numeric ID.
2026-11-24 01:41:44 +01:00
skylartaylor 73e04afa97 Let every release manager who can push start nightly runs by hand
The producer's manual-actors and the policy's manual_actors are now the five
members of the release-managers team (id 19837241) with push access:
bflatastic, dylanmtaylor, echelon, FredApps and skylartaylor, sorted the same
way in both. echelon-robot only has read access and is left out. There is
still no automatic signer, no schedule, and the dispatcher stays off.

The contract test requires that exact list in both places and refuses an
actor outside it, a reordered list or a case change.
2026-11-24 01:10:57 +01:00
skylartaylor 6db0b273fe Pin the nightly callers to craft-common-actions #339
Both callers and the policy's tooling revisions move from a4f6fd51 (#342) to
605d58766e8f536564da8fc81d3676ac86816dea, the main commit that merged #339:
bounded lineage compares, an unresolved-issue reread at the end of candidate
admission and a 1024-character Windows subject bound at policy validation.
Neither callee's inputs nor the policy fields change.
2026-11-24 01:06:55 +01:00
skylartaylor 881757d49b Enable the PhotoCraft nightly for supervised manual runs
The producer and release-ref signer callers drop their literal off-guard and
keep only their exact context guards. Both run only when dispatched by the
reviewed manual actor, skylartaylor, who is listed in the producer's
manual-actors and in the policy. nightly-dispatch.yml stays off and there is
no schedule.

.github/nightly-signing-policy.json installs the v3 policy from values read
at their sources: the repository ID, the callers' shared pin, CI's workflow
and jobs, the SonarCloud project, gate and open vulnerabilities, and the
stable v0.23.1 platform identities. producer_workflow_id stays null until
nightly.yml is registered on main, so the shared validator refuses the policy
until that ID is committed.

The contract tests check the guards, the manual actor, the policy's ties to
the callers, Sonar properties and CI triggers. The preparation guide lists
each value's source.
2026-11-24 00:29:49 +01:00
skylartaylor bf3f64b097 Merge the Apple-silicon Nightly build (#16559) into the nightly callers
Both branches added a nightly test file: sonar-project.properties and the
packaging/nightly-tests.py suite list keep both, and the Sonar fixture test
expects packaging/macos/nightly_sign_tests.py as well.
2026-11-23 23:34:46 +01:00
skylartaylor 2297b4fa8f Keep unlabelled events out of the macOS build's concurrency group
A push to a full-ci PR and the label event arrive together; the event that would be skipped
was sharing the group and cancelling the real build.
2026-11-23 21:23:08 +01:00
skylartaylor df3345c164 Keep the unsigned macOS Nightly archive as a short-lived artifact
Seven-day retention, unsigned zip only, no secrets. It lets keyless signer tests and hand
testing use the exact verified build.
2026-11-23 21:20:28 +01:00
skylartaylor df9e561409 Pin the nightly callers to the merged multi-platform shared signer
Both callers now name craft-common-actions a4f6fd51e854773de8b24b4f92e1ad7e770c08d7, the main
commit that merged #342 (policy v3, the platforms input and the Linux and
macOS legs, all switched off), in uses and tooling-revision. The contract
test now also requires a full 40-character commit for the shared pin.
Every job stays literally off with no schedule.
2026-11-23 20:49:57 +01:00
skylartaylor 7df5eb88a4 Merge storytold/photocraft main into the nightly caller branch 2026-11-23 20:45:56 +01:00
Dylan M. Taylor f0943fb57f revert: restore scheduled release.yml dry-run on main (#16563) 2026-11-23 14:44:36 -05:00
skylartaylor 2e70450923 Run the macOS Nightly PR build only with the full-ci label
macOS runners are shared with release builds: no path filters, and a pull
request runs the job only when it carries full-ci (a labeled event only
when the added label is full-ci). ci.yml's concurrency pattern keeps other
labels from running or cancelling a run. workflow_dispatch stays.
2026-11-23 19:57:28 +01:00
skylartaylor 1739753b32 Address review: macOS-only exit hook, clean-tree recheck, wider refusals
- The Nightly exit hook is installed only on macOS; Linux and Windows keep
  finishing the session after run_native returns.
- nightly_build_gui checks the tree is still clean after --version (Linux).
- nightly_refuse_signing_env also refuses the Windows, Azure and Linux
  signing names release.yml passes.
- nightly-sign.sh drops the single spctl run before the retried final check.
- nightly-macos.yml also runs for Cargo.toml, Cargo.lock and the text and
  ui-egui build scripts.
2026-11-23 19:52:54 +01:00
skylartaylor 2dcc260e87 Add the macOS row and stable trust anchors to the dormant nightly callers
The single producer job now lists windows-x86_64, linux-x86_64 and
macos-aarch64, so one producer run builds all three platforms for one
all-or-nothing release. The signer caller still has no platform input; the
release-ref signer admits platforms from the protected v3 policy and reads
signing secrets from the release environment, so neither caller forwards
secrets.

Both callers pin a placeholder for the unmerged multi-platform shared
signer. It must be replaced with the reviewed merged commit before this is
published or activated. Every job stays literally off with no schedule.

The v3 policy example now carries each platform's fixed
nightly-unsigned-<platform> artifact kind and stable's public identities:
the Windows Authenticode subject, the Linux release key fingerprint and the
Apple Developer ID team DJ6XS33FX8 (read from the v0.23.1 macOS code
signature). Other authority values stay null and no policy is installed.

.github/nightly-linux-signing-key.asc is the v0.23.1 release-signing-key.asc
byte for byte. The contract tests check that it holds exactly one public
primary key matching the policy fingerprint, that every platform row names its
artifact kind and identity, and that both callers share one pin.
2026-11-23 19:49:42 +01:00
skylartaylor 4d96a88d15 Add the Linux row to the dormant nightly callers
The single unsigned producer job lists linux-x86_64 beside windows-x86_64:
one producer run builds both platforms for one all-or-nothing release, and
the release-ref signer admits platforms from the protected policy, so there
is no separate Linux job and nightly-sign.yml is unchanged. The pinned shared
revision has no platforms input or Linux leg yet; the callers must be
re-pinned to a reviewed commit that defines them before activation. Every
job stays literally off.

The policy example moves to v3 with a per-platform map; each platform keeps
only its own trust anchor and every authority value stays null.

Packaging lint path filters now cover the files the contract tests read: the
policy example, the installed policy and Linux key paths, and the Sonar
properties.
2026-11-23 19:43:48 +01:00
Dylan M. Taylor c1c1c51ea6 ci(release): publish scheduled nightly prereleases (#16551) 2026-11-23 13:16:28 -05:00
skylartaylor 99ecdd0b0e Build the unsigned macOS Nightly in pull-request CI
A hosted macos-15 job, with no secrets or environment, builds the
aarch64 Nightly bundle with packaging/macos/nightly.sh when a pull
request changes the Mac Nightly packaging or flavor, and checks it with
nightly-verify.sh --expect unsigned, including the bundle's version.
2026-11-23 18:33:34 +01:00
skylartaylor 3ad7d775e6 Pin the dormant nightly callers to merged craft-common-actions main
craft-common-actions #330 merged as 077d4657. Both reusable workflows keep the
same inputs and secrets; the callers stay literally off.
2026-11-23 17:26:00 +01:00
FredApps 947c677c9f Merge branch 'main' into nightly/windows-flavor 2026-11-23 16:58:09 +01:00
Dylan M. Taylor 163fa9ff92 ci(release): forward ARTCRAFT_SERVICES_DISPATCH_TOKEN secret (#16535) 2026-11-23 09:32:59 -05:00
aiongg 5dfd031e77 Gate: unreached .rs files fail in strict mode; drop unused test items 2026-11-23 06:06:58 +00:00
skylartaylor 5cd4bc3d1c Merge main into nightly/windows-flavor (picks up #16483) 2026-11-23 05:57:20 +01:00
skylartaylor 182269b47d Refresh dormant nightly policy and shared-source pin 2026-11-23 00:23:35 +01:00
skylartaylor 6d7d26a737 Keep dormant nightly callers lintable and guarded 2026-11-22 22:55:31 +01:00
skylartaylor f0d32c68cd Prepare dormant PhotoCraft release-ref nightly callers 2026-11-22 22:19:21 +01:00
aiongg 519a0c22a3 Engine split step 3: top crate with the wrapper Session
crates/engine keeps the package photocraft-engine: src/facade.rs re-exports
photocraft-engine-core, and its Session wraps core's and installs every engine
command. Core's Session::new() installs nothing; core gets install() and session().
The command registry keeps main's behaviour (empty before an install).

The top crate's dev-dependencies cover tests/ and examples/, including
craft-develop-model (camera raw baseline test) and photocraft-testkit (the
corpus-gated Photoshop oracle test). Dependents that need the core type or
borrowed two fields through the wrapper are fixed at the call site, and tests
that reach the registry before any session install first.

Tooling follows the package: workspace dependency, cl selection, xtask layers,
i18n report, scorecard and corpus paths, nextest overrides, ci-test-times rows,
display-names roots, prefs_usage paths, the engine split scripts, docs, and the
two release-perf steps in ci.yml.

Corpus .atn paths, the layer_menu registry read and the craft-develop-model
dev-dependency are FredApps' fixes from #16431.

Part of #15710
2026-11-22 19:29:06 +00:00
aiongg 3e05a3747b Merge remote-tracking branch 'upstream/main' into HEAD
# Conflicts:
#	.github/workflows/ci.yml
2026-11-22 15:29:46 +00:00
Dylan M. Taylor fc3cc747e9 ci: use artcraft-k8s-main runner on main (#16407) 2026-11-22 09:33:44 -05:00
aiongg 44ac69dede Merge upstream/main into ci-pin-toolchain; gate runs when platforms fails, cold cache clear keeps newer entries, panic_hunt timeout 2026-11-22 05:59:39 +00:00
Dylan M. Taylorandaiongg e084cb8552 ci: use artcraft-k8s-trusted runner on main (#16368)
* ci: use artcraft-k8s-trusted runner on main

* ci: sccache on main runs, which use the shared cluster cache on the trusted runners

---------

Co-authored-by: aiongg <[email protected]>
2026-11-22 00:03:23 -05:00
skylartaylor fdec30403d Report existing packaging tests to Sonar without excluding helpers 2026-11-22 00:21:16 +01:00
FredAppsandFredApps c0771fe72b Build the CI archive driver without framework-only lint dependencies (#15963)
* Use the document mutator in the damage-history fixture

* Compile the archive driver without framework-only lint dependencies

---------

Co-authored-by: FredApps <[email protected]>
2026-11-21 00:07:08 +07:00
aiongg 5351576daf tests: the corpus tests take a fixed sample per directory; the nightly run sweeps every file
The real-file corpus tests the Linux gate runs took up to 394 s each (the psd-tools mutation
sweep), 780 test-s together. Each now walks a fixed sample chosen for coverage (photocraft-testkit
`corpus`: every colour mode and depth, PSD and PSB, the block kinds outside the large files, each
oracle kind, smart objects, vector blocks, type) and stays under a second. PHOTOCRAFT_FULL_SWEEP=1,
the switch the testkit sweeps already read, takes every file; the nightly run sets it.

- Oracles keep floors for the sample next to the full floors.
- The mutation sweep cuts and corrupts each sampled file 12 times instead of 31.
- The layered TIFF test takes the psd-tools sample.
- The smart-object test imports only files with a placed-layer block (full sweep: 32 s to 5 s).
- The blend-mode tests import once and render only the compared cells.
- The 16.8 MP spot-channel file runs in full sweeps only; the generated files check the same reading.
- The #1606 special-shapes test is the affinity table's row for that file plus its warning check.

Part of #15711
2026-11-20 07:23:46 +00:00
aiongg ff61830706 ci: rust-channel at its merged commit; the corpus job goes
The gate's shards run the corpus tests.

Part of #15711
2026-11-20 04:35:07 +00:00
aiongg a794786de0 Revert "[trial] rust-channel from the aiongg branch of craft-common-actions#302"
This reverts commit 31fdd41262.
2026-11-20 04:35:01 +00:00
aiongg 3dd74f6bdb ci: the nightly run warns about a newer Rust release instead of opening a pull request
Part of #15711
2026-11-20 04:21:51 +00:00
aiongg f08d65ac69 ci: the Linux gate builds the real-file corpus tests in and its shards fetch the corpora
Part of #15711
2026-11-20 04:16:53 +00:00
aiongg d5e182a725 ci: a pull request's Linux gate tests only the packages its changes reach
Part of #15711
2026-11-20 04:15:47 +00:00
aiongg c03a989f5a ci: the nightly cold run deletes the old rolling crates entries before it saves its own
Part of #15711
2026-11-20 04:15:10 +00:00
aiongg 31fdd41262 [trial] rust-channel from the aiongg branch of craft-common-actions#302 2026-11-20 04:14:10 +00:00
aiongg 5612b2dfd4 ci: pin the toolchain in rust-toolchain.toml
The file is the one source: the jobs install what it names through
craft-common-actions' rust-channel action, and the nightly run opens a pull
request that changes only the file when a newer stable exists.

Part of #15711
2026-11-20 04:14:10 +00:00
aiongg 629c0ffb75 ci: build every CI job with one pinned Rust release
Part of #15711
2026-11-20 04:02:11 +00:00
aiongg 4d91c2ec04 Merge pull request #15826 from aiongg/ci-shard-archives
CI: one test archive per shard, balanced by recorded test times
2026-11-19 20:03:50 -05:00
aiongg 7a2dbc9b6f Merge pull request #15828 from aiongg/ci-cache-budget
CI: keep the Actions cache within its budget (trim saved entries, prune replaced ones as they land)
2026-11-19 19:50:16 -05:00
aiongg 0b09cee9f9 ci: prune each replaced cache entry as soon as its successor is saved
cache-prune replaces gate-cache-prune. It starts with the run (the gate is one reusable call, so
needs: gate waited for every shard) and runs craft-common-actions' cache-prune action in watch
mode: each time the gate's build jobs, web or corpus finish, it deletes the entries their new
entries replace (the older rolling crates entry, and lockfile- or manifest-keyed entries nothing
used since), and it ends when none of those jobs is queued or running.
2026-11-19 22:20:51 +00:00
aiongg aac8e37bec CI: one test archive per shard, balanced by recorded test times
The gate's build job writes one nextest archive per shard (craft-common-actions gate.yml
shard-archives), so each shard downloads only the test binaries it runs instead of the whole
2.4-2.6 GB archive.

`cargo xtask ci archive` builds and lists the tests once, then plans the shards
(xtask/src/shards.rs): whole binaries go to the lightest shard, heaviest first, by the times in
.config/ci-test-times.tsv; a binary heavier than half a shard's share is split by test filter along
its module tree, and its executable goes into each archive that runs part of it. On Linux shard 1
takes every binary with gpu-group tests. The build checks that every test runs on exactly one shard,
writes the plan into the target directory, which every archive carries, and archives each shard
with `cargo nextest archive -E`. A shard runs `xtask ci tests --shard <k>` with its part of the
plan; the slice partition is gone.

scripts/ci-test-times.py refreshes the times file from a CI run's shard logs; a missing or stale
row only costs balance.
2026-11-19 20:47:26 +00:00
aiongg 8ca6d3c767 web CI: skip wasm-opt --converge on pull requests 2026-11-19 20:19:35 +00:00
aiongg aeeebb8e78 ci: shared workflows and actions from storytold/craft-common-actions main 2026-11-19 14:19:10 +00:00
aiongg 57847bd8bd ci: restore gate-cache-prune as a job of this workflow; lint legs keep no cache 2026-11-19 14:05:14 +00:00
aiongg 0057b98577 ci: cache budget: no lint or coverage-build caches, the rolling entry pruned right after the build 2026-11-19 13:58:15 +00:00