From 1983472312b245f5c42b4470998778dc258ef504 Mon Sep 17 00:00:00 2001 From: Marcel Martinez Date: Mon, 16 Nov 2026 16:40:17 -0600 Subject: [PATCH 1/5] Check the version being released in a browser before tagging it The installation check cannot install the version this workflow just built. Its matrix comes from supported-version with kind: usable, which filters versions/mage-os/individual.json, and a version's entry is added there only after it ships -- so the job re-installs the previously released versions from the newly deployed repository and goes green without the new packages ever being installed. The e2e workflow takes magento_version as a plain input, so it can install exactly what was deployed. Add it between deploy and the tag push: the repository deploy is additive and can be superseded, while the tag goes to every mage-os/* origin and is expensive to retract. A preview build runs with publish_tag false, which skips publish-release-tag and leaves this job reporting with no tag at stake -- the signal for whether a preview is worth promoting. --- .github/workflows/build-mageos-release.yml | 33 +++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-mageos-release.yml b/.github/workflows/build-mageos-release.yml index cd1ae46..4e81683 100644 --- a/.github/workflows/build-mageos-release.yml +++ b/.github/workflows/build-mageos-release.yml @@ -90,10 +90,41 @@ jobs: fail-fast: false magento_repository: ${{ inputs.repo }} composer_cache_key: ${{ inputs.composer_cache_key || 'v1' }} + storefront-admin-check: + name: "storefront & admin check" + # The first check in this pipeline that installs the version being + # released. The installation check above cannot: its matrix comes from + # supported-version (kind: usable), which filters + # supported-version/src/versions/mage-os/individual.json, and a version's + # entry is only added there after it ships. So that job re-installs the + # previously released versions from the newly deployed repository, and + # goes green without the new packages ever being installed. + # + # It runs after deploy because it installs from inputs.repo, and before + # the tag push because the tag is the half of a release that is expensive + # to retract -- push-release-tag pushes it to every mage-os/* origin, + # while the repository deploy is additive and can be superseded. + # + # On a preview build publish_tag is false, so publish-release-tag is + # skipped and this job reports without a tag at stake: it is what tells a + # release manager whether the preview is worth promoting. + if: ${{ inputs.mageos_release != '' }} + needs: [ deploy ] + uses: mage-os/github-actions/.github/workflows/e2e.yaml@main + with: + magento_repository: ${{ inputs.repo }} + magento_version: "mage-os/project-community-edition:${{ inputs.mageos_release }}" + artifact_name: "storefront-admin-check-${{ inputs.mageos_release }}" + # suite_ref is left at the e2e workflow's default, which tracks the + # github-actions default branch along with the uses: ref above. Unlike + # the installation check, whose test code ships inside the package being + # released, this suite is fetched at run time -- so whether both refs + # should be pinned to a tag is worth settling before a release is gated + # on it rather than only reported on. publish-release-tag: name: "Publish release tag" if: ${{ success() && inputs.mageos_release && inputs.publish_tag }} - needs: [ deploy, integration-check ] + needs: [ deploy, integration-check, storefront-admin-check ] uses: ./.github/workflows/push-release-tag.yml with: mageos_release: ${{ inputs.mageos_release }} From 6375ae9d112b46040d382d1adb17b4e96ae1bfed Mon Sep 17 00:00:00 2001 From: Marcel Martinez Date: Mon, 16 Nov 2026 17:49:52 -0600 Subject: [PATCH 2/5] Name the job after the kind of test, like its sibling integration-check is named for the kind of test it runs and carries the descriptive part in its display name. Follow that: the id is e2e-check, the display name still says which halves of the store it covers, and the uploaded report is named for the workflow rather than for today's coverage. --- .github/workflows/build-mageos-release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-mageos-release.yml b/.github/workflows/build-mageos-release.yml index 4e81683..058ef65 100644 --- a/.github/workflows/build-mageos-release.yml +++ b/.github/workflows/build-mageos-release.yml @@ -90,7 +90,7 @@ jobs: fail-fast: false magento_repository: ${{ inputs.repo }} composer_cache_key: ${{ inputs.composer_cache_key || 'v1' }} - storefront-admin-check: + e2e-check: name: "storefront & admin check" # The first check in this pipeline that installs the version being # released. The installation check above cannot: its matrix comes from @@ -114,7 +114,7 @@ jobs: with: magento_repository: ${{ inputs.repo }} magento_version: "mage-os/project-community-edition:${{ inputs.mageos_release }}" - artifact_name: "storefront-admin-check-${{ inputs.mageos_release }}" + artifact_name: "e2e-report-${{ inputs.mageos_release }}" # suite_ref is left at the e2e workflow's default, which tracks the # github-actions default branch along with the uses: ref above. Unlike # the installation check, whose test code ships inside the package being @@ -124,7 +124,7 @@ jobs: publish-release-tag: name: "Publish release tag" if: ${{ success() && inputs.mageos_release && inputs.publish_tag }} - needs: [ deploy, integration-check, storefront-admin-check ] + needs: [ deploy, integration-check, e2e-check ] uses: ./.github/workflows/push-release-tag.yml with: mageos_release: ${{ inputs.mageos_release }} From 9d7f7b465344cd0ae9d8fc0f0c6db4d8b29204fe Mon Sep 17 00:00:00 2001 From: Marcel Martinez Date: Tue, 17 Nov 2026 07:50:22 -0600 Subject: [PATCH 3/5] Trim the comments on the new job to the part that is not in the code --- .github/workflows/build-mageos-release.yml | 30 ++++++---------------- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/.github/workflows/build-mageos-release.yml b/.github/workflows/build-mageos-release.yml index 058ef65..c97920a 100644 --- a/.github/workflows/build-mageos-release.yml +++ b/.github/workflows/build-mageos-release.yml @@ -92,22 +92,10 @@ jobs: composer_cache_key: ${{ inputs.composer_cache_key || 'v1' }} e2e-check: name: "storefront & admin check" - # The first check in this pipeline that installs the version being - # released. The installation check above cannot: its matrix comes from - # supported-version (kind: usable), which filters - # supported-version/src/versions/mage-os/individual.json, and a version's - # entry is only added there after it ships. So that job re-installs the - # previously released versions from the newly deployed repository, and - # goes green without the new packages ever being installed. - # - # It runs after deploy because it installs from inputs.repo, and before - # the tag push because the tag is the half of a release that is expensive - # to retract -- push-release-tag pushes it to every mage-os/* origin, - # while the repository deploy is additive and can be superseded. - # - # On a preview build publish_tag is false, so publish-release-tag is - # skipped and this job reports without a tag at stake: it is what tells a - # release manager whether the preview is worth promoting. + # Installs the version just deployed, which the installation check above + # cannot: its matrix comes from supported-version (kind: usable), and a + # version is listed there only after it ships. Gates the tag push because + # the tag goes to every mage-os/* origin and is expensive to retract. if: ${{ inputs.mageos_release != '' }} needs: [ deploy ] uses: mage-os/github-actions/.github/workflows/e2e.yaml@main @@ -115,12 +103,10 @@ jobs: magento_repository: ${{ inputs.repo }} magento_version: "mage-os/project-community-edition:${{ inputs.mageos_release }}" artifact_name: "e2e-report-${{ inputs.mageos_release }}" - # suite_ref is left at the e2e workflow's default, which tracks the - # github-actions default branch along with the uses: ref above. Unlike - # the installation check, whose test code ships inside the package being - # released, this suite is fetched at run time -- so whether both refs - # should be pinned to a tag is worth settling before a release is gated - # on it rather than only reported on. + # suite_ref defaults to the github-actions default branch, like the + # uses: ref. Unlike the installation check, whose tests ship inside the + # released package, this suite is fetched at run time -- whether to pin + # both to a tag is still open. publish-release-tag: name: "Publish release tag" if: ${{ success() && inputs.mageos_release && inputs.publish_tag }} From 62bdaf6337035877962c587d467e10776e7cc307 Mon Sep 17 00:00:00 2001 From: Marcel Martinez Date: Tue, 1 Dec 2026 07:59:24 -0600 Subject: [PATCH 4/5] Publish the tag whether the browser check passes or not The browser suite is new enough that a red run is as likely to mean the suite is wrong as the release is. Keep it in the release flow, where it runs against the version just deployed and reports a result, but stop it withholding the tag. success() in a job condition covers every job in needs, so naming the two hard gates is what separates them from the advisory one, and !cancelled() is what lets the job run at all once a need has failed. A cancelled release still publishes nothing. --- .github/workflows/build-mageos-release.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-mageos-release.yml b/.github/workflows/build-mageos-release.yml index c97920a..5cb7e6c 100644 --- a/.github/workflows/build-mageos-release.yml +++ b/.github/workflows/build-mageos-release.yml @@ -94,8 +94,10 @@ jobs: name: "storefront & admin check" # Installs the version just deployed, which the installation check above # cannot: its matrix comes from supported-version (kind: usable), and a - # version is listed there only after it ships. Gates the tag push because - # the tag goes to every mage-os/* origin and is expensive to retract. + # version is listed there only after it ships. Advisory for now: the tag + # waits for the result but publishes either way, so a suite that is still + # settling cannot hold up a release. Make it a gate by putting + # e2e-check back in the success() set below. if: ${{ inputs.mageos_release != '' }} needs: [ deploy ] uses: mage-os/github-actions/.github/workflows/e2e.yaml@main @@ -109,7 +111,15 @@ jobs: # both to a tag is still open. publish-release-tag: name: "Publish release tag" - if: ${{ success() && inputs.mageos_release && inputs.publish_tag }} + # e2e-check is in needs for ordering only. success() would cover it too, + # so deploy and integration-check are named as the hard gates, and + # !cancelled() is what lets this job run at all once a need has failed. + # Dropping cancelled() would push the tag out of a cancelled release. + if: >- + ${{ !cancelled() + && needs.deploy.result == 'success' + && needs.integration-check.result == 'success' + && inputs.mageos_release && inputs.publish_tag }} needs: [ deploy, integration-check, e2e-check ] uses: ./.github/workflows/push-release-tag.yml with: From c3c739c3bda92c55f2b42a6f4c3f8794e4857bd9 Mon Sep 17 00:00:00 2001 From: Marcel Martinez Date: Tue, 1 Dec 2026 08:03:08 -0600 Subject: [PATCH 5/5] Give the browser check only the token it needs --- .github/workflows/build-mageos-release.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/build-mageos-release.yml b/.github/workflows/build-mageos-release.yml index 5cb7e6c..c9d22db 100644 --- a/.github/workflows/build-mageos-release.yml +++ b/.github/workflows/build-mageos-release.yml @@ -100,6 +100,10 @@ jobs: # e2e-check back in the success() set below. if: ${{ inputs.mageos_release != '' }} needs: [ deploy ] + # The suite is fetched from a public repository and nothing here writes, + # so the token the called workflow runs with needs no more than this. + permissions: + contents: read uses: mage-os/github-actions/.github/workflows/e2e.yaml@main with: magento_repository: ${{ inputs.repo }}