-
Notifications
You must be signed in to change notification settings - Fork 5k
Expand file tree
/
Copy pathaws-tests-pipeline.yml
More file actions
72 lines (64 loc) · 2.29 KB
/
Copy pathaws-tests-pipeline.yml
File metadata and controls
72 lines (64 loc) · 2.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json
env:
AWS_ARM_INSTANCE_TYPE: "m6g.xlarge"
AWS_IMAGE_UBUNTU_ARM_64: "platform-ingest-beats-ubuntu-2204-aarch64-1782878510"
# TEST_TAGS should be reviewed and updated: https://github.com/elastic/ingest-dev/issues/3476
TEST_TAGS: "aws"
MODULE: "aws"
# Other deps
ASDF_TERRAFORM_VERSION: 1.0.2
ASDF_MAGE_VERSION: 1.15.0
# Unit tests
RACE_DETECTOR: "true"
TEST_COVERAGE: "true"
steps:
- label: ":ubuntu: x-pack/filebeat: AWS Tests"
key: "x-pack-filebeat-extended-cloud-test"
skip: "skipping: elastic/ingest-dev#3467"
# Related issue: https://github.com/elastic/ingest-dev/issues/3467
env:
MODULE_DIR: "x-pack/filebeat/input/awss3/_meta/terraform"
command: |
set -euo pipefail
source .buildkite/scripts/initCloudEnv.sh
echo "~~~ Running tests"
cd x-pack/filebeat
mage build test goIntegTest
agents:
provider: "aws"
image: "${AWS_IMAGE_UBUNTU_ARM_64}"
instanceType: "${AWS_ARM_INSTANCE_TYPE}"
artifact_paths:
- "x-pack/filebeat/build/*.xml"
- "x-pack/filebeat/build/*.json"
plugins:
# See https://github.com/elastic/oblt-infra/blob/main/conf/resources/repos/beats/01-aws-buildkite-oidc.tf
- elastic/oblt-aws-auth#v0.2.0:
duration: 3600 # seconds
notify:
- github_commit_status:
context: "x-pack/filebeat: AWS Tests"
- label: ":ubuntu: x-pack/metricbeat: AWS Tests"
key: "x-pack-metricbeat-extended-cloud-test"
env:
MODULE_DIR: "x-pack/metricbeat/module/aws"
command: |
set -euo pipefail
source .buildkite/scripts/initCloudEnv.sh
echo "~~~ Running tests"
cd x-pack/metricbeat
mage build test goIntegTest
agents:
provider: "aws"
image: "${AWS_IMAGE_UBUNTU_ARM_64}"
instanceType: "${AWS_ARM_INSTANCE_TYPE}"
artifact_paths:
- "x-pack/metricbeat/build/*.xml"
- "x-pack/metricbeat/build/*.json"
plugins:
# See https://github.com/elastic/oblt-infra/blob/main/conf/resources/repos/beats/01-aws-buildkite-oidc.tf
- elastic/oblt-aws-auth#v0.2.0:
duration: 3600 # seconds
notify:
- github_commit_status:
context: "x-pack/metricbeat: AWS Tests"