From f8950622c3c22ec3ddf3acbc9f2c399ab90212c7 Mon Sep 17 00:00:00 2001 From: Olivier Halligon Date: Thu, 5 Jun 2025 18:32:09 +0200 Subject: [PATCH 1/2] Tweak pipeline to test mac-metal agent with Hello World --- .buildkite/pipeline.yml | 109 +++------------------------------------- 1 file changed, 7 insertions(+), 102 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index a91c9a4ced4..d9275b050a2 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -1,108 +1,13 @@ # yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json --- -# Nodes with values to reuse in the pipeline. -common_params: - # Common plugin settings to use with the `plugins` key. - - &test_collector_common_params - files: "WooCommerce/build/buildkite-test-analytics/*.xml" - format: "junit" - -agents: - queue: "android" - steps: - - label: Gradle Wrapper Validation - command: validate_gradle_wrapper + - label: "Test mac-metal queue" + command: | + env + echo "Hello, world!" + aws --version + plugins: [$CI_TOOLKIT] agents: - queue: linter - - # Wait for Gradle Wrapper to be validated before running any other jobs - - wait - - ######################################## - - group: "🕵️ Linters" - steps: - - - label: "☢️ Danger - PR Check" - command: danger - key: danger - if: "build.pull_request.id != null" - retry: - manual: - permit_on_passed: true - agents: - queue: "linter" - - - label: "detekt" - command: | - if .buildkite/commands/should-skip-job.sh --job-type validation; then - exit 0 - fi - ./gradlew detektAll - plugins: [$CI_TOOLKIT] - artifact_paths: - - "**/build/reports/detekt/detekt.html" - - - label: "lint" - command: .buildkite/commands/lint.sh - plugins: [$CI_TOOLKIT] - artifact_paths: - - "**/build/reports/lint-results*.*" - - - label: "Dependency Tree Diff" - command: comment_with_dependency_diff 'woocommerce' 'vanillaReleaseRuntimeClasspath' - if: build.pull_request.id != null - plugins: [$CI_TOOLKIT] - artifact_paths: - - "**/build/reports/diff/*" + queue: "mac-metal" - - label: "Merged Manifest Diff" - command: ".buildkite/commands/diff-merged-manifest.sh vanillaRelease" - if: build.pull_request.id != null - plugins: [$CI_TOOLKIT] - artifact_paths: - - "**/build/reports/diff_manifest/**/**/*" - - ######################################## - - group: "🛠 Prototype Builds" - steps: - - - label: "🛠 Prototype Build: Mobile App" - command: ".buildkite/commands/prototype-build.sh WooCommerce" - if: build.pull_request.id != null - plugins: [$CI_TOOLKIT] - - - label: "🛠 Prototype Build: Wear App" - command: ".buildkite/commands/prototype-build.sh WooCommerce-Wear" - if: build.pull_request.id != null - plugins: [$CI_TOOLKIT] - - ######################################## - - group: "🔬 Tests" - steps: - - - label: "Unit tests" - command: .buildkite/commands/run-unit-tests.sh - plugins: - - $CI_TOOLKIT - - $TEST_COLLECTOR : - <<: *test_collector_common_params - api-token-env-name: "BUILDKITE_ANALYTICS_TOKEN_UNIT_TESTS" - artifact_paths: - - "**/build/test-results/merged-test-results.xml" - - - label: "Instrumented tests" - command: .buildkite/commands/run-instrumented-tests.sh - plugins: - - $CI_TOOLKIT - - $TEST_COLLECTOR : - <<: *test_collector_common_params - api-token-env-name: "BUILDKITE_ANALYTICS_TOKEN_INSTRUMENTED_TESTS" - artifact_paths: - - "**/build/instrumented-tests/**/*" - - - - label: "🐘 Populate Gradle build cache" - command: .buildkite/commands/gradle-cache-build.sh - plugins: [$CI_TOOLKIT] From e4c61185eb28a75cd7fdd63405e2add6a7cd7e8e Mon Sep 17 00:00:00 2001 From: Olivier Halligon Date: Wed, 2 Jul 2025 13:53:02 +0200 Subject: [PATCH 2/2] Trigger CI