From d3876d7c444cbbdbb43e4e8f0e4eb72421a1b91b Mon Sep 17 00:00:00 2001 From: Olga Naydyonock Date: Thu, 24 Oct 2024 17:11:33 +0300 Subject: [PATCH] Added weekly macos pipeline (#41308) --- .buildkite/macos-tests-pipeline.yml | 27 +++++++++++++++++++ catalog-info.yaml | 41 +++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 .buildkite/macos-tests-pipeline.yml diff --git a/.buildkite/macos-tests-pipeline.yml b/.buildkite/macos-tests-pipeline.yml new file mode 100644 index 00000000000..94f3f00248a --- /dev/null +++ b/.buildkite/macos-tests-pipeline.yml @@ -0,0 +1,27 @@ +# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json + +env: + IMAGE_MACOS_ARM: "generic-13-ventura-arm" + IMAGE_MACOS_X86_64: "generic-13-ventura-x64" + + # Other deps + ASDF_MAGE_VERSION: 1.15.0 + ASDF_NODEJS_VERSION: 18.17.1 + ASDF_PYTHON_VERSION: 3.10.9 + + # Unit tests + RACE_DETECTOR: "true" + TEST_COVERAGE: "true" + +steps: + - label: ":mac: Auditbeat: macOS x86_64 Unit Tests" + command: echo "test!" + retry: + automatic: + - limit: 3 # using higher retries for now due to lack of custom vm images and vendor instability + agents: + provider: "orka" + imagePrefix: "${IMAGE_MACOS_X86_64}" + artifact_paths: + - "auditbeat/build/*.xml" + - "auditbeat/build/*.json" diff --git a/catalog-info.yaml b/catalog-info.yaml index 61a12a15cd6..d4a48a5a1aa 100644 --- a/catalog-info.yaml +++ b/catalog-info.yaml @@ -1149,6 +1149,40 @@ spec: everyone: access_level: BUILD_AND_READ +--- +# yaml-language-server: $schema=https://gist.githubusercontent.com/elasticmachine/988b80dae436cafea07d9a4a460a011d/raw/rre.schema.json +apiVersion: backstage.io/v1alpha1 +kind: Resource +metadata: + name: beats-macos-tests + description: 'Runs of Beats macOS tests' + links: + - title: Pipeline + url: https://buildkite.com/elastic/beats-macos-tests +spec: + type: buildkite-pipeline + owner: group:ingest-fp + system: buildkite + implementation: + apiVersion: buildkite.elastic.dev/v1 + kind: Pipeline + metadata: + name: beats-macos-tests + description: 'Runs of Beats macOS tests' + spec: + repository: elastic/beats + pipeline_file: ".buildkite/macos-tests-pipeline.yml" + cancel_intermediate_builds: false + provider_settings: + trigger_mode: none + teams: + ingest-fp: + access_level: MANAGE_BUILD_AND_READ + release-eng: + access_level: BUILD_AND_READ + everyone: + access_level: BUILD_AND_READ + --- # yaml-language-server: $schema=https://gist.githubusercontent.com/elasticmachine/988b80dae436cafea07d9a4a460a011d/raw/rre.schema.json apiVersion: backstage.io/v1alpha1 @@ -1186,6 +1220,12 @@ spec: message: Daily trigger of Beats AWS tests env: PIPELINES_TO_TRIGGER: 'beats-aws-tests' + Weekly run of macOS tests: + branch: main + cronline: 0 0 * * 0 + message: Weekly trigger of Beats macOS tests + env: + PIPELINES_TO_TRIGGER: 'beats-macos-tests' skip_intermediate_builds: true provider_settings: trigger_mode: none @@ -1200,3 +1240,4 @@ spec: access_level: BUILD_AND_READ everyone: access_level: BUILD_AND_READ +