Repository navigation
ci(windows): run the nightly's real-ACL tests in a pwsh step (#10621) - #10755
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Vhkd2Rg6pXt3emf3gMBRZF
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
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. View limit details
Comment |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
#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.
There was a problem hiding this comment.
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.
Summary
windows-advisory.yml) runscargo testundershell: bash. Git for Windows bash enablesSeBackupPrivilegeandSeRestorePrivilege, which bypass theicacls (AD)deny that four tests need, so they reportNOT_ESTABLISHEDthere (the sharded lane fixed this in ci(windows): run real-ACL tests in a pwsh step of the sharded workflow (#9272) #10159; the nightly still carries it, Windows nightly advisory: real-ACL tests still run under bash and fail NOT_ESTABLISHED #10621).ACL_SKIPS; a newshell: pwshstep runs them throughwindows-advisory-runwith its ownwindows-acl.logandwindows-acl.status, writes a step-summary section, and fails only when the status is missing. They stay out of the two-run verdict.Swarm / Source Boundary
ripr-swarmSource-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-levelACL_SKIPS,-- $ACL_SKIPSon 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.xtask/src/windows_advisory_acl_evidence.rs(newcargo xtask windows-advisory-acl-evidenceevidence guard plus unit tests) wired throughxtask/src/{command,dispatch,main}.rs; the pwsh step ends with the guard pinning the four expected full libtest paths.Scope Classification
Production delta:
Evidence/support delta:
SeBackupPrivilegeandSeRestorePrivilegeEnabled, a pwsh child created the directory despite the deny.Single acceptance criterion:
Non-goals:
NOT_ESTABLISHEDfail-closed behavior in the tests.Support-tier Impact
Policy Impact
Ledger or exception notes:
Proof
Windows, nightly workflow dispatched on this head (run 40383529235, head 493bd98;
ripr-windows-advisoryartifact; the workflow file is unchanged since, only the PR body differs):windows-acl.status0; the log lists 4 tests ok: the threedoctorACL rows andreal_unreadable_subtree_marks_corpus_selection_incomplete(4 passed, 0 failed).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.Result, failures, or skipped proof:
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
killed,survived,untested,proven, andadequate.CI Economics
Engineering Check
panic,unwrap,expect,todo, orunimplementedin production code.panic,unwrap,expect,todo, orunimplementedin tests.https://claude.ai/code/session_01Vhkd2Rg6pXt3emf3gMBRZF
https://claude.ai/code/session_01Vhkd2Rg6pXt3emf3gMBRZF
Generated by Claude Code