Skip to content

[heft] Jest build stage - Failed to read cache file  #2800

Open
@ghost

Description

Summary

Often when running heft test in a terminal, we get the following error when Jest test are running:

image

We don't get this error when running the tests via GitHub Actions. It seems to only present itself when there is another local process locking file permissions. In our particular case, we run GitKraken. Closing this and re-running the tests seems to resolve the issue.

Repro steps

  1. Run GitKraken and open the repo that contains the tests
  2. Run heft test --clean
  3. Wait for the tests to run and reproduce the above error

Standard questions

Please answer these questions to help us investigate your issue more quickly:

Question Answer
@rushstack/heft version? 0.34.3
Operating system? Windows 10
Would you consider contributing a PR? Yes
Node.js version (node -v)? 12.16.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs more infoWe can't proceed because we need a better repro or an answer to a question

    Type

    No type

    Projects

    Status

    Needs Investigation

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions