From ac82f2911a441404c2c361538dba689eaf2fce54 Mon Sep 17 00:00:00 2001 From: BFlat Date: Tue, 24 Nov 2026 16:25:51 +0700 Subject: [PATCH] CI: pdf-deps expects the new craft-libs pin; Edit Original tests' editor is executable on Linux (#9216) Fixes main's two red Linux gate legs. - **Leg 5 (`pdf-deps`)**: `xtask/src/pdf_deps.rs` pinned craft-libs `945e849cb`, the revision before #9211, so the check failed once the app moved to `3238a3eca`. It now expects `3238a3eca`; `cargo xtask pdf-deps` passes. - **Leg 1 (`original_editor::tests`)**: the test helper `editor()` called `set_mode` on a copy of the file's permissions and never applied it, so on Linux the stand-in editor had no executable bit and the platform's application check (craft-libs `platform/src/open.rs`, `mode() & 0o111 != 0`) refused it. `native_choice_commits_persists_cancels_and_resets` and `original_editor_async_picker_validates_and_commits_only_on_ok` failed on Linux only; this leg was already red before the re-pin. The helper now writes the mode with `set_permissions`. Checks: `original_editor` tests pass on Windows (6/6; the Linux path is what this PR's CI checks); clippy (`vectorcraft-ui-egui`, `xtask`, all targets, `-D warnings`) and `cargo fmt --check` are clean. --- crates/ui-egui/src/original_editor.rs | 2 +- xtask/src/pdf_deps.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ui-egui/src/original_editor.rs b/crates/ui-egui/src/original_editor.rs index 78ff94d942..5888f2fa26 100644 --- a/crates/ui-egui/src/original_editor.rs +++ b/crates/ui-egui/src/original_editor.rs @@ -170,7 +170,7 @@ mod tests { let p = dir.join(if cfg!(windows) { "Editor.exe" } else { "editor" }); std::fs::write(&p, b"").unwrap(); #[cfg(unix)] - std::os::unix::fs::PermissionsExt::set_mode(&mut std::fs::metadata(&p).unwrap().permissions(), 0o755); + std::fs::set_permissions(&p, ::from_mode(0o755)).unwrap(); p }; path.to_string_lossy().into_owned() diff --git a/xtask/src/pdf_deps.rs b/xtask/src/pdf_deps.rs index 8510b4b996..a01ec5eda3 100644 --- a/xtask/src/pdf_deps.rs +++ b/xtask/src/pdf_deps.rs @@ -5,7 +5,7 @@ use std::process::Command; use serde_json::Value; -const REV: &str = "945e849cbaff313f046121f335019fcde1d48e0c"; +const REV: &str = "3238a3eca8af59ba13ee04a39f3527979e1dc33d"; const PACKAGES: &[(&str, &str, &str)] = &[ ("craft-pdf", "0.1.0", REV), ("krilla", "0.8.2", REV),