Skip to content

Commit 5467de9

Browse files
committed
Merge branch 'main' of https://github.com/elastic/apm-server into feature/use-plain-command
* 'main' of https://github.com/elastic/apm-server: (76 commits) changelog: Add 9.0.4 release notes (elastic#17586) Remove 9.1 from 9.2 lazy rollover exception (elastic#17754) Fix wrong usage of inputs (elastic#17751) iserver-test: Add 9.2 test and some improvements (elastic#17709) refactor: replace pkg/errors with stdlib (elastic#17697) docs: update release manager docs (elastic#17450) build(deps): bump github.com/spf13/pflag from 1.0.6 to 1.0.7 in the spf13 group (elastic#17729) build(deps): bump github.com/elastic/apm-data from 1.19.2 to 1.19.3 (elastic#17731) chore: Remove stale comment about reloader multierror (elastic#17711) [updatecli] Update to elastic/beats@58f44bb27b80 (elastic#17660) chore: deps(updatecli/policy): bump "ghcr.io/updatecli/policies/autod... (elastic#17704) Add temporary fix for Fleet policy issue (elastic#17682) chore: update test plan template (elastic#17497) refactor: remove unused apm tracer (elastic#17658) Add previously missing ignored logs (elastic#17655) ci: update mergify windows check (elastic#17657) build(deps): bump github.com/elastic/go-docappender/v2 from 2.10.0 to 2.11.0 (elastic#17570) build(deps): bump the dependencies group in /systemtest with 4 updates (elastic#17654) build(deps): bump go.opentelemetry.io/collector/pdata from 1.35.0 to 1.36.0 in the otel group (elastic#17653) build(deps): bump ubi9/ubi-micro in /packaging/docker (elastic#17651) ...
2 parents 21a9eed + 1fdc7a9 commit 5467de9

File tree

104 files changed

+1563
-1406
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+1563
-1406
lines changed

.ci/updatecli/values.d/ironbank.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
config:
22
- path: packaging/ironbank
3+
4+
pull_request:
5+
labels:
6+
- dependencies
7+
- backport-active-all

.github/CODEOWNERS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1+
# Default owner
12
* @elastic/obs-ds-intake-services
3+
4+
# Sub-directories/files ownership
5+
/.github/workflows @elastic/obs-ds-intake-services @elastic/observablt-ci

.github/ISSUE_TEMPLATE/test-plan.md

Lines changed: 22 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,41 @@
22
name: Test Plan
33
about: Create a new manual test plan meta issue
44
labels: "test-plan"
5-
65
---
76

87
# Manual Test Plan
98

10-
When picking up a test case, please add your name to this overview beforehand and tick the checkbox when finished.
11-
Testing can be started when the first build candidate (BC) is available in the CFT region.
9+
- When picking up a test case, please add your name to this overview beforehand and tick the checkbox when finished.
10+
- Testing can be started when the first build candidate (BC) is available in the CFT region.
11+
- For each repository, update the compare version range to get the list of commits to review.
12+
13+
## ES apm-data plugin
14+
15+
<!-- Add any issues / PRs which were worked on during the milestone release https://github.com/elastic/elasticsearch/tree/main/x-pack/plugin/apm-data-->
1216

13-
## Smoke Testing ESS setup
17+
## apm-aggregation
1418

15-
Thanks to https://github.com/elastic/apm-server/issues/8303 further smoke tests are run automatically on ESS now.
16-
**Consider extending the smoke tests to include more test cases which we'd like to cover**
19+
<!-- Add any issues / PRs which were worked on during the milestone release https://github.com/elastic/apm-aggregation/pulls-->
1720

18-
## go-docappender library
21+
List of changes: https://github.com/elastic/apm-aggregation/compare/v1.2.0...v1.3.0
22+
23+
## go-docappender
1924

2025
<!-- Add any issues / PRs which were worked on during the milestone release https://github.com/elastic/go-docappender/pulls-->
2126

22-
## apm-data library
27+
List of changes: https://github.com/elastic/go-docappender/compare/v2.4.0...v2.10.0
28+
29+
## apm-data
2330

2431
<!-- Add any issues / PRs which were worked on during the milestone release https://github.com/elastic/apm-data/pulls-->
2532

33+
List of changes: https://github.com/elastic/apm-data/compare/v1.16.0...v1.19.2
34+
35+
## apm-server
36+
37+
<!-- Add any issues / PRs which were worked on during the milestone release https://github.com/elastic/apm-server/pulls-->
38+
39+
List of changes: https://github.com/elastic/apm-server/compare/v9.0.0...main
2640

2741
## Test cases from the GitHub board
2842

@@ -31,7 +45,3 @@ Thanks to https://github.com/elastic/apm-server/issues/8303 further smoke tests
3145
<!-- [apm-server MAJOR.MINOR test-plan](https://github.com/elastic/apm-server/issues?q=is%3Aissue+label%3Atest-plan+-label%3Atest-plan-ok+is%3Aclosed+label%3AvMAJOR.MINOR.0) -->
3246

3347
Add yourself as _assignee_ on the PR before you start testing.
34-
35-
## Regressions
36-
37-
<!-- Link any regressions to this issue. -->

.github/dependabot.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ updates:
4242
directories:
4343
- "/"
4444
- "/.github/workflows/*"
45-
reviewers:
46-
- "elastic/observablt-ci"
4745
schedule:
4846
interval: "weekly"
4947
day: "sunday"

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
test:
4646
strategy:
4747
matrix:
48-
os: ['macos-latest', 'ubuntu-latest', 'windows-latest']
48+
os: ['macos-latest', 'ubuntu-latest', 'windows-2025']
4949
runs-on: ${{ matrix.os }}
5050
steps:
5151
- uses: actions/checkout@v4

.github/workflows/docs-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ jobs:
1616
deployments: write
1717
id-token: write
1818
contents: read
19-
pull-requests: read
19+
pull-requests: write
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
3+
name: generate-bc-upgrade-paths
4+
description: Generate BC upgrade paths
5+
6+
outputs:
7+
upgrade_paths:
8+
description: "List of BC upgrade paths"
9+
value: ${{ steps.generate.outputs.upgrade_paths }}
10+
11+
runs:
12+
using: "composite"
13+
steps:
14+
- uses: actions/checkout@v4
15+
- id: generate
16+
name: Generate BC upgrade paths
17+
run: |
18+
echo "upgrade_paths=$(./bc.sh)" >> "${GITHUB_OUTPUT}"
19+
shell: 'bash'
20+
working-directory: ./.github/workflows/generate-bc-upgrade-paths
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
#!/bin/bash
2+
3+
set -eo pipefail
4+
5+
bcs=$(curl -s https://artifacts.elastic.co/releases/TfEVhiaBGqR64ie0g0r0uUwNAbEQMu1Z/future-releases/stack.json |
6+
jq '.releases[] |
7+
del(.snapshots) | del(.responsible) | select((.build_candidates | length) > 0) | .version')
8+
9+
declare -a upgrade_paths=()
10+
for bc in ${bcs}; do
11+
bc=$(echo "${bc}" | tr -d '"')
12+
major=$(echo "${bc}" | cut -d '.' -f1 )
13+
minor=$(echo "${bc}" | cut -d '.' -f2 )
14+
# Versions less than 8 are skipped.
15+
if [[ ${major} -lt 8 ]]; then
16+
continue
17+
fi
18+
# Specifically for 9.0, we set the upgrade path to be from 8.18, since
19+
# 8.19 cannot upgrade to 9.0 due to ES chronological upgrade policy.
20+
# See issue: https://elasticco.atlassian.net/browse/CP-10254.
21+
if [[ "${major}.${minor}" == "9.0" ]]; then
22+
upgrade_paths+=("8.18, ${bc}")
23+
continue
24+
fi
25+
# If minor is 0 i.e. brand new major version, upgrade from previous major.
26+
# Otherwise, upgrade from previous minor.
27+
if [[ ${minor} -eq 0 ]]; then
28+
upgrade_paths+=("$(( major - 1 )), ${bc}")
29+
else
30+
upgrade_paths+=("${major}.$(( minor - 1 )), ${bc}")
31+
fi
32+
done
33+
34+
jq -c -n '$ARGS.positional' --args "${upgrade_paths[@]}"

.github/workflows/integration-server-test.yml

Lines changed: 73 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,23 @@ name: integration-server-test
33
run-name: Integration Server Test
44

55
on:
6-
workflow_dispatch: ~
6+
workflow_dispatch:
7+
inputs:
8+
run-upgrade-tests:
9+
description: 'Run upgrade tests (SNAPSHOT)'
10+
required: false
11+
type: boolean
12+
default: true
13+
run-upgrade-bc-tests:
14+
description: 'Run upgrade tests (BC)'
15+
required: false
16+
type: boolean
17+
default: true
18+
run-standalone-tests:
19+
description: 'Run standalone-to-managed tests'
20+
required: false
21+
type: boolean
22+
default: true
723
schedule:
824
- cron: '0 2 * * 1-5'
925

@@ -19,19 +35,62 @@ env:
1935
TERRAFORM_VERSION: 1.10.2
2036

2137
jobs:
38+
prepare:
39+
name: Prepare tests
40+
runs-on: ubuntu-latest
41+
outputs:
42+
upgrade_paths: ${{ steps.generate.outputs.upgrade_paths }}
43+
steps:
44+
- uses: actions/checkout@v4
45+
- id: generate
46+
name: Generate BC upgrade paths
47+
uses: ./.github/workflows/generate-bc-upgrade-paths
48+
2249
run-upgrade:
23-
name: Upgrade tests
50+
if: ${{ !contains(inputs.run-upgrade-tests, 'false') }}
51+
name: Upgrade tests (SNAPSHOT)
2452
runs-on: ubuntu-latest
2553
strategy:
2654
fail-fast: false
2755
matrix:
2856
upgrade-path:
29-
# Latest 8.15 cannot upgrade to latest 8.17, it can only go to 8.17.3.
30-
# With our current setup (only latest patch), we have to upgrade to intermediate latest 8.16 instead.
31-
# TODO: Maybe add support for upgrading to latest upgradable instead of absolute latest?
32-
- '8.15, 8.16, 8.17'
33-
- '8.17, 8.18, 9.0'
34-
- '8.17, 8.19, 9.1'
57+
- '8.15, 8.16, 8.17, 8.18'
58+
- '8.18, 8.19, 9.2'
59+
- '8.18, 9.0, 9.2'
60+
- '8.19, 9.1, 9.2'
61+
scenario:
62+
- 'Default'
63+
- 'Reroute'
64+
steps:
65+
- uses: actions/checkout@v4
66+
- uses: hashicorp/setup-terraform@b9cd54a3c349d3f38e8881555d616ced269862dd # v3.1.2
67+
with:
68+
terraform_version: "${{ env.TERRAFORM_VERSION }}"
69+
- uses: actions/setup-go@v5
70+
with:
71+
go-version-file: 'integrationservertest/go.mod'
72+
cache: false
73+
- uses: elastic/oblt-actions/google/auth@v1
74+
- uses: google-github-actions/get-secretmanager-secrets@a8440875e1c2892062aef9061228d4f1af8f919b # v2.2.3
75+
with:
76+
export_to_environment: true
77+
secrets: |-
78+
EC_API_KEY:elastic-observability/elastic-cloud-observability-team-pro-api-key
79+
- name: "Run upgrade tests"
80+
working-directory: ${{ github.workspace }}
81+
run: |
82+
export TF_VAR_CREATED_DATE=$(date +%s)
83+
SCENARIO="${{ matrix.scenario }}" UPGRADE_PATH="${{ matrix.upgrade-path }}" SNAPSHOT=true make integration-server-test/upgrade
84+
85+
run-upgrade-bc:
86+
if: ${{ !contains(inputs.run-upgrade-bc-tests, 'false') }}
87+
name: Upgrade tests (BC)
88+
runs-on: ubuntu-latest
89+
needs: prepare
90+
strategy:
91+
fail-fast: false
92+
matrix:
93+
upgrade-path: ${{ fromJSON(needs.prepare.outputs.upgrade_paths) }}
3594
scenario:
3695
- 'Default'
3796
- 'Reroute'
@@ -54,9 +113,10 @@ jobs:
54113
working-directory: ${{ github.workspace }}
55114
run: |
56115
export TF_VAR_CREATED_DATE=$(date +%s)
57-
SCENARIO="${{ matrix.scenario }}" UPGRADE_PATH="${{ matrix.upgrade-path }}" make integration-server-upgrade-test
116+
SCENARIO="${{ matrix.scenario }}" UPGRADE_PATH="${{ matrix.upgrade-path }}" make integration-server-test/upgrade
58117
59118
run-standalone:
119+
if: ${{ !contains(inputs.run-standalone-tests, 'false') }}
60120
name: Standalone-to-managed tests
61121
runs-on: ubuntu-latest
62122
strategy:
@@ -85,13 +145,15 @@ jobs:
85145
working-directory: ${{ github.workspace }}
86146
run: |
87147
export TF_VAR_CREATED_DATE=$(date +%s)
88-
SCENARIO="${{ matrix.scenario }}" make integration-server-standalone-test
148+
SCENARIO="${{ matrix.scenario }}" make integration-server-test/standalone
89149
90150
notify:
91-
if: github.ref == 'refs/heads/main'
151+
name: Notify
152+
if: always() && github.ref == 'refs/heads/main'
92153
runs-on: ubuntu-latest
93154
needs:
94155
- run-upgrade
156+
- run-upgrade-bc
95157
- run-standalone
96158
steps:
97159
- id: check

.github/workflows/smoke-tests-os-sched.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848

4949
notify:
5050
name: Notify
51-
if: github.ref == 'refs/heads/main'
51+
if: always() && github.ref == 'refs/heads/main'
5252
runs-on: ubuntu-latest
5353
needs:
5454
- smoke-tests-os

0 commit comments

Comments
 (0)