Skip to content

ci(windows): run the nightly's real-ACL tests in a pwsh step (#10621) - #10755

Merged
EffortlessSteven merged 2 commits into
mainfrom
claude/project-thread-gyt3zf
Oct 27, 2026
Merged

EffortlessSteven merged 2 commits into
mainfrom
claude/project-thread-gyt3zf

Conversation

@EffortlessSteven

@EffortlessSteven EffortlessSteven commented Oct 26, 2026 •

Copy link
Copy Markdown
Member

Summary

Swarm / Source Boundary

  • ordinary feature, analyzer, editor, docs, spec, fixture, badge, dependency, or repo-ops development for ripr-swarm

Source-of-truth Links

Proposal:
Spec:
ADR:
Plan item: docs/releases/0.11.0-roadmap.md item 3
Governing issue or accepted claim: #10621
Acceptance delta (one sentence): The nightly Windows advisory lane runs the four real-ACL tests in a pwsh step with their own log and status instead of reporting them as NOT_ESTABLISHED under bash.

Candidate Relationships

Candidate branch (GitHub PR head is authoritative after publication): claude/project-thread-gyt3zf
Stack parent or prerequisite PR (if any): none
Proposed replacement of PR (if any; not yet accepted): none
Acceptance retained from a replaced candidate (if any): n/a
Accepted winner and losing candidate disposition (when decided): n/a

Scope

  • .github/workflows/windows-advisory.yml: job-level ACL_SKIPS, -- $ACL_SKIPS on the three bash test commands, a new pwsh step, two uploaded files, the job-timeout comment.
  • docs/CI.md (one bullet), changelog.d/10621-windows-nightly-acl-tests-outside-bash.md.
  • Review repair (9d8b3bf): xtask/src/windows_advisory_acl_evidence.rs (new cargo xtask windows-advisory-acl-evidence evidence guard plus unit tests) wired through xtask/src/{command,dispatch,main}.rs; the pwsh step ends with the guard pinning the four expected full libtest paths.

Scope Classification

  • Other: Windows test-environment and test-expectation fixes

Production delta:

  • None.

Evidence/support delta:

  • Hosted-runner probe: in a pwsh step the deny is enforced; from a bash step, with SeBackupPrivilege and SeRestorePrivilege Enabled, a pwsh child created the directory despite the deny.

Single acceptance criterion:

  • A dispatched nightly run shows the four real-ACL tests passing in the pwsh step and absent from the bash runs' failure lists.

Non-goals:

Support-tier Impact

  • none

Policy Impact

  • CI lane

Ledger or exception notes:

  • Advisory lane only; required lanes unchanged.

Proof

cargo xtask check-workflows                       # pass
cargo test -p xtask the_summarizer_verdict_reaches  # pass (workflow pin untouched)
cargo xtask precommit                             # pass

# review repair (9d8b3bf646):
cargo fmt --check                                 # pass
cargo test -p xtask --locked --bins -- windows_advisory_acl_evidence  # 8 passed, 0 failed (includes the missing-filter control)
cargo xtask check-no-panic-family / check-process-policy / check-allow-attributes / check-static-language / check-executable-files / check-network-policy / check-lint-policy  # all pass
cargo xtask check-workflows / check-command-catalog  # pass

Windows, nightly workflow dispatched on this head (run 40383529235, head 493bd98; ripr-windows-advisory artifact; the workflow file is unchanged since, only the PR body differs):

  • pwsh step: windows-acl.status 0; the log lists 4 tests ok: the three doctor ACL rows and real_unreadable_subtree_marks_corpus_selection_incomplete (4 passed, 0 failed).
  • Bash runs: neither workspace run lists any of the four names; each run still fails once on app::task_first::tests::boundary_only_not_ready_names_the_stub_route (status 101 in run 1 and run 2, 14821 passed, 1 failed per test binary summary). That test is outside this change.
  • Job conclusion success: the summarizer accepted both runs and the new step found its status.

Result, failures, or skipped proof:

  • The nightly workspace verdict is not green: one other Windows test fails in both runs.

Claim Boundary

May claim: the four tests run and pass in the pwsh step, and the bash runs no longer list them.

Must not claim: the nightly Windows suite passes, or the 24 other rows in the lane's workspace verdict are fixed.

Rollback

Revert the PR.

Spec-Test-Code Traceability

Static Language Check

  • Static output avoids killed, survived, untested, proven, and adequate.
  • Unknowns include stop reasons where applicable.

CI Economics

  • LEM impact: none
  • Workflows touched: windows-advisory.yml (nightly, windows-ci label, manual dispatch)
  • Branch protection impact: none
  • Failure mode caught: real-ACL tests failing as NOT_ESTABLISHED because the host shell leaks privileges
  • Cheaper signal considered: skipping the tests, rejected (they would stop checking anything)
  • Required lanes affected: none
  • Advisory lanes affected: nightly Windows advisory (one pwsh step, expected 2-5 minutes plus a possible recompile)
  • On-demand/release lanes affected: none
  • Labels that alter behavior: none
  • Artifact families affected: ripr-windows-advisory artifact gains windows-acl.log and windows-acl.status
  • Rollback path: revert

Engineering Check

  • No new panic, unwrap, expect, todo, or unimplemented in production code.
  • No new panic, unwrap, expect, todo, or unimplemented in tests.
  • Errors are reported with actionable context.

https://claude.ai/code/session_01Vhkd2Rg6pXt3emf3gMBRZF



https://claude.ai/code/session_01Vhkd2Rg6pXt3emf3gMBRZF


Generated by Claude Code

@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 15 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available. Your 167 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Essentials
  • Run ID: b9e8f8f2-5d2f-4a7d-97c9-53d768a83d2e
Commits

Reviewing files that changed from the base of the PR and between c98fc80 and 9d8b3bf.

Files selected for processing: 7
  • .github/workflows/windows-advisory.yml
  • changelog.d/10621-windows-nightly-acl-tests-outside-bash.md
  • docs/CI.md
  • xtask/src/command.rs
  • xtask/src/dispatch.rs
  • xtask/src/main.rs
  • xtask/src/windows_advisory_acl_evidence.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@EffortlessSteven
EffortlessSteven marked this pull request as ready for review October 26, 2026 21:23
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

Devin Review

Comment thread .github/workflows/windows-advisory.yml Resolved
#10621)

The pwsh step failed only when windows-acl.status was missing, but
windows-advisory-run writes a status even when cargo cannot start (status
127), and a renamed test or a stale name filter is a zero-match cargo run
that exits 0 (#4938) - the step could pass without executing the four tests
it exists to prove. windows-advisory-acl-evidence re-reads the status and
log the step produced and fails the step when either file is missing or
unreadable, when the runner reported spawn status 127, or when an expected
full libtest path is missing, duplicated or ignored in the log; a FAILED
row stays an advisory test outcome. The pwsh step pins the four full paths
and the guard is its last command, so the refusal is the step's status.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decision

  • Needs verification checks before upstream.

Verification questions

  • Confirm the guard accepts only exact libtest observation rows and does not explicitly validate the cargo status when it is nonzero other than 127.
  • Confirm runtime failure propagation through execute() was not proven by the available sensor receipts.

Refuted

  • The ACL evidence command is present only as documentation and is not reachable from xtask.; refuted because: The command name is recognized by XtaskCommand::parse, cataloged, and dispatched to the new implementation module.
  • The fix duplicates the four expected test paths across production code and workflow configuration, creating an avoidable synchronization burden.; refuted because: The helper accepts expectations as arguments and does not hard-code the production path list; only test constants repeat representative paths locally for unit coverage.
  • The new guard introduces a production behavior regression.; refuted because: The command is confined to a new xtask subcommand and a CI evidence step; it reads supplied files, writes none, and keeps test outcomes advisory while failing only missing evidence.

Evidence gaps

  • Focused execution evidence for the new xtask tests is pending, so the source-level red/green distinction is not independently confirmed by a test receipt in this packet.
  • Model proof intent was rejected by deterministic validation.
  • The repair lacks fresh hosted Windows evidence in the supplied review packet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants