Skip to content

tools: fix CodeQL timeouts - #67337

Open
inoway46 wants to merge 1 commit into
nodejs:mainfrom
inoway46:public-ci-runners
Open

inoway46 wants to merge 1 commit into
nodejs:mainfrom
inoway46:public-ci-runners

Conversation

@inoway46

@inoway46 inoway46 commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

The C++ CodeQL job hasn't completed in over a month, and the JavaScript one times out about half the time (example).

Moving to ubuntu-latest alone wasn't enough for C++, since building Node.js under CodeQL takes hours there too. So this switches to build-mode: none, which also makes the existing deps exclusion apply to C++.

The downside is that C++ gets analyzed without build information, so it's less precise. I think that's still better than having no results.

With this change, all three languages finish in about five minutes on my fork.

Refs: nodejs/security-wg#1599

@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 Nov 8, 2026
@inoway46
inoway46 marked this pull request as ready for review November 8, 2026 05:05
@inoway46

inoway46 commented Nov 8, 2026

Copy link
Copy Markdown
Contributor Author

CodeQL's C++ job still took over two hours in Autobuild on ubuntu-latest, so changing the runner alone may not be enough. I've opened nodejs/security-wg#1599 to discuss applying the existing deps exclusion policy to C++ analysis.

@aduh95

aduh95 commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

CodeQL aside, I don't think the small amount of timeouts is enough to justify deviating private from public. The more we deviate, the less we'll be able to notice if we break something on one repo or the other.

@inoway46

inoway46 commented Nov 8, 2026

Copy link
Copy Markdown
Contributor Author

That makes sense. I’ll leave the other jobs unchanged.

The CodeQL C++ job still hasn’t completed successfully, and I’d like to wait for feedback from the Security WG, so I’ll move this PR back to draft for now.

@inoway46
inoway46 marked this pull request as draft November 8, 2026 12:58
Use `build-mode: none` so that C++ is analyzed without building
Node.js, which did not finish on either ubuntu-slim or ubuntu-latest.
This also makes the existing `deps` exclusion apply to C++.

Use ubuntu-latest, as the JavaScript analysis also hits the
15-minute limit of ubuntu-slim.

Refs: nodejs/security-wg#1599
Refs: nodejs/security-wg#1453
Refs: nodejs#58254
Refs: nodejs#64972
Signed-off-by: inoway46 <inoueyuya416@gmail.com>
@inoway46 inoway46 changed the title tools: use ubuntu-latest for public CI jobs tools: fix CodeQL timeouts Nov 12, 2026
@inoway46
inoway46 marked this pull request as ready for review November 12, 2026 06:16
@inoway46

Copy link
Copy Markdown
Contributor Author

I've narrowed this down to the CodeQL workflow and switched it to build-mode: none, since changing the runner alone didn't fix the C++ job. The other jobs are left as they are.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

3 participants