Commit 3b3b5a6
fix(ci): semantic Bundle RBAC sync check (was: file-diff flake) (#16)
## Summary
`hack/sync-bundle-rbac.sh --check` mutated the CSV via yq then compared
the working tree to HEAD. yq's output reformatted unrelated parts of the
CSV, so the check failed even when the rules were in sync. Worse,
running the sync twice produced two different files (not idempotent).
Switched the check to compare just the `.rules` array, normalized
through `yq -P`. No file mutation in check mode.
## Test plan
- [x] `bash hack/sync-bundle-rbac.sh --check` passes against the current
`main`
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 69524c6 commit 3b3b5a6
1 file changed
Lines changed: 21 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
6 | 11 | | |
7 | 12 | | |
8 | 13 | | |
| |||
12 | 17 | | |
13 | 18 | | |
14 | 19 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | | - | |
23 | 24 | | |
24 | | - | |
| 25 | + | |
25 | 26 | | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
| 30 | + | |
| 31 | + | |
28 | 32 | | |
29 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
30 | 41 | | |
0 commit comments