Skip to content

build: Improve CI cache - #7141

Merged
mydea merged 3 commits into
developfrom
fn/small-ci-fixes
Feb 14, 2023
Merged

build: Improve CI cache#7141
mydea merged 3 commits into
developfrom
fn/small-ci-fixes

Conversation

@mydea

Copy link
Copy Markdown
Member

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
Copy Markdown
MemberAuthor

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
Copy Markdown
Contributor

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
Copy Markdown
Contributor

Replay SDK metrics 🚀

Plain+Sentry+Replay
RevisionValueValueDiffRatioValueDiffRatio
LCPThis PR 4827b6098.98 ms132.16 ms+33.18 ms+33.53 %157.65 ms+58.67 ms+59.28 %
Previous c3806eb70.01 ms98.07 ms+28.06 ms+40.07 %149.86 ms+79.85 ms+114.05 %
CLSThis PR 4827b600.06 ms0.06 ms-0.00 ms-0.10 %0.06 ms+0.00 ms+0.39 %
Previous c3806eb0.06 ms0.06 ms-0.00 ms-0.12 %0.06 ms-0.00 ms-0.16 %
CPUThis PR 4827b6023.99 %22.95 %-1.04 pp-4.32 %42.36 %+18.38 pp+76.62 %
Previous c3806eb16.26 %14.68 %-1.57 pp-9.67 %28.36 %+12.10 pp+74.45 %
JS heap avgThis PR 4827b601.94 MB2.06 MB+118.22 kB+6.09 %3.01 MB+1.07 MB+55.38 %
Previous c3806eb1.94 MB1.99 MB+44.35 kB+2.28 %2.99 MB+1.05 MB+53.81 %
JS heap maxThis PR 4827b602.31 MB2.58 MB+274.62 kB+11.91 %4.53 MB+2.22 MB+96.44 %
Previous c3806eb2.3 MB2.56 MB+252.17 kB+10.95 %4.46 MB+2.16 MB+93.75 %
netTxThis PR 4827b600 B0 B0 Bn/a2.6 kB+2.6 kBn/a
Previous c3806eb0 B0 B0 Bn/a2.54 kB+2.54 kBn/a
netRxThis PR 4827b600 B0 B0 Bn/a41 B+41 Bn/a
Previous c3806eb0 B0 B0 Bn/a41 B+41 Bn/a
netCountThis PR 4827b60000n/a1+1n/a
Previous c3806eb000n/a1+1n/a
netTimeThis PR 4827b600.00 ms0.00 ms0.00 msn/a91.21 ms+91.21 msn/a
Previous c3806eb0.00 ms0.00 ms0.00 msn/a93.58 ms+93.58 msn/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
Copy Markdown
MemberAuthor

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 developFeb 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 freeto 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.

2 participants

@mydea@lforst