Commit a0fb3bf
fix(release): ignore nested checkouts in the Quarkus alignment gate (#238)
`find_property()` scanned every `pom.xml` under the repo, excluding only
`target` and
`node_modules`. Agent tooling parks git worktrees in
`.plan/local/worktrees/`, each a full
copy of the project pinning whatever `version.quarkus` its branch
carried — so the release
gate reported a conflict that does not exist, and exited 2.
Exit 2 is defined as blocking, so **any open worktree made the release
gate unrunnable**,
and a stale sibling branch could veto a release.
The fix skips poms under a dot-directory, or under a directory carrying
its own `.git`
(a worktree has it as a file, a clone as a directory). Two rules because
either alone
leaves a hole: a worktree parked outside a dot-directory, or a
dot-directory without `.git`.
## Verification
Negative control — same repo, same simulated stale worktree, old code vs
new:
```
BEFORE fix -> BLOCKED: property version.quarkus declared inconsistently:
3.30.0 (.plan/local/worktrees/__sim__/pom.xml), 3.39.1 (pom.xml)
AFTER fix -> 3.39.1 (no veto)
```
The real gate on this branch:
```
ALIGNED (exit 0)
```
Behaviour checked against four cases:
| case | result |
|---|---|
| genuine conflict between two real reactor modules | **still blocks**
(positive control) |
| worktree under a dot-directory | ignored |
| nested checkout *not* hidden, with its own `.git` | ignored |
| `target/` and `node_modules/` | ignored, as before |
## Sync
`SKILL.md` says this script is kept in sync by hand across repos with no
shared parent to
inherit from. It exists in three places — `cuioss-parent-pom`,
`TokenSheriff`, `API-Sheriff` —
and all three were identical. TokenSheriff landed the fix in
cuioss/TokenSheriff#678; this PR
and its API-Sheriff/parent-pom counterpart carry the identical patch, so
all three files stay
byte-for-byte the same (verified by checksum).
Bot review is skipped (`skip-bot-review`): a self-contained filter fix
with the behaviour
table above.
Co-authored-by: Oliver Wolff <23139298+cuioss@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>1 parent 30eb370 commit a0fb3bf
1 file changed
Lines changed: 26 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
75 | 100 | | |
76 | 101 | | |
77 | 102 | | |
78 | 103 | | |
79 | 104 | | |
80 | | - | |
| 105 | + | |
81 | 106 | | |
82 | 107 | | |
83 | 108 | | |
| |||
0 commit comments