Skip to content

fix(ci): address failing Python audit and Windows E2E CI lanes - #60

Merged
CameronBrooks11 merged 1 commit into
mainfrom
fix/ci-python-audit-windows-e2e
Apr 16, 2026
Merged

CameronBrooks11 merged 1 commit into
mainfrom
fix/ci-python-audit-windows-e2e

Conversation

@CameronBrooks11

Copy link
Copy Markdown
Member

Summary

Fixes two failing CI lanes: the Python dependency audit and the Windows E2E smoke test.


Python audit (CVE-2025-71176)

  • Bumped pytest 9.0.2 → 9.0.3 in uv.lock.
    pip-audit reports no vulnerabilities after this change (verified locally).

Windows E2E smoke

Root cause: 7z x on a WiX-generated MSI extracts the embedded Cabinet (.cab) as a single opaque stream rather than decompressing its contents. With only the raw Cabinet present in the output tree, neither the path-regex search for _up_/bundled-cli/fiberpath.exe nor the SHA256 hash fallback can locate the CLI binary (the fallback compared against compressed CAB bytes, not the ~42 MB decompressed executable).

scripts/ci/extract-package-runtime.ps1

  • Added a two-pass extraction: after the initial 7z x on the MSI, any .cab files in the output are extracted in a second 7z x pass, then removed. This surfaces the actual binaries so the downstream path-regex and hash-fallback in find-bundled-cli.ps1 can match them.
  • Added a full extracted-file inventory to the log for future diagnostics.

scripts/ci/find-bundled-cli.ps1

  • Widened the path-regex to also cover resources/_up_/bundled-cli/ and resources/bundled-cli/ prefixes used by some Tauri v2 WiX layouts.
  • Dumps a full file inventory when the path search finds nothing, and logs hash + size for every >1 MB file when the hash fallback also fails — making future failures fully self-diagnosing without a re-run.

.github/workflows/gui-packaging.yml

  • Improved the Windows "Verify CLI bundled" step to inspect the built MSI with 7z l post-build and confirm fiberpath.exe is visible (or emit a non-fatal warning with the listing if not), providing an early signal before the artifact is uploaded.

Python audit:
- Upgrade pytest 9.0.2 -> 9.0.3 in uv.lock to fix CVE-2025-71176

Windows E2E smoke:
- extract-package-runtime.ps1: add two-pass extraction so that when
  7z x on the WiX MSI yields an embedded Cabinet stream (.cab) rather
  than decompressed individual files, the CAB is extracted in a second
  pass to expose the actual binaries for path/hash discovery.  The raw
  CAB streams are removed after extraction to avoid confusing later
  searches.  All extracted files are now logged for future diagnostics.

- find-bundled-cli.ps1: widen path-based regex to also cover the
  resources/_up_/bundled-cli/ and resources/bundled-cli/ prefixes used
  by some Tauri v2 WiX layouts.  Add a full file inventory dump when
  the path search finds nothing, and dump hash+size of every large file
  when the hash fallback also finds nothing, so the next CI failure is
  fully self-diagnosing.

- gui-packaging.yml: improve the Windows 'Verify CLI bundled' step to
  inspect MSI contents with 7-zip after build, warning (non-fatal) when
  fiberpath.exe is not directly visible in the listing (expected when
  7-zip shows only the CAB stream).  This gives early confirmation that
  the bundled CLI made it into the installer before the artifact upload.
@CameronBrooks11
CameronBrooks11 merged commit 957ad0c into main Apr 16, 2026
15 checks passed
@CameronBrooks11
CameronBrooks11 deleted the fix/ci-python-audit-windows-e2e branch April 16, 2026 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant