mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Remove rust cache
This commit is contained in:
parent
f77822e732
commit
173440be9b
@ -47,7 +47,6 @@ def get_packager_cmd(
|
||||
build_config: BuildConfig,
|
||||
packager_path: Path,
|
||||
output_path: Path,
|
||||
cargo_cache_dir: Path,
|
||||
build_version: str,
|
||||
image_version: str,
|
||||
official: bool,
|
||||
@ -72,7 +71,6 @@ def get_packager_cmd(
|
||||
cmd += " --cache=sccache"
|
||||
cmd += " --s3-rw-access"
|
||||
cmd += f" --s3-bucket={S3_BUILDS_BUCKET}"
|
||||
cmd += f" --cargo-cache-dir={cargo_cache_dir}"
|
||||
|
||||
if build_config.additional_pkgs:
|
||||
cmd += " --additional-pkgs"
|
||||
@ -181,10 +179,6 @@ def main():
|
||||
|
||||
build_output_path = temp_path / build_name
|
||||
build_output_path.mkdir(parents=True, exist_ok=True)
|
||||
cargo_cache = CargoCache(
|
||||
temp_path / "cargo_cache" / "registry", temp_path, s3_helper
|
||||
)
|
||||
cargo_cache.download()
|
||||
|
||||
docker_image = docker_images_helper.pull_image(
|
||||
docker_images_helper.get_docker_image(IMAGE_NAME)
|
||||
@ -194,7 +188,6 @@ def main():
|
||||
build_config,
|
||||
repo_path / "docker" / "packager",
|
||||
build_output_path,
|
||||
cargo_cache.directory,
|
||||
version.string,
|
||||
docker_image.version,
|
||||
official_flag,
|
||||
@ -214,9 +207,7 @@ def main():
|
||||
f"sudo chown -R ubuntu:ubuntu {build_output_path}", shell=True
|
||||
)
|
||||
logging.info("Build finished as %s, log path %s", build_status, log_path)
|
||||
if build_status == SUCCESS:
|
||||
cargo_cache.upload()
|
||||
else:
|
||||
if build_status != SUCCESS:
|
||||
# We check if docker works, because if it's down, it's infrastructure
|
||||
try:
|
||||
subprocess.check_call("docker info", shell=True)
|
||||
|
Loading…
Reference in New Issue
Block a user