Repository navigation
ci: add Linux x64 CI workflow (partially closes gap #9) - #941
squareSphere29 wants to merge 4 commits into
Conversation
squareSphere29
commented
Oct 11, 2026
- Runs cargo xtask ci on ubuntu-22.04 for every push/PR to main
- Mirrors FreeBSD/release.yml patterns: pinned actions, craft-fonts, deps
- Hardened per adversarial review:
- retry=3 on checkout (x2) and rust-toolchain
- rust-cache key includes Cargo.lock hash (prevents cache poisoning)
- actions/cache on apt packages (saves 2-3 min/run)
- RUST_TEST_THREADS=4 (prevents frame-budget flakes)
- CARGO_TARGET_DIR isolated per run
- timeout-minutes: 45 (realistic, catches hangs)
- Partially addresses Gap .mplumpack - preset compatibility needed #9: "Tests don't run in CI on macOS, Windows or Linux x64"
- Linux x64: ✅ done
- macOS: ⬜ pending (follow-up PR)
- Windows: ⬜ pending (follow-up PR)
- Remaining Gap .mplumpack - preset compatibility needed #9 effort: ~4-8 hrs for macOS + Windows job
|
Thanks for this, and for the EXIF strip fix in #949: I'm landing that one separately (just its two For the CI workflow itself, a few things need changing before it can go in:
There's also a policy question here, since #901 moves the slow platform jobs to nightly. Per-PR Linux CI is the maintainers' call, so I'll leave this open for them. If you haven't already, come and join us on Discord: https://discord.gg/artcraft Generated by Claude Code |
7f2e25b to
f2eac0b
Compare
68074b8 to
f2eac0b
Compare
- Runs cargo xtask ci on ubuntu-22.04 for every push/PR to main - Mirrors FreeBSD/release.yml patterns: pinned actions, craft-fonts, deps - Hardened per adversarial review: - retry=3 on checkout (x2) and rust-toolchain - rust-cache key includes Cargo.lock hash (prevents cache poisoning) - actions/cache on apt packages (saves 2-3 min/run) - RUST_TEST_THREADS=4 (prevents frame-budget flakes) - CARGO_TARGET_DIR isolated per run - timeout-minutes: 45 (realistic, catches hangs) - Partially addresses Gap storytold#9: "Tests don't run in CI on macOS, Windows or Linux x64" - Linux x64: ✅ done - macOS: ⬜ pending (follow-up PR) - Windows: ⬜ pending (follow-up PR) - Remaining Gap storytold#9 effort: ~4-8 hrs for macOS + Windows job
- Remove retry=3 (not a valid input for checkout/rust-toolchain) - Drop apt cache step (caching /usr/lib is fragile; rust-cache is enough) - Expand PR paths to trigger on all .rs/.toml/.lock changes - Ensure trailing newline
f2eac0b to
7bf19b7
Compare
`cargo xtask ci` has never passed on Windows: nothing ran the suite there (gap storytold#9), and running it here surfaced five separate blockers. Each would have turned the new job red on its first run. Workflow: - Install `wasm32-unknown-unknown`. `cargo xtask ci` ends with the wasm32 check, so without the target the gate fails with "can't find crate for `std`". release.yml already sets it for the web job, for the same reason. - Add the `windows-x64` job: the same `cargo xtask ci`, no system dependencies (the HEIF decoder is pure Rust, and MSVC, freetype and fontconfig come with the toolchain), and `CARGO_TARGET_DIR` off the workspace because MSVC hits the 260-character path limit. - Widen `paths:` to `assets/**` and `docs/parity-checklist.md`: the gate's assets and parity steps read exactly those, so a PR breaking either could go unverified. - Drop `desktop-file-utils`, `appstream`, `python3-yaml` and `zsync` from the Linux apt line. They are packaging tools for `packaging/linux/package.sh`; `cargo xtask ci` never invokes them. Code and tests, so the gate is green on both platforms: - `pipeline/src/spots.rs`: `chunks_exact(3)` -> `as_chunks::<3>()`, a clippy lint new in Rust 1.99. Toolchain drift, not platform-specific. - `catalog/src/lock.rs`: `descriptor_copy` was `#[cfg(test)]` but only called from a `#[cfg(unix)]` test, so on Windows it compiled unused and `-D warnings` failed the build. - `gpu/src/backend.rs`: `disarm` removes the init marker best-effort and discards the error, so a Windows scanner holding the file open makes `remove_file` fail with a sharing violation. Poll briefly before asserting it is gone. - `engine/src/rename.rs`, `engine/src/tests_folders.rs`: compare paths as `Path`/`PathBuf`, not as text. The catalog stores the native path the move wrote (`\` on Windows) while `join` keeps the `/` of its argument; only `Path`'s equality normalizes separators. - `engine/src/sidecar.rs`, `tests_filesystem_history.rs`, `tests_repair_companions.rs`, `apps/lightcraft/src/editors.rs`: the sidecar-repair tests build sidecars differing only in case, which is one file twice on a case-insensitive volume, and the `.desktop` test uses a POSIX path that is not `is_absolute()` on Windows. Gate those Unix only; every one of them still runs unchanged elsewhere. Verified on Windows x64 (MSVC, rustc 1.99.0): `cargo xtask ci` passes all eight steps, `cargo test --workspace` 3012 passed / 0 failed. Two known gaps, left to the maintainers: the toolchain is floating `stable`, so a new clippy lint can turn every job red with no repo change (a pin or a lint budget would fix that); and the sidecar-repair code assumes a case-sensitive filesystem, which Windows cannot answer for its users either way — worth its own issue.
Completes the platform coverage in gap storytold#9 with the third main platform. Same `cargo xtask ci` as the other two jobs, on `macos-14` (arm64), with `wasm32-unknown-unknown` installed for the same reason the other two jobs now set it and no system dependencies to install. Why it does not run on pull_request: larger macOS runners are budget-capped and reserved for release.yml (see its comment on `macos-15-xlarge`), so this uses a standard hosted runner, and macOS minutes bill at roughly 10x Linux. Running it on every PR would be the most expensive thing in the file, so it runs on pushes to main, a weekly schedule (matching windows-arm64.yml's cron) and workflow_dispatch. The `if:` line is the entire decision; deleting it makes this run on every PR too, which is a one-line change if the trade-off is ever judged differently. `RUST_TEST_THREADS` is 3 here: this runner has 3 vCPU, against 4 on the Linux and Windows runners, so it would otherwise oversubscribe the harness. Not verified from a macOS machine, unlike the Linux and Windows jobs, which were both run end to end before being proposed. Treat the first run as exploratory rather than a formality.
|
Findings, for the maintainers
|
Release protection: CODEOWNERS for workflows, document release rules