Skip to content

fix(ci): newest-MSI selection, cargo-audit guard, and PR triggers - #61

Merged
CameronBrooks11 merged 2 commits into
mainfrom
fix/ci-e2e-msi-version-cargo-audit-pr-triggers
Apr 16, 2026
Merged

CameronBrooks11 merged 2 commits into
mainfrom
fix/ci-e2e-msi-version-cargo-audit-pr-triggers

Conversation

@CameronBrooks11

Copy link
Copy Markdown
Member

Summary

Addresses the two remaining CI failures from the previous round, and adds PR-time triggers so these issues are caught before merging rather than after.


Bug fixes

scripts/ci/extract-package-runtime.ps1 — pick the newest MSI
The packaging artifact bundle accumulates MSI files from prior cached Rust builds (e.g. 0.5.4, 0.6.1, 0.6.2, 0.7.0 all present). The previous Select-Object -First 1 with no sort picked alphabetically-first (0.5.4), while the reference CLI artifact belonged to the current build (0.7.0) — causing the hash probe in find-bundled-cli.ps1 to always fail with a cross-version mismatch. Fixed by sorting on LastWriteTime -Descending before selecting.

dependency-audit.yml — guard cargo-audit install
cargo install cargo-audit --locked exits 101 when the binary is already present on the runner image and --force is not passed. Fixed by prefixing with a version-check: cargo audit --version 2>/dev/null || cargo install cargo-audit --locked.


PR triggers (stop churning PRs)

dependency-audit.yml — added pull_request: branches: [main] so CVEs (e.g. the pytest CVE-2025-71176 from the previous cycle) are surfaced on the PR that introduced them, not after merge.

gui-packaging.yml — added pull_request: branches: [main] with the same path filters as the existing push trigger, plus scripts/ci/** and gui-e2e-smoke.yml. Since gui-e2e-smoke chains off gui-packaging via workflow_run, the full packaging → E2E smoke pipeline now also runs on PRs that touch packaging or CI-script files, catching extraction/discovery bugs before they reach main.

scripts/ci/extract-package-runtime.ps1:
  Sort MSI candidates by LastWriteTime descending before Select-First-1.
  When the packaging artifact bundle accumulates MSI files from prior
  cached Rust builds (multiple versions present), the previous
  alphabetical-first pick chose the wrong version (e.g. 0.5.4 vs 0.7.0),
  causing the hash probe in find-bundled-cli.ps1 to always fail.

dependency-audit.yml:
  Add pull_request trigger so CVEs are surfaced on the PR rather than
  after merge.  Guard the cargo-audit install step with a version-check
  so the job does not fail when cargo-audit is already present on the
  runner image (cargo install exits 101 without --force).

gui-packaging.yml:
  Add pull_request trigger (same path filters as push, plus scripts/ci/**
  and gui-e2e-smoke.yml).  gui-e2e-smoke chains off gui-packaging via
  workflow_run, so this naturally gates E2E smoke on PRs too, stopping
  the cycle of discovering CI-script bugs only after merge.
The pull_request path filter enumerated only specific workflow and
action files, so PRs that exclusively touch scripts/ci/** or
.github/workflows/dependency-audit.yml / gui-packaging.yml never
started the CI Check workflow.  GitHub then permanently blocked merging
while waiting for a required status that would never be reported.

Broaden both push and pull_request path filters to scripts/** and
.github/workflows/** / .github/actions/** so any change in those trees
fires the CI Check aggregator job.
@CameronBrooks11
CameronBrooks11 merged commit 3d92cdd into main Apr 16, 2026
21 checks passed
@CameronBrooks11
CameronBrooks11 deleted the fix/ci-e2e-msi-version-cargo-audit-pr-triggers branch April 16, 2026 16:24
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