My interpretation of the fail-on-cache-miss feature on the actions/cache and actions/cache/restore actions is that the workflow should stop and be considered a fail if there is no cache found with the given key.
I'm seeing evidence in workflows where using the actions/cache/restore action will not fail even if this option is set to true.
Snippet from the workflow file:
Acceptance-Linux:
name: "Acceptance tests (Linux)"
needs: [Build-Snapshot-Artifacts]
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 #v4.1.0
- name: Bootstrap environment
uses: ./.github/actions/bootstrap
- name: Download snapshot build
uses: actions/cache/restore@704facf57e6136b1bc63b828d79edcd491f0ee84 #v3.3.2
with:
path: snapshot
fail-on-cache-miss: true
key: snapshot-build-${{ github.run_id }}
- name: Run comparison tests (Linux)
run: make compare-linux
Evidence that the workflow continues past the failed cache restore (failing on the subsequent step, which it should have never reached.

My interpretation of the
fail-on-cache-missfeature on theactions/cacheandactions/cache/restoreactions is that the workflow should stop and be considered a fail if there is no cache found with the given key.I'm seeing evidence in workflows where using the
actions/cache/restoreaction will not fail even if this option is set totrue.Snippet from the workflow file:
Evidence that the workflow continues past the failed cache restore (failing on the subsequent step, which it should have never reached.
