Commit Graph
200 Commits
Author SHA1 Message Date
aiongg 735546b11e CI: Windows rust-cache saves again (use v2.9.1) 2026-11-18 17:00:11 +00:00
aiongg 4d5d0ecc97 ci(freebsd): run nightly and on demand only
FreeBSD no longer runs on pull requests or release pushes, so it never blocks a merge or a release.
2026-11-18 15:00:51 +00:00
aiongg 973f310aaa ci(windows): on pull requests skip the tests of platform-neutral packages the change does not reach 2026-11-18 14:56:22 +00:00
aiongg 45e01a84c7 ci: save the dependency caches from build-only warm legs on main 2026-11-18 14:55:44 +00:00
aiongg 5ccb62f44e ci(windows): skip the wasm apps' native tests 2026-11-18 14:52:57 +00:00
aiongg fea993e30c ci(windows): drop the dependency layering check, which the Linux gate runs 2026-11-18 14:52:50 +00:00
aiongg f49a6684f8 ci(windows): run Clippy in its own parallel leg 2026-11-18 14:52:46 +00:00
aiongg 33e41a6539 ci(windows): upload cargo build timings from the test legs 2026-11-18 14:52:38 +00:00
aiongg 39e85bffcb ci(windows): link the test binaries with rust-lld, without ICF or PDBs 2026-11-18 14:52:31 +00:00
aiongg 8bc1e51260 Merge storytold main into main-gate-fixes 2026-11-18 11:06:37 +00:00
FredApps 7c5d0bc6ea Merge pull request #9750 from 1Git2Clone/ci/ast-grep-cli
ci(cli): check the command-line code with ast-grep rules (RFC-0012)
2026-11-18 16:28:06 +07:00
FredApps afff03ebc7 Merge pull request #9860 from dotCooCoo/fix/manual-fuzz-nightly
Select nightly explicitly for the manual fuzz job
2026-11-18 16:21:14 +07:00
aiongg d6d93ace07 CI: craft-fonts cc9269cd8, which has Noto Sans Tamil for the Tamil language name 2026-11-17 21:04:35 +00:00
David Mann 4fe336a8c5 Merge pull request #15248 from davidmann4/ci/windows-gpu-tests-when-related
ci: run the Windows GPU tests only when their inputs change (#15247)
2026-11-17 16:48:42 +01:00
David Mann 2b170887fa Merge pull request #15234 from davidmann4/ci/windows-rust-cache-target
ci: let the Windows rust-cache find the short target directory (#15232)
2026-11-17 16:48:17 +01:00
FredApps 01b79958a7 ci(freebsd): build every target with the test profile so ui-egui's tests fit the VM (#15360)
* ci(freebsd): build with two cargo jobs so the aarch64 cross build fits the VM

The nightly aarch64 leg (a cold cross build of every target in the shared workflow's 12 GB
FreeBSD guest, CARGO_BUILD_JOBS=4) was killed with exit 137 twenty minutes into ui-egui's
targets, while photocraft-web compiled alongside them (run 43936108201). The same cold build
passed on 15 Nov, so it is at the edge of the guest's memory.

Pass `--jobs 2` through the existing cargo-build-extra-args input. It applies to the build step
of both legs; the x86_64 test commands keep the shared four jobs.

* ci(freebsd): build with the test profile, not two jobs

Two jobs didn't fix it: the x86_64 leg of the dispatched run was SIGKILLed the same way at
--jobs 2 (run 43963415772). The killed rustc was ui-egui's lib test target at -C opt-level=1:
`cargo build --all-targets` builds test targets with the dev profile, so Cargo.toml's
`[profile.test.package.photocraft-ui-egui] opt-level = 0` never applied to the build step. That
one optimised rustc over about 390k lines and 7700 tests ran the 12 GB guest out of memory, and
`cargo test` then rebuilt the same target at opt-level 0 (1m47s on x86_64) anyway.

Pass `--profile test` instead, so the build compiles every target as the tests do: ui-egui at
opt-level 0, debuginfo still off through CARGO_PROFILE_DEV_DEBUG=0 (test inherits dev), and the
test commands reuse the build's artifacts.

* ci(freebsd): test ui-egui with the build's package selection

`cargo test -p photocraft-ui-egui` resolves dependency features without the
other workspace members, so egui, epaint and everything above them got new
hashes. The test step then rebuilt ui-egui's lib tests instead of reusing
the build step's, and that rustc was SIGKILLed in the 12 GB guest.

Run ui-egui's lib, doc and integration tests through
`--workspace --features heif --exclude photocraft-gpu`, which resolves the
same units as the build (checked with cargo's unit graph: 0 units missing
from the build, against 146 for `-p photocraft-ui-egui --lib`). The
integration tests share one command, so all of them run one at a time.
2026-11-17 05:28:19 +01:00
David MannandClaude Opus 5.5 0ad38ecc19 Address CodeRabbit review: any package manifest runs the Windows GPU tests
A feature enabled in another member's Cargo.toml unifies into the workspace build the GPU tests
run in, and Cargo.lock does not record features, so a manifest-only change outside the GPU inputs
now selects the tests too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 00:53:09 +01:00
David Mann 322d0309ae ci: count both sides of a move in the Windows GPU test selection (#15247)
git diff names only a rename's destination, so moving a file out of
photocraft-gpu looked like a change in the package it moved to. Also
group the platforms job's output lines (actionlint SC2129).
2026-11-16 00:06:01 +01:00
David Mann 18ca46a3d6 ci: stop when the Windows cache target path cannot be computed (#15232)
An empty path made rust-cache treat the checkout as its target
directory.
2026-11-16 00:05:21 +01:00
David Mann d971810daa ci: run the Windows GPU tests only when their inputs change (#15247)
The Windows runners render the GPU tests on WARP, Direct3D 12's CPU
rasterizer, where photocraft-gpu's tests took half of the integration
leg's test time. Pull requests now skip them on Windows unless they
change photocraft-gpu, a workspace crate it depends on (from cargo
metadata), or a non-documentation file outside the workspace packages.
main, manual runs and full-ci PRs still run them on Windows, and the
Linux gate runs them on every pull request.
2026-11-15 23:32:31 +01:00
David Mann c55c24aa47 ci: save the Windows dependency cache only from green runs (#15232)
A Clippy failure on main saved an entry without the test build's
dependencies, and rust-cache never replaces an entry with the same key.
2026-11-15 23:22:08 +01:00
David Mann 050a1f21e9 ci: let the Windows rust-cache find the short target directory (#15232)
CARGO_TARGET_DIR moved to D:\t, but rust-cache still looked for
<workspace>/target, so the Windows legs restored and saved nothing and
built every dependency on every run. Pass the target directory to
rust-cache as a path relative to the checkout, computed from
GITHUB_WORKSPACE and CARGO_TARGET_DIR.
2026-11-15 21:55:05 +01:00
dotCooCoo a9c86a5e1d Merge main into fix/manual-fuzz-nightly 2026-11-13 20:51:41 -08:00
Dylan M. Taylor b0e0bcc6c4 Merge pull request #14236 from storytold/codex/photocraft-format-migration
Move remaining file formats and codecs to craft-libs (#778)
2026-11-13 23:03:16 -05:00
dotCooCoo 058a9f1fd0 Merge main into fix/manual-fuzz-nightly 2026-11-13 06:35:23 -08:00
FredApps 3665dbd5dc CI: use the shared git-sources check, Trunk install and gate for docs (#13376)
ci.yml's platforms job ran its own copy of the git-sources check; it is
now a git-sources job calling craft-common-actions git-sources.yml.
The web job downloads Trunk through the shared install-trunk action,
which checks the archive's SHA-256, instead of an unchecked curl.
docs.yml builds the book through the shared gate with a prebuilt mdBook
0.4.52, replacing a local job with an unpinned actions/checkout@v7.
2026-11-13 15:16:35 +01:00
dotCooCoo 412251bdbc Merge main into fix/manual-fuzz-nightly 2026-11-12 15:01:00 -08:00
dotCooCoo da8a3f0601 CI: print the nightly compiler version in the manual fuzz job 2026-11-12 14:16:45 -08:00
skylar taylor-barrick cbcd62c8d1 ci: let Cargo handle oversized Windows rustc commands 2026-11-12 21:09:18 +01:00
dotCooCoo a84b260efb Merge main into fix/manual-fuzz-nightly 2026-11-11 14:50:46 -08:00
FredApps f1b5e7d727 CI: nightly release dry run (#13374)
release.yml also runs nightly on main with craft-common-actions' dry-run: every release build
except macOS, with nothing signed, pushed or drafted. Breakage that only the release build hits
(riscv64, Flatpak, FreeBSD, packaging) then shows up the next morning instead of on release
day, as it did on 11 Nov 2026.
2026-11-11 23:04:35 +01:00
Dylan M. Taylor 23c2b85a4f ci: use StepSecurity's maintained actions (#13337)
Each third-party action that StepSecurity publishes a secure drop-in
replacement for now uses that replacement, pinned to a commit with its
version as a comment. Versions follow what we used: the newest
StepSecurity release in the same major, or the closest major they
publish. dtolnay/rust-toolchain refs that named a toolchain (stable,
nightly, 1.76) become the replacement's `toolchain` input.
2026-11-11 16:02:46 -05:00
Dylan M. Taylor e119384a83 ci: run Harden-Runner on every job (#13255)
Adds step-security/harden-runner (audit, pinned to v2.22.4 like
craft-common-actions) as the first step of each job that did not have it,
so every workflow in the org's public repos reports its egress to
StepSecurity. Audit, not block: block-mode allow lists come from each
job's observed traffic.
2026-11-11 12:12:50 -05:00
Tanish Manku c60c112ac2 Merge pull request #10238 from storytold/dependabot/github_actions/actions-dc8bd9b5cf
ci(deps): bump taiki-e/install-action from 2.87.29 to 2.90.2 in the actions group across 1 directory
2026-11-11 00:13:41 -07:00
Dylan M. Taylor 5d4b68f04c Use craft-heif from craft-libs for HEIC/HEIF (#13076)
* Use craft-heif from craft-libs; remove crates/heif

PhotoCraft's HEIF decoder had drifted from LightCraft's by about 700 lines;
both now use craft-heif (storytold/craft-libs#784), built from LightCraft's
copy. HEIC colours now follow the HEVC VUI's range and matrix and libheif's
chroma upsampling. 8-bit files still open as 8-bit documents; a colour
description the VUI specifies now tags the image as an nclx did.

The codecs -> heif standalone exception ends with the local crate, and the
HEIF nextest step drops -p photocraft-heif, which no longer exists.

* Pin craft-heif to the merge of storytold/craft-libs#794

* heif: count the decoder's 16-bit buffer against max_alloc

* heif: match Apple's chroma upsampling; pin craft-heif to storytold/craft-libs#799

* heif: free the decoder's buffer before the HDR conversion and count that conversion's peak

* heif: hold the canvas the decoder really allocates to max_alloc
2026-11-11 01:59:37 -05:00
Tanish Manku e5cffe2375 Merge pull request #7239 from haranishi/review/packaged-cli-docs-20261018
Linux packages: ship the CLI in source Flatpaks and offline automation guides
2026-11-10 23:58:52 -07:00
dependabot[bot] 1ed433a48f ci(deps): bump taiki-e/install-action
Bumps the actions group with 1 update in the / directory: [taiki-e/install-action](https://github.com/taiki-e/install-action).


Updates `taiki-e/install-action` from 2.87.29 to 2.90.2
- [Release notes](https://github.com/taiki-e/install-action/releases)
- [Changelog](https://github.com/taiki-e/install-action/blob/main/CHANGELOG.md)
- [Commits](https://github.com/taiki-e/install-action/compare/8cca0918f8471c33515202b73f56ab27f2bed283...3a3daafd3b7f23b8f65d9f5ba2db203fb59b79e2)

---
updated-dependencies:
- dependency-name: taiki-e/install-action
  dependency-version: 2.87.32
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-11-10 11:07:05 +00:00
Martin BallandClaude Opus 5.5 0c628208b5 build(i18n): embed the craft-i18n catalogs pinned in craft-i18n.rev
- `craft-i18n` crate (craft-libs c5a1cbfb, PhotoCraft's existing pin; already in the tree through
  craft-ui) as a ui-egui dependency.
- build.rs writes `CRAFT_I18N` from `CRAFT_I18N_DIR`: one (locale, common.tsv, photocraft.tsv)
  entry per locale with a PhotoCraft catalog, paths written with `{:?}` and never canonicalized.
  Unset: empty, English only; `CRAFT_I18N_REQUIRED=1` makes a missing checkout an error.
- `craft-i18n.rev` pins storytold/craft-i18n 4bafe3ed (the cutover sync of photocraft@848fa30),
  LF through `.gitattributes`.
- Both flatpak manifests fetch craft-i18n at that commit; the source build sets `CRAFT_I18N_DIR`
  and `CRAFT_I18N_REQUIRED=1`. A test keeps both manifests equal to the pin.
- ci.yml: the Windows, without-heif and web jobs check out craft-i18n at the pin, as the shared
  gate and release workflows do; a pin bump selects the web and Windows jobs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-08 16:16:46 +00:00
David Mann 017c4aab9e Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/scorecard.md
2026-11-06 22:57:46 +01:00
2ff8f419cb ci: run the GPU tests on lavapipe on Linux and fail if they skip (#7975)
The Linux runner has no GPU, so the GPU tests ran on Mesa llvmpipe over
GL, which can't render Rgba32Float: 57 GPU checks (50 GPU parity, 3
canvas, 2 adjustment preview parity, 2 effect-map recovery) returned
early and passed without comparing anything. A new step after Test
installs mesa-vulkan-drivers and runs the nextest `gpu` group on
lavapipe (Vulkan), reusing Test's build, and fails unless the parity
tests report the Vulkan backend and no test printed a skip.

No code change: photocraft's tests take whatever adapter wgpu returns,
software adapters included. Follows the CI half of lightcraft#1148.

Co-authored-by: FredApps <FredApps@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 18:44:13 +01:00
FredApps 7d8648dfcb Copy the shared house rules into AGENTS.md.
The blocks come from craft-contrib at dde09ea31e2e457f5b4653a6e76f7cdf55944bdf. The house-rules workflow checks the copy.
2026-11-06 11:50:05 +01:00
David Mann 66c328dc2b Merge commit '9bef3b2dc8b84c1b6cefc8ce0dc2b01d089cd9e8' into HEAD
# Conflicts:
#	docs/scorecard.md
2026-11-06 02:29:28 +01:00
Luis daa9a01955 Release: refresh contributor credits for each release (#8737) (#11426)
About > Contributors still showed a snapshot from 2026-10-10, because
nothing regenerated contributors/contributors.json before a release.
Opt in to the shared refresh from craft-common-actions: a read-only
credits job regenerates the snapshot for the release commit, and the
shared release workflow installs it before every source build. The
snapshot is not committed back.
2026-11-05 17:23:30 +01:00
Dylan M. Taylor 8e9277e20e Pass the Linux signing key to the release workflow (#11344) 2026-11-04 17:44:58 -05:00
David Mann 4bbe9c78de Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/scorecard.md
2026-11-03 20:32:22 +01:00
haranishi a156e4f2e3 Merge upstream main into review/packaged-cli-docs-20261018
Main now installs photocraft-cli, its man pages and shell completions, and the
NOTICE files in the Linux packages. Keep those and add what this branch still
provides: the CLI and the two offline automation guides (docs/mcp.md and
docs/control-protocol.md) in the source Flatpak manifest, and the guides in the
package staging directory.
2026-11-03 23:54:18 +09:00
dotCooCoo 47d16badcc Merge main into fix/manual-fuzz-nightly 2026-11-02 14:40:37 -08:00
Dylan M. Taylor 05b615fb1b ci: grant packages write permission to release workflow 2026-10-31 23:42:56 -04:00
Dylan M. Taylor 382b047c30 Merge pull request #10223 from FredApps/ci/test-runtime-2026-10-29
test: partition long parity matrices without dropping cases
2026-10-30 07:12:16 -04:00
Dylan M. Taylor 0379569d00 CI: workflows only call craft-common-actions at @main (#10228)
AGENTS.md (and CLAUDE.md where present) gets a CI workflows section: workflows only call
craft-common-actions at @main, with no other jobs; feature and fix PRs don't touch CI and
link or open a craft-common-actions issue (a PR only for a small fix that is safe for
every app and does not increase CI time); legacy jobs
aren't added to and move only as their own task, staying until a shared workflow runs them.

windows-arm64.yml moves from its SHA pin to @main. The pinned revision is on
craft-common-actions main and the workflow (and the actions it calls) is identical
there, so nothing changes in behaviour.
2026-10-29 22:22:28 -04:00