Skip to content

Conversation

@mydea
Copy link
Member

@mydea mydea commented Feb 10, 2023

This PR does some small adjustments to our cache setup:

  1. Use actions/cache/restore in most places, as actually after the initial runs we only want to read from the cache, never update it.
  2. Update the nx cache location to outside of 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.

NX_CACHE_RESTORE_KEYS: |
nx-Linux-${{ github.ref }}-${{ github.event.inputs.commit || github.sha }}
nx-Linux-${{ github.ref }}
nx-Linux-refs/heads/develop
Copy link
Member Author

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.

@lforst
Copy link
Contributor

lforst commented Feb 10, 2023

Use actions/cache/restore in most places, as actually after the initial runs we only want to read from the cache, never update it.

Damn haha

@github-actions
Copy link
Contributor

Replay SDK metrics 🚀

    Plain +Sentry +Replay
Revision Value Value Diff Ratio Value Diff Ratio
LCP This PR 4827b60 98.98 ms 132.16 ms +33.18 ms +33.53 % 157.65 ms +58.67 ms +59.28 %
Previous c3806eb 70.01 ms 98.07 ms +28.06 ms +40.07 % 149.86 ms +79.85 ms +114.05 %
CLS This PR 4827b60 0.06 ms 0.06 ms -0.00 ms -0.10 % 0.06 ms +0.00 ms +0.39 %
Previous c3806eb 0.06 ms 0.06 ms -0.00 ms -0.12 % 0.06 ms -0.00 ms -0.16 %
CPU This PR 4827b60 23.99 % 22.95 % -1.04 pp -4.32 % 42.36 % +18.38 pp +76.62 %
Previous c3806eb 16.26 % 14.68 % -1.57 pp -9.67 % 28.36 % +12.10 pp +74.45 %
JS heap avg This PR 4827b60 1.94 MB 2.06 MB +118.22 kB +6.09 % 3.01 MB +1.07 MB +55.38 %
Previous c3806eb 1.94 MB 1.99 MB +44.35 kB +2.28 % 2.99 MB +1.05 MB +53.81 %
JS heap max This PR 4827b60 2.31 MB 2.58 MB +274.62 kB +11.91 % 4.53 MB +2.22 MB +96.44 %
Previous c3806eb 2.3 MB 2.56 MB +252.17 kB +10.95 % 4.46 MB +2.16 MB +93.75 %
netTx This PR 4827b60 0 B 0 B 0 B n/a 2.6 kB +2.6 kB n/a
Previous c3806eb 0 B 0 B 0 B n/a 2.54 kB +2.54 kB n/a
netRx This PR 4827b60 0 B 0 B 0 B n/a 41 B +41 B n/a
Previous c3806eb 0 B 0 B 0 B n/a 41 B +41 B n/a
netCount This PR 4827b60 0 0 0 n/a 1 +1 n/a
Previous c3806eb 0 0 0 n/a 1 +1 n/a
netTime This PR 4827b60 0.00 ms 0.00 ms 0.00 ms n/a 91.21 ms +91.21 ms n/a
Previous c3806eb 0.00 ms 0.00 ms 0.00 ms n/a 93.58 ms +93.58 ms n/a

Previous results on branch: develop

RevisionLCPCLSCPUJS heap avgJS heap maxnetTxnetRxnetCountnetTime
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

*) pp - percentage points - an absolute difference between two percentages.
Last updated: Fri, 10 Feb 2023 14:21:32 GMT

text: ${{ github.head_ref }}
# match: preprare-release/xx.xx.xx
regex: '^preprare-release\/(\d+\.\d+\.\d+)$'
regex: '^prepare-release\/(\d+\.\d+\.\d+)$'
Copy link
Member Author

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.

@mydea mydea merged commit d604022 into develop Feb 14, 2023
@mydea mydea deleted the fn/small-ci-fixes branch February 14, 2023 08:13
AbhiPrasad pushed a commit that referenced this pull request Feb 14, 2023
ramchaik pushed a commit to ramchaik/sentry-javascript that referenced this pull request Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants