Repository navigation
Commit 209fbd1
authored
fix(permissions): raise Windows command timeout (#99)
The 10-second bound added in #89 was too tight for the command fallback and
fired on contended Windows runners, producing an intermittent
permission-unverified failure on unrelated pull requests. That code means "we
could not verify", which a consumer may reasonably treat as a security signal,
so emitting it because a runner was busy is a false alarm with real
consequences.
Successful runs of the affected secure-read test measure 1.930s to 5.400s, and
one Node 24 leg passed at 9.349s with roughly 651ms of margin. The contended
failures on #94 and #95 landed at 10.130s and 10.173s, which is the old bound
firing rather than a hang.
Thirty seconds is over five times the slowest observed success and about three
times the overloaded cutoff, while still terminating a genuinely wedged command
rather than letting it hang indefinitely. The deadline stays per process, since
each child is the independently wedgable unit and an overall budget would let
several slow-but-successful commands compete for one allowance and reproduce
the same false result.
Fail-closed behavior is unchanged: a real failure or timeout still yields
source "unknown", and secure reads still reject it as permission-unverified.1 parent 3c64caa commit 209fbd1
4 files changed
Lines changed: 18 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
29 | 43 | | |
30 | 44 | | |
31 | 45 | | |
| |||
0 commit comments