Skip to content

CLDSRV-955: Cache node_modules instead of yarn download cache#6227

Merged
bert-e merged 2 commits into
development/9.3from
improvement/CLDSRV-955/node-modules-cache
Jul 15, 2026
Merged

CLDSRV-955: Cache node_modules instead of yarn download cache#6227
bert-e merged 2 commits into
development/9.3from
improvement/CLDSRV-955/node-modules-cache

Conversation

@tcarmet

@tcarmet tcarmet commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Speeds up CI by caching the installed dependency tree between runs instead of only the package-manager download cache. Because several dependencies compile TypeScript at install time, previous runs re-cloned, recompiled and relinked them on every job despite a "cache hit"; now a warm cache skips that work entirely and jobs reuse the prior install.

Measured impact (warm run vs a development/9.3 baseline)

Job dependency setup before after (warm) job wall time
lint 61s 9s 116s → 49s
unit-tests 54s 10s 114s → 64s
file-ft-tests 84s 41s 750s → 722s
  • ~43–52s of dependency setup saved per job, across ~15 jobs (4 inline + ~11 functional via the setup-ci composite action).
  • Jobs run in parallel, so end-to-end wall time drops modestly (critical-path bound, ~30–40s), but total CI compute falls ~10 min per run and the short feedback jobs (lint, unit) are >2× faster.
  • Cache key is ${{ runner.os }}-node-modules-${{ hashFiles('yarn.lock') }}; a lockfile bump invalidates it and the next run repopulates.

See the pinned comparison comment for full details.

@bert-e

bert-e commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Hello tcarmet,

My role is to assist you with the merge of this
pull request. Please type @bert-e help to get information
on this process, or consult the user documentation.

Available options
name description privileged authored
/after_pull_request Wait for the given pull request id to be merged before continuing with the current one.
/bypass_author_approval Bypass the pull request author's approval
/bypass_build_status Bypass the build and test status
/bypass_commit_size Bypass the check on the size of the changeset TBA
/bypass_incompatible_branch Bypass the check on the source branch prefix
/bypass_jira_check Bypass the Jira issue check
/bypass_peer_approval Bypass the pull request peers' approval
/bypass_leader_approval Bypass the pull request leaders' approval
/approve Instruct Bert-E that the author has approved the pull request. ✍️
/create_pull_requests Allow the creation of integration pull requests.
/create_integration_branches Allow the creation of integration branches.
/no_octopus Prevent Wall-E from doing any octopus merge and use multiple consecutive merge instead
/unanimity Change review acceptance criteria from one reviewer at least to all reviewers
/wait Instruct Bert-E not to run until further notice.
Available commands
name description privileged
/help Print Bert-E's manual in the pull request.
/status Print Bert-E's current status in the pull request TBA
/clear Remove all comments from Bert-E from the history TBA
/retry Re-start a fresh build TBA
/build Re-start a fresh build TBA
/force_reset Delete integration branches & pull requests, and restart merge process from the beginning.
/reset Try to remove integration branches unless there are commits on them which do not appear on the source branch.

Status report is not available.

@bert-e

bert-e commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Incorrect fix version

The Fix Version/s in issue CLDSRV-955 contains:

  • None

Considering where you are trying to merge, I ignored possible hotfix versions and I expected to find:

  • 9.3.14

  • 9.4.0

Please check the Fix Version/s of CLDSRV-955, or the target
branch of this pull request.

@codecov

codecov Bot commented Jul 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.96%. Comparing base (055ae1b) to head (b9c4715).
⚠️ Report is 2 commits behind head on development/9.3.
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph
see 2 files with indirect coverage changes

@@                 Coverage Diff                 @@
##           development/9.3    #6227      +/-   ##
===================================================
+ Coverage            84.93%   84.96%   +0.02%     
===================================================
  Files                  206      206              
  Lines                13366    13366              
===================================================
+ Hits                 11353    11356       +3     
+ Misses                2013     2010       -3     
Flag Coverage Δ
file-ft-tests 68.38% <ø> (ø)
file-ft-tests-null-compat 68.90% <ø> (ø)
kmip-ft-tests 28.28% <ø> (ø)
mongo-v0-ft-tests 69.62% <ø> (ø)
mongo-v1-ft-tests 69.62% <ø> (+<0.01%) ⬆️
multiple-backend 36.77% <ø> (ø)
s3c-ft-tests-v0 64.11% <ø> (ø)
s3c-ft-tests-v0-null-compat 64.17% <ø> (ø)
s3c-ft-tests-v1 64.13% <ø> (+0.03%) ⬆️
sur-tests 36.64% <ø> (ø)
sur-tests-inflights 37.69% <ø> (+0.02%) ⬆️
unit 70.50% <ø> (ø)
utapi-v2-tests 34.55% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@tcarmet tcarmet marked this pull request as ready for review July 10, 2026 00:04
Comment thread .github/actions/setup-ci/action.yaml Outdated
@bert-e

bert-e commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Request integration branches

Waiting for integration branch creation to be requested by the user.

To request integration branches, please comment on this pull request with the following command:

/create_integration_branches

Alternatively, the /approve and /create_pull_requests commands will automatically
create the integration branches.

Comment thread .github/actions/setup-ci/action.yaml Outdated
tcarmet added 2 commits July 15, 2026 11:40
Replace `cache: yarn` (which only caches the yarn download dir) with an
actions/cache on node_modules keyed by the yarn.lock hash, and make the
yarn install / typescript steps conditional on a cache miss. Because the
git dependencies compile TypeScript at install time, a warm cache now
skips the clone, tsc build and relink entirely.

Applied to the setup-ci composite action (used by all functional jobs)
and the lint, async-migration-report, unit-tests and cleanup-gcp-buckets
jobs.
The prettier check formats whole changed files; touching action.yaml
brought its pre-existing double-quoted name/description into scope.
Reformat them to single quotes to match the prettier style.
@tcarmet tcarmet force-pushed the improvement/CLDSRV-955/node-modules-cache branch from 8b6ef65 to b9c4715 Compare July 15, 2026 18:40
@tcarmet

tcarmet commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

/approve

@bert-e

bert-e commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Integration data created

I have created the integration data for the additional destination branches.

The following branches will NOT be impacted:

  • development/7.10
  • development/7.4
  • development/7.70
  • development/8.8
  • development/9.0
  • development/9.1
  • development/9.2

You can set option create_pull_requests if you need me to create
integration pull requests in addition to integration branches, with:

@bert-e create_pull_requests

The following options are set: approve

@bert-e

bert-e commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Build failed

The build for commit did not succeed in branch improvement/CLDSRV-955/node-modules-cache

The following options are set: approve

@bert-e bert-e merged commit b9c4715 into development/9.3 Jul 15, 2026
106 of 109 checks passed
@bert-e

bert-e commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

I have successfully merged the changeset of this pull request
into targetted development branches:

  • ✔️ development/9.3

  • ✔️ development/9.4

The following branches have NOT changed:

  • development/7.10
  • development/7.4
  • development/7.70
  • development/8.8
  • development/9.0
  • development/9.1
  • development/9.2

This pull request did not target the following hotfix branch(es) so they
were left untouched:

  • hotfix/7.9.0
  • hotfix/7.70.11
  • hotfix/7.70.21
  • hotfix/7.4.7
  • hotfix/7.10.2
  • hotfix/7.2.0
  • hotfix/7.4.10
  • hotfix/7.70.51
  • hotfix/7.10.0
  • hotfix/8.8.45
  • hotfix/7.10.8
  • hotfix/6.4.7
  • hotfix/9.0.32
  • hotfix/7.4.2
  • hotfix/7.4.4
  • hotfix/7.70.45
  • hotfix/9.2.24
  • hotfix/7.10.30
  • hotfix/7.10.27
  • hotfix/7.4.0
  • hotfix/7.7.0
  • hotfix/7.10.3
  • hotfix/7.4.8
  • hotfix/9.0.7
  • hotfix/7.8.0
  • hotfix/7.70.73
  • hotfix/7.4.6
  • hotfix/7.10.28
  • hotfix/7.6.0
  • hotfix/7.4.3
  • hotfix/7.10.4
  • hotfix/7.4.5
  • hotfix/7.4.1
  • hotfix/7.10.1
  • hotfix/9.2.36
  • hotfix/7.10.15
  • hotfix/7.10.49
  • hotfix/7.4.9

Please check the status of the associated issue CLDSRV-955.

Goodbye tcarmet.

The following options are set: approve

@bert-e bert-e deleted the improvement/CLDSRV-955/node-modules-cache branch July 15, 2026 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants