-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
fix(misc): various inference plugins caching should track changes #23315
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 092b574. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 6 targets
Sent with 💌 from NxCloud. |
8156a6b
to
a25ab36
Compare
a25ab36
to
31adc37
Compare
packages/gradle/src/plugin/nodes.ts
Outdated
const targetsCache = existsSync(cachePath) ? readTargetsCache() : {}; | ||
|
||
export const calculatedTargets: Record< | ||
export const targetsCache = readTargetsCache(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No export
@@ -1063,6 +1064,9 @@ describe(`Plugin: ${PLUGIN_NAME}`, () => { | |||
}), | |||
'libs/my-lib/package.json': `{}`, | |||
}); | |||
|
|||
await new Promise((res) => setTimeout(res, 2000)); // wait for the file to be created |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rm
6157ceb
to
092b574
Compare
…3315) <!-- 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` --> ## Current Behavior Plugin's cache entries overwrite each other if multiple instances of the same plugin are running. They also don't remember previous cache states. ## Expected Behavior Plugin's caches grow as changes are made, and don't overwrite previous entries. ## Related Issue(s) <!-- Please link the issue being fixed so it gets closed when this is merged. --> Fixes # (cherry picked from commit a4a185f)
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Current Behavior
Plugin's cache entries overwrite each other if multiple instances of the same plugin are running. They also don't remember previous cache states.
Expected Behavior
Plugin's caches grow as changes are made, and don't overwrite previous entries.
Related Issue(s)
Fixes #