From 08b34479adc0a5611e6e44b16d4611ecdee535c6 Mon Sep 17 00:00:00 2001 From: Matt Clarkson Date: Thu, 20 Feb 2025 14:15:21 +0000 Subject: [PATCH 1/3] chore: disable redundant transitive version upgrade warnings Bazel will always pick a version that is with in compatibilty level range. --- .bazelrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.bazelrc b/.bazelrc index 68940f9..19b7a92 100644 --- a/.bazelrc +++ b/.bazelrc @@ -16,5 +16,8 @@ test --build_tests_only # Print relative paths where possible to reduce noise common --attempt_to_print_relative_paths +# Disable warning transitive module versions +common --check_direct_dependencies=off + # User-specific .bazelrc try-import %workspace%/.bazelrc.user -- GitLab From 7ff9061040eed0781c0c526e0aaf619fc7055b80 Mon Sep 17 00:00:00 2001 From: Matt Clarkson Date: Thu, 20 Feb 2025 14:17:49 +0000 Subject: [PATCH 2/3] build: upgrade to Bazel `8.0.1` --- .bazelversion | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bazelversion b/.bazelversion index ae9a76b..cd1d2e9 100644 --- a/.bazelversion +++ b/.bazelversion @@ -1 +1 @@ -8.0.0 +8.0.1 -- GitLab From 32229365eb9a844d2072d1d78c94b7a8f3b20472 Mon Sep 17 00:00:00 2001 From: Matt Clarkson Date: Thu, 20 Feb 2025 13:53:39 +0000 Subject: [PATCH 3/3] ci: update to `1.2.1` component --- .bazelrc.ci | 6 +++--- .gitlab-ci.yml | 58 +++++++++++++++----------------------------------- 2 files changed, 20 insertions(+), 44 deletions(-) diff --git a/.bazelrc.ci b/.bazelrc.ci index 050689f..5e20333 100644 --- a/.bazelrc.ci +++ b/.bazelrc.ci @@ -26,8 +26,8 @@ test --test_output=errors test --test_verbose_timeout_warnings # Validate that the lockfile is correct -common --lockfile_mode=error +common --lockfile_mode=${CI_LOCKFILE_MODE} # These locations are cached on the CI -build --disk_cache=${CI_PROJECT_DIR}/.cache/bazel/disk -build --repository_cache=${CI_PROJECT_DIR}/.cache/bazel/repo +build:local --disk_cache=${CI_PROJECT_DIR}/.cache/bazel/disk +build:local --repository_cache=${CI_PROJECT_DIR}/.cache/bazel/repo diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ff89245..2494bb3 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,20 +1,18 @@ include: - - component: "${CI_SERVER_HOST}/ci/component/bazelisk/bazelisk@v1.0.1" + - component: "${CI_SERVER_HOST}/ci/component/bazelisk/ruleset@v1.2.1" + inputs: + versions: + - last_rc + oses: + - linux + configs: + - local + roots: + - . + extends: + - .base -default: - tags: - - arm64 - -.job: - extends: .bazelisk - cache: - - !reference [.bazelisk, cache] - - key: "bazel-cache-${CI_RUNNER_EXECUTABLE_ARCH}-${CI_PROJECT_ID}" - paths: - - ".cache/bazel/disk" - - ".cache/bazel/repo" - -test: +.base: extends: .job before_script: - !reference [.job, before_script] @@ -23,29 +21,7 @@ test: - cp "${CI_SSH_KNOWN_HOSTS}" "${HOME}/.ssh/known_hosts" - chmod -R 600 "${HOME}/.ssh" -# TODO: switch this out for `rules_semantic_release` -semantic-release: - extends: .job - stage: .post - image: node:lts - needs: - - test - cache: - - key: - prefix: "node" - files: - - package-lock.json - paths: - - node_modules - - .cache/npm - - !reference [.job, cache] - before_script: - - !reference [.job, before_script] - - npm config --location project set cache "${CI_PROJECT_DIR}/.cache/npm" - - npm ci --prefer-offline - script: - - npx semantic-release - rules: - - if: $CI_COMMIT_TAG - when: never - - if: $CI_COMMIT_REF_PROTECTED == "true" +default: + tags: + - arm64 + - linux -- GitLab