From 2f83da527090edfea931cfab00ddbf69aed96c84 Mon Sep 17 00:00:00 2001 From: Killian Delarue Date: Wed, 19 Feb 2025 16:53:04 +0100 Subject: [PATCH 1/3] CI: Static binaries use [octez-*-binaries] by default --- .gitlab/ci/pipelines/before_merging.yml | 4 ++-- .gitlab/ci/pipelines/master_branch.yml | 4 ++-- .gitlab/ci/pipelines/merge_train.yml | 4 ++-- .gitlab/ci/pipelines/non_release_tag.yml | 4 ++-- .gitlab/ci/pipelines/non_release_tag_test.yml | 4 ++-- .gitlab/ci/pipelines/octez_beta_release_tag.yml | 4 ++-- .gitlab/ci/pipelines/octez_release_tag.yml | 4 ++-- .gitlab/ci/pipelines/octez_release_tag_test.yml | 4 ++-- .gitlab/ci/pipelines/schedule_extended_test.yml | 4 ++-- .gitlab/ci/pipelines/schedule_master_test_release.yml | 4 ++-- ci/bin/common.ml | 5 +++-- 11 files changed, 23 insertions(+), 22 deletions(-) diff --git a/.gitlab/ci/pipelines/before_merging.yml b/.gitlab/ci/pipelines/before_merging.yml index ff5da9908a34..05677e1cbae8 100644 --- a/.gitlab/ci/pipelines/before_merging.yml +++ b/.gitlab/ci/pipelines/before_merging.yml @@ -572,7 +572,7 @@ oc.build:static-x86_64-linux-binaries: - ./scripts/ci/sccache-stop.sh variables: ARCH: x86_64 - EXECUTABLE_FILES: script-inputs/released-executables script-inputs/experimental-executables + EXECUTABLE_FILES: script-inputs/octez-released-executables script-inputs/octez-experimental-executables CARGO_NET_OFFLINE: "false" SCCACHE_DIR: $CI_PROJECT_DIR/_sccache SCCACHE_CACHE_SIZE: 2G @@ -664,7 +664,7 @@ oc.build:static-arm64-linux-binaries: - ./scripts/ci/sccache-stop.sh variables: ARCH: arm64 - EXECUTABLE_FILES: script-inputs/released-executables script-inputs/experimental-executables + EXECUTABLE_FILES: script-inputs/octez-released-executables script-inputs/octez-experimental-executables CARGO_NET_OFFLINE: "false" SCCACHE_DIR: $CI_PROJECT_DIR/_sccache SCCACHE_CACHE_SIZE: 2G diff --git a/.gitlab/ci/pipelines/master_branch.yml b/.gitlab/ci/pipelines/master_branch.yml index 673375239683..0db1d64b5876 100644 --- a/.gitlab/ci/pipelines/master_branch.yml +++ b/.gitlab/ci/pipelines/master_branch.yml @@ -106,7 +106,7 @@ oc.build:static-x86_64-linux-binaries: - ./scripts/ci/sccache-stop.sh variables: ARCH: x86_64 - EXECUTABLE_FILES: script-inputs/released-executables script-inputs/experimental-executables + EXECUTABLE_FILES: script-inputs/octez-released-executables script-inputs/octez-experimental-executables CARGO_NET_OFFLINE: "false" SCCACHE_DIR: $CI_PROJECT_DIR/_sccache SCCACHE_CACHE_SIZE: 2G @@ -148,7 +148,7 @@ oc.build:static-arm64-linux-binaries: - ./scripts/ci/sccache-stop.sh variables: ARCH: arm64 - EXECUTABLE_FILES: script-inputs/released-executables script-inputs/experimental-executables + EXECUTABLE_FILES: script-inputs/octez-released-executables script-inputs/octez-experimental-executables CARGO_NET_OFFLINE: "false" SCCACHE_DIR: $CI_PROJECT_DIR/_sccache SCCACHE_CACHE_SIZE: 2G diff --git a/.gitlab/ci/pipelines/merge_train.yml b/.gitlab/ci/pipelines/merge_train.yml index 816d384c52e5..6b96a19d9ce4 100644 --- a/.gitlab/ci/pipelines/merge_train.yml +++ b/.gitlab/ci/pipelines/merge_train.yml @@ -571,7 +571,7 @@ oc.build:static-x86_64-linux-binaries: - ./scripts/ci/sccache-stop.sh variables: ARCH: x86_64 - EXECUTABLE_FILES: script-inputs/released-executables script-inputs/experimental-executables + EXECUTABLE_FILES: script-inputs/octez-released-executables script-inputs/octez-experimental-executables CARGO_NET_OFFLINE: "false" SCCACHE_DIR: $CI_PROJECT_DIR/_sccache SCCACHE_CACHE_SIZE: 2G @@ -663,7 +663,7 @@ oc.build:static-arm64-linux-binaries: - ./scripts/ci/sccache-stop.sh variables: ARCH: arm64 - EXECUTABLE_FILES: script-inputs/released-executables script-inputs/experimental-executables + EXECUTABLE_FILES: script-inputs/octez-released-executables script-inputs/octez-experimental-executables CARGO_NET_OFFLINE: "false" SCCACHE_DIR: $CI_PROJECT_DIR/_sccache SCCACHE_CACHE_SIZE: 2G diff --git a/.gitlab/ci/pipelines/non_release_tag.yml b/.gitlab/ci/pipelines/non_release_tag.yml index d491c20cd5bf..e76e8e149f39 100644 --- a/.gitlab/ci/pipelines/non_release_tag.yml +++ b/.gitlab/ci/pipelines/non_release_tag.yml @@ -101,7 +101,7 @@ oc.build:static-x86_64-linux-binaries: - ./scripts/ci/sccache-stop.sh variables: ARCH: x86_64 - EXECUTABLE_FILES: script-inputs/released-executables + EXECUTABLE_FILES: script-inputs/octez-released-executables CARGO_NET_OFFLINE: "false" SCCACHE_DIR: $CI_PROJECT_DIR/_sccache SCCACHE_CACHE_SIZE: 2G @@ -144,7 +144,7 @@ oc.build:static-arm64-linux-binaries: - ./scripts/ci/sccache-stop.sh variables: ARCH: arm64 - EXECUTABLE_FILES: script-inputs/released-executables + EXECUTABLE_FILES: script-inputs/octez-released-executables CARGO_NET_OFFLINE: "false" SCCACHE_DIR: $CI_PROJECT_DIR/_sccache SCCACHE_CACHE_SIZE: 2G diff --git a/.gitlab/ci/pipelines/non_release_tag_test.yml b/.gitlab/ci/pipelines/non_release_tag_test.yml index b0c031519d74..1e2604190409 100644 --- a/.gitlab/ci/pipelines/non_release_tag_test.yml +++ b/.gitlab/ci/pipelines/non_release_tag_test.yml @@ -101,7 +101,7 @@ oc.build:static-x86_64-linux-binaries: - ./scripts/ci/sccache-stop.sh variables: ARCH: x86_64 - EXECUTABLE_FILES: script-inputs/released-executables + EXECUTABLE_FILES: script-inputs/octez-released-executables CARGO_NET_OFFLINE: "false" SCCACHE_DIR: $CI_PROJECT_DIR/_sccache SCCACHE_CACHE_SIZE: 2G @@ -144,7 +144,7 @@ oc.build:static-arm64-linux-binaries: - ./scripts/ci/sccache-stop.sh variables: ARCH: arm64 - EXECUTABLE_FILES: script-inputs/released-executables + EXECUTABLE_FILES: script-inputs/octez-released-executables CARGO_NET_OFFLINE: "false" SCCACHE_DIR: $CI_PROJECT_DIR/_sccache SCCACHE_CACHE_SIZE: 2G diff --git a/.gitlab/ci/pipelines/octez_beta_release_tag.yml b/.gitlab/ci/pipelines/octez_beta_release_tag.yml index 6cd925cff165..3af373ccaf88 100644 --- a/.gitlab/ci/pipelines/octez_beta_release_tag.yml +++ b/.gitlab/ci/pipelines/octez_beta_release_tag.yml @@ -101,7 +101,7 @@ oc.build:static-x86_64-linux-binaries: - ./scripts/ci/sccache-stop.sh variables: ARCH: x86_64 - EXECUTABLE_FILES: script-inputs/released-executables + EXECUTABLE_FILES: script-inputs/octez-released-executables CARGO_NET_OFFLINE: "false" SCCACHE_DIR: $CI_PROJECT_DIR/_sccache SCCACHE_CACHE_SIZE: 2G @@ -144,7 +144,7 @@ oc.build:static-arm64-linux-binaries: - ./scripts/ci/sccache-stop.sh variables: ARCH: arm64 - EXECUTABLE_FILES: script-inputs/released-executables + EXECUTABLE_FILES: script-inputs/octez-released-executables CARGO_NET_OFFLINE: "false" SCCACHE_DIR: $CI_PROJECT_DIR/_sccache SCCACHE_CACHE_SIZE: 2G diff --git a/.gitlab/ci/pipelines/octez_release_tag.yml b/.gitlab/ci/pipelines/octez_release_tag.yml index 1110d16163a6..944d3e8ed888 100644 --- a/.gitlab/ci/pipelines/octez_release_tag.yml +++ b/.gitlab/ci/pipelines/octez_release_tag.yml @@ -102,7 +102,7 @@ oc.build:static-x86_64-linux-binaries: - ./scripts/ci/sccache-stop.sh variables: ARCH: x86_64 - EXECUTABLE_FILES: script-inputs/released-executables + EXECUTABLE_FILES: script-inputs/octez-released-executables CARGO_NET_OFFLINE: "false" SCCACHE_DIR: $CI_PROJECT_DIR/_sccache SCCACHE_CACHE_SIZE: 2G @@ -145,7 +145,7 @@ oc.build:static-arm64-linux-binaries: - ./scripts/ci/sccache-stop.sh variables: ARCH: arm64 - EXECUTABLE_FILES: script-inputs/released-executables + EXECUTABLE_FILES: script-inputs/octez-released-executables CARGO_NET_OFFLINE: "false" SCCACHE_DIR: $CI_PROJECT_DIR/_sccache SCCACHE_CACHE_SIZE: 2G diff --git a/.gitlab/ci/pipelines/octez_release_tag_test.yml b/.gitlab/ci/pipelines/octez_release_tag_test.yml index 77ec2d0874e9..1e14c3bed1b8 100644 --- a/.gitlab/ci/pipelines/octez_release_tag_test.yml +++ b/.gitlab/ci/pipelines/octez_release_tag_test.yml @@ -102,7 +102,7 @@ oc.build:static-x86_64-linux-binaries: - ./scripts/ci/sccache-stop.sh variables: ARCH: x86_64 - EXECUTABLE_FILES: script-inputs/released-executables + EXECUTABLE_FILES: script-inputs/octez-released-executables CARGO_NET_OFFLINE: "false" SCCACHE_DIR: $CI_PROJECT_DIR/_sccache SCCACHE_CACHE_SIZE: 2G @@ -145,7 +145,7 @@ oc.build:static-arm64-linux-binaries: - ./scripts/ci/sccache-stop.sh variables: ARCH: arm64 - EXECUTABLE_FILES: script-inputs/released-executables + EXECUTABLE_FILES: script-inputs/octez-released-executables CARGO_NET_OFFLINE: "false" SCCACHE_DIR: $CI_PROJECT_DIR/_sccache SCCACHE_CACHE_SIZE: 2G diff --git a/.gitlab/ci/pipelines/schedule_extended_test.yml b/.gitlab/ci/pipelines/schedule_extended_test.yml index 9bc33f5c7c9d..a146f41e60c2 100644 --- a/.gitlab/ci/pipelines/schedule_extended_test.yml +++ b/.gitlab/ci/pipelines/schedule_extended_test.yml @@ -418,7 +418,7 @@ oc.build:static-x86_64-linux-binaries: - ./scripts/ci/sccache-stop.sh variables: ARCH: x86_64 - EXECUTABLE_FILES: script-inputs/released-executables script-inputs/experimental-executables + EXECUTABLE_FILES: script-inputs/octez-released-executables script-inputs/octez-experimental-executables CARGO_NET_OFFLINE: "false" SCCACHE_DIR: $CI_PROJECT_DIR/_sccache SCCACHE_CACHE_SIZE: 2G @@ -461,7 +461,7 @@ oc.build:static-arm64-linux-binaries: - ./scripts/ci/sccache-stop.sh variables: ARCH: arm64 - EXECUTABLE_FILES: script-inputs/released-executables script-inputs/experimental-executables + EXECUTABLE_FILES: script-inputs/octez-released-executables script-inputs/octez-experimental-executables CARGO_NET_OFFLINE: "false" SCCACHE_DIR: $CI_PROJECT_DIR/_sccache SCCACHE_CACHE_SIZE: 2G diff --git a/.gitlab/ci/pipelines/schedule_master_test_release.yml b/.gitlab/ci/pipelines/schedule_master_test_release.yml index 00b4f54cf353..a5fcba1827e7 100644 --- a/.gitlab/ci/pipelines/schedule_master_test_release.yml +++ b/.gitlab/ci/pipelines/schedule_master_test_release.yml @@ -101,7 +101,7 @@ oc.build:static-x86_64-linux-binaries: - ./scripts/ci/sccache-stop.sh variables: ARCH: x86_64 - EXECUTABLE_FILES: script-inputs/released-executables + EXECUTABLE_FILES: script-inputs/octez-released-executables CARGO_NET_OFFLINE: "false" SCCACHE_DIR: $CI_PROJECT_DIR/_sccache SCCACHE_CACHE_SIZE: 2G @@ -144,7 +144,7 @@ oc.build:static-arm64-linux-binaries: - ./scripts/ci/sccache-stop.sh variables: ARCH: arm64 - EXECUTABLE_FILES: script-inputs/released-executables + EXECUTABLE_FILES: script-inputs/octez-released-executables CARGO_NET_OFFLINE: "false" SCCACHE_DIR: $CI_PROJECT_DIR/_sccache SCCACHE_CACHE_SIZE: 2G diff --git a/ci/bin/common.ml b/ci/bin/common.ml index 4e5d2e37a2e3..15df6cbb124e 100644 --- a/ci/bin/common.ml +++ b/ci/bin/common.ml @@ -617,7 +617,7 @@ let changeset_mir_tzt = - released variants exist, that are used in release tag pipelines (they do not build experimental executables) *) let job_build_static_binaries ~__POS__ ~arch ?(cpu = Normal) - ?(executable_files = "script-inputs/released-executables") + ?(executable_files = "script-inputs/octez-released-executables") ?version_executable ?(release = false) ?rules ?dependencies () : tezos_job = let arch_string = arch_to_string arch in let name = "oc.build:static-" ^ arch_string ^ "-linux-binaries" in @@ -628,7 +628,8 @@ let job_build_static_binaries ~__POS__ ~arch ?(cpu = Normal) in let executable_files = executable_files - ^ if not release then " script-inputs/experimental-executables" else "" + ^ + if not release then " script-inputs/octez-experimental-executables" else "" in let version_executable = match version_executable with -- GitLab From c3ddf000523d2e5461e75a10d62730dc5a98e97c Mon Sep 17 00:00:00 2001 From: Killian Delarue Date: Thu, 20 Feb 2025 14:36:05 +0100 Subject: [PATCH 2/3] Teztale, CI: Build job now takes architecture as argument --- .gitlab/ci/pipelines/before_merging.yml | 45 +++++++++++++++++- .gitlab/ci/pipelines/merge_train.yml | 45 +++++++++++++++++- .gitlab/ci/pipelines/octez_monitoring.yml | 47 ++++++++++++++++++- .../ci/pipelines/schedule_extended_test.yml | 42 ++++++++++++++++- ci/bin/code_verification.ml | 6 ++- ci/bin/release_tag.ml | 3 +- teztale/ci/teztale.ml | 7 ++- 7 files changed, 186 insertions(+), 9 deletions(-) diff --git a/.gitlab/ci/pipelines/before_merging.yml b/.gitlab/ci/pipelines/before_merging.yml index 05677e1cbae8..e15153b72e84 100644 --- a/.gitlab/ci/pipelines/before_merging.yml +++ b/.gitlab/ci/pipelines/before_merging.yml @@ -1306,7 +1306,7 @@ build_grafazos_dashboards: - grafazos/output/**/*.json when: on_success -build_teztale: +teztale.build:static-x86_64: image: ${ci_image_name}/build:${ci_image_tag} stage: build tags: @@ -1349,6 +1349,49 @@ build_teztale: - octez-teztale-* when: on_success +teztale.build:static-arm64: + image: ${ci_image_name}/build:${ci_image_tag} + stage: build + tags: + - gcp_arm64 + rules: + - changes: + - teztale/**/* + when: on_success + - when: manual + allow_failure: true + dependencies: + - oc.docker:ci:arm64 + timeout: 60 minutes + cache: + - key: cargo-$CI_JOB_NAME_SLUG + paths: + - $CI_PROJECT_DIR/.cargo/registry/cache + policy: pull-push + - key: sccache-$CI_JOB_NAME_SLUG + paths: + - $CI_PROJECT_DIR/_sccache + policy: pull-push + before_script: + - ./scripts/ci/take_ownership.sh + - . ./scripts/version.sh + - eval $(opam env) + - . ./scripts/ci/sccache-start.sh + script: + - make teztale + after_script: + - ./scripts/ci/sccache-stop.sh + variables: + CARGO_NET_OFFLINE: "false" + SCCACHE_DIR: $CI_PROJECT_DIR/_sccache + SCCACHE_CACHE_SIZE: 5G + artifacts: + name: teztale-binaries + expire_in: 1 day + paths: + - octez-teztale-* + when: on_success + build-layer1-profiling: image: ${ci_image_name}/build:${ci_image_tag} stage: build diff --git a/.gitlab/ci/pipelines/merge_train.yml b/.gitlab/ci/pipelines/merge_train.yml index 6b96a19d9ce4..51f165a730d6 100644 --- a/.gitlab/ci/pipelines/merge_train.yml +++ b/.gitlab/ci/pipelines/merge_train.yml @@ -1305,7 +1305,7 @@ build_grafazos_dashboards: - grafazos/output/**/*.json when: on_success -build_teztale: +teztale.build:static-x86_64: image: ${ci_image_name}/build:${ci_image_tag} stage: build tags: @@ -1348,6 +1348,49 @@ build_teztale: - octez-teztale-* when: on_success +teztale.build:static-arm64: + image: ${ci_image_name}/build:${ci_image_tag} + stage: build + tags: + - gcp_arm64 + rules: + - changes: + - teztale/**/* + when: on_success + - when: manual + allow_failure: true + dependencies: + - oc.docker:ci:arm64 + timeout: 60 minutes + cache: + - key: cargo-$CI_JOB_NAME_SLUG + paths: + - $CI_PROJECT_DIR/.cargo/registry/cache + policy: pull-push + - key: sccache-$CI_JOB_NAME_SLUG + paths: + - $CI_PROJECT_DIR/_sccache + policy: pull-push + before_script: + - ./scripts/ci/take_ownership.sh + - . ./scripts/version.sh + - eval $(opam env) + - . ./scripts/ci/sccache-start.sh + script: + - make teztale + after_script: + - ./scripts/ci/sccache-stop.sh + variables: + CARGO_NET_OFFLINE: "false" + SCCACHE_DIR: $CI_PROJECT_DIR/_sccache + SCCACHE_CACHE_SIZE: 5G + artifacts: + name: teztale-binaries + expire_in: 1 day + paths: + - octez-teztale-* + when: on_success + build-layer1-profiling: image: ${ci_image_name}/build:${ci_image_tag} stage: build diff --git a/.gitlab/ci/pipelines/octez_monitoring.yml b/.gitlab/ci/pipelines/octez_monitoring.yml index b2b34c385b25..93ccda740c59 100644 --- a/.gitlab/ci/pipelines/octez_monitoring.yml +++ b/.gitlab/ci/pipelines/octez_monitoring.yml @@ -54,6 +54,30 @@ oc.docker:jsonnet:amd64: reports: dotenv: jsonnet_image_tag.env +oc.docker:ci:arm64: + image: ${GCP_REGISTRY}/tezos/docker-images/ci-docker:v1.12.0 + stage: images + tags: + - gcp_arm64 + dependencies: [] + timeout: 90 minutes + before_script: [] + script: + - ./images/ci_create_ci_images.sh + services: + - docker:${DOCKER_VERSION}-dind + variables: + DOCKER_VERSION: 24.0.7 + CI_DOCKER_HUB: "false" + ARCH: arm64 + artifacts: + reports: + dotenv: ci_image_tag.env + retry: + max: 1 + when: + - runner_system_failure + datadog_pipeline_trace: image: datadog/ci:v2.44.0 stage: start @@ -128,7 +152,28 @@ build-layer1-profiling: paths: - ./octez-binaries/x86_64/octez-node -build_teztale: +teztale.build:static-arm64: + image: ${ci_image_name}/build:${ci_image_tag} + stage: build + tags: + - gcp_arm64 + dependencies: + - oc.docker:ci:arm64 + timeout: 60 minutes + before_script: + - ./scripts/ci/take_ownership.sh + - . ./scripts/version.sh + - eval $(opam env) + script: + - make teztale + artifacts: + name: teztale-binaries + expire_in: never + paths: + - octez-teztale-* + when: on_success + +teztale.build:static-x86_64: image: ${ci_image_name}/build:${ci_image_tag} stage: build tags: diff --git a/.gitlab/ci/pipelines/schedule_extended_test.yml b/.gitlab/ci/pipelines/schedule_extended_test.yml index a146f41e60c2..6c228d44b1d3 100644 --- a/.gitlab/ci/pipelines/schedule_extended_test.yml +++ b/.gitlab/ci/pipelines/schedule_extended_test.yml @@ -865,7 +865,7 @@ build_grafazos_dashboards: - grafazos/output/**/*.json when: on_success -build_teztale: +teztale.build:static-x86_64: image: ${ci_image_name}/build:${ci_image_tag} stage: build tags: @@ -905,6 +905,46 @@ build_teztale: - octez-teztale-* when: on_success +teztale.build:static-arm64: + image: ${ci_image_name}/build:${ci_image_tag} + stage: build + tags: + - gcp_arm64 + rules: + - when: always + dependencies: + - oc.docker:ci:arm64 + timeout: 60 minutes + cache: + - key: cargo-$CI_JOB_NAME_SLUG + paths: + - $CI_PROJECT_DIR/.cargo/registry/cache + policy: pull-push + - key: sccache-$CI_JOB_NAME_SLUG + paths: + - $CI_PROJECT_DIR/_sccache + policy: pull-push + interruptible: false + before_script: + - ./scripts/ci/take_ownership.sh + - . ./scripts/version.sh + - eval $(opam env) + - . ./scripts/ci/sccache-start.sh + script: + - make teztale + after_script: + - ./scripts/ci/sccache-stop.sh + variables: + CARGO_NET_OFFLINE: "false" + SCCACHE_DIR: $CI_PROJECT_DIR/_sccache + SCCACHE_CACHE_SIZE: 5G + artifacts: + name: teztale-binaries + expire_in: 1 day + paths: + - octez-teztale-* + when: on_success + build-layer1-profiling: image: ${ci_image_name}/build:${ci_image_tag} stage: build diff --git a/ci/bin/code_verification.ml b/ci/bin/code_verification.ml index 6b1b0a7db328..82ba23d0edc3 100644 --- a/ci/bin/code_verification.ml +++ b/ci/bin/code_verification.ml @@ -766,8 +766,9 @@ let jobs pipeline_type = | Schedule_extended_test -> Grafazos_ci.job_build_grafazos ~rules:[job_rule ~when_:Always ()] () in - let job_build_teztale = + let job_build_teztale ~arch = Teztale.job_build + ~arch ~rules:(make_rules ~manual:Yes ~changes:Teztale.changeset ()) () |> enable_cargo_cache |> enable_sccache @@ -786,7 +787,8 @@ let jobs pipeline_type = job_tezt_fetch_records; build_octez_source; job_build_grafazos; - job_build_teztale; + job_build_teztale ~arch:Amd64; + job_build_teztale ~arch:Arm64; job_build_layer1_profiling (); ] @ Option.to_list job_select_tezts diff --git a/ci/bin/release_tag.ml b/ci/bin/release_tag.ml index b93cd9d5f25e..d30c3753759d 100644 --- a/ci/bin/release_tag.ml +++ b/ci/bin/release_tag.ml @@ -52,7 +52,8 @@ let monitoring_child_pipeline = job_datadog_pipeline_trace; Grafazos_ci.job_build_grafazos (); job_build_layer1_profiling ~expire_in:Never (); - Teztale.job_build ~expire_in:Never (); + Teztale.job_build ~expire_in:Never ~arch:Arm64 (); + Teztale.job_build ~expire_in:Never ~arch:Amd64 (); ] (** Create an Octez release tag pipeline of type {!release_tag_pipeline_type}. diff --git a/teztale/ci/teztale.ml b/teztale/ci/teztale.ml index 311d6e76f5ff..b7e5e62a6f7f 100644 --- a/teztale/ci/teztale.ml +++ b/teztale/ci/teztale.ml @@ -13,10 +13,13 @@ module String_set = Set.Make (String) let changeset = Changeset.(make ["teztale/**/*"]) (** Job that builds the Teztale executables *) -let job_build ?rules ?(expire_in = Gitlab_ci.Types.(Duration (Days 1))) () = +let job_build ?rules ?(expire_in = Gitlab_ci.Types.(Duration (Days 1))) ~arch () + = + let arch_string = arch_to_string arch in job ~__POS__ - ~name:"build_teztale" + ~arch + ~name:("teztale.build:static-" ^ arch_string) ~image:Images.CI.build ~stage:Stages.build ?rules -- GitLab From bf5719b99abb2335166f0e5254a7f506b9597425 Mon Sep 17 00:00:00 2001 From: Killian Delarue Date: Thu, 20 Feb 2025 14:40:45 +0100 Subject: [PATCH 3/3] Teztale, CI: Add [static] profile to teztale build jobs --- .gitlab/ci/pipelines/before_merging.yml | 2 ++ .gitlab/ci/pipelines/merge_train.yml | 2 ++ .gitlab/ci/pipelines/octez_monitoring.yml | 4 ++++ .gitlab/ci/pipelines/schedule_extended_test.yml | 2 ++ teztale/ci/teztale.ml | 1 + 5 files changed, 11 insertions(+) diff --git a/.gitlab/ci/pipelines/before_merging.yml b/.gitlab/ci/pipelines/before_merging.yml index e15153b72e84..232d54ca317c 100644 --- a/.gitlab/ci/pipelines/before_merging.yml +++ b/.gitlab/ci/pipelines/before_merging.yml @@ -1339,6 +1339,7 @@ teztale.build:static-x86_64: after_script: - ./scripts/ci/sccache-stop.sh variables: + PROFILE: static CARGO_NET_OFFLINE: "false" SCCACHE_DIR: $CI_PROJECT_DIR/_sccache SCCACHE_CACHE_SIZE: 5G @@ -1382,6 +1383,7 @@ teztale.build:static-arm64: after_script: - ./scripts/ci/sccache-stop.sh variables: + PROFILE: static CARGO_NET_OFFLINE: "false" SCCACHE_DIR: $CI_PROJECT_DIR/_sccache SCCACHE_CACHE_SIZE: 5G diff --git a/.gitlab/ci/pipelines/merge_train.yml b/.gitlab/ci/pipelines/merge_train.yml index 51f165a730d6..b75aa123e74b 100644 --- a/.gitlab/ci/pipelines/merge_train.yml +++ b/.gitlab/ci/pipelines/merge_train.yml @@ -1338,6 +1338,7 @@ teztale.build:static-x86_64: after_script: - ./scripts/ci/sccache-stop.sh variables: + PROFILE: static CARGO_NET_OFFLINE: "false" SCCACHE_DIR: $CI_PROJECT_DIR/_sccache SCCACHE_CACHE_SIZE: 5G @@ -1381,6 +1382,7 @@ teztale.build:static-arm64: after_script: - ./scripts/ci/sccache-stop.sh variables: + PROFILE: static CARGO_NET_OFFLINE: "false" SCCACHE_DIR: $CI_PROJECT_DIR/_sccache SCCACHE_CACHE_SIZE: 5G diff --git a/.gitlab/ci/pipelines/octez_monitoring.yml b/.gitlab/ci/pipelines/octez_monitoring.yml index 93ccda740c59..e39a976460d5 100644 --- a/.gitlab/ci/pipelines/octez_monitoring.yml +++ b/.gitlab/ci/pipelines/octez_monitoring.yml @@ -166,6 +166,8 @@ teztale.build:static-arm64: - eval $(opam env) script: - make teztale + variables: + PROFILE: static artifacts: name: teztale-binaries expire_in: never @@ -187,6 +189,8 @@ teztale.build:static-x86_64: - eval $(opam env) script: - make teztale + variables: + PROFILE: static artifacts: name: teztale-binaries expire_in: never diff --git a/.gitlab/ci/pipelines/schedule_extended_test.yml b/.gitlab/ci/pipelines/schedule_extended_test.yml index 6c228d44b1d3..bd02698782fc 100644 --- a/.gitlab/ci/pipelines/schedule_extended_test.yml +++ b/.gitlab/ci/pipelines/schedule_extended_test.yml @@ -895,6 +895,7 @@ teztale.build:static-x86_64: after_script: - ./scripts/ci/sccache-stop.sh variables: + PROFILE: static CARGO_NET_OFFLINE: "false" SCCACHE_DIR: $CI_PROJECT_DIR/_sccache SCCACHE_CACHE_SIZE: 5G @@ -935,6 +936,7 @@ teztale.build:static-arm64: after_script: - ./scripts/ci/sccache-stop.sh variables: + PROFILE: static CARGO_NET_OFFLINE: "false" SCCACHE_DIR: $CI_PROJECT_DIR/_sccache SCCACHE_CACHE_SIZE: 5G diff --git a/teztale/ci/teztale.ml b/teztale/ci/teztale.ml index b7e5e62a6f7f..23489824cd86 100644 --- a/teztale/ci/teztale.ml +++ b/teztale/ci/teztale.ml @@ -23,6 +23,7 @@ let job_build ?rules ?(expire_in = Gitlab_ci.Types.(Duration (Days 1))) ~arch () ~image:Images.CI.build ~stage:Stages.build ?rules + ~variables:[("PROFILE", "static")] ~artifacts: (artifacts ~name:"teztale-binaries" -- GitLab