From 5b6bbc8118576788dfe3502f1ecac5588e7a92d2 Mon Sep 17 00:00:00 2001 From: vorotamoroz Date: Fri, 31 Jul 2026 09:13:21 +0000 Subject: [PATCH] Remove release instruction text assertions --- utils/release-process.unit.spec.ts | 45 ++---------------------------- 1 file changed, 2 insertions(+), 43 deletions(-) diff --git a/utils/release-process.unit.spec.ts b/utils/release-process.unit.spec.ts index 577e166c..1e864d06 100644 --- a/utils/release-process.unit.spec.ts +++ b/utils/release-process.unit.spec.ts @@ -198,7 +198,7 @@ describe("release workflow", () => { expect(prerelease).not.toContain("Mark this pull request ready and merge it"); }); - it("promotes a validated stable release before its manifest reaches the default branch", () => { + it("publishes a stable version initially as a GitHub pre-release for BRAT validation", () => { const stable = renderReleasePrBody("1.0.0", "main"); expect(stable).toContain("prerelease=true"); @@ -206,53 +206,12 @@ describe("release workflow", () => { expect(stable).toContain( "Publish the GitHub Release initially as a pre-release without replacing the latest stable release" ); - expect(stable).toContain( - "After BRAT validation passes, remove the pre-release designation and make this exact release the latest stable release" - ); - expect(stable).toContain( - "Confirm this exact release is no longer a pre-release, then mark this pull request ready and merge it into `main` with a merge commit" - ); - expect(stable).toContain( - "Integrate the exact release commit through the reviewed branch chain into the repository's default branch" - ); - expect(stable).toContain("Confirm the default branch contains the exact release commit and metadata"); - expect(stable).toContain( - "Create the stable CLI tag and publish its `latest` and major-minor image tags, if selected, through a separate maintainer gate" - ); - expect(stable).toContain( - "Before the exact release commit reaches the repository's default branch, remove the pre-release designation" - ); - expect(stable.indexOf("After BRAT validation passes")).toBeLessThan( - stable.indexOf("Confirm this exact release is no longer a pre-release") - ); - expect(stable.indexOf("Confirm this exact release is no longer a pre-release")).toBeLessThan( - stable.indexOf("Integrate the exact release commit") - ); - expect(stable.indexOf("Integrate the exact release commit")).toBeLessThan( - stable.indexOf("Confirm the default branch contains the exact release commit and metadata") - ); - expect( - stable.indexOf("Confirm the default branch contains the exact release commit and metadata") - ).toBeLessThan(stable.indexOf("Create the stable CLI tag")); expect(stable).not.toContain("prerelease=false"); }); - it("summarises immutable pre-releases separately from stable versions awaiting promotion", () => { + it("requires stable pre-release staging to defer CLI publication", () => { const workflow = readFileSync(finaliseReleaseWorkflow, "utf8"); - expect(workflow).toContain('if [[ "${VERSION}" == *-* ]]; then'); - expect(workflow).toContain( - "Keep the release pull request in draft and unmerged after BRAT validation; close it only through a separate maintainer action." - ); - expect(workflow).toContain( - "After BRAT validation, remove the pre-release designation and make this exact release the latest stable release before its manifest reaches the default branch." - ); - expect(workflow).toContain( - "Confirm the release is no longer a pre-release, then merge the release pull request into its reviewed base branch and integrate the exact release commit into the default branch." - ); - expect(workflow).toContain( - "This order prevents Community Directory review from inspecting a stable manifest version while the matching GitHub Release remains a pre-release." - ); expect(workflow).toContain( 'if [[ "${VERSION}" != *-* && "${PRERELEASE}" == "true" && "${PUBLISH_CLI}" == "true" ]]; then' );