Repository navigation
Conversation
|
Integration follow-up: this was the final blocker in the stacked native-Windows run. After applying this head, desktop-backend-candidate-probe-fixtures passed all 14 cases and the official make preflight completed all 30 selected checks successfully in 223.41s. |
|
Thanks for the focused Windows-safe test fix. I reviewed the single This looks like the right direction to me: the token-permission assertion stays fail-closed on Windows, POSIX still exercises the Because this touches CI/probe test infrastructure under by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
kodjima33
left a comment
There was a problem hiding this comment.
Fixes candidate-probe fixtures that assumed POSIX mode-0600 semantics on Windows; the production reader's fail-closed behaviour is now asserted there instead of faking chmod. 14 tests pass, green CI.
What changed and why
Keep the desktop-backend candidate-probe fixtures faithful to the production security boundary on native Windows.
The token helper intentionally requires a regular POSIX mode-
0600file. Windows cannot represent or prove that mode throughst_mode, so the permission test now asserts the existing fail-closed result there instead of expectingchmod(0o600)to create POSIX semantics.The full CLI provenance test now mocks the token-validation boundary and asserts that it receives the requested path. That test remains focused on forwarding candidate revision, image, tag, and workflow provenance instead of depending on host filesystem permission semantics.
Product invariants affected
none
How it was verified
py_compileandgit diff --checkpassed.Tests
The mode test still exercises successful mode-
0600reads and rejection of mode0644on POSIX. On Windows it verifies that the production reader fails closed. The CLI test independently verifies the token path and all candidate provenance forwarded to the probe.Failure class (fixes)
Failure-Class: none