@mutmutco/cli 4.5.32 → 4.5.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.cjs +20 -7
- package/package.json +1 -1
package/dist/main.cjs
CHANGED
|
@@ -16837,10 +16837,10 @@ var rollout_plan_default = {
|
|
|
16837
16837
|
note: "The v4.0.0 stamp happens at cut time (D6e #4463); until then the candidate is the origin/development head artifacts (built cli/dist + npm pack), identity proven by dist content hash (D6a)."
|
|
16838
16838
|
},
|
|
16839
16839
|
baseline: {
|
|
16840
|
-
version: "4.5.
|
|
16841
|
-
tag: "v4.5.
|
|
16842
|
-
commit: "
|
|
16843
|
-
npm: "@mutmutco/cli@4.5.
|
|
16840
|
+
version: "4.5.33",
|
|
16841
|
+
tag: "v4.5.33",
|
|
16842
|
+
commit: "43f256b77935",
|
|
16843
|
+
npm: "@mutmutco/cli@4.5.33"
|
|
16844
16844
|
},
|
|
16845
16845
|
exitCriterion: "fleet-n-of-n",
|
|
16846
16846
|
hubOnlyShortcut: "forbidden",
|
|
@@ -16857,14 +16857,14 @@ var rollout_plan_default = {
|
|
|
16857
16857
|
repo: "mutmutco/mmi-hub",
|
|
16858
16858
|
role: "canary",
|
|
16859
16859
|
schedule: "train",
|
|
16860
|
-
v3Target: "v4.5.
|
|
16860
|
+
v3Target: "v4.5.33"
|
|
16861
16861
|
}
|
|
16862
16862
|
],
|
|
16863
16863
|
rollbackTrigger: "Any red inside the post-contract soak window: `devops train gate` FAIL attributable to the v4 doors, Hub endpoint health probe failure, a pre-v4 client admitted instead of receiving actionable HTTP 426, or npm consumer install/doctor failure on the v4-only dist.",
|
|
16864
16864
|
rollback: {
|
|
16865
16865
|
independent: true,
|
|
16866
|
-
mechanism: "npm dist-tag latest -> 4.5.
|
|
16867
|
-
v3Target: "v4.5.
|
|
16866
|
+
mechanism: "npm dist-tag latest -> 4.5.33 and redeploy the Hub Lambda from tag v4.5.33 (43f256b77935); installed clients repair via `mmi-cli doctor`. No other cohort is touched.",
|
|
16867
|
+
v3Target: "v4.5.33 (@mutmutco/cli@4.5.33, tag commit 43f256b77935 \u2014 last known-good release carrying the repo-index v4-only contract)"
|
|
16868
16868
|
}
|
|
16869
16869
|
},
|
|
16870
16870
|
{
|
|
@@ -19354,8 +19354,21 @@ async function pushAlignmentBranch(deps, target, tag) {
|
|
|
19354
19354
|
if (!commit) throw new Error(`git commit-tree wrote no commit for the ${target} alignment of ${tag} (#6288)`);
|
|
19355
19355
|
await deps.run("git", ["push", "origin", "--delete", branch]).catch(() => void 0);
|
|
19356
19356
|
await runGitPush(deps, ["push", "origin", `${commit}:refs/heads/${branch}`]);
|
|
19357
|
+
await sweepLandedAlignmentBranches(deps, target, branch);
|
|
19357
19358
|
return branch;
|
|
19358
19359
|
}
|
|
19360
|
+
async function sweepLandedAlignmentBranches(deps, target, keep) {
|
|
19361
|
+
const prefix = `refs/heads/release-align/${target}/`;
|
|
19362
|
+
const listed = await deps.run("git", ["ls-remote", "--heads", "origin", `${prefix}*`]).catch(() => "");
|
|
19363
|
+
for (const line of clean2(listed).split("\n")) {
|
|
19364
|
+
const [sha, ref] = line.split(" ");
|
|
19365
|
+
if (!sha || !ref?.startsWith(prefix)) continue;
|
|
19366
|
+
const name = ref.slice("refs/heads/".length);
|
|
19367
|
+
if (name === keep) continue;
|
|
19368
|
+
const landed = await deps.run("git", ["merge-base", "--is-ancestor", sha, `origin/${target}`]).then(() => true, () => false);
|
|
19369
|
+
if (landed) await deps.run("git", ["push", "origin", "--delete", name]).catch(() => void 0);
|
|
19370
|
+
}
|
|
19371
|
+
}
|
|
19359
19372
|
async function findAlignmentPr(deps, ctx, target, head) {
|
|
19360
19373
|
const out = clean2(await deps.run("gh", ["pr", "list", "--repo", ctx.repo, "--base", target, "--head", head, "--state", "all", "--json", "number,url,state"]));
|
|
19361
19374
|
if (!out) return void 0;
|
package/package.json
CHANGED