Skip to content

Make flink download caching conditional on a cache miss#46

Open
tomncooper wants to merge 1 commit intoapache:ci_utilsfrom
tomncooper:cache-after-miss-only
Open

Make flink download caching conditional on a cache miss#46
tomncooper wants to merge 1 commit intoapache:ci_utilsfrom
tomncooper:cache-after-miss-only

Conversation

@tomncooper
Copy link
Copy Markdown

Currently the Java CI GH Action workflow will try to save the Flink distribution download to the cache, even if it was successfully retrieved in the earlier cache fetch step.

This is harmless, but leads to warnings in the UI and would be better if it was skipped.

Currently the Java GH Actions CI workflow will try to save the Flink
dist download even if it was successfully retrieved in the earlier
cache fetch step.

This is harmless but leads to warnings in the UI and would be better
if it was skipped.

Signed-off-by: Thomas Cooper <code@tomcooper.dev>
@tomncooper tomncooper force-pushed the cache-after-miss-only branch from cd82949 to 91ccf61 Compare July 2, 2025 14:05
Comment thread .github/workflows/ci.yml

- name: Cache Flink binary
if: ${{ env.cache_binary == 'true' }}
if: steps.restore-cache-flink.outputs.cache-hit != 'true'
Copy link
Copy Markdown

@davidradl davidradl Feb 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should do ${{ env.cache_binary == 'true' }} as well - so we only do caching processing if caching is specified? i.e. and these 2 conditions with ${{ env.cache_binary == 'true' }} first .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants