Skip to content

Commit dfe51e9

Browse files
authored
Separate pull request CI jobs based on target branch. (#187)
* Keep only 8.x related CI jobs in 8.x branch and remove main CI jobs. * Add 8.previous CI jobs. * Remove Build and E2E pipeline definitions from 8.x branch. * Remove 8.previous (8.15) as ES GeoIP interface differs from 8.current (8.16).
1 parent 3c86ec5 commit dfe51e9

14 files changed

+19
-663
lines changed

.buildkite/build-pipeline.yml

Lines changed: 1 addition & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1 @@
1-
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json
2-
3-
agents:
4-
provider: "gcp"
5-
machineType: "n1-standard-4"
6-
image: family/core-ubuntu-2204
7-
8-
steps:
9-
- label: ":hammer: Build plugin with LS & ES 8.x :elasticsearch:"
10-
# Builds with LS and ES last 8.x released version
11-
# Runs integration tests on 8.x released versions
12-
command:
13-
- .buildkite/scripts/run_tests.sh
14-
env:
15-
ELASTIC_STACK_VERSION: "8.current"
16-
SNAPSHOT: false
17-
INTEGRATION: true
18-
SECURE_INTEGRATION: true
19-
TARGET_BRANCH: "8.x"
20-
21-
- label: ":hammer: Build plugin with LS 8.x-SNAPSHOT & ES `main` branch :elasticsearch:"
22-
# Builds with LS last 8.x released version and ES main
23-
# Runs integration tests on 8.x released versions
24-
command:
25-
- .buildkite/scripts/run_tests.sh
26-
env:
27-
ELASTIC_STACK_VERSION: "8.current"
28-
ELASTICSEARCH_TREEISH: "main"
29-
SNAPSHOT: true
30-
INTEGRATION: true
31-
SECURE_INTEGRATION: true
32-
33-
- label: ":hammer: Build plugin with LS & ES `main` branch :elasticsearch:"
34-
# Builds with LS last 8.x released version and ES main
35-
# Runs integration tests on 8.x released versions
36-
command:
37-
- .buildkite/scripts/run_tests.sh
38-
env:
39-
ELASTIC_STACK_VERSION: "main"
40-
ELASTICSEARCH_TREEISH: "main"
41-
SNAPSHOT: true
42-
INTEGRATION: true
43-
SECURE_INTEGRATION: true
1+
# Intentional empty definition because it is in 8.x

.buildkite/e2e-pipeline.yml

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1 @@
1-
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json
2-
3-
agents:
4-
provider: gcp
5-
imageProject: elastic-images-prod
6-
image: family/platform-ingest-logstash-multi-jdk-ubuntu-2204
7-
machineType: "n2-standard-4"
8-
diskSizeGb: 120
9-
10-
steps:
11-
# ------------- Run E2E tests ---------------------
12-
- label: ":test_tube: Run E2E tests with LS 8.x :rocket:"
13-
# uses the LS main & plugin 8.x branch when building the plugin
14-
# Runs integration tests against 8.x release version
15-
command:
16-
- .buildkite/scripts/run_e2e_tests.sh
17-
env:
18-
ELASTIC_STACK_VERSION: "8.current"
19-
TARGET_BRANCH: "8.x"
20-
21-
- label: ":test_tube: Run E2E tests with LS 8.x-SNAPSHOT :rocket:"
22-
# uses the LS & plugin main branch when building the plugin
23-
# Runs integration tests against 8.x-SNAPSHOT version
24-
command:
25-
- .buildkite/scripts/run_e2e_tests.sh
26-
env:
27-
ELASTIC_STACK_VERSION: "8.current"
28-
SNAPSHOT: true
29-
30-
- label: ":test_tube: Run E2E tests with LS `main` :rocket:"
31-
# uses the LS & plugin main branch when building the plugin
32-
# Runs integration tests against snapshot.main of https://raw.githubusercontent.com/elastic/logstash/main/ci/logstash_releases.json
33-
command:
34-
- .buildkite/scripts/run_e2e_tests.sh
35-
env:
36-
ELASTIC_STACK_VERSION: main
37-
SNAPSHOT: true
38-
ELASTICSEARCH_TREEISH: main
1+
# Intentional empty definition because it is in 8.x

.buildkite/pull-request-pipeline.yml

Lines changed: 17 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -6,41 +6,43 @@ agents:
66

77
steps:
88
# ------------- Unit tests ---------------------
9-
- label: ":hammer: Unit tests with LS & ES 8.x-SNAPSHOT :docker:"
10-
# Builds the plugin (with current changes) against LS 8.x-SNAPSHOT and ES version defined in gradle.properties
11-
# Runs unit tests on LS & ES 8.x-SNAPSHOT docker
9+
- label: ":hammer: Unit tests with LS & ES 8.current :docker:"
10+
# Builds the plugin (with current changes) with the version defined in gradle.properties
11+
# and against LS and ES 8.current
12+
# Runs unit tests on LS & ES 8.current docker
1213
command:
1314
- .buildkite/scripts/run_tests.sh
1415
env:
1516
ELASTIC_STACK_VERSION: "8.current"
16-
SNAPSHOT: true
1717
INTEGRATION: false
1818

19-
- label: ":hammer: Unit tests with LS 8.x-SNAPSHOT & ES main :docker:"
20-
# Builds the plugin (with current changes) against LS 8.x-SNAPSHOT and ES main
21-
# Runs unit tests on LS & ES 8.x-SNAPSHOT docker
19+
- label: ":hammer: Unit tests with LS & ES 8.current-SNAPSHOT :docker:"
20+
# Builds the plugin (with current changes) with the version defined in gradle.properties
21+
# and against LS and ES 8.current-SNAPSHOT
22+
# Runs unit tests on LS & ES 8.current-SNAPSHOT docker
2223
command:
2324
- .buildkite/scripts/run_tests.sh
2425
env:
2526
ELASTIC_STACK_VERSION: "8.current"
26-
ELASTICSEARCH_TREEISH: main
27-
INTEGRATION: false
2827
SNAPSHOT: true
28+
INTEGRATION: false
2929

3030
# ------------- Integration tests ---------------------
31-
- label: ":hammer: Integration tests with LS & ES 8.x :docker:"
32-
# Builds the plugin (with current changes) against LS 8.x and ES version defined in gradle.properties
33-
# Runs integration tests on LS & ES 8.x docker
31+
- label: ":hammer: Integration tests with LS & ES 8.current :docker:"
32+
# Builds the plugin (with current changes) with the version defined in gradle.properties
33+
# and against LS and ES 8.current
34+
# Runs integration tests on LS & ES 8.current docker
3435
command:
3536
- .buildkite/scripts/run_tests.sh
3637
env:
3738
ELASTIC_STACK_VERSION: "8.current"
3839
INTEGRATION: true
3940
SECURE_INTEGRATION: true
4041

41-
- label: ":hammer: Integration tests with LS & ES 8.x-SNAPSHOT :docker:"
42-
# Builds the plugin (with current changes) against LS 8.x-SNAPSHOT and ES version defined in gradle.properties
43-
# Runs integration tests on LS & ES 8.x-SNAPSHOT docker
42+
- label: ":hammer: Integration tests with LS & ES 8.current-SNAPSHOT :docker:"
43+
# Builds the plugin (with current changes) with the version defined in gradle.properties
44+
# and against LS and ES 8.current-SNAPSHOT
45+
# Runs integration tests on LS & ES 8.current-SNAPSHOT docker
4446
command:
4547
- .buildkite/scripts/run_tests.sh
4648
env:
@@ -49,29 +51,3 @@ steps:
4951
INTEGRATION: true
5052
SECURE_INTEGRATION: true
5153
LOG_LEVEL: "info"
52-
53-
- label: ":hammer: Integration tests with LS 8.x-SNAPSHOT & ES main :docker:"
54-
# Builds the plugin (with current changes) against LS 8.x-SNAPSHOT and ES main
55-
# Runs integration tests on LS & ES 8.x-SNAPSHOT docker
56-
command:
57-
- .buildkite/scripts/run_tests.sh
58-
env:
59-
ELASTIC_STACK_VERSION: "8.current"
60-
ELASTICSEARCH_TREEISH: "main"
61-
SNAPSHOT: true
62-
INTEGRATION: true
63-
SECURE_INTEGRATION: true
64-
LOG_LEVEL: "info"
65-
66-
- label: ":hammer: Integration tests with LS & ES main :docker:"
67-
# Builds the plugin (with current changes) against LS and ES main
68-
# Runs integration tests on snapshot.main of https://raw.githubusercontent.com/elastic/logstash/main/ci/logstash_releases.json
69-
command:
70-
- .buildkite/scripts/run_tests.sh
71-
env:
72-
ELASTIC_STACK_VERSION: main
73-
ELASTICSEARCH_TREEISH: main
74-
SNAPSHOT: true
75-
INTEGRATION: true
76-
SECURE_INTEGRATION: true
77-
LOG_LEVEL: "info"

.buildkite/scripts/e2e/README.md

Lines changed: 0 additions & 56 deletions
This file was deleted.

.buildkite/scripts/e2e/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)