Capture native output from the schema-corrected app

This commit is contained in:
Codex
2026-12-03 07:25:41 +01:00
parent 6a2182cafb
commit ac2a5931aa
2 changed files with 3 additions and 39 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ pub(crate) fn run() {
session.execute("paint.setFill", &json!({ "color": color, "opacity": 60 })).unwrap();
session.execute("paint.setStroke", &json!({ "none": true })).unwrap();
}
let report = session.execute("file.print", &json!({ "path": path, "compositeGrayscale": grayscale })).unwrap();
let report = session.execute("file.print", &json!({ "path": path, "settings": { "color": { "grayscale": grayscale } } })).unwrap();
assert_eq!(report["pages"], 2);
let grayscale_composed = report["compositeGrayscale"] == true;
assert_eq!(grayscale_composed, grayscale);
@@ -1,11 +1,11 @@
name: Verify VectorCraft per-job colour and duplex
on:
push:
branches: [verify/vectorcraft-job-options-native-4859]
branches: [verify/vectorcraft-job-options-fixed-4859]
permissions:
contents: read
concurrency:
group: verify-vectorcraft-job-options-native-4859
group: verify-vectorcraft-job-options-fixed-4859
cancel-in-progress: true
env:
SHARED_REV: 1d4231487ef21624ad7b7a5ddc92ff7a1fe79f65
@@ -18,42 +18,6 @@ env:
CARGO_INCREMENTAL: "0"
CARGO_BUILD_JOBS: "2"
jobs:
shared:
runs-on: ubuntu-24.04
timeout-minutes: 30
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
repository: storytold/craft-libs
ref: 1d4231487ef21624ad7b7a5ddc92ff7a1fe79f65
persist-credentials: false
- name: Validate colour, duplex and preserved private settings in the shared ticket
run: |
set -euo pipefail
cargo test -p craft-print --lib explicit_color | tee "$RUNNER_TEMP/job-color.log"
grep -E 'explicit_color_is_validated_after_a_grayscale_job +[.][.][.] ok' "$RUNNER_TEMP/job-color.log"
grep -E 'explicit_color_replaces_grayscale_without_touching_private_settings +[.][.][.] ok' "$RUNNER_TEMP/job-color.log"
scripts:
runs-on: ubuntu-24.04
timeout-minutes: 50
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
persist-credentials: false
- uses: storytold/craft-common-actions/actions/install-apt-packages@58848078cd09e3ca182891a8b76ee979f1eb6e1c
with:
packages: >-
pkg-config libxkbcommon-dev libwayland-dev libx11-dev libxcb1-dev libxcursor-dev libxrandr-dev
libxi-dev libfontconfig1-dev libfreetype-dev mesa-vulkan-drivers libgl1-mesa-dev libasound2-dev libudev-dev
- name: Verify that approved script jobs retain independent driver choices
run: |
set -euo pipefail
previous=77ade517ecb2a6ad86feb2f9983a098ad5738fc6
sed -i "s/$previous/$SHARED_REV/g" Cargo.toml apps/vectorcraft-web/Cargo.toml
printf '[profile.dev.package."*"]\nopt-level = 0\n[profile.test.package."*"]\nopt-level = 0\n' > "$RUNNER_TEMP/vector-qa-profile.toml"
cargo --config "$RUNNER_TEMP/vector-qa-profile.toml" test -p vectorcraft-ui-egui --lib tests::script_print | tee "$RUNNER_TEMP/approved-print.log"
grep -F 'approved_script_jobs_keep_separate_color_and_duplex_choices ... ok' "$RUNNER_TEMP/approved-print.log"
cargo --config "$RUNNER_TEMP/vector-qa-profile.toml" test --locked -p vectorcraft-engine --test it script_host_vs_scriptcheck
windows:
runs-on: windows-2025
timeout-minutes: 75