Skip to content

Commit

Permalink
docs(nx-dev): update troubleshoot-cache-misses.md (#28292)
Browse files Browse the repository at this point in the history
<!-- Please make sure you have read the submission guidelines before
posting an PR -->
<!--
https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md#-submitting-a-pr
-->

<!-- Please make sure that your commit message follows our format -->
<!-- Example: `fix(nx): must begin with lowercase` -->

<!-- If this is a particularly complex change or feature addition, you
can request a dedicated Nx release for this pull request branch. Mention
someone from the Nx team or the `@nrwl/nx-pipelines-reviewers` and they
will confirm if the PR warrants its own release for testing purposes,
and generate it for you if appropriate. -->

## Current Behavior
<!-- This is the behavior we have today -->

## Expected Behavior
<!-- This is the behavior we should expect with the changes in this PR
-->

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #
  • Loading branch information
meeroslav authored Feb 20, 2025
1 parent 320536b commit a94bc76
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions docs/shared/recipes/troubleshoot-cache-misses.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ Problem: A task is being executed when you expect it to be replayed from the cac

- Make sure your repo is [connected to Nx Cloud](/ci/features/remote-cache)
- Click on the run details link that is printed in the terminal after you run a task
- Expand a task that had a cache miss
- Click "Check For Near Misses" to see other similar tasks
- Copy one of those similar tasks' run details links (or a run details link from another local run)
- Click the "Compare to Similar Tasks" link in the task details on the run details page
- Paste the other run details link you copied into the form to see exactly why the two tasks were different.
- Note: Nx Cloud does not have access to your actual source code, so it can only tell you which projects were different, not the exact git diff of the source code.
- Click on the task with cache miss that you want to investigate
- Click the "Compare to similar tasks" link in the top right corner of the task details
- Select one of the similar tasks from the list in the "Compare to" section (or paste a URL of another run)
- Nx Cloud will compare the input details of both tasks and will highlight all the differences
- Note: Nx Cloud cannot access your source code, so it can only tell you which inputs are different based on their saved content hash, but not the exact git diff of the source code.

0 comments on commit a94bc76

Please sign in to comment.