Skip to content

Commit

Permalink
Merge pull request ClickHouse#35766 from ClickHouse/resurrect_officia…
Browse files Browse the repository at this point in the history
…l_flag

Resurrect build hash
  • Loading branch information
alesapin authored and Felixoid committed Apr 4, 2022
1 parent 5a5a174 commit 8cd46fa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/ci/build_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def get_packager_cmd(
build_version: str,
image_version: str,
ccache_path: str,
official: bool,
) -> str:
package_type = build_config["package_type"]
comp = build_config["compiler"]
Expand Down Expand Up @@ -83,6 +84,9 @@ def get_packager_cmd(
if _can_export_binaries(build_config):
cmd += " --with-binaries=tests"

if official:
cmd += " --official"

return cmd


Expand Down Expand Up @@ -254,9 +258,11 @@ def main():

logging.info("Got version from repo %s", version.string)

official_flag = pr_info.number == 0
version_type = "testing"
if "release" in pr_info.labels or "release-lts" in pr_info.labels:
version_type = "stable"
official_flag = True

update_version_local(REPO_COPY, version, version_type)

Expand Down Expand Up @@ -290,7 +296,9 @@ def main():
version.string,
image_version,
ccache_path,
official=official_flag,
)

logging.info("Going to run packager with %s", packager_cmd)

build_clickhouse_log = os.path.join(TEMP_PATH, "build_log")
Expand Down

0 comments on commit 8cd46fa

Please sign in to comment.