fix(fetch): every label before the suffix has to be real #680
No reviewers
Labels
No labels
move-to-repo
coilyco-bridge-deploy
move-to-repo
coilyco-flight-deck-agent-compose
move-to-repo
coilyco-gaming-eco-app
move-to-repo
coilysiren-inbox
move-to-repo
unknown
🔒⚠️📦⚠️🔒 SANDBOXED 🔒⚠️📦⚠️🔒
autonomy
async-consult
autonomy
epic
autonomy
headless
autonomy
live-collab
c#
priority
P0
priority
P1
priority
P2
priority
P3
priority
P4
role/ai
role/creator
role/design
role/director
role/engineer
role/exec
role/human
role/ops
role/qa
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
coilyco-gaming/sirens-echo!680
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/every-label-before-the-suffix-claude"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
closes #674
PR#672 fixed #668 with a length guard and merged first. The length guard admits a host with an empty label that is not the first one:
len("..mozilla.com") > len("mozilla.com")+1holds, so the guard passes.The fix
Check the prefix rather than its length:
I made the same mistake first
My own branch for #668 started as a length check, and my own new test caught it letting
..mozilla.comthrough before I committed. That is why the test names the neighbours explicitly — the case is one character away from the one everybody thinks of, and a length guard looks correct against.mozilla.comalone.So this is not a criticism of #672. It is the same wrong instinct, and the only reason mine did not ship is that I happened to write the neighbouring cases down.
What I kept from #672
Its normalisation and its comment, which are on main and are right. The test is renamed to
TestEveryLabelBeforeTheSuffixIsRealso it complementsfetch_test.go's rather than colliding with it, and the two now cover different things.Mutation run: replacing the prefix check with
prefix != ""fails on..mozilla.com.ward exec gategreen on a branch rebased onto current main.