Keep live envs on corrected-name collisions, cap forge metadata reads #9

Merged
benvin merged 2 commits from benvin/collision-forge-cap into main 2026-11-08 21:59:36 +11:00
Member

A branch that only corrects to a live env's name (feature.x next to feature-x) left that name out of the deploy set, so the full-deploy purge deleted the live env. The forge current_release lookup also decoded an unbounded body and accepted a version of any length.

  • purge keeps any env name claimed by a skipped branch on its current worktree, still erroring on the collision
  • cap the forge module metadata read at 1 MiB, erroring at the cap
  • reject forge versions over 64 chars or outside the version pattern
A branch that only corrects to a live env's name (`feature.x` next to `feature-x`) left that name out of the deploy set, so the full-deploy purge deleted the live env. The forge `current_release` lookup also decoded an unbounded body and accepted a version of any length. - purge keeps any env name claimed by a skipped branch on its current worktree, still erroring on the collision - cap the forge module metadata read at 1 MiB, erroring at the cap - reject forge versions over 64 chars or outside the version pattern
unkin-agent added 1 commit 2026-11-08 21:53:02 +11:00
Keep live envs whose name only corrected branches collide on, cap forge metadata reads
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/lint Pipeline was successful
77259d507d
unkin-agent added 1 commit 2026-11-08 21:57:54 +11:00
Merge origin/main; purge keeps names only skipped branches claim
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/lint Pipeline was successful
93202f2980
benvin merged commit 3249b5067f into main 2026-11-08 21:59:36 +11:00
benvin deleted branch benvin/collision-forge-cap 2026-11-08 21:59:36 +11:00
This repo is archived. You cannot comment on pull requests.