8191 Commits

Author SHA1 Message Date
FredApps 91aed4b9ca Merge pull request #9063 from storytold/ci/windows-lean-tests
ci: trial: Windows tests only what is Windows-specific, through nextest
2026-12-02 20:59:16 +01:00
FredApps b0bb861807 CI: compile each macOS release architecture on a separate runner (#9075)
The v0.23.2 macOS job compiled Apple Silicon and Intel in series on one
macos-15 runner; the Build, sign, notarize step took about 3 hours 2
minutes (run 46835450051). macos-split-build: true compiles each
architecture on its own runner, then package.sh --skip-build lipos,
signs and notarizes the prebuilt pdfcraft and pdfcraft-cli binaries.

Fixes #9074.
2026-12-02 19:35:43 +01:00
FredApps eece0eb397 ci: retrigger the gate after the Actions outage dropped the last push (#9062) 2026-12-03 01:31:45 +07:00
FredApps bac86d10a0 Merge remote-tracking branch 'origin/fix/font-picker-test-waits-for-fonts' into ci/windows-lean-tests 2026-12-02 18:11:55 +01:00
FredApps e334921afa Merge branch 'main' into ci/windows-lean-tests 2026-12-02 18:11:52 +01:00
FredApps 2269408430 Merge branch 'main' into fix/font-picker-test-waits-for-fonts 2026-12-02 14:38:49 +01:00
FredApps 5b822e9e5e Merge pull request #9056 from storytold/ci/windows-warm-cache
ci: Windows gate warms and saves its dependency cache on main
2026-12-02 14:38:23 +01:00
FredApps 5a9749b257 ci: drop rust-lld from the Windows gate (#9062)
A same-machine comparison did not finish within its time limit, and the cold runs show no gain
(80.5 minutes of build with it against 83.9 without), so it is not kept.
2026-12-02 19:47:51 +07:00
FredApps cf106debf2 Merge pull request #3155 from zachshallbetter/fix/audit-clipping-coverage
Track clipping, form bounds and layer visibility in the redaction audit
2026-12-02 13:16:49 +01:00
FredApps 6c2abd6177 Merge pull request #9059 from storytold/fix/main-ci-freebsd-nightly-profile
test: keep the nightly socket tests from installing the process-wide profile
2026-12-02 13:01:54 +01:00
FredApps 5f128564f9 Merge remote-tracking branch 'origin/main' into fix/audit-clipping-coverage 2026-12-02 18:27:28 +07:00
FredApps b0feb5beff Merge main into fix/main-ci-freebsd-nightly-profile 2026-12-02 12:10:27 +01:00
FredApps b5e13c298e Merge pull request #9066 from storytold/fix/main-ci-text-select-wait
test(ui): wait for an encrypted document's view before reading its text layer
2026-12-02 12:10:13 +01:00
FredApps 02b3643334 Merge remote-tracking branch 'origin/main' into fix/main-ci-freebsd-nightly-profile 2026-12-02 11:15:07 +01:00
FredApps e8c6624960 test(ui): wait for an encrypted document's view before reading its text layer
harness_clip's wait read app.views[0] on its first check. An encrypted document opens in the
background after setup submits its password, so on a slow or busy machine the view did not
exist yet and the closure panicked with an index out of bounds instead of waiting.
2026-12-02 11:13:10 +01:00
FredApps 47a03cd446 test(ui): settle the Pages sidebar before the shadow comparison renders it (#9053)
A Windows nextest run failed rendered_page_content_is_identical_with_and_without_decoration at a
sidebar pixel: (119,119,124) with shadows on, (204,230,255), the page artwork's colour, with them
off. The sidebar thumbnails arrived between the two renders, and render_pending does not cover them.

(cherry picked from commit f5becd53f2)
2026-12-02 10:59:26 +01:00
FredApps f5becd53f2 test(ui): settle the Pages sidebar before the shadow comparison renders it (#9053)
A Windows nextest run failed rendered_page_content_is_identical_with_and_without_decoration at a
sidebar pixel: (119,119,124) with shadows on, (204,230,255), the page artwork's colour, with them
off. The sidebar thumbnails arrived between the two renders, and render_pending does not cover them.
2026-12-02 10:59:20 +01:00
FredApps 910760ffd6 ci: Windows tests only what is Windows-specific, through nextest and rust-lld (#9062)
Windows runs the crates with cfg(windows) code or tests, as Ubuntu does, with nextest. The 23 crates
without any, xtask, pdfcraft-web and the OCR worker stay on Ubuntu (cargo xtask ci runs them).
The Windows link step uses rust-lld. The warm leg builds exactly what the gate runs.
2026-12-02 10:52:19 +01:00
FredApps 2b672e5f7d test(ui): wait for the missing-file notice instead of four frames (#9053)
A Windows nextest run (trial, 9261 tests) failed opening_a_missing_file_fails_and_tells_the_user:
the failed read is reported from a background load, which four frames did not always cover.

(cherry picked from commit 7627f5f7e8)
2026-12-02 10:51:56 +01:00
FredApps 1d25e0a525 test(ui): wait for the installed fonts before the Format text font field is opened (#9053)
The Format text font field is shut ("Loading fonts…") until the installed-font catalogue has
finished its first scan, and a list opened earlier closes when the catalogue arrives. Two
tests opened it after a fixed number of frames, so a slow or contended runner (the Windows gate
runs the whole `it` binary in one process) clicked a shut field. They now wait for
App::installed_fonts_pending to clear first.

(cherry picked from commit 116f5cbbaa)
2026-12-02 10:51:56 +01:00
FredApps 9888be8a18 Merge pull request #3233 from PerchAnton/fix/persist-form-reminder
Remember form-field reminder dismissal across sessions (#2725)
2026-12-02 10:40:18 +01:00
FredApps 7cce4ce173 test: resolve nightly launches in the socket tests without installing the profile
cargo test runs the pdfcraft binary's unit tests in one process. The single-instance socket
tests called launch_profile::prepare, which installs the nightly profile in craft_nightly's
process-wide OnceLock, so tests that ran after them saw a nightly launch: the window icon test
compared the nightly icon with the stable one, and stable_defaults_and_nightly_version_line
found is_nightly() true. The FreeBSD workflow runs plain cargo test and failed this way.

The socket tests now parse and validate the launch the same way, without installing it.
2026-12-02 10:27:50 +01:00
FredApps 7627f5f7e8 test(ui): wait for the missing-file notice instead of four frames (#9053)
A Windows nextest run (trial, 9261 tests) failed opening_a_missing_file_fails_and_tells_the_user:
the failed read is reported from a background load, which four frames did not always cover.
2026-12-02 10:16:11 +01:00
FredApps 9b2c9e1033 Pass the notice flags to notices() as one struct
After main was merged in, notices() takes eight arguments and clippy's
too_many_arguments fails the gate. AGENTS.md asks to fix the code a lint reports
rather than silence it, so the four booleans that decide which notices show
(form-field reminder, secured, repaired, lock offer) now travel as NoticeFlags.
Behaviour is unchanged.

Also use assert!(!..) in the form reminder test, which the newer clippy flags
(bool_assert_comparison); the assertion is the same.
2026-12-02 09:54:21 +01:00
FredApps 116f5cbbaa test(ui): wait for the installed fonts before the Format text font field is opened (#9053)
The Format text font field is shut ("Loading fonts…") until the installed-font catalogue has
finished its first scan, and a list opened earlier closes when the catalogue arrives. Two
tests opened it after a fixed number of frames, so a slow or contended runner (the Windows gate
runs the whole `it` binary in one process) clicked a shut field. They now wait for
App::installed_fonts_pending to clear first.
2026-12-02 09:06:05 +01:00
FredApps 28e8f2a22a ci: Windows gets its own gate call that warms and saves its dependency cache (#9054)
The Windows gate has no dependency cache, so every Windows run compiles all 741 crates cold.
A `cache warm (windows-latest)` leg now builds the tests and saves the entry as soon as the build
succeeds, so a main whose Windows tests fail still seeds it. The call has a 120-minute limit for a
cold run. cache-prune.yml deletes an entry once a newer one of its family replaces it.
2026-12-02 09:03:52 +01:00
FredApps e1a260b3b6 Merge remote-tracking branch 'origin/main' into HEAD 2026-12-02 08:53:31 +01:00
FredApps 0f0aeda1e8 Merge pull request #9033 from storytold/onee/ci-windows-cold-cache
ci: skip Windows clippy and debug info so a cold-cache Windows gate reaches its tests
2026-12-02 08:38:10 +01:00
FredApps 3d9f308762 Merge pull request #3331 from saad-mughal435/feat/image-page-size
M10: put image pages on a chosen paper size (#3273)
2026-12-02 08:24:24 +01:00
FredApps dcb2c569a5 Merge branch 'main' into feat/image-page-size 2026-12-02 07:41:28 +01:00
FredApps 2dd24dcdf9 Format with rustfmt after the main merge
Import lists in engine/src/lib.rs and session.rs reflow, and one blank line
goes from the automation tests; no other change.
2026-12-02 13:40:33 +07:00
FredApps 40e3766b66 Merge pull request #1972 from cyfung1031/feat/open-loading-feedback
Desktop: show an opening indicator during PDF preparation
2026-12-02 07:20:25 +01:00
FredApps 36f0150c42 Merge pull request #3069 from mtlcl410/feat/alpha-hit-testing
M7: pictures are picked where they show, not across their transparent margins (#3005)
2026-12-02 07:19:44 +01:00
FredApps 7d8d4cac1b Merge pull request #4530 from mtlcl410/fix/link-gotoe-embedded
M3: a GoToE link opens the PDF embedded in the document at its destination (view.follow-links)
2026-12-02 07:19:07 +01:00
FredApps 6fa36793a7 Merge pull request #4499 from mtlcl410/fix/validate-rejected-value-reverts
M6: a value the validate action rejects is dropped and the field keeps its value (#4498)
2026-12-02 07:18:20 +01:00
FredApps 7b5e9ee871 Merge branch 'main' into fix/persist-form-reminder 2026-12-02 06:33:17 +01:00
FredApps a728a14a67 Merge branch 'main' into feat/open-loading-feedback 2026-12-02 06:33:10 +01:00
FredApps dd90ee980d Merge branch 'main' into feat/alpha-hit-testing 2026-12-02 06:33:04 +01:00
FredApps 4e2f80648a Merge branch 'main' into fix/link-gotoe-embedded 2026-12-02 06:32:57 +01:00
FredApps ca74084fc9 Merge branch 'main' into fix/validate-rejected-value-reverts 2026-12-02 06:32:44 +01:00
FredApps b2308a7244 Merge pull request #622 from thorstenhirsch/feat/sign-ca-checks-and-trust-sets
M9: opt-in trust lists (a file of CA certificates, such as the EU Trusted Lists)
2026-12-02 06:31:41 +01:00
FredApps a639547bc9 Merge branch 'main' into feat/image-page-size 2026-12-02 05:45:52 +01:00
FredApps e0580ebaad Merge branch 'main' into feat/sign-ca-checks-and-trust-sets 2026-12-02 05:45:46 +01:00
FredApps 23c8c0fc76 Merge pull request #7470 from gmrmad1/fix/7382-document-script-notice
fix(ui): show a notice when a document script couldn't run (#7382)
2026-12-02 05:36:10 +01:00
FredApps 1c22296ae0 Merge pull request #6984 from alehel/fix/xfa-message-box-answers
fix(js, engine, ui): XFA message boxes return the button picked (#4291)
2026-12-02 05:35:34 +01:00
FredApps 8636becdec ci: skip Windows clippy and debug info so a cold-cache Windows gate reaches its tests
Clippy runs on Linux in cargo xtask ci, and its lints don't differ by platform.
Debug info for every dependency made a cold-cache Windows gate spend its 90
minutes compiling (run 46775764634), so cargo test never started.

Closes #9032
2026-12-02 10:58:47 +07:00
FredApps 7dc1f78bab Merge branch 'main' into fix/7382-document-script-notice 2026-12-02 04:52:25 +01:00
FredApps 016246e7fc Merge branch 'main' into fix/xfa-message-box-answers 2026-12-02 04:52:18 +01:00
FredApps 07e39ad46b Merge pull request #7444 from vangel76/fix/merge-data-quoted-csv-7410
Merge form data: a field name with a comma is one column, not two
2026-12-02 04:15:01 +01:00
FredApps 1034899e97 Merge branch 'main' into fix/merge-data-quoted-csv-7410 2026-12-02 02:07:03 +01:00