Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
efcec73
Issue #989: the desktop app builds on macOS again (Quit from the menu…
nledford Oct 11, 2026
e5fd089
Issue #989: the lock test finds true on the PATH (macOS has no /bin/t…
nledford Oct 11, 2026
2801199
Issue #989: fill_box reads its buffer with as_chunks::<3>() (clippy 1…
snofla Oct 11, 2026
8760dc4
Issue #989: odd_folders_never_fail_the_check skips its non-UTF-8 name…
snofla Oct 11, 2026
dd1a857
Issue #989: the ten sidecar repair tests also pass on a case-insensit…
snofla Oct 11, 2026
0e53cfc
Issue #989: the Export dialog height test expects the macOS row (Add …
snofla Oct 11, 2026
3b850c7
Issue #989: format the lock test (the shorter command fits on one line)
nledford Oct 11, 2026
2da4b36
Windows: keep sidecar spellings on case-insensitive volumes; fix rena…
OneSlips Oct 11, 2026
6c79be9
Windows: desktop entry paths, toolchain lints
OneSlips Oct 11, 2026
e9178ec
fix: Before側クリックのズーム位置を正しく計算 #1035
haranishi Oct 11, 2026
a06277b
test(gpu): #1050 opt-in software adapter for the equivalence tests
THEtheChad Oct 11, 2026
1da831e
ci: #1050 run the tests on Linux, macOS and Windows
THEtheChad Oct 11, 2026
3d24172
docs: #1050 gap 9 shrinks: tests in CI on the three desktop platforms
THEtheChad Oct 11, 2026
6e68462
fix: macOSのCI失敗を解消しPR全件を検証 #989
haranishi Oct 11, 2026
f4fed3a
fix: CI修正を取り込み提出コミットを検証 #1035
haranishi Oct 12, 2026
056c7d4
fix: WindowsのCI失敗修正を統合 #1050
haranishi Oct 12, 2026
68079ad
ci: 3OSとGPUのCIを既存PRへ統合 #1050
haranishi Oct 12, 2026
4a5ecc7
fix: 3OSのCI修正を取り込み再検証 #1035
haranishi Oct 12, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
140 changes: 140 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
# Tests on the three desktop platforms, on every pull request and every push to main (gap 9).
#
# - Linux runs `cargo xtask ci`, the same gate contributors run before a commit (fmt, clippy,
# heif, tests, parity, layers, assets, wasm), so whatever is added to it is checked here too.
# - macOS and Windows run what differs per platform: clippy and the workspace tests (code behind
# `cfg(target_os)` only compiles there; issue #989). fmt, parity, layers, assets and wasm give
# the same answer everywhere, so they run once, on Linux.
# - The GPU tests (CPU <-> GPU equivalence, fallback, memory, shutdown) skip when there is no GPU
# adapter. Linux and Windows runners have no GPU: `LIGHTCRAFT_GPU_ALLOW_SOFTWARE=1` (tests only;
# the app refuses software adapters) lets them use Mesa's lavapipe on Linux and WARP (DX12) on
# Windows. macOS runners expose a Metal device. The GPU step fails if the tests skip anyway
# (`skipped: no GPU adapter`, or `skipped (gpu): ...` from lightcraft-testkit's `skip!`, #1037).
# On macOS and Windows it names the test targets with `--workspace`, which reuses the build of
# the test step (under a minute of building). On Linux, after `cargo xtask ci`, the same command
# rebuilt about 190 crates (7 min), so it runs `lightcraft-gpu`'s tests only (about 2 min).
#
# Standard GitHub-hosted runners only: free for public repositories. Never a larger runner here
# (release.yml's macos-15-xlarge is budget-capped).
name: CI

on:
push:
branches: [main]
pull_request:
workflow_dispatch:

concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
# what `cargo xtask ci` uses: backtraces with line numbers, a fraction of full debuginfo's RAM and cache
CARGO_PROFILE_DEV_DEBUG: line-tables-only
RUST_BACKTRACE: 1

jobs:
linux:
name: Linux x86_64 (xtask ci, GPU tests on lavapipe)
runs-on: ubuntu-latest
timeout-minutes: 90
env:
CRAFT_FONTS_DIR: ${{ github.workspace }}/craft-fonts
CRAFT_FONTS_REQUIRED: "1"
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
# Optional font build input, so the Japanese and Chinese font tests run (they skip without it).
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: storytold/craft-fonts
ref: 8dcdacd5153e64560d109541a47d806f26f048c0 # bump deliberately
path: craft-fonts
persist-credentials: false
- name: Install system libraries and Mesa's Vulkan drivers (lavapipe)
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
libxkbcommon-dev libwayland-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev \
mesa-vulkan-drivers libvulkan1
- uses: dtolnay/rust-toolchain@686976e191b89faba57d3206551f0f330d8cb249 # stable
with:
components: rustfmt, clippy
targets: wasm32-unknown-unknown
# Dependencies only (rust-cache drops the workspace's own artifacts), saved from main and
# restored by pull requests, so the 10 GB cache holds one entry per job.
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
with:
key: ci
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: cargo xtask ci
run: cargo xtask ci
- name: GPU tests on a software adapter
if: ${{ !cancelled() }}
shell: bash
env:
LIGHTCRAFT_GPU_ALLOW_SOFTWARE: "1"
run: |
cargo test -p lightcraft-gpu --locked --tests -- --nocapture 2>&1 | tee "$RUNNER_TEMP/gpu-tests.log"
if grep -qE "skipped( \(gpu\))?: no GPU adapter" "$RUNNER_TEMP/gpu-tests.log"; then
echo "::error::the GPU tests skipped: the runner offered no GPU adapter"
exit 1
fi

desktop:
name: ${{ matrix.name }}
runs-on: ${{ matrix.runner }}
timeout-minutes: 90
strategy:
fail-fast: false
matrix:
include:
- { name: "macOS arm64 (clippy, test, GPU tests on Metal)", runner: macos-latest }
- { name: "Windows x86_64 (clippy, test, GPU tests on WARP)", runner: windows-latest }
env:
CRAFT_FONTS_DIR: ${{ github.workspace }}/craft-fonts
CRAFT_FONTS_REQUIRED: "1"
steps:
# Check files out as committed: tests compare bytes of fixtures and docs.
- name: Keep line endings
run: git config --global core.autocrlf false
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
repository: storytold/craft-fonts
ref: 8dcdacd5153e64560d109541a47d806f26f048c0 # bump deliberately
path: craft-fonts
persist-credentials: false
- uses: dtolnay/rust-toolchain@686976e191b89faba57d3206551f0f330d8cb249 # stable
with:
components: clippy
- uses: Swatinem/rust-cache@6323deb102c322ba6fcbdcafc7e3dddab59af2b6 # v2.9.2
with:
key: ci
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: cargo clippy
run: cargo clippy --workspace --all-targets --locked -- -D warnings
# every failing test binary, not only the first: platform failures tend to come in groups
- name: cargo test
if: ${{ !cancelled() }}
run: cargo test --workspace --locked --no-fail-fast
- name: GPU tests on a software adapter
if: ${{ !cancelled() }}
shell: bash
env:
LIGHTCRAFT_GPU_ALLOW_SOFTWARE: "1"
run: |
cargo test --workspace --locked --test equivalence --test fallback --test memory \
--test shutdown --test shutdown_first -- --nocapture 2>&1 | tee "$RUNNER_TEMP/gpu-tests.log"
if grep -qE "skipped( \(gpu\))?: no GPU adapter" "$RUNNER_TEMP/gpu-tests.log"; then
echo "::error::the GPU tests skipped: the runner offered no GPU adapter"
exit 1
fi
8 changes: 5 additions & 3 deletions ROADMAP.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

**Stage: alpha** · next: beta, ~14 points and ~340–600 h away

> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-11 · **Change:** minor (EOS R5 Mark II CR3 verified; RAW decoding 77%) · **Target:** Adobe Lightroom Classic 15.5 / Lightroom 9.6
> **Last reviewed:** 2026-10-10 · **Last updated:** 2026-10-11 · **Change:** minor (tests in CI on macOS, Windows and Linux, not green yet; EOS R5 Mark II CR3 verified; RAW decoding 77%) · **Target:** Adobe Lightroom Classic 15.5 / Lightroom 9.6

One-page summary of how close LightCraft is to Adobe Lightroom. Agents: read this, then pick work
from [docs/gaps.md](docs/gaps.md). The full assessment, method and evidence are in
Expand Down Expand Up @@ -31,7 +31,7 @@ Each audience with its own hours (Opus 5.5 agent wall-clock hours to ~95%):
The gap between breadth and readiness is quality and coverage, not missing buttons: camera colour is
estimated rather than measured, CR3 decodes on four verified Canon bodies, compressed ORF and HE NEF
open as previews, rendering is tuned by eye, AI masks are heuristics, there is no lens database, and
tests run in CI on FreeBSD only. **Why alpha:** core workflows run end to end, but readiness is below
`main` does not yet pass the tests CI now runs on macOS, Windows and Linux (`ci.yml`). **Why alpha:** core workflows run end to end, but readiness is below
the ~75% beta bar (it is above the ~40% alpha bar) and Lightroom's main inputs, raw files, still have blocking gaps (Canon, ~30% of
raw users, decodes CR3 on four verified bodies). It passes the alpha gate: all six core workflows
(import, cull, develop, save and reopen, batch looks, export) work end to end on macOS
Expand Down Expand Up @@ -109,11 +109,12 @@ Ranked toward beta; detail in [docs/roadmap.md](docs/roadmap.md), gaps in [docs/
5. AI masks: Subject / Sky / People (40–70 h + model decision)
6. Compressed ORF and HE NEF (28–55 h)
7. Lens profile database of our own (40–80 h)
8. Tests in CI on macOS, Windows and Linux (6–12 h)
8. Tests in CI on macOS, Windows and Linux: green on `main` (2–4 h; `ci.yml` runs, #1050)
9. Per-model raw verification (20–35 h)

## Progress log

- 2026-10-11 (CI): `ci.yml` runs `cargo xtask ci` on Linux and clippy and the tests on macOS and Windows, and the CPU ↔ GPU equivalence tests on lavapipe, Metal and WARP (`LIGHTCRAFT_GPU_ALLOW_SOFTWARE`, tests only), within the documented bounds on all three (max 1 LSB on lavapipe and WARP, 2 in one case on the runner's Metal; the bound is 3). `main` fails there until the #989 fixes and #1052 (Windows) land (#1050). Headline numbers unchanged.
- 2026-10-11: Canon EOS R5 Mark II C-RAW decodes from sensor data (57% of its files opened as a
preview): the CRX QP map's first-symbol literal and limited-length escape; four CC0 R5 Mark II files
pinned, the QP maps of 33,665 private C-RAW files decode exactly ([cr3.md](docs/cr3.md)). 235 models
Expand Down Expand Up @@ -161,6 +162,7 @@ Ranked toward beta; detail in [docs/roadmap.md](docs/roadmap.md), gaps in [docs/

| Date | Change | Summary |
|---|---|---|
| 2026-10-11 | minor | Tests in CI on macOS, Windows and Linux (`ci.yml`, #1050), GPU equivalence tests on software adapters; not green on `main` yet, gap 9 6–12 h → 2–4 h; headline numbers unchanged |
| 2026-10-11 | minor | EOS R5 Mark II CR3 verified: CR3 on four verified bodies, RAW decoding 76% → 77%; headline numbers unchanged |
| 2026-10-10 | minor | RAW measured model by model; RAW decode and colour as explicit rows: full 59% → 61%, mainstream 51% → 49%, essentials 63% → 64%; beta ~14 points |
| 2026-10-10 | minor | Full ready restored to the additive weighted sum (~59%; method aligned with the standard, no new evidence); hours per audience; beta ~16 points away |
Expand Down
6 changes: 4 additions & 2 deletions apps/lightcraft/src/editors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,10 @@ fn desktop_exec(entry: &str) -> Option<PathBuf> {
Some(rest) => rest.split('"').next()?,
None => exec.split_whitespace().next()?,
};
// a bare name (`photocraft %F`) was already looked for on the PATH
Some(PathBuf::from(program)).filter(|p| p.is_absolute())
// a bare name (`photocraft %F`) was already looked for on the PATH. Desktop entries are a
// freedesktop (POSIX) format: absolute means a leading `/` on every platform the parser runs on
// (`Path::is_absolute` wants a drive letter on Windows, where the tests run too)
program.starts_with('/').then(|| PathBuf::from(program))
}

#[cfg(test)]
Expand Down
2 changes: 1 addition & 1 deletion apps/lightcraft/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ impl eframe::App for App {
// Quit from the menu bar: save exactly what closing the window saves (settings and
// library, after the unsaved-changes check; otherwise its prompt shows), then end the
// process instead of closing the viewport while AppKit is terminating (PR #444).
eframe::App::on_exit(self);
eframe::App::on_exit(self, None);
std::process::exit(0);
}
self.0.logic(ctx);
Expand Down
5 changes: 3 additions & 2 deletions crates/catalog/src/lock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,9 @@ impl LibraryLock {
}

/// Another descriptor on the locked file: what a process spawned by another thread holds
/// between fork and exec (a `dup` refers to the same open file description). Tests only.
#[cfg(test)]
/// between fork and exec (a `dup` refers to the same open file description). Tests only (the
/// test that uses it is Unix-only: `flock` semantics).
#[cfg(all(test, unix))]
pub(crate) fn descriptor_copy(&self) -> Option<File> {
self.file.as_ref().and_then(|f| f.try_clone().ok())
}
Expand Down
3 changes: 1 addition & 2 deletions crates/catalog/src/tests_lock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,7 @@ fn dropping_the_lock_frees_the_library_while_another_thread_spawns_processes() {
std::thread::spawn(move || {
let mut spawned = 0usize;
while !stop.load(Ordering::Relaxed) {
if let Ok(mut c) =
std::process::Command::new("/bin/true").stdout(std::process::Stdio::null()).stderr(std::process::Stdio::null()).spawn()
if let Ok(mut c) = std::process::Command::new("true").stdout(std::process::Stdio::null()).stderr(std::process::Stdio::null()).spawn()
{
let _ = c.wait();
spawned += 1;
Expand Down
Loading
Loading