Skip to content

Commit dcad455

Browse files
committed
ci: add some comments about differences in artifacts paths
1 parent f2859a5 commit dcad455

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

ci/defs/defs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
from praktika import Artifact, Docker, Job, Secret
22
from praktika.utils import MetaClasses, Utils
33

4-
TEMP_DIR = f"{Utils.cwd()}/ci/tmp" # == Settings.TEMP_DIR
4+
# i.e. "ClickHouse/ci/tmp"
5+
TEMP_DIR = f"{Utils.cwd()}/ci/tmp" # == _Settings.TEMP_DIR != env_helper.TEMP_PATH
56

67

78
class RunnerLabels:

tests/ci/env_helper.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
ROOT_DIR = git_root
1010
IS_CI = bool(os.getenv("CI"))
1111
IS_NEW_CI = bool(int(os.getenv("PRAKTIKA", "0")))
12+
# i.e. "ClickHouse/tests/ci/tmp"
1213
TEMP_PATH = os.getenv("TEMP_PATH", p.abspath(p.join(module_dir, "./tmp")))
1314
REPORT_PATH = f"{TEMP_PATH}/reports"
1415
# FIXME: latest should not be used in CI, set temporary for transition to "docker with digest as a tag"

tests/ci/fast_test_check.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ def main():
9292

9393
repo_path = Path(REPO_COPY)
9494

95+
# i.e. "ClickHouse/ci/tmp"
96+
#
97+
# Note, it is not the same as "TEMP_PATH", since we want to upload binaries
98+
# to the "clickhouse-builds" bucket from the Runner::_post_run, not the
99+
# "S3_REPORT_BUCKET_NAME" via HtmlRunnerHooks::post_run
95100
build_output_temp_path = repo_path / "ci" / "tmp"
96101
build_output_temp_path.mkdir(parents=True, exist_ok=True)
97102
build_output_path = build_output_temp_path / "build"

0 commit comments

Comments
 (0)