Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fingerprint cache is not being saved (fingerprint-db) #336

Open
alansikora opened this issue Feb 26, 2025 · 2 comments
Open

Fingerprint cache is not being saved (fingerprint-db) #336

alansikora opened this issue Feb 26, 2025 · 2 comments

Comments

@alansikora
Copy link

alansikora commented Feb 26, 2025

Description of the bug

Fingerprint cache (fingerprint-db) is not found.

To Reproduce

Run a simple Github Action with:

jobs:
  fingerprint:
    runs-on: ubuntu-latest
    # REQUIRED: limit concurrency when pushing main(default) branch to prevent conflict for this action to update its fingerprint database
    concurrency: fingerprint-${{ github.event_name != 'pull_request' && 'main' || github.run_id }}
    permissions:
      # REQUIRED: Allow comments of PRs
      pull-requests: write # Allow comments on PRs
      # REQUIRED: Allow updating fingerprint in action caches
      actions: write
      # OPTIONAL: Allow reading of repo contents for private projects
      contents: read

    steps:
      - name: 📦 Enable corepack
        run: corepack enable

      - name: 🏗 Setup repo
        uses: actions/checkout@v4

      - name: 🏗 Setup Node
        uses: actions/setup-node@v4
        with:
          node-version: 22.14.0
          cache: yarn
          cache-dependency-path: yarn.lock

      - name: 📦 Install dependencies
        run: yarn install --immutable

      - name: Check fingerprint
        id: fingerprint
        uses: expo/expo-github-action/fingerprint@main
        with:
          working-directory: ./domain/exchange/mobile

There are not logs that would suggest a cache is being saved.

Image

Expected behavior

Cache should exist in subsequent runs.

Actual behavior

Cache does not exist in subsequent runs.

@yonitou
Copy link
Contributor

yonitou commented Feb 27, 2025

Same issue here @Kudo

@ThunbergOlle
Copy link

ThunbergOlle commented Feb 28, 2025

Same here perhaps introduced when
https://github.com/expo/expo-github-action/pull/334/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519R24 upgraded the cache pipeline.

Github Action Cache issue:
actions/cache#1556

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

No branches or pull requests

3 participants