ci: invalidate nx cloud cache for different operating system#1080
Merged
matejchalk merged 1 commit intomainfrom Aug 25, 2025
Merged
ci: invalidate nx cloud cache for different operating system#1080matejchalk merged 1 commit intomainfrom
matejchalk merged 1 commit intomainfrom
Conversation
|
View your CI Pipeline Execution ↗ for commit 7b5c5be
☁️ Nx Cloud last updated this comment at |
@code-pushup/ci
@code-pushup/cli
@code-pushup/create-cli
@code-pushup/models
@code-pushup/nx-plugin
@code-pushup/core
@code-pushup/coverage-plugin
@code-pushup/eslint-plugin
@code-pushup/js-packages-plugin
@code-pushup/jsdocs-plugin
@code-pushup/lighthouse-plugin
@code-pushup/typescript-plugin
@code-pushup/utils
commit: |
Contributor
Code PushUp🤨 Code PushUp report has both improvements and regressions – compared current commit 6aafd5a with previous commit 97c31f8. 🕵️ See full comparison in Code PushUp portal 🔍 🏷️ Categories👎 1 group regressed, 👍 1 audit improved, 👎 3 audits regressed, 13 audits changed without impacting score🗃️ Groups
20 other groups are unchanged. 🛡️ Audits593 other audits are unchanged. |
BioPhoton
reviewed
Aug 22, 2025
BioPhoton
reviewed
Aug 22, 2025
329a01d to
7b5c5be
Compare
Collaborator
I'm curious how you tested it. |
vmasek
approved these changes
Aug 25, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We run CI jobs on different operating systems to ensure platform compatibility. Now that Nx Cloud is in play, though, we need to make sure cache isn't reused between them - the same source code may pass on Linux and fail on Windows, for example.
I've set the
os.platform()value (along withnode -v) as a shared global, so that Nx uses this info in its cache keys. I've tested the command on both Linux and Windows to make sure it works everywhere (not easy to figure out, different shells, quote handling etc. 😅), came up withnode -e "console.log(require('os').platform())".