From 173440be9b42c045d0b3f9a3c0d28ec6f1661023 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Mar=C3=ADn?= Date: Thu, 4 Apr 2024 19:22:46 +0200 Subject: [PATCH] Remove rust cache --- tests/ci/build_check.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/tests/ci/build_check.py b/tests/ci/build_check.py index f2a2ffc667b..6e4ef3590e3 100644 --- a/tests/ci/build_check.py +++ b/tests/ci/build_check.py @@ -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)