From 1b4a5af46704199e756c53a39e7c890718d8e7f3 Mon Sep 17 00:00:00 2001 From: Ning Wu Date: Wed, 13 Dec 2023 15:41:58 +0800 Subject: [PATCH] Change the output filename for compile_gpdb_with_llvm_asserts job Authored-by: Ning Wu --- concourse/pipelines/gpdb_main-generated.yml | 9 ++++++--- concourse/pipelines/templates/gpdb-tpl.yml | 7 +++++-- concourse/scripts/common.bash | 2 +- concourse/tasks/compile_gpdb.yml | 1 + 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/concourse/pipelines/gpdb_main-generated.yml b/concourse/pipelines/gpdb_main-generated.yml index 062747daea77..8acd772bd5e8 100644 --- a/concourse/pipelines/gpdb_main-generated.yml +++ b/concourse/pipelines/gpdb_main-generated.yml @@ -12,7 +12,7 @@ ## file (example: templates/gpdb-tpl.yml) and regenerate the pipeline ## using appropriate tool (example: gen_pipeline.py -t prod). ## ---------------------------------------------------------------------- -## Generated by gen_pipeline.py at: 2023-12-12 11:15:26.091422 +## Generated by gen_pipeline.py at: 2023-12-13 17:36:49.888647 ## Template file: gpdb-tpl.yml ## OS Types: ## Test Sections: ['icw', 'cli', 'release'] @@ -488,7 +488,7 @@ resources: source: bucket: ((gcs-bucket-intermediates)) json_key: ((concourse-gcs-resources-service-account-key)) - versioned_file: ((pipeline-name))/bin_gpdb/bin_gpdb.tar.gz + versioned_file: ((pipeline-name))/bin_gpdb/bin_gpdb_with_llvm_asserts.tar.gz - name: llvm-with-asserts-packages type: gcs @@ -608,11 +608,12 @@ jobs: CONFIGURE_FLAGS: ((configure_flags_with_extensions)) BLD_TARGETS: "clients" RC_BUILD_TYPE_GCS: ((rc-build-type-gcs)) + GPDB_BIN_FILENAME: bin_gpdb_with_llvm_asserts.tar.gz - in_parallel: steps: - put: bin_gpdb_with_llvm_asserts params: - file: gpdb_artifacts/bin_gpdb.tar.gz + file: gpdb_artifacts/bin_gpdb_with_llvm_asserts.tar.gz - name: prepare_binary_swap_gpdb_rocky8 plan: @@ -832,6 +833,7 @@ jobs: - get: llvm-with-asserts-packages - get: bin_gpdb_with_llvm_asserts passed: [gate_icw_start] + trigger: true - task: ic_gpdb tags: [icw-worker] file: gpdb_src/concourse/tasks/ic_gpdb.yml @@ -908,6 +910,7 @@ jobs: - get: llvm-with-asserts-packages - get: bin_gpdb_with_llvm_asserts passed: [gate_icw_start] + trigger: true - task: ic_gpdb tags: [icw-worker] file: gpdb_src/concourse/tasks/ic_gpdb_binary_swap.yml diff --git a/concourse/pipelines/templates/gpdb-tpl.yml b/concourse/pipelines/templates/gpdb-tpl.yml index 66e2372d6f86..04c543d683a3 100644 --- a/concourse/pipelines/templates/gpdb-tpl.yml +++ b/concourse/pipelines/templates/gpdb-tpl.yml @@ -555,7 +555,7 @@ resources: source: bucket: ((gcs-bucket-intermediates)) json_key: ((concourse-gcs-resources-service-account-key)) - versioned_file: ((pipeline-name))/bin_gpdb/bin_gpdb.tar.gz + versioned_file: ((pipeline-name))/bin_gpdb/bin_gpdb_with_llvm_asserts.tar.gz - name: llvm-with-asserts-packages type: gcs @@ -712,11 +712,12 @@ jobs: CONFIGURE_FLAGS: ((configure_flags_with_extensions)) BLD_TARGETS: "clients" RC_BUILD_TYPE_GCS: ((rc-build-type-gcs)) + GPDB_BIN_FILENAME: bin_gpdb_with_llvm_asserts.tar.gz - in_parallel: steps: - put: bin_gpdb_with_llvm_asserts params: - file: gpdb_artifacts/bin_gpdb.tar.gz + file: gpdb_artifacts/bin_gpdb_with_llvm_asserts.tar.gz {% endif %} {% if os_type == "rhel8" or os_type == "oel8" or os_type == "rocky8" %} @@ -957,6 +958,7 @@ jobs: - get: llvm-with-asserts-packages - get: bin_gpdb_with_llvm_asserts passed: [gate_icw_start] + trigger: true {% endif %} - task: ic_gpdb {% if use_ICW_workers %} @@ -1051,6 +1053,7 @@ jobs: - get: llvm-with-asserts-packages - get: bin_gpdb_with_llvm_asserts passed: [gate_icw_start] + trigger: true {% endif %} - task: ic_gpdb {% if use_ICW_workers %} diff --git a/concourse/scripts/common.bash b/concourse/scripts/common.bash index 8052963cf158..dc2085c33b6b 100755 --- a/concourse/scripts/common.bash +++ b/concourse/scripts/common.bash @@ -31,7 +31,7 @@ function build_arch() { function install_gpdb() { mkdir -p /usr/local/greenplum-db-devel if [[ "${CONFIGURE_FLAGS}" =~ enable-cassert && -d bin_gpdb_with_llvm_asserts ]]; then - tar -xzf bin_gpdb_with_llvm_asserts/bin_gpdb.tar.gz -C /usr/local/greenplum-db-devel + tar -xzf bin_gpdb_with_llvm_asserts/bin_gpdb_with_llvm_asserts.tar.gz -C /usr/local/greenplum-db-devel else tar -xzf bin_gpdb/bin_gpdb.tar.gz -C /usr/local/greenplum-db-devel fi diff --git a/concourse/tasks/compile_gpdb.yml b/concourse/tasks/compile_gpdb.yml index 07796af900a1..2f8f48347788 100644 --- a/concourse/tasks/compile_gpdb.yml +++ b/concourse/tasks/compile_gpdb.yml @@ -18,3 +18,4 @@ params: RC_BUILD_TYPE_GCS: USE_CCACHE: SKIP_UNITTESTS: + GPDB_BIN_FILENAME: