Scope named deploys to their environments #4
Reference in New Issue
Block a user
Delete Branch "benvin/named-deploy"
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?
w10k deployrebuilds every environment, which is slow when only one branch has changed. A named deploy has to pick the same branch for an env that a full deploy would, and it must stay in the env's own source.deployargs; complete live env nameswantbefore the collision check lets a named deploy pick a different winner than a full deploy: branchesa-b,a.b;deploy a.bsilently swapsa.binto enva_b(full deploy keepsa-b), err=nil → resolve collisions over all branches first, then filter bywantprefix: p,deploy mainalso buildsp_main→ match env names first; fall back to branch names only for args that match no envm.dirappends passes the suite) or the prefix/collision cases above → add theme73f3c8) are unrelated to named deploys → split into their own PR.w10k gc/full-deploy behaviour changes (sweep continues past a failedLive, module sweep skipped on partial sources, corrupt gc state treated as empty) are separate from scoping named deploys → split into a "GC failure tolerance" PR; keep onlygc(ctx, false)here.ValidArgsFunctionhas no test (live envs only, dedup, no lock) → add one.