Skip to content

Commit a0bb2e9

Browse files
committed
try again
1 parent c97a07e commit a0bb2e9

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

.github/workflows/backport_branches.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ env:
1717
# Force the stdout and stderr streams to be unbuffered
1818
PYTHONUNBUFFERED: 1
1919
DISABLE_CI_MERGE_COMMIT: ${{ vars.DISABLE_CI_MERGE_COMMIT || '0' }}
20-
DISABLE_CI_CACHE: ${{ github.event.inputs.no_cache && '1' || '0' }}
20+
DISABLE_CI_CACHE: ${{ github.event.inputs.no_cache || '0' }}
2121
CHECKOUT_REF: ${{ vars.DISABLE_CI_MERGE_COMMIT == '1' && github.event.pull_request.head.sha || '' }}
2222
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
2323
CLICKHOUSE_TEST_STAT_URL: ${{ secrets.CLICKHOUSE_TEST_STAT_URL }}

.github/workflows/master.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
env:
1717
# Force the stdout and stderr streams to be unbuffered
1818
PYTHONUNBUFFERED: 1
19-
DISABLE_CI_CACHE: ${{ github.event.inputs.no_cache && '1' || '0' }}
19+
DISABLE_CI_CACHE: ${{ github.event.inputs.no_cache || '0' }}
2020
CHECKOUT_REF: ""
2121
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
2222
CLICKHOUSE_TEST_STAT_URL: ${{ secrets.CLICKHOUSE_TEST_STAT_URL }}

.github/workflows/pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ env:
1717
# Force the stdout and stderr streams to be unbuffered
1818
PYTHONUNBUFFERED: 1
1919
DISABLE_CI_MERGE_COMMIT: ${{ vars.DISABLE_CI_MERGE_COMMIT || '0' }}
20-
DISABLE_CI_CACHE: ${{ github.event.inputs.no_cache && '1' || '0' }}
20+
DISABLE_CI_CACHE: ${{ github.event.inputs.no_cache || '0' }}
2121
CHECKOUT_REF: ${{ vars.DISABLE_CI_MERGE_COMMIT == '1' && github.event.pull_request.head.sha || '' }}
2222
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
2323
CLICKHOUSE_TEST_STAT_URL: ${{ secrets.CLICKHOUSE_TEST_STAT_URL }}

.github/workflows/release_branches.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
env:
1717
# Force the stdout and stderr streams to be unbuffered
1818
PYTHONUNBUFFERED: 1
19-
DISABLE_CI_CACHE: ${{ github.event.inputs.no_cache && '1' || '0' }}
19+
DISABLE_CI_CACHE: ${{ github.event.inputs.no_cache || '0' }}
2020
CHECKOUT_REF: ""
2121
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
2222
CLICKHOUSE_TEST_STAT_URL: ${{ secrets.CLICKHOUSE_TEST_STAT_URL }}

ci/praktika/hook_cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def fetch_record(job_name, job_digest, cache_):
6666
# implement algorithm to skip dependee jobs if dependency is not in the cache
6767
# Step 1: Fetch records concurrently
6868
fetched_records = []
69-
if os.environ.get("DISABLE_CI_CACHE", "0") == "1":
69+
if os.environ.get("DISABLE_CI_CACHE", "0") in ("1", "true"):
7070
print("NOTE: CI Cache disabled via GH Variable DISABLE_CI_CACHE=1")
7171
else:
7272
with ThreadPoolExecutor(max_workers=200) as executor:

ci/praktika/yaml_generator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ class Templates:
6161
"""
6262
TEMPLATE_ENV_CHECKOUT_REF_PR = """\
6363
DISABLE_CI_MERGE_COMMIT: ${{{{ vars.DISABLE_CI_MERGE_COMMIT || '0' }}}}
64-
DISABLE_CI_CACHE: ${{{{ github.event.inputs.no_cache && '1' || '0' }}}}
64+
DISABLE_CI_CACHE: ${{{{ github.event.inputs.no_cache || '0' }}}}
6565
CHECKOUT_REF: ${{{{ vars.DISABLE_CI_MERGE_COMMIT == '1' && github.event.pull_request.head.sha || '' }}}}\
6666
"""
6767
TEMPLATE_ENV_CHECKOUT_REF_PUSH = """\
68-
DISABLE_CI_CACHE: ${{{{ github.event.inputs.no_cache && '1' || '0' }}}}
68+
DISABLE_CI_CACHE: ${{{{ github.event.inputs.no_cache || '0' }}}}
6969
CHECKOUT_REF: ""\
7070
"""
7171
TEMPLATE_ENV_CHECKOUT_REF_DEFAULT = """\

0 commit comments

Comments
 (0)