Skip to content

Check the version being released in a browser before tagging it - #387

Open
marcelmtz wants to merge 5 commits into
mage-os:mainfrom
marcelmtz:feat/release-e2e-gate
Open

marcelmtz wants to merge 5 commits into
mage-os:mainfrom
marcelmtz:feat/release-e2e-gate

Conversation

@marcelmtz

@marcelmtz marcelmtz commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Adds one job to build-mageos-release.yml that installs the version just deployed and drives it in a real browser, between the repository deploy and the tag push.

Draft: blocked on mage-os/github-actions#396, which adds the e2e.yaml workflow this calls.

Why: the installation check never installs the version being released — its matrix comes from supported-version (kind: usable), and a version's entry is added to individual.json only after it ships. e2e.yaml takes magento_version as a plain input, so it can install exactly what was deployed.

Why here: it needs deploy to have published the packages, and the tag is the expensive half to retract — push-release-tag.yml pushes to every mage-os/* origin, while the deploy is additive. On a preview build publish_tag is false, so the job reports with no tag at stake and only blocks on the promotion run.

What runs: 16 tests, ~6 minutes, one runner, store served through Warden with Varnish. Storefront: homepage static content, product page to add-to-cart with totals, guest checkout, customer registration and sign-in. Admin: sign-in, product grid and sku filter, menu navigation, creating a product/category/customer and finding each on the storefront, and placing an order. Every test also fails on a JS error or failed request logged while it ran.

Open decision: suite_ref tracks the github-actions default branch, like the uses: ref and the installation check. Unlike that check — whose test code ships inside the released package — this suite is fetched at run time, so pinning both refs to a tag is worth settling before a release is gated on it rather than only reported on.

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.
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.
@marcelmtz
marcelmtz marked this pull request as ready for review November 17, 2026 13:49
@marcelmtz
marcelmtz requested a review from a team as a code owner November 17, 2026 13:49

@DavidLambauer DavidLambauer left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks right, but it can't be merged before mage-os/github-actions#396. e2e.yaml doesn't exist on that repo's main yet, and GitHub resolves reusable workflows when a run starts, so every release run would fail at startup, deploy included. Could you mark this as a draft until #396 is in?

Also:

  • permissions: contents: read on the new job.
  • A skip_e2e input (or similar), so a broken or flaky suite can't hold back a release tag.
  • Once #396 ships in a release, I'd pin uses: and suite_ref to that tag instead of main. Otherwise whatever is on github-actions' main decides whether our releases get tagged.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants