Skip to content

Commit 020d6f5

Browse files
Merge pull request #1200 from element-hq/gaelg/pyhelm_cache_debug
pyhelm: log more from cache
2 parents 45c9f40 + 443517e commit 020d6f5

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

.github/workflows/pytest.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ jobs:
9393
- name: List pyhelm cache contents
9494
run: |
9595
echo "Listing contents of .pyhelm_cache:"
96+
echo "GITHUB_WORKSPACE is $GITHUB_WORKSPACE, pwd is $(pwd)"
9697
ls -la .pyhelm_cache || echo "Cache directory does not exist or is empty"
9798
9899
- name: Login to Dockerhub

newsfragments/1200.internal.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CI: Log the content of the cache when `pyhelm` cache fails to hit.

tests/integration/lib/utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ async def chart_from_ci_cache(helm_client: pyhelm3.Client, chart_ref: str) -> py
289289
else:
290290
raise FileNotFoundError(
291291
f"Could not find chart {chart_ref} in cache at {cached_ref}. "
292+
f"The cache {helm_cache} contains : {helm_cache.glob('*')}"
292293
f"Remote fetch also failed with error: {e}"
293294
) from e
294295
else:

0 commit comments

Comments
 (0)