Skip to content

Commit 6372b67

Browse files
[8.19][Automation] Update versions (#9447)
* [8.19][Automation] Update versions These files are used for picking the starting (pre-upgrade) or ending (post-upgrade) agent versions in upgrade integration tests. The content is based on responses from https://www.elastic.co/api/product_versions and https://snapshots.elastic.co The current update is generated based on the following requirements: `.package-version` ```json { "version": "8.19.1-SNAPSHOT", "build_id": "8.19.1-d8b1213e", "manifest_url": "https://snapshots.elastic.co/8.19.1-d8b1213e/manifest-8.19.1-SNAPSHOT.json", "summary_url": "https://snapshots.elastic.co/8.19.1-d8b1213e/summary-8.19.1-SNAPSHOT.html", "core_version": "8.19.1", "stack_build_id": "8.19.1-d8b1213e-SNAPSHOT" } ``` `testing/integration/testdata/.upgrade-test-agent-versions.yml` ```json { "UpgradeToVersion": "8.19.3", "CurrentMajors": 1, "PreviousMajors": 1, "PreviousMinors": 2, "SnapshotBranches": [ "9.1", "9.0", "7.17" ] } ``` * fix: stop elastic-agent service if we need to stop endpoint --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Panos Koutsovasilis <[email protected]>
1 parent 7db5349 commit 6372b67

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

dev-tools/packaging/templates/linux/preinstall.sh.tmpl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ if systemctl list-unit-files --type=service | grep -q "^${SERVICE_NAME}.service"
1010

1111
# Remove the vault directory if it exists
1212
if [ -d "/opt/Elastic/Endpoint/state/vault" ]; then
13+
# we need to stop the agent to prevent it from invoking endpoint
14+
if systemctl --quiet is-active elastic-agent; then
15+
echo "elastic-agent is running, stopping it"
16+
systemctl --quiet stop elastic-agent
17+
else
18+
echo "elastic-agent is not running"
19+
fi
1320

1421
# Check if the endpoint is running
1522
if systemctl --quiet is-active $SERVICE_NAME; then

testing/integration/testdata/.upgrade-test-agent-versions.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# upgrade integration tests.
66

77
testVersions:
8-
- 8.18.4
9-
- 8.17.9
8+
- 8.18.5
9+
- 8.17.10
1010
- 7.17.30-SNAPSHOT
1111
- 7.17.29

0 commit comments

Comments
 (0)