Repository navigation
[9.6](backport #51831) ci(ff): support feature freeze automation - #54884
Conversation
(cherry picked from commit b159139) # Conflicts: # go.sum
|
Cherry-pick of b159139 has failed: To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
|
This pull request doesn't have a |
🤖 GitHub commentsJust comment with:
|
|
This pull request is merged. |
TL;DRAll 34 failed Buildkite jobs share one root cause: unresolved merge-conflict markers were committed in Remediation
Investigation detailsRoot CauseClassification: Configuration / dependency metadata conflict. The backport commit explicitly reports a conflict in its message ( Evidence
Verification
Follow-up
What is this? | From workflow: Observability Agentic Workflow — Status Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not. |
Mergify left unresolved conflict markers in go.sum, which broke pre-commit, check, lint, and unit tests on the 9.6 backport. Assisted-By: Cursor
|
/test |
Update (git CLI push + smoke staging)
Same staging as elastic-agent (#17397, #17393):
Pushuses the git CLI (not go-git) with Basicx-access-tokenauth and a push timeout, so Buildkite--referenceclones can pack and upload.mage release:*from the product version-bump pipeline yet.Update (align with ingest-dev#10200)
Patch
runPatchnow matches the ingest-dev contract:CURRENT_RELEASEis the version to land (NEW_VERSIONfrom version-bump)update-version-*: version + test-env); no docs PROlder sections below that describe PR-D on FF or patch docs / bump-to-NEXT are outdated.
Summary
dev-tools/mage/release/, migrated from ingest-devbeats.mak.mage release:runMajorMinorruns the full feature-freeze flow: push the release branch and open 4 merge-ordered PRs, matching former makefile /elasticmachineoutputs.mage release:runPatchcoversprepare-patch-release+prepare-next-releaseas 2 merge-ordered PRs on the release branch: docs only before build; next-patch version + test-env after release (aligned with former bot PRs such as #50567/#50568/#50569).mage release:ensureIssueTrackerstep: create or update a Beats issue titled[RELEASE <CURRENT_RELEASE>] Instructions & Checklist, linking ingest-dev#8866, and idempotently listing related Beats PRs with labelreleasefor that version. Tracker failures are logged as warnings and do not failrunMajorMinor/runPatch; standalonemage release:ensureIssueTrackerstill returns errors.CURRENT_RELEASEmust already matchlibbeat/version/version.goon:BASE_BRANCHforrunMajorMinor(before cutting the release branch)runPatchBoth workflows fail fast on mismatch (avoids off-by-one double bumps).
[Release <CURRENT_RELEASE>]header and explicit merge timing.merge:1-ff-day…merge:4-after-releasefor FF;merge:1-before-build/merge:4-after-releasefor patch); missingmerge:*labels are created automatically.Feature freeze —
runMajorMinor(4 grouped PRs)Example:
CURRENT_RELEASE=9.4.0must already be inversion.goonBASE_BRANCH→ branch9.4, next minor9.5.0, next patch9.4.1.9.4BASE_BRANCHmainff-prep-main-9.4.0merge:1-ff-day.mergify.yml,libbeat/version/version.go→9.5.09.4ff-release-9.4.0merge:2-after-branchupdate-docs(README + asciidoc + metricbeat/filebeat/auditbeat k8s) → test-env →make update(modules.d + heartbeat when needed)mainff-prep-main-docs-env-9.5.0merge:3-after-imagesBASE=RELEASE=main(3 k8s + asciidoc; no README rewrite) + test-env; nomake update9.4ff-prep-next-patch-9.4.1merge:4-after-releaseversion.go→9.4.1+make update(usually no-op) + test-env; noUpdateStackVersionExample titles:
[Release 9.4.0] Prepare main for 9.5.0 and mergify backport-9.4,[Release 9.4.0] Update docs and test environment for 9.5.0,[Release 9.4.0] Update version to 9.4.1 and test environments.RM merge order: push branch → PR-A on
main→ PR-B on release branch → PR-C onmain→ PR-D on release branch (after release day).Final step (best-effort): ensure/update the Beats release checklist issue for
CURRENT_RELEASE(warnings only on failure).Note: #48158 (“Update docs for the 9.4.0 release” on
main) is the previous cycle’s next-dev docs PR (when next minor was 9.4.0), not an extra PR of the 9.4.0 FF itself. The matching PR-C for this cycle is #49995+#49996.Parity notes (latest)
update-docs; comes frommake updateon PR-B only (matcheselasticmachine). Patch docs PR does include heartbeat (matches former docs PRs).RELEASE=main→/main/→/main/no-op (matches prepare-next-dev-minor)make updatePatch release —
runPatch(2 grouped PRs)Example: releasing
9.4.1→CURRENT_RELEASE=9.4.1on branch9.4whereversion.gois already9.4.1(from the previous cycle's prepare-next-release). Next patch is9.4.2.9.4patch-release-9.4.1merge:1-before-buildversion.go/ test-env bump9.4ff-prep-next-patch-9.4.2merge:4-after-releaseversion.go→ NEXT + test-env tags → CURRENTRM merge order: merge PR-A before the final release build → merge PR-B after release day.
Titles look like
[Release 9.4.1] Update docs versions 9.4.1and[Release 9.4.1] Update version to 9.4.2 and test environments.Labels on PR-A:
docs,in progress,release,Team:Automation,skip-changelog,merge:1-before-build. PR-B:release,Team:Automation,skip-changelog,merge:4-after-release.Final step (best-effort): ensure/update the Beats release checklist issue for
CURRENT_RELEASE(warnings only on failure).Release notes remain on
.github/workflows/release-notes.yml(not mage).Other workflows
mage release:ensureIssueTracker[RELEASE X.Y.Z] Instructions & Checklistin Beats; discover same-versionlabel:releasePRs; link ingest-dev#8866. Non-blocking when run fromrunMajorMinor/runPatch; standalone still errors on failuremage release:updateVersion/updateDocs/updateTestEnv/updateMergifyChecklist
./changelog/fragments(useskip-changelogif applicable)Disruptive User Impact
None for end users. Release/CI automation for maintainers.
How to test this PR locally
CURRENT_RELEASEmust be plainmajor.minor.patch(e.g.9.6.0). No prerelease suffixes.Required:
PROJECT_OWNER,DRY_RUN,CURRENT_RELEASE, and eithermage release:runMajorMinorormage release:runPatch.Feature freeze (
runMajorMinor)Patch (
runPatch)Issue tracker only (
ensureIssueTracker)go test ./dev-tools/mage/release/... -count=1Discard workflow artifacts after review with
git reset --hard HEAD/ branch cleanup.Related issues
Related issue: https://github.com/elastic/observability-robots/issues/3404
Ingest release smoke
Passed on observability-robots-ingest-release-smoke (harness observability-robots#5403):
SOURCE_SHA7d35ab454994668758abf036d456d7ce26f2Validations
Minor releases
runMajorMinoropens 3 PRs (PR-A/B/C). Next-patch bumps stay onmage release:runPatch(no FF PR-D).mainmainPatch releases
Aligned with ingest-dev#10200: one post-release
update-version-*PR to landCURRENT_RELEASE(NEW_VERSION) while the release branch is still at the previous patch. Docs stay off this path.This is an automatic backport of pull request #51831 done by [Mergify](https://mergify.com).