Repository navigation
fix(ci): newest-MSI selection, cargo-audit guard, and PR triggers - #61
Merged
CameronBrooks11 merged 2 commits intoApr 16, 2026
Merged
Conversation
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
deleted the
fix/ci-e2e-msi-version-cargo-audit-pr-triggers
branch
April 16, 2026 16:24
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 MSIThe 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 1with 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 infind-bundled-cli.ps1to always fail with a cross-version mismatch. Fixed by sorting onLastWriteTime -Descendingbefore selecting.dependency-audit.yml— guardcargo-auditinstallcargo install cargo-audit --lockedexits 101 when the binary is already present on the runner image and--forceis 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— addedpull_request: branches: [main]so CVEs (e.g. the pytestCVE-2025-71176from the previous cycle) are surfaced on the PR that introduced them, not after merge.gui-packaging.yml— addedpull_request: branches: [main]with the same path filters as the existingpushtrigger, plusscripts/ci/**andgui-e2e-smoke.yml. Sincegui-e2e-smokechains offgui-packagingviaworkflow_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.