From 5e840e3c31729d5d1d09fb134fa571d560ff323e Mon Sep 17 00:00:00 2001 From: Alex Moinet Date: Fri, 16 Aug 2024 10:43:38 +0100 Subject: [PATCH] Pipeline debugging --- .buildkite/basic/electron-pipeline.yml | 148 +++++++------- .buildkite/pipeline.yml | 256 ++++++++++++------------- 2 files changed, 200 insertions(+), 204 deletions(-) diff --git a/.buildkite/basic/electron-pipeline.yml b/.buildkite/basic/electron-pipeline.yml index 2d9b4cfd6a..3b77ef1444 100644 --- a/.buildkite/basic/electron-pipeline.yml +++ b/.buildkite/basic/electron-pipeline.yml @@ -1,8 +1,4 @@ steps: - - # - # Node 14 - # - label: "Electron {{matrix.electron_version}} tests - macOS - Node {{matrix.node_version}}" timeout_in_minutes: 40 agents: @@ -33,78 +29,78 @@ steps: # # Ubuntu tests Node 18 # - - label: ":docker: Build Electron {{matrix.electron_version}} ubuntu test image" - timeout_in_minutes: 10 - env: - ELECTRON_VERSION: "{{matrix.electron_version}}" - matrix: - setup: - electron_version: - - "^20.0.0" - - "^24.0.0" - - "^26.0.0" - - "^28.0.0" - - "^30.0.0" - plugins: - - docker-compose#v4.12.0: - build: - - electron-test-image - image-repository: 855461928731.dkr.ecr.us-west-1.amazonaws.com/js - cache-from: - - electron-test-image:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-electron-test-${BRANCH_NAME}-${matrix.electron_version} - - docker-compose#v4.12.0: - push: - - electron-ubuntu-test:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-electron-test-${BRANCH_NAME}-${matrix.electron_version} + # - label: ":docker: Build Electron {{matrix.electron_version}} ubuntu test image" + # timeout_in_minutes: 10 + # env: + # ELECTRON_VERSION: "{{matrix.electron_version}}" + # matrix: + # setup: + # electron_version: + # - "^20.0.0" + # - "^24.0.0" + # - "^26.0.0" + # - "^28.0.0" + # - "^30.0.0" + # plugins: + # - docker-compose#v4.12.0: + # build: + # - electron-test-image + # image-repository: 855461928731.dkr.ecr.us-west-1.amazonaws.com/js + # cache-from: + # - electron-test-image:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-electron-test-${BRANCH_NAME}-${matrix.electron_version} + # - docker-compose#v4.12.0: + # push: + # - electron-ubuntu-test:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-electron-test-${BRANCH_NAME}-${matrix.electron_version} - - label: "Electron {{matrix.electron_version}} linting" - timeout_in_minutes: 10 - env: - ELECTRON_VERSION: "{{matrix.electron_version}}" - matrix: - setup: - electron_version: - - "^20.0.0" - - "^24.0.0" - - "^26.0.0" - - "^28.0.0" - - "^30.0.0" - plugins: - - docker-compose#v4.12.0: - run: electron-test-image - command: npm run test:lint-native + # - label: "Electron {{matrix.electron_version}} linting" + # timeout_in_minutes: 10 + # env: + # ELECTRON_VERSION: "{{matrix.electron_version}}" + # matrix: + # setup: + # electron_version: + # - "^20.0.0" + # - "^24.0.0" + # - "^26.0.0" + # - "^28.0.0" + # - "^30.0.0" + # plugins: + # - docker-compose#v4.12.0: + # run: electron-test-image + # command: npm run test:lint-native - - label: "Electron {{matrix.electron_version}} unit tests" - timeout_in_minutes: 10 - env: - ELECTRON_VERSION: "{{matrix.electron_version}}" - matrix: - setup: - electron_version: - - "^20.0.0" - - "^24.0.0" - - "^26.0.0" - - "^28.0.0" - - "^30.0.0" - plugins: - - docker-compose#v4.12.0: - run: electron-test-image - command: npm run test:unit:electron-runner + # - label: "Electron {{matrix.electron_version}} unit tests" + # timeout_in_minutes: 10 + # env: + # ELECTRON_VERSION: "{{matrix.electron_version}}" + # matrix: + # setup: + # electron_version: + # - "^20.0.0" + # - "^24.0.0" + # - "^26.0.0" + # - "^28.0.0" + # - "^30.0.0" + # plugins: + # - docker-compose#v4.12.0: + # run: electron-test-image + # command: npm run test:unit:electron-runner - - label: "Electron {{matrix.electron_version}} integration tests" - timeout_in_minutes: 10 - env: - ELECTRON_VERSION: "{{matrix.electron_version}}" - matrix: - setup: - electron_version: - - "^20.0.0" - - "^24.0.0" - - "^26.0.0" - - "^28.0.0" - - "^30.0.0" - plugins: - - docker-compose#v4.12.0: - run: electron-test-image - command: npm run test:electron - artifact_paths: - - "test/electron/maze_output/**/*" + # - label: "Electron {{matrix.electron_version}} integration tests" + # timeout_in_minutes: 10 + # env: + # ELECTRON_VERSION: "{{matrix.electron_version}}" + # matrix: + # setup: + # electron_version: + # - "^20.0.0" + # - "^24.0.0" + # - "^26.0.0" + # - "^28.0.0" + # - "^30.0.0" + # plugins: + # - docker-compose#v4.12.0: + # run: electron-test-image + # command: npm run test:electron + # artifact_paths: + # - "test/electron/maze_output/**/*" diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 59f2633b61..f667b07622 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -3,147 +3,147 @@ steps: # # License audit # - - label: ":copyright: License Audit" - timeout_in_minutes: 20 - agents: - queue: macos-14 - command: scripts/license_finder.sh + # - label: ":copyright: License Audit" + # timeout_in_minutes: 20 + # agents: + # queue: macos-14 + # command: scripts/license_finder.sh - # - # Java 11 Android builder base - used by React Native and React Native CLI (< 0.73) - # - - label: ":docker: Build Java 11 Android Builder base image" - key: "android-builder-base-java-11" - timeout_in_minutes: 30 - plugins: - - docker-compose#v4.12.0: - build: android-builder-base-java-11 - image-repository: 855461928731.dkr.ecr.us-west-1.amazonaws.com/js - cache-from: android-builder-base-java-11:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:android-builder-base-java-11 - - docker-compose#v4.12.0: - push: android-builder-base-java-11:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:android-builder-base-java-11 - retry: - automatic: - - exit_status: "*" - limit: 1 + # # + # # Java 11 Android builder base - used by React Native and React Native CLI (< 0.73) + # # + # - label: ":docker: Build Java 11 Android Builder base image" + # key: "android-builder-base-java-11" + # timeout_in_minutes: 30 + # plugins: + # - docker-compose#v4.12.0: + # build: android-builder-base-java-11 + # image-repository: 855461928731.dkr.ecr.us-west-1.amazonaws.com/js + # cache-from: android-builder-base-java-11:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:android-builder-base-java-11 + # - docker-compose#v4.12.0: + # push: android-builder-base-java-11:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:android-builder-base-java-11 + # retry: + # automatic: + # - exit_status: "*" + # limit: 1 - # - # Publish/package notifier - # - - label: ":docker: Prepare package.json" - key: "package-js" - timeout_in_minutes: 3 - plugins: - - docker-compose#v4.12.0: - run: minimal-packager - artifact_paths: min_packages.tar - - label: ":docker: Build and publish JS packages" - key: "publish-js" - timeout_in_minutes: 30 - agents: - queue: "macos-14" - env: - NODE_VERSION: "18" - PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "1" - command: - - "bundle install" - - "node scripts/publish.js $$PUBLISH_URL" - retry: - automatic: - - exit_status: "*" - limit: 1 + # # + # # Publish/package notifier + # # + # - label: ":docker: Prepare package.json" + # key: "package-js" + # timeout_in_minutes: 3 + # plugins: + # - docker-compose#v4.12.0: + # run: minimal-packager + # artifact_paths: min_packages.tar + # - label: ":docker: Build and publish JS packages" + # key: "publish-js" + # timeout_in_minutes: 30 + # agents: + # queue: "macos-14" + # env: + # NODE_VERSION: "18" + # PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: "1" + # command: + # - "bundle install" + # - "node scripts/publish.js $$PUBLISH_URL" + # retry: + # automatic: + # - exit_status: "*" + # limit: 1 - - label: ":aws-lambda: AWS Lambda tests" - timeout_in_minutes: 35 - agents: - queue: "opensource-mac-cocoa-10.15" - commands: - # force the NPM registry as the default on CI is artifactory, which can't - # currently install from our lockfile - - npm ci --registry https://registry.npmjs.org - - cd test/aws-lambda - - bundle install - - bundle exec maze-runner + # - label: ":aws-lambda: AWS Lambda tests" + # timeout_in_minutes: 35 + # agents: + # queue: "opensource-mac-cocoa-10.15" + # commands: + # # force the NPM registry as the default on CI is artifactory, which can't + # # currently install from our lockfile + # - npm ci --registry https://registry.npmjs.org + # - cd test/aws-lambda + # - bundle install + # - bundle exec maze-runner - # - # Core tests and checks - # - - label: ":docker: Build CI image" - key: "ci-image" - depends_on: "package-js" - timeout_in_minutes: 20 - plugins: - - artifacts#v1.5.0: - download: min_packages.tar - - docker-compose#v4.12.0: - build: - - ci - image-repository: 855461928731.dkr.ecr.us-west-1.amazonaws.com/js - cache-from: - - ci:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-base-${BRANCH_NAME} - - ci:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-base - - docker-compose#v4.12.0: - push: - - ci:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-base-${BRANCH_NAME} - - ci:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-base - retry: - automatic: - - exit_status: "*" - limit: 1 + # # + # # Core tests and checks + # # + # - label: ":docker: Build CI image" + # key: "ci-image" + # depends_on: "package-js" + # timeout_in_minutes: 20 + # plugins: + # - artifacts#v1.5.0: + # download: min_packages.tar + # - docker-compose#v4.12.0: + # build: + # - ci + # image-repository: 855461928731.dkr.ecr.us-west-1.amazonaws.com/js + # cache-from: + # - ci:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-base-${BRANCH_NAME} + # - ci:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-base + # - docker-compose#v4.12.0: + # push: + # - ci:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-base-${BRANCH_NAME} + # - ci:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-base + # retry: + # automatic: + # - exit_status: "*" + # limit: 1 - - label: "Lint" - depends_on: "ci-image" - timeout_in_minutes: 10 - plugins: - docker-compose#v4.12.0: - run: ci - command: "npm run test:lint" + # - label: "Lint" + # depends_on: "ci-image" + # timeout_in_minutes: 10 + # plugins: + # docker-compose#v4.12.0: + # run: ci + # command: "npm run test:lint" - - label: "Unit tests" - depends_on: "ci-image" - timeout_in_minutes: 10 - plugins: - docker-compose#v4.12.0: - run: ci - command: "npm run test:unit" + # - label: "Unit tests" + # depends_on: "ci-image" + # timeout_in_minutes: 10 + # plugins: + # docker-compose#v4.12.0: + # run: ci + # command: "npm run test:unit" - - label: "Type checks/tests" - depends_on: "ci-image" - timeout_in_minutes: 10 - plugins: - docker-compose#v4.12.0: - run: ci - command: "npm run test:types" + # - label: "Type checks/tests" + # depends_on: "ci-image" + # timeout_in_minutes: 10 + # plugins: + # docker-compose#v4.12.0: + # run: ci + # command: "npm run test:types" - - label: ":large_blue_circle: :large_blue_circle: :large_blue_circle: BROWSER STEPS :large_blue_circle: :large_blue_circle: :large_blue_circle:" - depends_on: "package-js" - commands: - - buildkite-agent pipeline upload .buildkite/basic/browser-pipeline.yml + # - label: ":large_blue_circle: :large_blue_circle: :large_blue_circle: BROWSER STEPS :large_blue_circle: :large_blue_circle: :large_blue_circle:" + # depends_on: "package-js" + # commands: + # - buildkite-agent pipeline upload .buildkite/basic/browser-pipeline.yml - label: ":large_blue_circle: :large_blue_circle: :large_blue_circle: ELECTRON STEPS :large_blue_circle: :large_blue_circle: :large_blue_circle:" commands: - buildkite-agent pipeline upload .buildkite/basic/electron-pipeline.yml - - label: ":large_blue_circle: :large_blue_circle: :large_blue_circle: NODE STEPS :large_blue_circle: :large_blue_circle: :large_blue_circle:" - depends_on: "package-js" - commands: - - buildkite-agent pipeline upload .buildkite/basic/node-pipeline.yml + # - label: ":large_blue_circle: :large_blue_circle: :large_blue_circle: NODE STEPS :large_blue_circle: :large_blue_circle: :large_blue_circle:" + # depends_on: "package-js" + # commands: + # - buildkite-agent pipeline upload .buildkite/basic/node-pipeline.yml - - label: ":large_blue_circle: :large_blue_circle: :large_blue_circle: REACT NATIVE (ANDROID) STEPS :large_blue_circle: :large_blue_circle: :large_blue_circle:" - depends_on: - - "publish-js" - commands: - - buildkite-agent pipeline upload .buildkite/basic/react-native-android-pipeline.yml + # - label: ":large_blue_circle: :large_blue_circle: :large_blue_circle: REACT NATIVE (ANDROID) STEPS :large_blue_circle: :large_blue_circle: :large_blue_circle:" + # depends_on: + # - "publish-js" + # commands: + # - buildkite-agent pipeline upload .buildkite/basic/react-native-android-pipeline.yml - - label: ":large_blue_circle: :large_blue_circle: :large_blue_circle: REACT NATIVE (IOS) STEPS :large_blue_circle: :large_blue_circle: :large_blue_circle:" - depends_on: - - "publish-js" - commands: - - buildkite-agent pipeline upload .buildkite/basic/react-native-ios-pipeline.yml + # - label: ":large_blue_circle: :large_blue_circle: :large_blue_circle: REACT NATIVE (IOS) STEPS :large_blue_circle: :large_blue_circle: :large_blue_circle:" + # depends_on: + # - "publish-js" + # commands: + # - buildkite-agent pipeline upload .buildkite/basic/react-native-ios-pipeline.yml - # - # Conditionally trigger full pipeline - # - - label: 'Conditionally trigger full set of tests' - timeout_in_minutes: 30 - command: sh -c .buildkite/pipeline_trigger.sh + # # + # # Conditionally trigger full pipeline + # # + # - label: 'Conditionally trigger full set of tests' + # timeout_in_minutes: 30 + # command: sh -c .buildkite/pipeline_trigger.sh