Repository navigation
test(windows): preserve packaged CLI arguments in qualification - #3174
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
Summary by CodeRabbit
WalkthroughThe Windows packaged qualification helper now rejects empty argument lists, uses ChangesPackaged CLI argument handling
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related issues
Possibly related PRs
Suggested labels: Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@xtask/src/windows_advisory.rs`:
- Around line 1014-1042: Strengthen
packaged_qualification_cli_helper_preserves_arguments by asserting the
empty-argument guard, its throw, and the splatted & $env:RIPR_PACKAGED `@cliArgs`
invocation directly on helper rather than searching the whole workflow; verify
the validation appears before invocation. Reject every $args reference in
helper, not only the parameter declaration, while preserving the existing
required workflow assertions.
- Around line 1014-1042: Update
packaged_qualification_cli_helper_preserves_arguments to scope the
argument-guard and `@cliArgs` splat assertions to the extracted Invoke-CLI
definition, and verify their ordering within that helper. Leave the
version-related assertions as workflow-wide checks, and run the qualified test
windows_advisory::tests::packaged_qualification_cli_helper_preserves_arguments.
🪄 Autofix
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 15919bca-d12d-4ac1-8922-34a8b0f9315e
📒 Files selected for processing (2)
.github/workflows/windows-packaged-qualification.ymlxtask/src/windows_advisory.rs
Codecov Report❌ Patch coverage is
📢 Thoughts on this report? Let us know! |
EffortlessSteven
left a comment
There was a problem hiding this comment.
REVIEW_INCOMPLETE. reviewed_head_sha: c7a3c19. integration_basis: PR #3174 base ffea464. changed_surfaces_and_semantic_owners_inspected: the packaged Windows qualification Invoke-CLI helper and xtask workflow-contract test. Findings: no blocking source defect. The helper-local test now checks the named cliArgs parameter, rejects every args reference in the helper, requires the empty guard and throw, requires the packaged executable splat, and verifies guard-before-invocation ordering; workflow-wide version assertions remain retained. Direct PowerShell probe passed one --version argument and confirmed the empty guard. Hosted exact-head evidence observed: routed Rust, coverage, test analytics, security, source-of-truth, planning, and mergeability success; exact-head ub-review and GitHub-hosted routed job were still in progress at inspection; codecov patch was red at 78.57 percent with 9 lines missing. Local focused test remains unavailable because MSVC linking failed under the repository temporary-directory configuration and concurrent build contention; hosted test-analytics success is the available test evidence. Automated review finding was addressed in c7a3c19 and the review thread is resolved. Diff scope remains limited to the workflow helper and its focused contract test; no product, release, publication, or unrelated PR lifecycle changes. Residual assumptions: final in-progress exact-head checks must complete successfully, and Codecov red must be confirmed advisory or resolved by repository policy. Disposition: no source repair requested; keep candidate in review until exact-head check state is complete.
Exact-head review disposition: REVIEW_READYReviewed head
This disposition establishes review readiness for this exact PR head. It does not authorize tagging, publication, or release-candidate selection. |
Summary
Fixes #3173. The Windows packaged qualification helper previously shadowed PowerShell's automatic
$args, so the installed executable could be invoked without the caller's arguments. This patch preserves the argument vector and strengthens the workflow contract test so the guard, throw, splat, and ordering are checked on the helper itself.Scope
.github/workflows/windows-packaged-qualification.yml: rename the helper parameter to$cliArgs, reject empty argument vectors, and invoke the isolated packaged executable with@cliArgs.xtask/src/windows_advisory.rs: enforce the helper-local contract and preserve workflow-wide version-journey checks.No product code, release version, Cargo isolation, install prefix, artifact policy, or unrelated PR lifecycle is changed.
Acceptance and proof
git diff --checkandcargo fmt --all -- --check.c7a3c19b2cc2011e73836e070ff188e8410310c5; review thread has an evidence reply and is resolved.cargo test -p xtask windows_advisory::tests::packaged_qualification_cli_helper_preserves_arguments -- --exactwas retried with isolated targets and the repository's forced temporary-directory configuration; MSVC linking failed withLNK1104under concurrent build contention. No local test pass is claimed; hosted exact-head proof is required.Exact candidate
ffea464bcc3faf21be20770da62ecc20cea19cf5c7a3c19b2cc2011e73836e070ff188e8410310c5Claim boundary
This PR proves the Windows qualification workflow source and its static regression contract preserve packaged CLI arguments. It does not qualify a release candidate, authorize publication, publish artifacts, or establish Windows hosted qualification until the exact current head completes the required workflow.
Rollback
Revert the single PR merge if the qualification helper or its contract test regresses; no release tag or external artifact is changed by this PR.