Skip to content

Commit 2f5d1fc

Browse files
committed
LRC-LIB-PEOPLE: merge main journal recovery and process V5
Merge main baf079f without rewriting reviewed history. Resolve only docs/gaps.md and docs/whats-new.md, retaining both upstream process V5 and persistent face-ignore entries. Keep upstream journal recovery unchanged with catalog format 12; the unrelated web CPU-reference fix remains in storytold#3782. Validation: fmt, workspace clippy -D warnings and HEIF gate pass. All 300 catalog tests, 48 XMP tests, 19 face-engine tests and five ignored-review UI tests pass. Default-runner full workspace tests report only the independently reproduced golden storytold#3788 (unchanged post-dither hashes) and web CPU/GPU storytold#3778 failures; no green full CI claim. Apple M2 Metal and craft-fonts enabled; 157 capability/data skips disclosed. Workspace doctests and separately completed parity, layers, assets and WASM pass. Refreshed synthetic English/German batch-ignore and ignored-review screenshots inspected. Publish this conflict resolution under the contributor-authorized exception for disclosed upstream baseline failures. No tests are suppressed, rendering behavior changed by the feature, or assertions relaxed. Assisted-by: OpenAI GPT-6.1 Sol
2 parents be4a720 + baf079f commit 2f5d1fc

35 files changed

Lines changed: 2146 additions & 107 deletions

‎.github/workflows/ci-windows.yml‎

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: CI (Windows)
2+
3+
# The Windows leg of the gate: clippy and the tests of the crates with Windows-only code, on pull
4+
# requests and pushes to main that touch that code, and on pull requests labelled `full-ci`.
5+
# The Linux gate (ci.yml) still runs everything else on every pull request.
6+
#
7+
# Not the full `cargo xtask ci`: on a cold windows-latest runner that is well over an hour, and
8+
# its wasm, layers, assets and parity steps don't differ by platform. What does is the
9+
# `cfg(windows)` code (title bar theme, monitor profiles, file handling) and its tests.
10+
on:
11+
push:
12+
branches: [main]
13+
pull_request:
14+
# `labeled`: adding `full-ci` starts it. Other labels skip (see concurrency and the scope job).
15+
types: [opened, synchronize, reopened, labeled]
16+
workflow_dispatch:
17+
18+
permissions:
19+
contents: read
20+
21+
# Its own group, so the Windows leg never cancels the Linux gate. A newer push to a PR branch
22+
# cancels its older run; a label other than `full-ci` gets a group of its own, so it cancels nothing.
23+
concurrency:
24+
group: ci-windows-${{ github.event_name == 'pull_request' && github.ref || github.run_id }}${{ github.event.action == 'labeled' && github.event.label.name != 'full-ci' && format('-label-{0}', github.run_id) || '' }}
25+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
26+
27+
jobs:
28+
windows-scope:
29+
if: github.event.action != 'labeled' || github.event.label.name == 'full-ci'
30+
uses: storytold/craft-common-actions/.github/workflows/changed-paths.yml@main
31+
with:
32+
label: full-ci
33+
# The crates and files with `cfg(windows)` code, and what decides how they build: their
34+
# manifests and the lockfile (a dependency bump can break only Windows).
35+
paths: |
36+
.github/workflows/ci-windows.yml
37+
apps/lightcraft/*
38+
apps/lightcraft-cli/src/bench_cull.rs
39+
apps/lightcraft-cli/tests/it/cli.rs
40+
apps/lightcraft-cli/Cargo.toml
41+
crates/wincolor/*
42+
crates/ui-egui/src/theme.rs
43+
crates/ui-egui/src/panels/left/local.rs
44+
crates/ui-egui/src/menus/files.rs
45+
crates/ui-egui/src/dialogs/settings/performance.rs
46+
crates/catalog/src/safe_file.rs
47+
crates/catalog/Cargo.toml
48+
crates/engine/src/originals.rs
49+
crates/engine/src/import/scan.rs
50+
crates/engine/src/walk.rs
51+
crates/engine/src/doc_path.rs
52+
crates/engine/src/rename/*
53+
crates/engine/src/cmd/geocode.rs
54+
crates/engine/src/tests/sync.rs
55+
crates/engine/src/tests/import.rs
56+
crates/engine/Cargo.toml
57+
crates/ui-egui/Cargo.toml
58+
Cargo.toml
59+
Cargo.lock
60+
rust-toolchain.toml
61+
.cargo/*
62+
63+
gate-windows:
64+
needs: windows-scope
65+
if: needs.windows-scope.outputs.matched == 'true'
66+
# Tracks @main so suite-wide CI fixes reach every app without a PR in each repository.
67+
uses: storytold/craft-common-actions/.github/workflows/gate.yml@main
68+
with:
69+
os: '["windows-latest"]'
70+
# Same craft-fonts commit as ci.yml and release.yml.
71+
craft-fonts-ref: b076417b5880bd4154bd22f00695b1d28c6bea83
72+
targets: ""
73+
tools: ""
74+
timeout-minutes: 90
75+
windows-command: |
76+
pkgs=(-p lightcraft-wincolor -p lightcraft-catalog -p lightcraft-engine -p lightcraft-ui-egui -p lightcraft -p lightcraft-cli)
77+
cargo clippy "${pkgs[@]}" --all-targets --keep-going -- -D warnings
78+
cargo test "${pkgs[@]}" --lib --bins --tests --no-fail-fast

‎AGENTS.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,4 +161,5 @@ evaluates it (`.github/workflows/nix.yml`), so the build may lag behind the work
161161
## CI workflows
162162
- Workflows in `.github/workflows/` call the shared workflows in [`storytold/craft-common-actions`](https://github.com/storytold/craft-common-actions) at `@main`, with their inputs and secrets. No other jobs: if no shared workflow does what's needed, it doesn't go here.
163163
- Don't add or change CI in a feature or fix PR. If the existing workflows can't build or test a change, link an existing craft-common-actions issue or PR, or open a new issue, or a PR only for a small fix that is safe for every app and does not increase CI time.
164+
- `ci.yml` is the Linux gate, on every pull request. `ci-windows.yml` adds a Windows leg (clippy and tests of the crates with `cfg(windows)` code) when a pull request changes the paths it lists; add the `full-ci` label to run it on any other pull request. When you add `cfg(windows)` code in a new file, add the file to its `paths` in a CI PR.
164165
- Some workflow files here still run their own jobs. Don't add to them. Moving a job into craft-common-actions is its own task, never part of another PR, and the job stays here until a shared workflow runs it.

‎CLAUDE.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,4 +160,5 @@ evaluates it (`.github/workflows/nix.yml`), so the build may lag behind the work
160160
## CI workflows
161161
- Workflows in `.github/workflows/` call the shared workflows in [`storytold/craft-common-actions`](https://github.com/storytold/craft-common-actions) at `@main`, with their inputs and secrets. No other jobs: if no shared workflow does what's needed, it doesn't go here.
162162
- Don't add or change CI in a feature or fix PR. If the existing workflows can't build or test a change, link an existing craft-common-actions issue or PR, or open a new issue, or a PR only for a small fix that is safe for every app and does not increase CI time.
163+
- `ci.yml` is the Linux gate, on every pull request. `ci-windows.yml` adds a Windows leg (clippy and tests of the crates with `cfg(windows)` code) when a pull request changes the paths it lists; add the `full-ci` label to run it on any other pull request. When you add `cfg(windows)` code in a new file, add the file to its `paths` in a CI PR.
163164
- Some workflow files here still run their own jobs. Don't add to them. Moving a job into craft-common-actions is its own task, never part of another PR, and the job stays here until a shared workflow runs it.

‎Cargo.lock‎

Lines changed: 1 addition & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ craft-docpath = { version = "0.1.0", git = "https://github.com/storytold/craft-l
1515
# Canon CRW decoder shared with the other Craft apps
1616
craft-crw = { git = "https://github.com/storytold/craft-libs", rev = "f3b62ec61f45534392376492fc5ad33047375205" }
1717
# craft-update: app-specific pretend versions apply to startup and manual checks.
18-
craft-update = { git = "https://github.com/storytold/craft-libs", version = "=0.1.0", rev = "c5a1cbfb5f9049f9270955caffb5bee5997aebf7", features = ["egui"] }
18+
craft-update = { git = "https://github.com/storytold/craft-libs", version = "=0.1.0", rev = "a231e517c3b371e1bf0ee8af71ed807424a9a05d", features = ["egui"] }
1919
craft-window = { git = "https://github.com/storytold/craft-libs", rev = "c5a1cbfb5f9049f9270955caffb5bee5997aebf7", features = ["egui"] }
2020
# internal
2121
lightcraft-denoise-core = { path = "crates/denoise-core" }

‎apps/lightcraft-web/Cargo.toml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,14 @@ js-sys = { workspace = true }
3232
web-sys = { workspace = true, features = [
3333
"Blob",
3434
"BlobPropertyBag",
35+
"CustomEvent",
36+
"CustomEventInit",
37+
"CssStyleDeclaration",
3538
"DedicatedWorkerGlobalScope",
3639
"Document",
3740
"DomStringList",
3841
"Element",
42+
"Event",
3943
"EventTarget",
4044
"File",
4145
"FileList",

0 commit comments

Comments
 (0)