Skip to content

Commit

Permalink
Split windows steps (elastic#38782)
Browse files Browse the repository at this point in the history
* add MacOS Arm tests

* split windows steps

* fix pipelines key names

* comment-out xpack/heartbeat windows steps

* fix xpack/libbeat tests

* remove MacOs changes
  • Loading branch information
sharbuz authored Apr 10, 2024
1 parent 2f5ee74 commit c749dac
Show file tree
Hide file tree
Showing 14 changed files with 758 additions and 290 deletions.
33 changes: 16 additions & 17 deletions .buildkite/metricbeat/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,25 @@ env:
ASDF_MAGE_VERSION: 1.15.0

steps:

- input: "Input Parameters"
key: "run_metricbeat"
fields:
- select: "Metricbeat - run_metricbeat"
key: "run_metricbeat"
options:
- label: "True"
value: "true"
- label: "False"
value: "false"
default: "false"
- select: "Metricbeat - run_metricbeat_macos_tests"
key: "run_metricbeat_macos_tests"
options:
- label: "True"
value: "true"
- label: "False"
value: "false"
default: "false"
- select: "Metricbeat - run_metricbeat"
key: "run_metricbeat"
options:
- label: "True"
value: "true"
- label: "False"
value: "false"
default: "false"
- select: "Metricbeat - run_metricbeat_macos_tests"
key: "run_metricbeat_macos_tests"
options:
- label: "True"
value: "true"
- label: "False"
value: "false"
default: "false"
if: "build.source == 'ui'"

- wait: ~
Expand Down
49 changes: 24 additions & 25 deletions .buildkite/packetbeat/pipeline.packetbeat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,34 +25,33 @@ env:
ASDF_MAGE_VERSION: 1.15.0

steps:

- input: "Input Parameters"
key: "input-run-all-stages"
fields:
- select: "Packetbeat - run_packetbeat"
key: "run_packetbeat"
options:
- label: "True"
value: "true"
- label: "False"
value: "false"
default: "false"
- select: "Packetbeat - run_packetbeat_arm_tests"
key: "run_packetbeat_arm_tests"
options:
- label: "True"
value: "true"
- label: "False"
value: "false"
default: "false"
- select: "Packetbeat - run_packetbeat_macos_tests"
key: "run_packetbeat_macos_tests"
options:
- label: "True"
value: "true"
- label: "False"
value: "false"
default: "false"
- select: "Packetbeat - run_packetbeat"
key: "run_packetbeat"
options:
- label: "True"
value: "true"
- label: "False"
value: "false"
default: "false"
- select: "Packetbeat - run_packetbeat_arm_tests"
key: "run_packetbeat_arm_tests"
options:
- label: "True"
value: "true"
- label: "False"
value: "false"
default: "false"
- select: "Packetbeat - run_packetbeat_macos_tests"
key: "run_packetbeat_macos_tests"
options:
- label: "True"
value: "true"
- label: "False"
value: "false"
default: "false"
if: "build.source == 'ui'"

- wait: ~
Expand Down
81 changes: 62 additions & 19 deletions .buildkite/scripts/generate_metricbeat_pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,58 +75,101 @@ steps:
- github_commit_status:
context: "$BEATS_PROJECT_NAME: Cross compile"
- label: ":windows: Windows 2016/2022 Unit Tests - {{matrix.image}}"
- label: ":windows: Windows 2016 Unit Tests"
command: |
Set-Location -Path $BEATS_PROJECT_NAME
mage build unitTest
key: "mandatory-win-unit-tests"
key: "mandatory-win-2016-unit-tests"
agents:
provider: "gcp"
image: "{{matrix.image}}"
image: "${IMAGE_WIN_2016}"
machine_type: "${GCP_WIN_MACHINE_TYPE}"
disk_size: 100
disk_type: "pd-ssd"
matrix:
setup:
image:
- "${IMAGE_WIN_2016}"
- "${IMAGE_WIN_2022}"
artifact_paths:
- "$BEATS_PROJECT_NAME/build/*.xml"
- "$BEATS_PROJECT_NAME/build/*.json"
notify:
- github_commit_status:
context: "$BEATS_PROJECT_NAME: Windows {{matrix.image}} Unit Tests"
context: "$BEATS_PROJECT_NAME: Windows 2016 Unit Tests"
- label: ":windows: Windows 2022 Unit Tests"
command: |
Set-Location -Path $BEATS_PROJECT_NAME
mage build unitTest
key: "mandatory-win-2022-unit-tests"
agents:
provider: "gcp"
image: "${IMAGE_WIN_2022}"
machine_type: "${GCP_WIN_MACHINE_TYPE}"
disk_size: 100
disk_type: "pd-ssd"
artifact_paths:
- "$BEATS_PROJECT_NAME/build/*.xml"
- "$BEATS_PROJECT_NAME/build/*.json"
notify:
- github_commit_status:
context: "$BEATS_PROJECT_NAME: Windows 2022 Unit Tests"
# echo "Add the extended windows tests into the pipeline"
# TODO: ADD conditions from the main pipeline
- group: "Extended Windows Tests"
key: "extended-win-tests"
steps:
- label: ":windows: Windows Unit Tests - {{matrix.image}}"
- label: ":windows: Windows 10 Unit Tests"
command: |
Set-Location -Path $BEATS_PROJECT_NAME
mage build unitTest
key: "extended-win-10-unit-tests"
agents:
provider: "gcp"
image: "${IMAGE_WIN_10}"
machineType: "${GCP_WIN_MACHINE_TYPE}"
disk_size: 100
disk_type: "pd-ssd"
artifact_paths:
- "$BEATS_PROJECT_NAME/build/*.xml"
- "$BEATS_PROJECT_NAME/build/*.json"
notify:
- github_commit_status:
context: "$BEATS_PROJECT_NAME: Windows 10 Unit Tests"
- label: ":windows: Windows 11 Unit Tests"
command: |
Set-Location -Path $BEATS_PROJECT_NAME
mage build unitTest
key: "extended-win-11-unit-tests"
agents:
provider: "gcp"
image: "${IMAGE_WIN_11}"
machineType: "${GCP_WIN_MACHINE_TYPE}"
disk_size: 100
disk_type: "pd-ssd"
artifact_paths:
- "$BEATS_PROJECT_NAME/build/*.xml"
- "$BEATS_PROJECT_NAME/build/*.json"
notify:
- github_commit_status:
context: "$BEATS_PROJECT_NAME: Windows 11 Unit Tests"
- label: ":windows: Windows 2019 Unit Tests"
command: |
Set-Location -Path $BEATS_PROJECT_NAME
mage build unitTest
key: "extended-win-unit-tests"
key: "extended-win-2019-unit-tests"
agents:
provider: "gcp"
image: "{{matrix.image}}"
image: "${IMAGE_WIN_2019}"
machineType: "${GCP_WIN_MACHINE_TYPE}"
disk_size: 100
disk_type: "pd-ssd"
matrix:
setup:
image:
- "${IMAGE_WIN_10}"
- "${IMAGE_WIN_11}"
- "${IMAGE_WIN_2019}"
artifact_paths:
- "$BEATS_PROJECT_NAME/build/*.xml"
- "$BEATS_PROJECT_NAME/build/*.json"
notify:
- github_commit_status:
context: "$BEATS_PROJECT_NAME: Windows {{matrix.image}} Unit Tests"
context: "$BEATS_PROJECT_NAME: Windows 2019 Unit Tests"
YAML
else
Expand Down
82 changes: 62 additions & 20 deletions .buildkite/scripts/generate_packetbeat_pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,56 +43,98 @@ steps:
- github_commit_status:
context: "$BEATS_PROJECT_NAME: RHEL9 Unit Tests"
- label: ":windows: Windows 2016 Unit Tests"
command: |
Set-Location -Path $BEATS_PROJECT_NAME
mage build unitTest
key: "mandatory-win-2016-unit-tests"
agents:
provider: "gcp"
image: "${IMAGE_WIN_2016}"
machine_type: "${GCP_WIN_MACHINE_TYPE}"
disk_size: 100
disk_type: "pd-ssd"
artifact_paths:
- "$BEATS_PROJECT_NAME/build/*.xml"
- "$BEATS_PROJECT_NAME/build/*.json"
notify:
- github_commit_status:
context: "$BEATS_PROJECT_NAME: Windows 2016 Unit Tests"
- label: ":windows: Windows Unit Tests - {{matrix.image}}"
- label: ":windows: Windows 2022 Unit Tests"
command: |
Set-Location -Path $BEATS_PROJECT_NAME
mage build unitTest
key: "mandatory-win-unit-tests"
key: "mandatory-win-2022-unit-tests"
agents:
provider: "gcp"
image: "{{matrix.image}}"
machineType: "${GCP_WIN_MACHINE_TYPE}"
image: "${IMAGE_WIN_2022}"
machine_type: "${GCP_WIN_MACHINE_TYPE}"
disk_size: 100
disk_type: "pd-ssd"
matrix:
setup:
image:
- "${IMAGE_WIN_2016}"
- "${IMAGE_WIN_2022}"
artifact_paths:
- "$BEATS_PROJECT_NAME/build/*.xml"
- "$BEATS_PROJECT_NAME/build/*.json"
notify:
- github_commit_status:
context: "$BEATS_PROJECT_NAME: Windows {{matrix.image}} Unit Tests"
context: "$BEATS_PROJECT_NAME: Windows 2022 Unit Tests"
- group: "Extended Windowds Tests"
key: "extended-win-tests"
steps:
- label: ":windows: Windows Unit Tests - {{matrix.image}}"
- label: ":windows: Windows 10 Unit Tests"
command: |
Set-Location -Path $BEATS_PROJECT_NAME
mage build unitTest
key: "extended-win-10-unit-tests"
agents:
provider: "gcp"
image: "${IMAGE_WIN_10}"
machineType: "${GCP_WIN_MACHINE_TYPE}"
disk_size: 100
disk_type: "pd-ssd"
artifact_paths:
- "$BEATS_PROJECT_NAME/build/*.xml"
- "$BEATS_PROJECT_NAME/build/*.json"
notify:
- github_commit_status:
context: "$BEATS_PROJECT_NAME: Windows 10 Unit Tests"
- label: ":windows: Windows 11 Unit Tests"
command: |
Set-Location -Path $BEATS_PROJECT_NAME
mage build unitTest
key: "extended-win-11-unit-tests"
agents:
provider: "gcp"
image: "${IMAGE_WIN_11}"
machineType: "${GCP_WIN_MACHINE_TYPE}"
disk_size: 100
disk_type: "pd-ssd"
artifact_paths:
- "$BEATS_PROJECT_NAME/build/*.xml"
- "$BEATS_PROJECT_NAME/build/*.json"
notify:
- github_commit_status:
context: "$BEATS_PROJECT_NAME: Windows 11 Unit Tests"
- label: ":windows: Windows 2019 Unit Tests"
command: |
Set-Location -Path $BEATS_PROJECT_NAME
mage build unitTest
key: "extended-win-unit-tests"
key: "extended-win-2019-unit-tests"
agents:
provider: "gcp"
image: "{{matrix.image}}"
image: "${IMAGE_WIN_2019}"
machineType: "${GCP_WIN_MACHINE_TYPE}"
disk_size: 100
disk_type: "pd-ssd"
matrix:
setup:
image:
- "${IMAGE_WIN_10}"
- "${IMAGE_WIN_11}"
- "${IMAGE_WIN_2019}"
artifact_paths:
- "$BEATS_PROJECT_NAME/build/*.xml"
- "$BEATS_PROJECT_NAME/build/*.json"
notify:
- github_commit_status:
context: "$BEATS_PROJECT_NAME: Windows {{matrix.image}} Unit Tests"
context: "$BEATS_PROJECT_NAME: Windows 2019 Unit Tests"
YAML
else
Expand Down
Loading

0 comments on commit c749dac

Please sign in to comment.