Skip to content

Commit a90c78f

Browse files
authored
Merge branch '9.2' into mergify/bp/9.2/pr-11605
2 parents e3cee33 + bee420c commit a90c78f

20 files changed

+165
-13
lines changed

.buildkite/pipeline.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,19 @@ steps:
348348
- .buildkite/scripts/steps/beats_tests.sh
349349
- .buildkite/hooks/pre-command
350350

351+
# NOTE: This should help detecting issues earlier in the development cycle
352+
# See https://github.com/elastic/elastic-agent/issues/11604
353+
- label: "Trigger Elastic Agent Package"
354+
if: build.pull_request.id != null
355+
commands:
356+
- .buildkite/scripts/steps/trigger-elastic-agent-package.sh
357+
- .buildkite/scripts/steps/trigger-elastic-agent-package.sh | buildkite-agent pipeline upload
358+
if_changed:
359+
include:
360+
- .buildkite/pipeline.elastic-agent-package.yml
361+
- .buildkite/scripts/steps/package.sh
362+
- .buildkite/scripts/steps/trigger-elastic-agent-package.sh
363+
351364
# wait for CI to be done
352365
- wait: ~
353366

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Create a dynamic buildkite step for running the elastic-agent-package pipeline.
4+
#
5+
# Required environment variables:
6+
# - BUILDKITE_PULL_REQUEST
7+
# - BUILDKITE_COMMIT
8+
# - BUILDKITE_BRANCH
9+
# - BUILDKITE_PULL_REQUEST_BASE_BRANCH
10+
#
11+
12+
if [ ! -f .package-version ]; then
13+
echo ".package-version file not found!"
14+
exit 1
15+
fi
16+
17+
# No need for the snapshot but the three digits version is required
18+
BEAT_VERSION=$(jq -r .version .core_version)
19+
MANIFEST_URL=$(jq -r .manifest_url .package-version)
20+
21+
cat << EOF
22+
- label: ":pipeline: Run elastic-agent-package"
23+
trigger: "elastic-agent-package"
24+
build:
25+
message: "#${BUILDKITE_PULL_REQUEST} - Verify elastic-agent-package works"
26+
commit: "${BUILDKITE_COMMIT}"
27+
branch: "${BUILDKITE_BRANCH}"
28+
env:
29+
DRA_VERSION: "${BEAT_VERSION}"
30+
DRA_WORKFLOW: "snapshot"
31+
DRA_BRANCH: "${BUILDKITE_PULL_REQUEST_BASE_BRANCH}"
32+
DRA_DRY_RUN: "--dry-run"
33+
MANIFEST_URL: "${MANIFEST_URL}"
34+
ELASTIC_SLACK_NOTIFICATIONS_ENABLED: "false"
35+
EOF

.github/workflows/bump-agent-versions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
matrix: ${{ fromJson(needs.filter.outputs.matrix) }}
3232
steps:
3333
- name: Checkout
34-
uses: actions/checkout@v5
34+
uses: actions/checkout@v6
3535
with:
3636
ref: "${{ matrix.branch }}"
3737

.github/workflows/bump-beats-version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
fail-fast: false
3838
matrix: ${{ fromJson(needs.filter.outputs.matrix) }}
3939
steps:
40-
- uses: actions/checkout@v5
40+
- uses: actions/checkout@v6
4141
with:
4242
ref: ${{ matrix.branch }}
4343

.github/workflows/bump-edot-images.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
pull-requests: write
2020
runs-on: ubuntu-latest
2121
steps:
22-
- uses: actions/checkout@v5
22+
- uses: actions/checkout@v6
2323

2424
- uses: elastic/oblt-actions/updatecli/run@v1
2525
with:

.github/workflows/bump-golang.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
pull-requests: write
2020
runs-on: ubuntu-latest
2121
steps:
22-
- uses: actions/checkout@v5
22+
- uses: actions/checkout@v6
2323

2424
- uses: elastic/oblt-actions/updatecli/run@v1
2525
with:

.github/workflows/bump-otel-version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
matrix:
2323
branch: ["main", "8.19"]
2424
steps:
25-
- uses: actions/checkout@v5
25+
- uses: actions/checkout@v6
2626

2727
- name: Set up Go
2828
uses: actions/setup-go@v6

.github/workflows/bump-vm-images.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
fail-fast: false
4141
matrix: ${{ fromJson(needs.filter.outputs.matrix) }}
4242
steps:
43-
- uses: actions/checkout@v5
43+
- uses: actions/checkout@v6
4444
with:
4545
# NOTE: as long as the updatecli bump differs between branches, we need to
4646
# checkout the branch that we are going to bump that we are going to bump

.github/workflows/catalog-info.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
contents: read
1919
packages: read
2020
steps:
21-
- uses: actions/checkout@v5
21+
- uses: actions/checkout@v6
2222

2323
- uses: elastic/oblt-actions/elastic/validate-catalog@v1
2424

.github/workflows/fragment-in-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
if: "!contains(github.event.pull_request.labels.*.name, 'skip-changelog') && !contains(github.event.pull_request.labels.*.name, 'backport')"
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v5
11+
- uses: actions/checkout@v6
1212
- uses: actions/setup-go@v6
1313
with:
1414
go-version-file: .go-version

0 commit comments

Comments
 (0)