diff options
author | Quang-Minh Nguyen <qmnguyen@gitlab.com> | 2023-08-18 10:58:17 +0300 |
---|---|---|
committer | Quang-Minh Nguyen <qmnguyen@gitlab.com> | 2023-08-18 10:58:17 +0300 |
commit | 3735c107042fc9eed44bda1dc600684ee16a1c92 (patch) | |
tree | 5d39aa7191cc3121114cb18d2a1fdcf8a4028a7d | |
parent | 3328e64354e73feb056bd2727aa1d3701cb88ad8 (diff) | |
parent | cf943d732f57cfd50e1f7b4a250c4629dc927bdb (diff) |
Merge branch 'pks-ci-go-1.21' into 'master'
ci: Update Go to version 1.21.
See merge request https://gitlab.com/gitlab-org/gitaly/-/merge_requests/6216
Merged-by: Quang-Minh Nguyen <qmnguyen@gitlab.com>
Approved-by: Quang-Minh Nguyen <qmnguyen@gitlab.com>
Approved-by: karthik nayak <knayak@gitlab.com>
Reviewed-by: Quang-Minh Nguyen <qmnguyen@gitlab.com>
Co-authored-by: Patrick Steinhardt <psteinhardt@gitlab.com>
-rw-r--r-- | .gitlab-ci.yml | 51 | ||||
-rw-r--r-- | .tool-versions | 2 |
2 files changed, 34 insertions, 19 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 77dda5aff..b1ca532e7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -11,19 +11,34 @@ default: - saas-linux-large-amd64 interruptible: true +.versions: + debian: "bullseye" + git_default: "default" + git_minimum: "v2.41.0" + gitlab_dangerfiles: "3.1.0" + go_default: "1.21" + go_supported: [ "1.20", "1.21" ] + macos: "macos-12-xcode-14" + pgbouncer: "1.17.0" + postgres_default: "12-alpine" + postgres_minimum: "11-alpine" + ruby: "3.1" + rust: "1.65" + ubi: "8.6" + variables: FF_USE_FASTZIP: "true" FF_NETWORK_PER_BUILD: "true" - DEBIAN_VERSION: "bullseye" - UBI_VERSION: "8.6" + DEBIAN_VERSION: !reference [.versions, debian] + UBI_VERSION: !reference [.versions, ubi] CACHE_PREFIX: "debian-${DEBIAN_VERSION}" # We use Gitaly's Git version by default. - GIT_VERSION: "default" - GO_VERSION: "1.20" - RUBY_VERSION: "3.1" - RUST_VERSION: "1.65" - POSTGRES_VERSION: "12-alpine" - PGBOUNCER_VERSION: "1.17.0" + GIT_VERSION: !reference [.versions, git_default] + GO_VERSION: !reference [.versions, go_default] + RUBY_VERSION: !reference [.versions, ruby] + RUST_VERSION: !reference [.versions, rust] + POSTGRES_VERSION: !reference [.versions, postgres_default] + PGBOUNCER_VERSION: !reference [.versions, pgbouncer] GOCACHE: "${CI_PROJECT_DIR}/_build/cache/go-build" GOMODCACHE: "${CI_PROJECT_DIR}/_build/cache/go-mod" # We run the build as an untrusted user in a source directory owned by @@ -165,7 +180,7 @@ danger-review: stage: build allow_failure: true variables: - GITLAB_DANGERFILES_VERSION: "3.1.0" + GITLAB_DANGERFILES_VERSION: !reference [.versions, gitlab_dangerfiles] build: needs: [] @@ -184,9 +199,9 @@ build: - go run ./tools/test-boot ${TEST_BOOT_ARGS} parallel: matrix: - - GO_VERSION: [ "1.20" ] + - GO_VERSION: !reference [.versions, go_supported] TEST_BOOT_ARGS: "--bundled-git" - - GIT_VERSION: "v2.41.0" + - GIT_VERSION: !reference [.versions, git_minimum ] build:binaries: needs: [] @@ -207,7 +222,7 @@ build:binaries: expire_in: 6 months parallel: matrix: - - GO_VERSION: [ "1.20" ] + - GO_VERSION: !reference [.versions, go_supported] rules: - if: $CI_COMMIT_TAG @@ -217,18 +232,18 @@ test: matrix: # The following jobs all test with our default Git version, which is # using bundled Git binaries. - - GO_VERSION: [ "1.20" ] + - GO_VERSION: !reference [.versions, go_supported] TEST_TARGET: test - TEST_TARGET: [ test-with-praefect, race-go, test-wal, test-with-praefect-wal] # We also verify that things work as expected with a non-bundled Git # version matching our minimum required Git version. - TEST_TARGET: test - GIT_VERSION: "v2.41.0" + GIT_VERSION: !reference [.versions, git_minimum] # Execute tests with our minimum required Postgres version, as well. If # the minimum version changes, please change this to the new minimum # version. Furthermore, please make sure to update the minimum required # version in `datastore.CheckPostgresVersion()`. - - POSTGRES_VERSION: "11-alpine" + - POSTGRES_VERSION: !reference [.versions, postgres_minimum] TEST_TARGET: [ test, test-with-praefect ] test:pgbouncer: @@ -309,14 +324,14 @@ test:fips: matrix: - TEST_TARGET: [ test, test-with-praefect ] FIPS_MODE: "YesPlease" - GO_VERSION: ["1.20"] + GO_VERSION: !reference [.versions, go_supported] rules: # Automatically run the job when the FIPS label is set. - if: $CI_MERGE_REQUEST_LABELS =~ /FIPS/ - *rules_run_on_merge test:macos: - image: macos-12-xcode-14 + image: !reference [.versions, macos] tags: - saas-macos-medium-m1 needs: [] @@ -328,7 +343,7 @@ test:macos: policy: pull-push variables: <<: *test_variables - CACHE_PREFIX: macos-12-xcode-14 + CACHE_PREFIX: !reference [.versions, macos] # This is required to fix inconsistent deployment targets across CGo and # libgit2. MACOSX_DEPLOYMENT_TARGET: "12.0" diff --git a/.tool-versions b/.tool-versions index 247f0919f..76460b240 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1,3 +1,3 @@ # Versions of Gitaly dependencies managed by asdf. -golang 1.20.6 +golang 1.21.0 1.20.6 ruby 3.1.4 |