forked from elastic/apm-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/patch-release' into 8.11
* feature/patch-release: (249 commits) Update release.mk [updatecli] Bump elastic stack version to 8.13.0-8upz6ftd (elastic#12380) chore: Update to elastic/beats@95f0f85a3edd (elastic#12370) ci(release): automate release steps for the minor (elastic#12233) build(deps): bump the github-actions group with 1 update (elastic#12365) chore: Update to elastic/beats@d1b32774aef4 (elastic#12362) [updatecli] Bump elastic stack version to 8.13.0-ybxdr713 (elastic#12349) chore: Update to elastic/beats@81ebafc4c2da (elastic#12352) [apm docs consolidation] Delete moved files, update README (elastic#12341) [updatecli] Bump elastic stack version to 8.13.0-toucn398 (elastic#12325) docs: fix incorrect filenames in a document for Windows (elastic#12343) chore: Update to elastic/beats@6f192c01ef19 (elastic#12337) build(deps): bump golang.org/x/crypto from 0.14.0 to 0.17.0 (elastic#12237) Update NOTICE.txt year (elastic#12333) build(deps): bump the github-actions group with 1 update (elastic#12322) [updatecli] Bump elastic stack version to 8.13.0-4f8l51qr (elastic#12315) docs: Update known issues as fix was released (elastic#12196) feat: use latest apm-data to set success `event.outcome` when otel span.Status is Unset (elastic#12199) [updatecli] Bump elastic stack version to 8.13.0-4aavtlfc (elastic#12304) chore: rename apm-mutating-webhook to apm-k8s-attacher (elastic#12222) ...
- Loading branch information
Showing
296 changed files
with
19,716 additions
and
25,847 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
version: 2 | ||
updates: | ||
|
||
# GitHub actions | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
reviewers: | ||
- "elastic/observablt-ci" | ||
schedule: | ||
interval: "weekly" | ||
day: "sunday" | ||
time: "22:00" | ||
groups: | ||
github-actions: | ||
patterns: | ||
- "*" | ||
|
||
# GitHub composite actions | ||
- package-ecosystem: "github-actions" | ||
directory: "/.github/workflows/generate-smoke-tests-list" | ||
schedule: | ||
interval: "weekly" | ||
day: "sunday" | ||
time: "22:00" | ||
reviewers: | ||
- "elastic/observablt-ci" | ||
groups: | ||
github-actions: | ||
patterns: | ||
- "*" | ||
- package-ecosystem: "github-actions" | ||
directory: "/.github/workflows/setup-cluster-env" | ||
schedule: | ||
interval: "weekly" | ||
day: "sunday" | ||
time: "22:00" | ||
reviewers: | ||
- "elastic/observablt-ci" | ||
groups: | ||
github-actions: | ||
patterns: | ||
- "*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
--- | ||
name: prepare-release | ||
description: Common tasks for preparing minor and patch releases | ||
|
||
inputs: | ||
type: | ||
description: 'Release type (minor or patch)' | ||
required: true | ||
version: | ||
description: 'The version' | ||
required: true | ||
vault-url: | ||
description: 'Vault URL' | ||
required: true | ||
vault-role-id: | ||
description: 'Vault role ID' | ||
required: true | ||
vault-secret-id: | ||
description: 'Vault secret ID' | ||
required: true | ||
|
||
outputs: | ||
release-branch: | ||
description: "Release branch (relevant for minor releases)" | ||
value: ${{ steps.generate.outputs.release-branch }} | ||
release-version: | ||
description: "Release version" | ||
value: ${{ steps.generate.outputs.release-version }} | ||
slack-thread: | ||
description: "Slack thread id" | ||
value: ${{ steps.slack-thread.outputs.threadTimestamp }} | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Send slack message when started | ||
id: slack-thread | ||
uses: elastic/apm-pipeline-library/.github/actions/slack-message@current | ||
with: | ||
url: ${{ inputs.vault-url }} | ||
roleId: ${{ inputs.vault-role-id }} | ||
secretId: ${{ inputs.vault-secret-id }} | ||
channel: ${{ env.SLACK_CHANNEL }} | ||
message: ":wave: This is the thread for the ${{ inputs.type }} release `${{ github.repository }}@${{ env.VERSION }}`. (<${{ env.JOB_URL }}|workflow run>)" | ||
env: | ||
VERSION: ${{ inputs.version }} | ||
JOB_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} | ||
|
||
- id: generate | ||
run: |- | ||
echo "release-branch=${VERSION%.*}" >> "${GITHUB_OUTPUT}" | ||
echo "release-version=${VERSION}" >> "${GITHUB_OUTPUT}" | ||
env: | ||
VERSION: ${{ inputs.version }} | ||
shell: 'bash' | ||
|
||
- name: validate version format (minor only) | ||
if: ${{ inputs.type == 'minor' && ! endsWith(inputs.version, '0') }} | ||
run: |- | ||
FAILURE_MESSAGE='version is not a minor one but a patch (only support for <major>.<minor>.0)' | ||
echo "FAILURE_MESSAGE=${FAILURE_MESSAGE}" >> "$GITHUB_ENV" | ||
echo "::error::${FAILURE_MESSAGE}" ; exit 1 | ||
shell: 'bash' | ||
|
||
- name: validate version format (patch only) | ||
if: ${{ inputs.type == 'patch' && endsWith(inputs.version, '0') }} | ||
run: |- | ||
FAILURE_MESSAGE='version is not a patch one but a minor (only support for <major>.<minor>.[1-9]+[0-9]*)' | ||
echo "FAILURE_MESSAGE=${FAILURE_MESSAGE}" >> "$GITHUB_ENV" | ||
echo "::error::${FAILURE_MESSAGE}" ; exit 1 | ||
shell: 'bash' | ||
|
||
- name: validate if branch already exists (minor only) | ||
if: ${{ inputs.type == 'minor' }} | ||
run: |- | ||
if git ls-remote --exit-code --heads https://github.com/${{ github.repository }}.git "$BRANCH" > /dev/null ; then | ||
FAILURE_MESSAGE='Branch already exists. This is not a minor release.' | ||
echo "FAILURE_MESSAGE=${FAILURE_MESSAGE}" >> "$GITHUB_ENV" | ||
echo "::error::${FAILURE_MESSAGE}" ; exit 1 | ||
fi | ||
shell: 'bash' | ||
env: | ||
BRANCH: ${{ steps.generate.outputs.release-branch }} | ||
|
||
- name: validate if tag already exists | ||
run: |- | ||
if git ls-remote --exit-code https://github.com/${{ github.repository }}.git "$TAG" > /dev/null ; then | ||
FAILURE_MESSAGE='Tag already exists.' | ||
echo "FAILURE_MESSAGE=${FAILURE_MESSAGE}" >> "$GITHUB_ENV" | ||
echo "::error::${FAILURE_MESSAGE}" ; exit 1 | ||
fi | ||
shell: 'bash' | ||
env: | ||
TAG: 'refs/tags/v${{ steps.generate.outputs.release-version }}' | ||
|
||
- uses: elastic/apm-pipeline-library/.github/actions/slack-message@current | ||
if: failure() | ||
with: | ||
url: ${{ inputs.vault-url }} | ||
roleId: ${{ inputs.vault-role-id }} | ||
secretId: ${{ inputs.vault-secret-id }} | ||
channel: ${{ env.SLACK_CHANNEL }} | ||
threadTimestamp: ${{ steps.slack-thread.outputs.threadTimestamp || '' }} | ||
message: |- | ||
:fire: Something went wrong with the ${{ inputs.type }} release preparation. It failed with the below error message: | ||
`${{ env.FAILURE_MESSAGE }}`. | ||
See <${{ env.JOB_URL }}|logs>. | ||
env: | ||
JOB_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} |
Oops, something went wrong.