Commit Graph
169 Commits
Author SHA1 Message Date
FredApps 1c712529fa Merge main (3b09a644a5) into codex/update-busy-detach-2221
Conflict: main split install.rs into install/{linux,macos,windows,freebsd,tests}.rs. Ported this PR's change into that layout unchanged in substance: retry_busy_detach* stay in install.rs; detach_with and the clear_mounts retry are in install/macos.rs (its stderr test as #[craft_ui::testing::trial]); the retry-policy tests and the two busy-mount tests are in install/tests.rs as #[trial] (craft-update runs harness = false), and the clear_mounts control now pins Permission denied as in this PR. Local: craft-update lib tests (new retry tests run) and clippy -D warnings pass.
2026-11-26 20:14:33 +07:00
BFlat 017c371f44 Merge pull request #2034 from dotCooCoo/fix/pipe-test-timeout-before-shutdown
craft-update: the inherited-pipe test no longer sets a read timeout after shutdown
2026-11-26 10:30:25 +07:00
aiongg 6e308319c0 update: local-mirror, the feature that accepts a developer's loopback mirror
ArtCraft Launcher's development builds install from a mirror on this computer (its `local-mirror` feature, `cargo xtask local serve`). With the feature, `check_download_link` accepts loopback links and `Http::new` leaves the agents for remote hosts off HTTPS-only.

Without it nothing changes: a build refuses a loopback download link and the remote agents refuse plain HTTP before they connect. `default`, `ui`, `screen-testing`, `suite` and `oci_migration` do not turn it on; the facade forwards it only as its own `update-local-mirror`, which no other facade feature turns on.
2026-11-25 17:06:02 +00:00
aiongg 3a10c49a2c Quit is a framework command, and the update dialogs show the icon the app gives its host
- QuitCommand::Quit (window.quit, Cmd+Q) replaces egui's quit shortcut, which the runtime clears at
  install. The runtime runs it from any source through the root window's close path, so the app's
  close decision asks about unsaved work. Its default yields to another command bound to the chord,
  as the window shortcuts' defaults do (library::yields_default).
- HostBuilder::icon_png gives the app's icon once, beside its AppInfo; the update dialogs show it in
  their head instead of the name's initial.
- Docs: craft-framework.md §2.2 Quit and Zoom keys rows, craft-host README.
2026-11-24 02:30:10 +00:00
Dylan M. TaylorandClaude 7c0ae3e639 fw sync: merge craft-libs next e3ca63165 (149 commits) into pdf-port/sync
Conflicts resolved (upstream's design and defaults win; the port's opt-ins stay):
- ui-contract fonts: upstream's served-faces provider, catalog job queue and byte budget;
  the port's FaceBytes::chain (Word subset siblings, F-8) re-done on the provider: a served
  face lists its served chain faces before the interface faces, a sibling landing after its
  owner remakes egui's fonts once, drawing a face marks its chain drawn. The port's chain
  trial moves onto upstream's rig, plus a late-sibling trial.
- text editor HostCx follows FacesCx's job-based document_face and document_face_bytes.
- ui-widgets Swatch: upstream's SwatchFill (split, spectrum, image, empty) with the port's
  Swatch::optional / SwatchFace::optional (new SwatchFill::None, the "no colour" diagonal)
  and Swatch::icon (glyph on the empty well) on top; both word sets kept.
- draw PaintBar: upstream's MixerLoad fill.
- font-manager: upstream's sample band; host rows (port) use it too.
- ui-panels / ui-patterns dock grips: upstream's drag_origin and named slack.
- platform clipboard tests: both trials kept.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-11-23 12:54:08 -05:00
Martin BallandClaude Opus 5.5 1c5ad1b85a Update: a rate-limited check is a typed reason apps can translate (#3090) (#3098)
* #3090: craft-update reports a rate-limited check as a typed reason apps can translate

check_for_update now returns CheckError (RateLimited | Failed(String)); Updater gets Status::RateLimited, LatestRelease gets RateLimited, and UpdateWords gets rate_limited. GitHub's own text stays data in Failed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE

* #3090: isolate the rate-limit source test's cache path

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE

* #3090: point the rate-limited word's doc link at updater::Status

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE

* #3090: tests that a rate-limited release check is typed and the check dialog words it itself

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCZhHKRuRB5wZUiw6BE

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 13:48:33 +00:00
Dylan M. Taylor cb3101725c sync skeleton: origin/next 118f1d2ff9 into pdf-port/gaps ea77c1676f, markers left
257 conflicted files staged with their conflict markers (630 hunks). The one
modify/delete, crates/ui-patterns/src/patterns/preferences/body.rs (deleted
upstream, modified by the port), keeps the port's file for its area to carry
into upstream's preferences/page.rs. Plan: landing/fw-sync-plan.md.
2026-11-22 22:42:09 -05:00
yoriswind 6fc1ccd240 update: preserve detach stderr for the busy retry policy 2026-11-20 17:58:21 -08:00
FredApps 9c180fca2f Merge pull request #2363 from storytold/perf/2332-explicit-ui-suite
Split the UI test kit and select suite registrations explicitly
2026-11-21 03:16:06 +07:00
yoriswind 718e5c896d fix(update): count detach time against the retry window 2026-11-20 09:33:49 -08:00
yoriswind 7e04e999bf fix(update): retry busy leftover-mount detaches 2026-11-20 09:18:41 -08:00
David MannandClaude Opus 5.5 1929e79ebb Merge storytold main into next (20 Nov, second sync)
Merges main at 8f92ed1334 (#2550 and the rest of main since the 20 Nov sync).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 16:38:55 +01:00
FredApps 9793d1a452 Merge branch 'next' of https://github.com/storytold/craft-libs into publish/registry-2332
# Conflicts:
#	crates/dialogs/src/lib.rs
#	crates/dialogs/src/ui/mod.rs
#	crates/draw/src/ui/gradient/mod.rs
#	crates/draw/src/ui/gradient/swatch.rs
#	crates/menu/src/shortcuts/view.rs
#	crates/menu/tests/it/main.rs
#	crates/menu/tests/it/shortcuts/mod.rs
#	crates/pages/tests/it/main.rs
#	crates/print/src/lib.rs
#	crates/review/tests/it/main.rs
#	crates/story-render/src/main.rs
#	crates/table/tests/it/main.rs
#	crates/text/tests/it/main.rs
#	crates/ui-canvas/src/canvas/navigate/mod.rs
#	crates/ui-canvas/tests/it/canvas/mod.rs
#	crates/ui-contract/tests/it/access/mod.rs
#	crates/ui-contract/tests/it/fonts/mod.rs
#	crates/ui-contract/tests/it/runtime/mod.rs
#	crates/ui-gallery/src/foundations/mod.rs
#	crates/ui-patterns/src/patterns/preferences/mod.rs
#	crates/ui-patterns/tests/it/docking/mod.rs
#	crates/ui-patterns/tests/it/form_dialogs/mod.rs
#	crates/ui-patterns/tests/it/panels/palette.rs
#	crates/ui-patterns/tests/it/preferences/mod.rs
#	crates/ui-shell/src/shell/mod.rs
#	crates/ui-shell/tests/it/shell/mod.rs
#	crates/ui-widgets/src/tabs/strip.rs
#	crates/ui-widgets/tests/it/bars/mod.rs
#	crates/ui-widgets/tests/it/contract/mod.rs
#	crates/ui-widgets/tests/it/layout/mod.rs
#	crates/ui-widgets/tests/it/main.rs
#	crates/ui-widgets/tests/it/menu/mod.rs
#	crates/ui-widgets/tests/it/pickers/mod.rs
#	crates/ui-widgets/tests/it/text/mod.rs
2026-11-20 15:04:36 +01:00
FredApps dd0596ae8f Merge branch 'next' of https://github.com/storytold/craft-libs into publish/registry-2332
# Conflicts:
#	crates/menu/tests/it/main.rs
2026-11-20 13:44:42 +01:00
Martin BallandClaude Opus 5.5 bc4bb7bd73 Merge craft-libs next 7efbe8bb6 into the WordCraft port
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 03:53:30 +00:00
aiongg b05c1c27f9 Merge storytold main into next (20 Nov sync) 2026-11-20 01:48:18 +00:00
dotCooCoo ebbc62b93d Update tests: the attach retry calls busy() 2026-11-19 15:39:12 -08:00
dotCooCoo 9bb003847d Merge main into fix/update-test-attach-retry 2026-11-19 15:23:47 -08:00
Dylan M. Taylor 88b867f4dc Framework batch 3 d: port follow-ups (see runs/fwb3-d.md) 2026-11-19 15:48:27 -05:00
Martin Ball 6dedbe4fe6 skeleton: merge up/next into area/ribbon-fw with conflict markers left in (land step 1) 2026-11-19 20:42:08 +00:00
aiongg 6ec20913b0 craft-update: name std::time::Duration in the macOS test helper 2026-11-19 20:29:34 +00:00
aiongg bf6054c96d craft-update tests: retry hdiutil create and attach while the disk-image helper is busy 2026-11-19 20:24:41 +00:00
FredApps 938d170b87 Keep library trials available without a UI suite and preserve the generator API 2026-11-19 14:11:23 +01:00
FredApps b04d18a735 Select UI suite items through explicit registries 2026-11-19 12:20:08 +01:00
FredApps f8dddb2a55 Split UI test kit from story suite 2026-11-19 09:25:07 +01:00
Martin Ball 2d810dfdc7 Contract stubs: save answer records_file, DocumentMap page, UpdateCheckDialog::words (S-L159, S-L162, S-L164) 2026-11-18 12:11:18 +00:00
Martin Ball b14ea47830 Contract stubs: craft-browse craft-dialogs craft-menu craft-print craft-review craft-table craft-update craft-automation 2026-11-18 08:35:49 +00:00
aiongg 17b0f020f7 Merge remote-tracking branch 'upstream/next' into update-available 2026-11-18 05:28:55 +00:00
aiongg 12dfe2c497 Fix macOS gate: docs, Linux-only test helpers, NSGraphicsContext feature for AppKit event tests 2026-11-17 19:34:21 +00:00
aiongg 17aef21bc6 update: the atomic-write tests are Unix-only as a module 2026-11-17 19:17:13 +00:00
aiongg db08c64334 update: Windows clippy baseline: cfg-gated imports in self_update and docs on the Windows MSI items 2026-11-17 18:55:54 +00:00
aiongg d4cae9a412 update: the OCI migration trials are a cfg(test) module, so the crate's test lint rules apply 2026-11-17 18:41:20 +00:00
aiongg 1c63d35ff5 CI baseline: platform temp dir mode check without a bool-literal guard and its test reads file_path; window Linux-only helpers lose the test cfg; update's settle_for_tests and migration trials; prepress group_item replaces unreachable; svg font path to ui-contract 2026-11-17 18:40:58 +00:00
aiongg cd157c7e8c clippy: update's Linux cancel trials are a cfg(test) module; tail expressions in the corner and raster trials 2026-11-17 17:47:17 +00:00
aiongg 5c45c9c44a update: Updater::available exposes the release a check or offer found 2026-11-17 16:59:34 +00:00
aiongg 53ac626a31 next CI: derive Preview's Default, restore flatten_write's Cyan ink and main's craft-zip README line, gate the embedded-SVG test on tree, fix doc links
- craft-behavior: Preview<V> derives Default with #[default] Unchanged (clippy::derivable_impls on Rust 1.100).
- craft-prepress tests/flatten_write.rs: main's even-odd test needs the Cyan ink const.
- craft-svg: the embedded-SVG scene test needs the data-URL image resolver, which is behind feature tree.
- Docs: no links to private items (markdown, dwg, ui-patterns), no link to a crate that is not a dependency (frame), write() for the function (doc-binary), an autolink for the URL (update), Self::from_bytes (psd). craft-midi's source_timed and craft-pdf's cos::content keep only their inner docs, so their links resolve inside the module.
- README: main's craft-zip entry with its lenient reader sentence, lost in the 17 Nov merge.
2026-11-17 14:28:37 +00:00
aiongg 7371a5b05f Self-update helper imports the detect function on Windows; Index::mark_changed on every target 2026-11-17 14:09:16 +00:00
aiongg f2c8c2ae16 An offer being inspected leaves no earlier release for request_install to reopen
The newer offer closes the earlier release's prompt; request_install reopened it from known, so
known is cleared until the offer's inspection answers.
2026-11-17 13:37:15 +00:00
aiongg 640a3972a1 Sync follow-ups: upstream's Flatpak remote checks in packages.rs, docs of the public install::linux items, metafile test import, facade forwards update's oci_migration
The 17 Nov merge dropped is_artcraft_remote, oci_ref_available and remote_manages_flatpak (and their tests, as trials) with the test hunk they followed; install::linux is public upstream, so its newly public items are documented; craft-update's oci_migration gates no dependency, so the facade forwards it (design-lint features/gate).
2026-11-17 12:50:26 +00:00
aiongg ac3dfd1f53 Merge storytold main into next (17 Nov sync)
storytold main 83cb1133dd (291 commits) into the integration head bab1a99b85; 47 conflicted files.

- Domain test files (metafile, prepress, pdf plates, settings store, heif, media-testkit, atomic): tests next cut stay cut; tests new on main are kept, as trials where the crate's test target runs trials.
- atomic: main's group-bits test and Faulty::set_group go to src/tests.rs. audio: main's GSM and SBC oracles join tests/main.rs. cms constructors, pdf knockout_backdrop and testing_pdf join their crates' one test binary; timeline's preflight tests become src/preflight_tests.rs trials.
- update: main's changes to detect, install (linux, macos) and the tests land in next's split modules. The app's own offer is inspected on a thread of its own, picked up by tick's polling; settle_for_tests settles offers too. Later on a ready update drops the close it asked for. updater_pin_tests.rs stays deleted; its new pin test is in tests/it/update.rs.
- craft-color: main added a different crate at crates/color (the colour tags of compositor and display frames); it is next's craft-color module `tags`, re-exported at the root.
- Old crates/ui (combo, docking, testing, README) and keymap's ui/view.rs stay deleted; main's new crates/ui/src/testing files are dropped with them.
- New crates in the craft facade: ai, control, dds, frame, ipc, media-source, palette, press-print, score, ssip. testkit and xtask are listed outside it.
- Cargo.lock: the union of both locks, resolved by cargo metadata. Workflow: main's nextest Windows leg, with next's --keep-going clippy.
2026-11-17 12:44:52 +00:00
dotCooCoo 0f985639e9 craft-update: the macOS partway-install test retries a busy disk-image attach
an_install_that_ended_partway_does_not_block_the_next attaches its
leftover image with one hdiutil call. A detach elsewhere can keep the
disk-image helper busy, and the attach then fails with "Resource
temporarily unavailable" (seen on the macos-latest runner). The test
now tries the attach up to five times while the helper reports busy,
as install_dmg retries its own attach, and skips with a message when
the helper stays busy, as a_copy_on_a_read_only_image_gets_the_download_link
does in self_update.rs. Other attach failures still fail the test.
2026-11-17 04:23:08 -08:00
dotCooCoo 06d9b9fec5 craft-update: the inherited-pipe test no longer sets a read timeout after shutdown
exited_helper_does_not_wait_past_deadline_for_inherited_pipes shut the
write side of its connection to the descendant and then set the read
timeout again. Once the descendant sees the shutdown it closes its end,
and macOS refuses setsockopt with EINVAL when both directions of a
socket are shut (sosetoptlock in bsd/kern/uipc_socket.c). When the
descendant closed first, the test failed with "Invalid argument" at
crates/update/src/process.rs:902.

The stream already has the same read timeout from when it connected,
so the second call is removed.
2026-11-17 04:21:50 -08:00
.CooCoo 64b181977a update: inspect a release the app offers on its own thread, not in offer (#1149) 2026-11-16 21:37:22 -05:00
.CooCoo 49f88cbed4 craft-update: an AppImage install that stopped partway no longer leaves its copy behind (#1159) 2026-11-16 21:37:17 -05:00
.CooCoo d6b2db7031 update: Later on a ready update no longer closes the app after a save (#1262) 2026-11-16 21:36:51 -05:00
.CooCoo 5018f14e14 craft-update: process and install tests no longer depend on sleeps or short time limits (#1274) 2026-11-16 21:36:32 -05:00
Dylan M. Taylor be0b1e6552 cover the Flatpak repository guard and its update command (#1956)
The Flatpak/OCI migration left update_flatpak_app and the refusal to replace a
repository-managed Flatpak without tests. A stand-in flatpak on PATH, in child
processes so the environment stays private, covers every scope flag, both
command shapes, a successful update and Flatpak's error text; the guard test
asserts the refusal happens before anything is downloaded.
2026-11-16 18:22:56 -05:00
Dylan M. Taylor 778493598f Migrate Flatpak updates to the OCI image and appimage pipeline (#1318) 2026-11-16 17:53:46 -05:00
aiongg 0835e114ca Fix CI lints: samples referenced in every build, missing docs, rustdoc links, deprecated Ui::id, unused manifest dependencies 2026-11-16 03:03:33 +00:00
aiongg 3ceff195c7 Sync follow-ups: upstream's new tests in crates whose test executable runs trials are trials (print cups, ticket and windows_native, timeline interchange, update); craft-print's cups module documented (missing_docs), its tests under cfg(test) 2026-11-16 02:02:00 +00:00