From c25876250b806f41a34284c24124deb5dc26ba20 Mon Sep 17 00:00:00 2001 From: Petros Paraskevopoulos Date: Thu, 12 Dec 2024 16:45:23 +0200 Subject: [PATCH 01/15] CI: Temporarily remove all pipeline steps expect for the prototype build --- .buildkite/pipeline.yml | 94 +++-------------------------------------- 1 file changed, 5 insertions(+), 89 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 360aad54c4b..a6ab7b792ab 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -1,96 +1,12 @@ # 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 - 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: | - echo "--- ๐Ÿงน Linting" - ./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/*" - - ######################################## - - 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: "๐Ÿ›  Prototype Build: Mobile App" + command: | + ".buildkite/commands/prototype-build.sh" "WooCommerce" + if: build.pull_request.id != null + plugins: [$CI_TOOLKIT] From 6a5af1ec0655011193e8512cb4adeae0c8cfb909 Mon Sep 17 00:00:00 2001 From: Petros Paraskevopoulos Date: Thu, 12 Dec 2024 20:58:39 +0200 Subject: [PATCH 02/15] CI: Add a scheduled dependency cache job FYI: This job will be then used by 'buildkite-ci' and configured as a 'buildkite_pipeline_schedule' with a weekly frequency. --- .buildkite/commands/cache-dependencies.sh | 14 ++++++++++++++ .buildkite/schedules/dependency-cache.yml | 12 ++++++++++++ 2 files changed, 26 insertions(+) create mode 100755 .buildkite/commands/cache-dependencies.sh create mode 100644 .buildkite/schedules/dependency-cache.yml diff --git a/.buildkite/commands/cache-dependencies.sh b/.buildkite/commands/cache-dependencies.sh new file mode 100755 index 00000000000..aaaf16dda2c --- /dev/null +++ b/.buildkite/commands/cache-dependencies.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +set -euo pipefail + +echo "--- :rubygems: Setting up Gems" +install_gems + +echo "--- :closed_lock_with_key: Installing Secrets" +bundle exec fastlane run configure_apply + +echo "--- :hammer_and_wrench: Building" +./gradlew assembleJalapenoDebug + +save_gradle_dependency_cache diff --git a/.buildkite/schedules/dependency-cache.yml b/.buildkite/schedules/dependency-cache.yml new file mode 100644 index 00000000000..2798971f6bb --- /dev/null +++ b/.buildkite/schedules/dependency-cache.yml @@ -0,0 +1,12 @@ +# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json +--- + +agents: + queue: "android" + +steps: + - label: "dependency cache" + command: | + echo "--- ๐Ÿ’พ Caching" + .buildkite/commands/cache-dependencies.sh + plugins: [$CI_TOOLKIT] From ad88dd7ef26872cc676f86703dfa547d39f7607d Mon Sep 17 00:00:00 2001 From: Petros Paraskevopoulos Date: Thu, 12 Dec 2024 21:03:28 +0200 Subject: [PATCH 03/15] CI: Add project prefix env to distinguish gradle dependency cache key --- .buildkite/pipeline.yml | 3 +++ .buildkite/schedules/dependency-cache.yml | 3 +++ .buildkite/shared-pipeline-vars | 3 +-- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index a6ab7b792ab..616a15c465f 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -4,6 +4,9 @@ agents: queue: "android" +env: + GRADLE_DEPENDENCY_CACHE_PROJECT_PREFIX: "WOOCOMMERCE" + steps: - label: "๐Ÿ›  Prototype Build: Mobile App" command: | diff --git a/.buildkite/schedules/dependency-cache.yml b/.buildkite/schedules/dependency-cache.yml index 2798971f6bb..8e211929c63 100644 --- a/.buildkite/schedules/dependency-cache.yml +++ b/.buildkite/schedules/dependency-cache.yml @@ -4,6 +4,9 @@ agents: queue: "android" +env: + GRADLE_DEPENDENCY_CACHE_PROJECT_PREFIX: "WOOCOMMERCE" + steps: - label: "dependency cache" command: | diff --git a/.buildkite/shared-pipeline-vars b/.buildkite/shared-pipeline-vars index 307dd62e628..18c01dbc4ad 100644 --- a/.buildkite/shared-pipeline-vars +++ b/.buildkite/shared-pipeline-vars @@ -3,6 +3,5 @@ # This file is `source`'d before calling `buildkite-agent pipeline upload`, and can be used # to set up some variables that will be interpolated in the `.yml` pipeline before uploading it. -export CI_TOOLKIT="automattic/a8c-ci-toolkit#3.7.1" +export CI_TOOLKIT="automattic/a8c-ci-toolkit#f67e7f51a4d1c38b06bf4d3200d50b14d686fc3a" export TEST_COLLECTOR="test-collector#v1.10.1" - From 7767fb48eaa87c1b10d4375cec7efb89004bcaa6 Mon Sep 17 00:00:00 2001 From: Petros Paraskevopoulos Date: Thu, 12 Dec 2024 23:16:44 +0200 Subject: [PATCH 04/15] CI: Test with shared read-only dependency cache This change points to that remote branch and commit where the 'GRADLE_RO_DEP_CACHE' environment variable is indeed set, and thus is indeed pointing to the directory containing the cache. --- .configure | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.configure b/.configure index 5137c813e2c..709133989b5 100644 --- a/.configure +++ b/.configure @@ -1,7 +1,7 @@ { "project_name": "woocommerce-android", - "branch": "trunk", - "pinned_hash": "50ebed193db7cab11a2d299fdd478b7600055cbf", + "branch": "gradle/add-shared-read-only-dependency-cache", + "pinned_hash": "d05fe1f39c3b152324f5fbda36bf5ad18cea2824", "files_to_copy": [ { "file": "android/WCAndroid/secrets.properties", @@ -40,4 +40,4 @@ } ], "file_dependencies": [] -} \ No newline at end of file +} From 5218c4e148a99dea34eb0fb25fdb3a790959a17d Mon Sep 17 00:00:00 2001 From: Petros Paraskevopoulos Date: Thu, 12 Dec 2024 23:22:54 +0200 Subject: [PATCH 05/15] CI: Echo on gradle ro dep cache environment variable --- .buildkite/shared-pipeline-vars | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.buildkite/shared-pipeline-vars b/.buildkite/shared-pipeline-vars index 18c01dbc4ad..6298fa339dc 100644 --- a/.buildkite/shared-pipeline-vars +++ b/.buildkite/shared-pipeline-vars @@ -3,5 +3,5 @@ # This file is `source`'d before calling `buildkite-agent pipeline upload`, and can be used # to set up some variables that will be interpolated in the `.yml` pipeline before uploading it. -export CI_TOOLKIT="automattic/a8c-ci-toolkit#f67e7f51a4d1c38b06bf4d3200d50b14d686fc3a" +export CI_TOOLKIT="automattic/a8c-ci-toolkit#725919c00e327d63c9ac3d55f82a870fafdbe523" export TEST_COLLECTOR="test-collector#v1.10.1" From 9685af5826decefb6ff08ccecd00d6de6b90a116 Mon Sep 17 00:00:00 2001 From: Petros Paraskevopoulos Date: Fri, 13 Dec 2024 15:10:57 +0200 Subject: [PATCH 06/15] CI: Test without shared read-only dependency cache This change points to that remote branch and commit where the 'GRADLE_RO_DEP_CACHE' environment variable is not set, and thus not pointing to the directory containing the cache. --- .configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.configure b/.configure index 709133989b5..3720f85cf30 100644 --- a/.configure +++ b/.configure @@ -1,7 +1,7 @@ { "project_name": "woocommerce-android", - "branch": "gradle/add-shared-read-only-dependency-cache", - "pinned_hash": "d05fe1f39c3b152324f5fbda36bf5ad18cea2824", + "branch": "trunk", + "pinned_hash": "50ebed193db7cab11a2d299fdd478b7600055cbf", "files_to_copy": [ { "file": "android/WCAndroid/secrets.properties", From 51ac5fc6813738d04874e02aabd778538b46427b Mon Sep 17 00:00:00 2001 From: Petros Paraskevopoulos Date: Mon, 16 Dec 2024 15:34:35 +0200 Subject: [PATCH 07/15] CI: Remove project prefix env to distinguish gradle dependency cache key This should be now done automatically and via this another standard Buildkite environment variable being the prefix, the 'BUILDKITE_PIPELINE_SLUG' environment variable. For more info see: https://github.com/Automattic/ a8c-ci-toolkit-buildkite-plugin/pull/134/commits/ 4d3f80b9f113076c9a8698f08d137ed591426150 --- .buildkite/pipeline.yml | 3 --- .buildkite/schedules/dependency-cache.yml | 3 --- .buildkite/shared-pipeline-vars | 2 +- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 616a15c465f..a6ab7b792ab 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -4,9 +4,6 @@ agents: queue: "android" -env: - GRADLE_DEPENDENCY_CACHE_PROJECT_PREFIX: "WOOCOMMERCE" - steps: - label: "๐Ÿ›  Prototype Build: Mobile App" command: | diff --git a/.buildkite/schedules/dependency-cache.yml b/.buildkite/schedules/dependency-cache.yml index 8e211929c63..2798971f6bb 100644 --- a/.buildkite/schedules/dependency-cache.yml +++ b/.buildkite/schedules/dependency-cache.yml @@ -4,9 +4,6 @@ agents: queue: "android" -env: - GRADLE_DEPENDENCY_CACHE_PROJECT_PREFIX: "WOOCOMMERCE" - steps: - label: "dependency cache" command: | diff --git a/.buildkite/shared-pipeline-vars b/.buildkite/shared-pipeline-vars index 6298fa339dc..6221a317657 100644 --- a/.buildkite/shared-pipeline-vars +++ b/.buildkite/shared-pipeline-vars @@ -3,5 +3,5 @@ # This file is `source`'d before calling `buildkite-agent pipeline upload`, and can be used # to set up some variables that will be interpolated in the `.yml` pipeline before uploading it. -export CI_TOOLKIT="automattic/a8c-ci-toolkit#725919c00e327d63c9ac3d55f82a870fafdbe523" +export CI_TOOLKIT="automattic/a8c-ci-toolkit#e95be5863e4a256af5e8b2a1611406816d536c32" export TEST_COLLECTOR="test-collector#v1.10.1" From 8487e3d5b3790ea02ffae4e8626107b9d21fee8d Mon Sep 17 00:00:00 2001 From: Petros Paraskevopoulos Date: Mon, 16 Dec 2024 16:10:53 +0200 Subject: [PATCH 08/15] CI: Measure how long it takes to save/restore the cache --- .buildkite/shared-pipeline-vars | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.buildkite/shared-pipeline-vars b/.buildkite/shared-pipeline-vars index 6221a317657..7af8c261a23 100644 --- a/.buildkite/shared-pipeline-vars +++ b/.buildkite/shared-pipeline-vars @@ -3,5 +3,5 @@ # This file is `source`'d before calling `buildkite-agent pipeline upload`, and can be used # to set up some variables that will be interpolated in the `.yml` pipeline before uploading it. -export CI_TOOLKIT="automattic/a8c-ci-toolkit#e95be5863e4a256af5e8b2a1611406816d536c32" +export CI_TOOLKIT="automattic/a8c-ci-toolkit#3ca9838746b45f38bc0beff792e3e80ab986aaab" export TEST_COLLECTOR="test-collector#v1.10.1" From 4ba57b7e2b81e47f96305b9b2483fb631582e968 Mon Sep 17 00:00:00 2001 From: Petros Paraskevopoulos Date: Mon, 16 Dec 2024 19:18:43 +0200 Subject: [PATCH 09/15] CI: Cache all dependencies as part of the scheduled dependency cache job --- .buildkite/commands/cache-dependencies.sh | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.buildkite/commands/cache-dependencies.sh b/.buildkite/commands/cache-dependencies.sh index aaaf16dda2c..9e3a59dc97a 100755 --- a/.buildkite/commands/cache-dependencies.sh +++ b/.buildkite/commands/cache-dependencies.sh @@ -8,7 +8,22 @@ install_gems echo "--- :closed_lock_with_key: Installing Secrets" bundle exec fastlane run configure_apply -echo "--- :hammer_and_wrench: Building" -./gradlew assembleJalapenoDebug +echo "--- ๐Ÿ›  Download Mobile App Dependencies [Assemble Mobile App]" +./gradlew :WooCommerce:assembleJalapenoDebug + +echo "--- ๐Ÿ›  Download Wear App Dependencies [Assemble Wear App]" +./gradlew :WooCommerce-Wear:assembleJalapenoDebug + +echo "--- ๐Ÿงน Download Lint Dependencies [Lint Mobile App]" +./gradlew :WooCommerce:lintJalapenoDebug + +echo "--- ๐Ÿงน Download Detekt Dependencies [Run Detekt]" +./gradlew detektAll + +echo "--- ๐Ÿงช Download Unit Test Dependencies [Assemble Unit Tests]" +./gradlew assembleJalapenoDebugUnitTest lib:cardreader:assembleDebugUnitTest lib:iap:assembleDebugUnitTest + +echo "--- ๐Ÿงช Download Android Test Dependencies [Assemble Android Tests]" +./gradlew assembleJalapenoDebugAndroidTest save_gradle_dependency_cache From fb26e918d6aa0515bb41e67fdd250c93ec48a1d9 Mon Sep 17 00:00:00 2001 From: Petros Paraskevopoulos Date: Mon, 16 Dec 2024 19:19:57 +0200 Subject: [PATCH 10/15] CI: Revert the removal of all pipeline steps This change effectively reverts this initial 2b9213a08193bd83c2f9410ec0be2f4971aa36cf commit. --- .buildkite/pipeline.yml | 94 ++++++++++++++++++++++++++++++++++++++--- 1 file changed, 89 insertions(+), 5 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index a6ab7b792ab..360aad54c4b 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -1,12 +1,96 @@ # 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: "๐Ÿ›  Prototype Build: Mobile App" - command: | - ".buildkite/commands/prototype-build.sh" "WooCommerce" - if: build.pull_request.id != null - plugins: [$CI_TOOLKIT] + - label: Gradle Wrapper Validation + command: validate_gradle_wrapper + 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: | + echo "--- ๐Ÿงน Linting" + ./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/*" + + ######################################## + - 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/**/*" From 7e94cdc870b2c0f8ed6ee1a85d22c1cee96e79c5 Mon Sep 17 00:00:00 2001 From: Petros Paraskevopoulos Date: Tue, 17 Dec 2024 12:48:59 +0200 Subject: [PATCH 11/15] CI: Measure the (un)compressed cache size during save/restore --- .buildkite/shared-pipeline-vars | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.buildkite/shared-pipeline-vars b/.buildkite/shared-pipeline-vars index 7af8c261a23..cff7af6ea3a 100644 --- a/.buildkite/shared-pipeline-vars +++ b/.buildkite/shared-pipeline-vars @@ -3,5 +3,5 @@ # This file is `source`'d before calling `buildkite-agent pipeline upload`, and can be used # to set up some variables that will be interpolated in the `.yml` pipeline before uploading it. -export CI_TOOLKIT="automattic/a8c-ci-toolkit#3ca9838746b45f38bc0beff792e3e80ab986aaab" +export CI_TOOLKIT="automattic/a8c-ci-toolkit#275fb27c9bcd4d0e9d9a77ca2be733755b83759e" export TEST_COLLECTOR="test-collector#v1.10.1" From cec496cc558b15fe3aef1fc93c96b722f1b82b78 Mon Sep 17 00:00:00 2001 From: Petros Paraskevopoulos Date: Tue, 17 Dec 2024 18:24:18 +0200 Subject: [PATCH 12/15] CI: Add extra echo to force buildkite ci show the expandable sections --- .buildkite/commands/cache-dependencies.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.buildkite/commands/cache-dependencies.sh b/.buildkite/commands/cache-dependencies.sh index 9e3a59dc97a..a2a286c7ed8 100755 --- a/.buildkite/commands/cache-dependencies.sh +++ b/.buildkite/commands/cache-dependencies.sh @@ -10,20 +10,26 @@ bundle exec fastlane run configure_apply echo "--- ๐Ÿ›  Download Mobile App Dependencies [Assemble Mobile App]" ./gradlew :WooCommerce:assembleJalapenoDebug +echo "" echo "--- ๐Ÿ›  Download Wear App Dependencies [Assemble Wear App]" ./gradlew :WooCommerce-Wear:assembleJalapenoDebug +echo "" echo "--- ๐Ÿงน Download Lint Dependencies [Lint Mobile App]" ./gradlew :WooCommerce:lintJalapenoDebug +echo "" echo "--- ๐Ÿงน Download Detekt Dependencies [Run Detekt]" ./gradlew detektAll +echo "" echo "--- ๐Ÿงช Download Unit Test Dependencies [Assemble Unit Tests]" ./gradlew assembleJalapenoDebugUnitTest lib:cardreader:assembleDebugUnitTest lib:iap:assembleDebugUnitTest +echo "" echo "--- ๐Ÿงช Download Android Test Dependencies [Assemble Android Tests]" ./gradlew assembleJalapenoDebugAndroidTest +echo "" save_gradle_dependency_cache From 93bfc61c2a0625f10885caa6913484e21e07b366 Mon Sep 17 00:00:00 2001 From: Petros Paraskevopoulos Date: Tue, 17 Dec 2024 18:41:09 +0200 Subject: [PATCH 13/15] CI: Add and improve download/save/restore cache logs --- .buildkite/commands/cache-dependencies.sh | 1 + .buildkite/hooks/pre-command | 1 + .buildkite/schedules/dependency-cache.yml | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.buildkite/commands/cache-dependencies.sh b/.buildkite/commands/cache-dependencies.sh index a2a286c7ed8..12e0d7c335a 100755 --- a/.buildkite/commands/cache-dependencies.sh +++ b/.buildkite/commands/cache-dependencies.sh @@ -32,4 +32,5 @@ echo "--- ๐Ÿงช Download Android Test Dependencies [Assemble Android Tests]" ./gradlew assembleJalapenoDebugAndroidTest echo "" +echo "--- ๐Ÿ’พ Save Cache" save_gradle_dependency_cache diff --git a/.buildkite/hooks/pre-command b/.buildkite/hooks/pre-command index 71f70a0cd2b..52dc43ba9b4 100644 --- a/.buildkite/hooks/pre-command +++ b/.buildkite/hooks/pre-command @@ -5,4 +5,5 @@ set -e +echo "--- ๐Ÿ’พ Restore Cache" restore_gradle_dependency_cache || true diff --git a/.buildkite/schedules/dependency-cache.yml b/.buildkite/schedules/dependency-cache.yml index 2798971f6bb..d38945c9602 100644 --- a/.buildkite/schedules/dependency-cache.yml +++ b/.buildkite/schedules/dependency-cache.yml @@ -7,6 +7,6 @@ agents: steps: - label: "dependency cache" command: | - echo "--- ๐Ÿ’พ Caching" + echo "--- ๐Ÿ’พ Download and Cache Dependencies" .buildkite/commands/cache-dependencies.sh plugins: [$CI_TOOLKIT] From d4632b81b0b315cea4edb296327327635ef53bff Mon Sep 17 00:00:00 2001 From: Petros Paraskevopoulos Date: Wed, 8 Jan 2025 12:29:17 +0200 Subject: [PATCH 14/15] CI: Disable restore cache --- .buildkite/hooks/pre-command | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.buildkite/hooks/pre-command b/.buildkite/hooks/pre-command index 52dc43ba9b4..8b4b7077b49 100644 --- a/.buildkite/hooks/pre-command +++ b/.buildkite/hooks/pre-command @@ -6,4 +6,4 @@ set -e echo "--- ๐Ÿ’พ Restore Cache" -restore_gradle_dependency_cache || true +#restore_gradle_dependency_cache || true From ff41696c230fa169d789b9aa9bfb88e4c4a8b692 Mon Sep 17 00:00:00 2001 From: Petros Paraskevopoulos Date: Wed, 8 Jan 2025 12:38:52 +0200 Subject: [PATCH 15/15] CI: Enable restore cache --- .buildkite/hooks/pre-command | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.buildkite/hooks/pre-command b/.buildkite/hooks/pre-command index 8b4b7077b49..52dc43ba9b4 100644 --- a/.buildkite/hooks/pre-command +++ b/.buildkite/hooks/pre-command @@ -6,4 +6,4 @@ set -e echo "--- ๐Ÿ’พ Restore Cache" -#restore_gradle_dependency_cache || true +restore_gradle_dependency_cache || true