gate (ubuntu) failed on `the_stable_presets_folder_is_fenced_on_every_platform`:
the fence listed `Documents/EffectCraft/Presets`, so a root at
`Documents/EffectCraft/nightly` - a sibling of `Presets`, neither an ancestor nor a
descendant - was accepted. Fencing the stable app's whole `Documents/EffectCraft`
folder refuses the parent, the folder itself and anything inside it, which is what
the test asserts, and leaves a sibling such as `Documents/EffectCraft Nightly`
valid.
A Nightly root of ~/Documents/EffectCraft passed validation and made presets_dir_for share the stable presets files. The stable default presets folder (HOME, else USERPROFILE) is now a forbidden root on every platform, with a test. The doc paragraph names craft-common-actions #363.
Three gate failures in the ported code:
* `identity_matches` destructured `version.split_once("-nightly.")` the wrong way
round, so it read the date out of the base version ("0.25") and every prepared
identity was refused. The nightly suffix is now the second element.
* The test's near-miss commit differed only after the twelfth character, which the
version cannot carry; it now differs inside the twelve, where the check can see
it, with a comment saying so.
* The Nightly launch-profile error box opened `rfd` from `main.rs`, which the
#3084 contract test forbids outside `file_dialogs`; it is now
`file_dialogs::report_error`, documented as the one native message box.
* `effectcraft-cli` refused the Launcher flags by naming them as `--` literals,
which `every_option_read_is_declared` reads as undeclared options; the refusal
now matches the names without a leading `--` literal.
nightly_compile_gui refuses signing configuration before cargo, so a key
exported by a caller cannot reach the build or its dependency build scripts.
docs/nightly-release-preparation.md records that the pinned shared producer
and signer admit only PhotoCraft, so that port is a go-live prerequisite.
The batch-2A review found two Rust bugs and one cleanup; all are fixed here.
- `prepare_launch` wired only `build_flavor::version_query`, so the Launcher's
`--launch-profile nightly-v1 --profile-root <abs> --version` fell into the profile
parser, opened the refusal dialog and exited 2 — the form `nightly-verify.sh`, the
shared smoke and the Launcher's own check ask — and the unused
`launch_profile::version_query` was dead code under `clippy -D warnings`. One
`version_query` predicate answers both forms, with a test.
- `crash_report::start` re-runs this binary with `--internal-crash-reporter` and no
profile tokens, which the Nightly flavor refused as a bare start on every launch (a
native dialog, a 3 s readiness timeout, no crash reporting). `main` answers
`crash_report::maybe_run` on the raw arguments first; `is_helper`/`helper_args` keep
the predicate and the spawn in step, with a test.
- Deleted our dormant `nightly-dispatch.yml` and the signing-policy example (and its
packaging-lint path); Dylan's enabled callers and the installed policy stay as he
wrote them.
Review nits: presets are joined once (`<profile>/Presets`, not `<profile>/Presets/Presets`),
`nightly-macos.yml` uses the producer's craft-fonts pin, and a previous session's
interruption is no longer overwritten by the launch guard's graphics notice.
Second commit on top of Dylan Taylor's #4154; his commits, names and files stay his.
The Nightly build refuses EFFECTCRAFT_CONFIG_DIR (its state root comes from the Launcher), so his
wrappers, which export that variable, would have been refused at startup. Every one of them now
passes the protocol instead - `--launch-profile nightly-v1 --profile-root <dir> --`:
- the deb/rpm GUI wrapper in packaging/linux/package.sh, plus a wrapper for its headless CLI;
- the AppImage AppRun (a script, not the stable symlink), and its CLI;
- the Flatpak wrapper in packaging/linux/flatpak-bundle.sh;
- the Arch launcher, with its test updated;
- and a new launcher inside the flat Nightly tar (packaging/linux/nightly-launch.sh), which stages
the GUI as `effectcraft-bin`; the archive helper allows and requires exactly that one extra member.
The profile folder is `${XDG_DATA_HOME:-$HOME/.local/share}/effectcraft-nightly` everywhere: outside
every stable boundary and inside the Nightly Flatpak's own sandbox home. Each launcher passes a
first-argument --version/-V, and an already-supplied --launch-profile, through unchanged, because
after the injected `--` both would be file names.
build.rs now reads EFFECTCRAFT_VERSION and falls back to EFFECTCRAFT_OVERRIDE_VERSION, which is what
this repo's packaging scripts export, so the binary reports the prepared identity and
nightly-common.sh's exact `EffectCraft <version> (nightly-v1)` check can pass.
profile_root accepts exactly the Nightly's own Flatpak instance (ai.storyteller.effectcraft.nightly)
and refuses every other, with a test; before, any FLATPAK_ID was refused and the Nightly Flatpak
could not start inside its own sandbox.
Cargo.lock's effectcraft entry names thiserror and winsafe, which the flavor added to the manifest,
so `cargo check --locked` resolves again.
With his enabled callers kept whole, the flavor's `.github/actionlint.yaml` (a suppression for a
`queue:` key his signer no longer sets) and its `packaging-lint.yml` path entry are gone; nothing in
the tree names `queue:` or the `macos-release` label.
Already right here: the window class matches the Nightly desktop entry's StartupWMClass, the
metainfo declares no mediatypes, the Nightly build needs no extra features, and
sonar.coverage.exclusions already covers packaging/**.
The flavor itself had three compile errors that only a real `cargo check` finds, fixed here: the
user-preset folder asked `effectcraft_host` for the profile root from a crate that does not depend on
it (the UI now carries the profile's `Presets` folder through `channel::set_profile_presets`, set from
`prepare_launch`), `channel::channel_label` was `const` while it reads a non-const atomic identity,
and a test built `"--launch-profile="` with `+` on `&str`s.
Tests: packaging/nightly-tests.py (71 suite tests plus the two Linux launcher argv tests),
bash -n over every changed script, rustfmt --edition 2024 --check on the changed Rust, and
`cargo check --locked -p effectcraft --tests` / `-p effectcraft-cli --tests`, both green locally (with
a check-only alsa.pc, because this host has no libasound outside the Nix dev shell). package.sh was
also rendered with stub binaries and a stub nfpm, and the installed deb tree read back.
Co-authored-by: dylanmtaylor <[email protected]>
Co-authored-by: skylartaylor <[email protected]>
Give EffectCraft the same isolated Nightly channel PhotoCraft has, switched off.
- Launch profile: `--launch-profile nightly-v1 --profile-root <abs> -- [files…]`, with the
Launcher's version query (`--version`, `-V`) answered before logging, the crash helper, fonts
or any settings, and `--launch-profile`/`--profile-root` refused by `effectcraft-cli`.
- Build channel: `EFFECTCRAFT_BUILD_CHANNEL=nightly-v1` compiles the flavor, requires the
prepared `EFFECTCRAFT_VERSION`/`_BUILD_SHA`/`_BUILD_DATE` identity, bakes it in, and sets the
nightly icon, `ProductName "EffectCraft Nightly"` and the exact `ProductVersion`.
- Private data root: one validated profile root overrides every data root — settings, logs,
crash reports, plug-ins, presets, window state, recovery sentinel and the disk/media caches —
fencing stable's folders, the install, portable layouts, `EFFECTCRAFT_CONFIG_DIR` and
`FLATPAK_ID`, and refusing aliases that leave the profile.
- Session health: a private lease and unclean-exit record, finished once in `on_exit` (macOS)
and after the event loop.
- Nightly packaging: `packaging/windows/nightly.ps1` plus the `package.ps1 -Nightly/-BuildOnly`
hook and `sign.ps1 -Required/-CheckOnly/-CheckBuildEnvironment`; `packaging/macos/nightly{,-lib,-sign,-verify}.sh`
and the plist writer; `packaging/linux/nightly.sh`; the shared `nightly-common.sh`, helpers and
the four synthetic suites.
- Dormant callers and policy template as in PhotoCraft #16459: `nightly.yml`, `nightly-sign.yml`,
`nightly-dispatch.yml`, `nightly-macos.yml`, actionlint config, the public Linux key, the
example policy, the preparation doc and the packaging-lint source-contract job. Every nightly
job is literally off (`false &&`), there is no schedule and no installed policy.
- Art: nightly icon derivatives (deeper background, unchanged figure and padding), their
provenance, attribution sidecars and `ATTRIBUTION.md` rows.
- `sonar-project.properties` now states `sonar.sources=.` beside `sonar.tests`, so enabling the
packaging fixtures cannot silently drop the production code from Sonar.
- Remove unsupported `queue: max` key from `.github/workflows/nightly-sign.yml`
concurrency block and update `packaging/nightly-release-tests.py` to match.
- Normalize channel-only Nightly artifact basenames in `packaging/linux/package.sh`
so `EFFECTCRAFT_BUILD_CHANNEL=nightly-v1` builds always include `-nightly`
and match the AppImage zsync update pattern.
Port Skylar's (@skylartaylor) supervised manual nightly workflow and v3
signing policy from storytold/photocraft#16594 to EffectCraft:
- Add `.github/nightly-signing-policy.json` (craft-nightly-release-policy/v3)
adapted for `storytold/effectcraft` (`repository_id: 1400136506`,
`ci.yml` workflow `380135792`, SonarCloud `storytold_effectcraft`).
`producer_workflow_id` is `null` until `nightly.yml` is registered on `main`.
- Add `.github/workflows/nightly.yml` and `.github/workflows/nightly-sign.yml`
pinned to `storytold/craft-common-actions@605d58766e8f536564da8fc81d3676ac86816dea`
for supervised manual `workflow_dispatch` runs by the release-managers list.
- Add `docs/nightly-release-preparation.md` documenting the policy values,
ownership, and manual dispatch procedure.
- Add `packaging/nightly-release-tests.py` local contract regression suite.
Credit: @skylartaylor (storytold/photocraft#16594)
Co-authored-by: skylartaylor <[email protected]>
The fixed 32-step searches from 3678cc9be and f0a5783a8 were unrolled at every inlined call,
so software Vulkan drivers took long enough compiling fxl_point to miss the 10 s readback
deadline. Each search now has one call site and runs a host-computed trip count that is the
same for every invocation: still bounded, non-divergent and without dynamic lane writes.
Bring in the #4104 merge so this Targa consumer contains current main.
Cargo.lock kept from this branch (it already included the #4104 pin plus
the craft-tga update).
Use craft_tga::write_top_left_raw from craft-libs#3076, which shares the
footerless, uncompressed top-left stream this export wrote with the
image crate's encoder.
* #3057: Convert To Bezier Path converts a selected shape layer's or group's parametric paths
Right after drawing with the Rectangle, Ellipse or Polygon tool only the layer is selected,
and Convert To Bezier Path fell through to the mask branch and reported "no masks". It only
converted when the parametric path row itself (Rectangle Path 1) was selected.
- A selected shape group converts the parametric paths inside it, nested groups included.
- With only layers selected, a shape layer converts its parametric paths, as a selected
layer's masks are targeted. Locked layers are skipped; animated parametric paths are left
alone and reported (skippedAnimated), and selecting the path still converts it.
- Masks win only when targeted (mask param, selected mask, mask vertices) or when one uses
RotoBezier: plain masks no longer turn the command into a silent no-op.
- An explicit layer/layers limits selected shape items to those layers; an unmatched mask
param is an error instead of converting every path.
- Errors say what to select instead of asking for masks.
A PSD shape layer importing as a layer with a mask matches After Effects; no change there.
Fixes#3057
* #3057: Convert To Bezier Path converts a layer named twice once
A layer given twice in `layers` (by id and by name) was widened twice: its parametric paths were queued twice, and the second replacement found no such item, so the whole command failed. The layer list is deduplicated before the widening, which also keeps skippedAnimated from counting a path twice.
* #3057: Convert To Bezier Path leaves locked layers and a group's animated paths alone
Shape items given as `items` or selected on a locked layer converted anyway (only the layer-wide conversion checked locks); they now go through unlocked(), an error when every one is locked. A selected group skips its keyframed or expression-driven parametric paths and reports them in skippedAnimated, as converting a whole layer does; a path selected itself still converts at the current time.
* Doc comments for the functions this PR touches
* #3057: Convert To Bezier Path gives an explicit mask priority over shape items
With a `mask` given, a selected parametric path (or `items`) was converted instead of the mask, an unmatched `mask` converted the shape rather than reporting the miss, and a locked shape-item layer could reject the call before the mask was looked at. Shape items are now ignored when `mask` is present.
* #3057: Convert To Bezier Path converts a selected mask with the selected shape paths
With a mask and a parametric path both selected, only the path converted and the mask kept its RotoBezier tangents. Masks the selection targets (a selected mask or its property, mask vertices, on unlocked layers in scope) now convert in the same undo step, the result reports them as masks, and they stay selected with the new paths. An explicit `mask` keeps its priority.
* #3057: Convert To Bezier Path keeps mask conversion to an explicit layer
With `{"layer": A}` and a RotoBezier mask selected on layer B, the mask branch converted B's mask and left A unchanged. The resolved masks are now scoped to the explicit layer/layers (falling back to those layers' own masks), the priority check only counts selected masks and vertices in scope, and the scoped targets are edited directly instead of being resolved again.
* #3057: Convert To Bezier Path leaves masks on locked layers alone
A scoped or selected RotoBezier mask on a locked layer was converted through the mask branch. Masks on locked layers are now dropped after the scope and its fallback are resolved, so a locked selected mask does not hand the conversion to other masks; when every targeted mask is locked, the command reports the lock, as it does for shape items.
* #3057: Convert To Bezier Path converts in the composition `comp` names
With `comp` naming a composition that is not active, an explicit `mask` was resolved there but filtered against the active composition ("no mask matches"), and explicit `items` were looked up in the active composition. convert_to_bezier now works in the composition comp_id resolves, and selected_shape_items returns the composition layer_p resolved for explicit items (also used by Group and Ungroup Shapes); a selection made in another composition does not apply.
* Convert To Bezier Path: explicit items add no selected masks
With explicit `items`, only those shape paths convert. A RotoBezier mask
selected on the same layer no longer loses its RotoBezier flag as a side
effect. Regression test added.
* Convert To Bezier Path: explicit items without a parametric path convert no mask
* Convert To Bezier Path: items count as given only as a list
---------
Co-authored-by: FredApps <[email protected]>
* Scripts: a ScriptUI Browse… button opens the file dialog
Fixes#2778.
Fixes#2894.
File.openDialog, File.saveDialog, Folder.selectDialog and the instance
openDlg / saveDlg / selectDlg were stubs that returned null, so a script
dialog's or a dockable ScriptUI panel's Browse… button did nothing.
On a script-host thread, in an app that shows them, the script now asks
for the dialog (Session::script_ui.file_dialogs, each with an id), hands
the session back like a modal dialog's show() does and waits for the
answer: a File (an array with multiSelect), a Folder, or null when
cancelled. The script's filter becomes the dialog's (its name, "All Files"
for *.*); without extensions every file shows. Headless runs, the Script
Console, the web and Shutdown scripts get null at once.
The app shows the dialog after the pass's events: blocking on Windows
(Hooks::pick_file_dialog), without blocking on macOS and Linux, one at a
time; a non-blocking dialog that ends without answering counts as
cancelled. scriptui.fileDialogs lists the waiting dialogs and
scriptui.fileDialog answers one (refused while file access is confined,
and refused to scripts). A dialog leaves the list only when its script
has the answer; the script's windows refuse events meanwhile, except
scriptui.close, which cancels the file dialog first. A script host that
ends takes its dialogs with it.
* Scripts: carry a file dialog's prompt, start location and filter to the native dialog (#2778)
serve_file_dialogs collected the script's prompt, start folder and save filter
but dropped them at the host boundary. FileDialog::Script now carries prompt and
start, and new ScriptFolder and ScriptSave requests carry the folder dialog's
prompt/start and the save dialog's prompt and whole filter (label, extensions,
any file) instead of the default name's extension. Both the blocking and the
non-blocking host dialogs apply title, initial directory and filters; Save also
goes through the blocking hook where one is set. Hook-level regression test
asserts all three requests.
* Scripts: a hidden window paints so a script's file dialog is shown (#3253 review)
* Scripts: formatting (#3253)
* Audio panel: Audio Levels show the value at the current time, keyframes and expressions included (#3227)
The level fields read the property's static base value. They now evaluate Audio Levels the way
the Timeline and Effect Controls do (EvalCtx at the current time: keyframes at layer time, the
expression host), and they are hot-text fields whose edits run the Timeline's prop.set, so a
keyframed property gets a key at the current time. The Timeline's Link Channels state applies
(#2485). New automation ids audio.levelLeft and audio.levelRight carry the shown value; the
fields are drawn only when the panel is wide enough for them.
Fixes#3227
* Audio panel: a Ctrl+Alt scrub of Audio Levels is proportional, as in the Timeline (#3227)
The Audio panel's prop.set now carries the proportional flag the Timeline sends for a Ctrl+Alt
(Cmd+Opt) scrub, so the change spreads over the selected layers by selection order.
* Audio panel: a scrub of expression-driven Audio Levels moves the keyframed value by the scrub (#3227)
prop.set takes a scrub's change from the keyframed value under the expression. The Audio panel
sent the shown (expression-evaluated) value moved by the scrub, so the expression's offset was
added to every selected layer on every frame of the scrub. A scrub now sends the keyframed value
moved by the shown change; a typed value is still set as it is.
* Audio panel: narrow panels keep the level fields; typing one channel keeps the other's value under the expression (#3227)
The level fields were left out below 110 px (the panel showed them down to 80 px before this
PR); 80-110 px now get a compact layout with L / R labels. Typing into one channel of an
expression-driven Audio Levels wrote the other channel's shown (expression-evaluated) value into
the value under the expression; that channel now keeps its own. Adds tests for a linked and an
Alt scrub and for typing into an expression-driven field.
* Audio panel: Audio Levels evaluate with the session's footage source (#3227)
The level fields built their expression context without the footage source, so an expression
sampling footage with sampleImage disagreed with the render. They now use the session's source.
Regression: nonzero sampled footage drives both channels.
* Audio panel: each level scrub is its own undo step (#3234 review)
Fixes#4095.
This is a hardening change for a FreeBSD CI flake; it may not fully fix the flake.
On the scheduled FreeBSD 15 x86_64 run, ui_preview_align::playback_prefetches_past_the_cached_frames_ahead failed during setup: after requesting frames 0..120 it asserted the cache equalled [0, 1, …, 119] and got only [0]. The wait was eight seconds and did not step the harness. The same test passed on the previous day's scheduled run.
This PR steps the harness while waiting, gives the workers up to 60 seconds, and reports how many frames actually landed. If workers never fill the cache under load, the test can still fail.
The FreeBSD aarch64 job only cross-compiles tests; it does not run them, so a green aarch64 leg is not a test pass.
* psd: share plane reading, RLE row counts, and ZIP framing via craft-psd (#786)
* psd: fix parity test imports and ImageResource::new arity
* psd: fix borrow conflict in parity test helper
* psd: use shared zip_decompress_up_to in opt reference decoder
* psd: remove shadowed imports in parity tests
* Use the shared cancellation flag in EffectCraft media reads
* chore: repin craft-libs media crates to main (ba25ccd2)
* deps: align the FilmCraft cancellation context
* chore: use origin/main craft-libs pin (587339c7)
* chore: repin craft-libs media crates to main (6a061a30)
* chore: align craft-media-source (ba25ccd2) and filmcraft (3d746514) to share one cancellation context
* deps: use the merged FilmCraft cancellation revision
* chore: align craft-media-source (6a061a30) and filmcraft (d6cc257f)
---------
Co-authored-by: Dylan M. Taylor <[email protected]>
* media: use the shared GIF text control fix
* chore: repin craft-gif to storytold/craft-libs main (ba25ccd2)
---------
Co-authored-by: Dylan M. Taylor <[email protected]>
* media: route MP4 and Matroska FLAC through craft-audio
* media: propagate errors when generating FLAC test fixtures
---------
Co-authored-by: Dylan M. Taylor <[email protected]>