Skip to content

tools: limit checkout for lint-cpp - #66474

Open
inoway46 wants to merge 1 commit into
nodejs:mainfrom
inoway46:lint-cpp-sparse-checkout
Open

inoway46 wants to merge 1 commit into
nodejs:mainfrom
inoway46:lint-cpp-sparse-checkout

Conversation

@inoway46

@inoway46 inoway46 commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Exclude deps/v8/ and deps/openssl/ from the lint-cpp checkout, keeping other paths included by default. They account for 62% of tracked file size (434/704 MB, uncompressed). Both checkout strategies select the same 579 lint targets.

In 128 trials per variant on the same commit, average checkout time fell from 28.59s to 20.85s.

Runner Success rate Avg Min P90 P99 Max
ubuntu-slim (before) 128/128 (100%) 3m 04s 1m 57s 4m 30s 9m 06s 12m 59s
ubuntu-slim (after) 128/128 (100%) 2m 47s 1m 55s 3m 54s 6m 15s 7m 02s

Benchmark: full = before, sparse = after.

Refs: #64972 (comment)

Skip the V8 and OpenSSL vendored trees when checking out sources for
lint-cpp. Keep other paths included so new directories are checked out
by default.

Assisted-by: Codex
Signed-off-by: inoway46 <inoueyuya416@gmail.com>
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/actions

@nodejs-github-bot nodejs-github-bot added the meta Issues and PRs related to the general management of the project. label Oct 3, 2026
Comment on lines +47 to +48
!/deps/openssl/
!/deps/v8/

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A checkout limited to the directories needed by lint-cpp would retain about 103 MB and exclude 600 MB:

Exclusion candidate Size (uncompressed)
deps/openssl/ 241.9 MB
deps/v8/ 191.8 MB
deps/icu-small/ 33.2 MB
deps/crates/ 25.7 MB
deps/LIEF/ 16.9 MB
deps/npm/ 14.8 MB
deps/perfetto/ 11.3 MB
deps/simdjson/ 10.5 MB
deps/sqlite/ 10.2 MB
deps/ngtcp2/ 6.4 MB
Other files 37.5 MB
Total 600.3 MB

This PR excludes only V8 and OpenSSL: 434 MB, or 72% of the potential reduction. Keeping the list short reduces maintenance risk: if an excluded directory later becomes a lint input, Makefile's wildcard could silently skip it.

@inoway46
inoway46 marked this pull request as ready for review October 3, 2026 04:11
@aduh95 aduh95 added author ready PRs with CI started, the required approvals, and no outstanding review comments. commit-queue PRs queued for automated landing through the Commit Queue. labels Oct 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author ready PRs with CI started, the required approvals, and no outstanding review comments. commit-queue PRs queued for automated landing through the Commit Queue. meta Issues and PRs related to the general management of the project.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants