-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
build: Improve CI cache #7141
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
build: Improve CI cache #7141
Conversation
@@ -47,7 +47,6 @@ env: | |||
NX_CACHE_RESTORE_KEYS: | | |||
nx-Linux-${{ github.ref }}-${{ github.event.inputs.commit || github.sha }} | |||
nx-Linux-${{ github.ref }} | |||
nx-Linux-refs/heads/develop |
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.
Note: I figured this isn't actually necessary, because the way cache works is that it only ever fetches from the current branch OR the default branch (=develop), so it can't even get the cache from a different branch. so should be all good without this.
Damn haha |
Replay SDK metrics 🚀
develop |
Revision | LCP | CLS | CPU | JS heap avg | JS heap max | netTx | netRx | netCount | netTime |
---|---|---|---|---|---|---|---|---|---|
c3806eb | +79.85 ms | -0.00 ms | +12.10 pp | +1.05 MB | +2.16 MB | +2.54 kB | +41 B | +1 | +93.58 ms |
b49d9f7 | +52.79 ms | -0.00 ms | +15.46 pp | +1.07 MB | +2.21 MB | +2.59 kB | +41 B | +1 | +70.48 ms |
7e57cb7 | +47.89 ms | +0.00 ms | +10.59 pp | +1.09 MB | +2.21 MB | +2.59 kB | +41 B | +1 | +72.93 ms |
538c3a6 | +63.63 ms | +0.00 ms | +14.14 pp | +1.07 MB | +2.16 MB | +2.6 kB | +41 B | +1 | +112.08 ms |
fc7b716 | +52.44 ms | +0.00 ms | +14.74 pp | +1.09 MB | +2.21 MB | +2.68 kB | +41 B | +1 | +89.64 ms |
Last updated: Fri, 10 Feb 2023 14:21:32 GMT
@@ -25,7 +25,7 @@ jobs: | |||
# Parse version from head branch | |||
text: ${{ github.head_ref }} | |||
# match: preprare-release/xx.xx.xx | |||
regex: '^preprare-release\/(\d+\.\d+\.\d+)$' | |||
regex: '^prepare-release\/(\d+\.\d+\.\d+)$' |
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.
Oops, there was a typo here, so it didn't trigger this before.
This PR does some small adjustments to our cache setup:
actions/cache/restore
in most places, as actually after the initial runs we only want to read from the cache, never update it.node_modules
. I guess it can lead to cache conflicts otherwise, as we cache node_modules for the dependencies, and node_modules/.cache/nx for Nx. Now, the Nx cache is in.nxcache
in the root dir.