Commit 4d64aae
Preserve rules from previous passing CI when current CI fails
When a PR has a new commit that fails CI (or CI is still pending),
preserve the existing synced rules from the previous passing commit
instead of removing them. Also don't remove the in-test-rules label
since the rule is still in test-rules (just an older version).
This prevents:
1. Rules disappearing when CI is slow or temporarily failing
2. False "manual exclusion" detection when the label was removed
by the script due to CI failure, not by a user
Changes:
- sync_test_rules.py: Remove label removal on CI failure, add file
preservation logic
- sync_shared_samples.py: Add CI checking (was missing entirely),
with file preservation for failing/pending CI
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 7739f0e commit 4d64aae
2 files changed
+26
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| |||
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
79 | 86 | | |
80 | 87 | | |
81 | 88 | | |
| |||
307 | 314 | | |
308 | 315 | | |
309 | 316 | | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
310 | 329 | | |
311 | 330 | | |
312 | 331 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
222 | | - | |
223 | | - | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
224 | 228 | | |
225 | 229 | | |
226 | 230 | | |
| |||
0 commit comments