You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dev_docs/RELEASES.md
+2
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,8 @@ For patch releases, only the version on the existing major and minor version bra
28
28
* The PR should be merged the day before release.
29
29
* For **minor releases**: run the [`run-minor-release`](https://github.com/elastic/apm-server/actions/workflows/run-minor-release.yml) workflow (In "Use workflow from", select `main` branch. Then in "The version", specify the minor release version the release is for).
30
30
This workflow will: create a new release branch using the stack version (X.Y); update the changelog for the release branch and open a PR targeting the release branch titled `<major>.<minor>: update docs`; create a PR on `main` titled `<major>.<minor>: update docs, mergify, versions and changelogs`. Before merging them compare commits between latest minor and the new minor versions and ensure all relevant PRs have been included in the Changelog. If not, amend it in both PRs. Request and wait a PR review from the team before merging. After it's merged add your PR to the documentation release issue in the [`elastic/dev`](https://github.com/elastic/dev/issues?q=is%3Aissue%20state%3Aopen%20label%3Adocs) repo ([Sample Issue](https://github.com/elastic/dev/issues/2895)).
31
+
* For **major releases**: run the [`run-major-release`](https://github.com/elastic/apm-server/actions/workflows/run-major-release.yml) workflow (In "Use workflow from", select `main` branch. Then in "The version", specify the major release version the release is for).
32
+
This workflow will: create a new release branch using the stack version (X.Y); update the changelog for the release branch and open a PR targeting the release branch titled `<major>.<minor>: update docs`; create a PR on `main` titled `<major>.0: update docs, mergify, versions and changelogs`. Before merging them compare commits between latest minor and the new major versions and ensure all relevant PRs have been included in the Changelog. If not, amend it in both PRs. Request and wait a PR review from the team before merging. After it's merged add your PR to the documentation release issue in the [`elastic/dev`](https://github.com/elastic/dev/issues?q=is%3Aissue%20state%3Aopen%20label%3Adocs) repo ([Sample Issue](https://github.com/elastic/dev/issues/2895)).
31
33
* The Release Manager will ping the team to align the release process
$(MAKE) create-commit COMMIT_MESSAGE="[Release] update changelogs for $(RELEASE_BRANCH) release"
157
166
158
167
@echo "INFO: Push changes to $(PROJECT_OWNER)/apm-server and create the relevant Pull Requests"
159
168
git push origin $(RELEASE_BRANCH)
160
-
# NOTE: as long as 8.x is the branch to run releases, then we update mergify
161
-
# when 8.x is not available then this conditional and its content should be removed.
162
-
ifeq ($(BASE_BRANCH),8.x)
169
+
ifeq ($(UPDATE_MERGIFY),true)
163
170
$(MAKE) create-pull-request BRANCH=mergify-$(RELEASE_BRANCH) TARGET_BRANCH=main TITLE="$(RELEASE_BRANCH): mergify" BODY="Merge as soon as the GitHub checks are green." BACKPORT_LABEL=backport-skip
164
171
endif
165
172
$(MAKE) create-pull-request BRANCH=update-$(RELEASE_VERSION) TARGET_BRANCH=$(BASE_BRANCH) TITLE="$(RELEASE_BRANCH): update docs, versions and changelogs" BODY="Merge as soon as the GitHub checks are green" BACKPORT_LABEL=backport-skip
166
173
# NOTE: as long as 8.x is the branch to run releases, then we use main as target with the backport label.
167
174
# when 8.x is not available then we use TARGET_BRANCH=$(RELEASE_BRANCH)
175
+
ifeq ($(BASE_BRANCH),8.x)
176
+
@echo "INFO: As long as 8.x is supported, we need to create a PR also in main"
168
177
$(MAKE) create-pull-request BRANCH=changelog-$(RELEASE_BRANCH) TARGET_BRANCH=main TITLE="$(RELEASE_BRANCH): update docs" BODY="Merge as soon as $(TARGET_BRANCH) branch is created and the GitHub checks are green. And the PR in main for the Mergify changes has been merged." BACKPORT_LABEL=backport-$(RELEASE_BRANCH)
178
+
endif
179
+
180
+
# This is the contract with the GitHub action .github/workflows/run-major-release.yml.
181
+
# The GitHub action will provide the below environment variables:
182
+
# - RELEASE_VERSION
183
+
#
184
+
.PHONY: major-release
185
+
major-release:
186
+
# NOTE: major release uses minor-release with BASE_BRANCH=main and CHANGELOG_BRANCH=main
187
+
$(MAKE) minor-release
169
188
170
189
# This is the contract with the GitHub action .github/workflows/run-patch-release.yml
171
190
# The GitHub action will provide the below environment variables:
0 commit comments