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.
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.
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.
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.
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.
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.
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.
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.
- 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.
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.
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.
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.
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
* 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]>
* Use the document mutator in the damage-history fixture
* Compile the archive driver without framework-only lint dependencies
---------
Co-authored-by: FredApps <[email protected]>
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
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
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.
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.