From 9739cc23193a8bd97ccb2fd95c8686df26ef82e0 Mon Sep 17 00:00:00 2001 From: Codex Date: Thu, 3 Dec 2026 07:22:37 +0100 Subject: [PATCH] Replay the exact compiled app with the corrected Windows path --- .github/qa/prepare-explicit-job-capture.ps1 | 3 +- ...eplay-vectorcraft-explicit-job-options.yml | 57 +++++++++++++++++++ 2 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/replay-vectorcraft-explicit-job-options.yml diff --git a/.github/qa/prepare-explicit-job-capture.ps1 b/.github/qa/prepare-explicit-job-capture.ps1 index 900ac6150a..ef02007a73 100644 --- a/.github/qa/prepare-explicit-job-capture.ps1 +++ b/.github/qa/prepare-explicit-job-capture.ps1 @@ -37,7 +37,8 @@ $env:VECTORCRAFT_CAPTURE_QUEUE = $queue '@ $native = $native.Remove($beginCall, $endCall - $beginCall).Insert($beginCall, $appCall).Replace($cases, $replacement) -$exe = Join-Path $env:CARGO_TARGET_DIR 'debug ectorcraft.exe' +$exe = [IO.Path]::Combine($env:CARGO_TARGET_DIR, 'debug', 'vectorcraft.exe') +if (!(Test-Path -LiteralPath $exe -PathType Leaf)) { throw "The captured app executable is missing at $exe" } $file = Join-Path $env:RUNNER_TEMP 'vectorcraft-explicit-job-options.ps1' [IO.File]::WriteAllText($file, $native) & $file diff --git a/.github/workflows/replay-vectorcraft-explicit-job-options.yml b/.github/workflows/replay-vectorcraft-explicit-job-options.yml new file mode 100644 index 0000000000..4174ca9364 --- /dev/null +++ b/.github/workflows/replay-vectorcraft-explicit-job-options.yml @@ -0,0 +1,57 @@ +name: Replay the compiled VectorCraft job options capture +on: + push: + branches: [verify/vectorcraft-job-options-replay-4859] +permissions: + contents: read + actions: read +jobs: + windows: + runs-on: windows-2025 + timeout-minutes: 18 + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 + with: + persist-credentials: false + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 + with: + repository: storytold/pdfcraft + ref: df3f32dfb4c4ca711b7b4fa41cd67a5fd46af50d + path: fixture + persist-credentials: false + - uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 + with: + github-token: ${{ github.token }} + run-id: 47046619520 + name: vectorcraft-explicit-job-executable + path: replay/debug + - name: Replay the exact compiled app and its private worker + shell: pwsh + run: | + $env:CARGO_TARGET_DIR = (Resolve-Path -LiteralPath 'replay').Path + Get-FileHash -LiteralPath 'replay/debug/vectorcraft.exe' -Algorithm SHA256 + ./.github/qa/prepare-explicit-job-capture.ps1 + - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 + if: always() + with: + name: vectorcraft-explicit-job-captures + path: captured-postscript/ + if-no-files-found: warn + retention-days: 7 + inspect: + needs: windows + runs-on: ubuntu-24.04 + timeout-minutes: 12 + steps: + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 + with: + persist-credentials: false + - uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 + with: + name: vectorcraft-explicit-job-captures + path: prints + - uses: storytold/craft-common-actions/actions/install-apt-packages@58848078cd09e3ca182891a8b76ee979f1eb6e1c + with: + packages: ghostscript python3-pil + - name: Inspect the native capture on both queues + run: /usr/bin/python3 .github/qa/inspect-explicit-job-capture.py prints