Skip to content

Commit 40f3308

Browse files
escapedcatclaude
andauthored
ci: install git in stock-Ubuntu baseline job (#4847)
The nodeJsBaselineAptCompatibility job runs `apt install --yes nodejs npm` in an ubuntu:26.04 container. The test suite bootstraps throwaway repos via `git init`, and the git binary only ever arrived as an apt Recommends of the npm chain — never a hard dependency. On 2026-06-25 that broke: with the identical image digest and identical nodejs 22.22.1 / npm 9.2.0, apt stopped installing Recommends (logging `Recommended packages: build-essential git ...` and skipping them), so git was absent and ~189 git-dependent tests errored. Same commit had passed the day before — purely an environment shift in the fast-moving 26.04 archive. Install git explicitly so the job no longer relies on an un-guaranteed Recommends default. This stays in the spirit of the job (stock apt packages, no actions/setup-node); git is a standard system tool, not a Node shortcut. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent d4a7962 commit 40f3308

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/CI.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,15 @@ jobs:
113113
apt update --yes
114114
115115
# NOTE: do not change the below with an `actions/setup-node` step! or it
116-
# would make this CI job entirely pointless
117-
apt install --yes nodejs npm
116+
# would make this CI job entirely pointless.
117+
#
118+
# `git` is needed because the test suite bootstraps throwaway repos via
119+
# `git init`. It used to arrive as an apt Recommends of the npm chain,
120+
# but on ubuntu:26.04 apt stopped pulling that recommend in (same image
121+
# digest, same node/npm versions), so install it explicitly. The
122+
# checkout step runs before this and uses the REST API fallback either
123+
# way, which is fine — the tests create their own repos.
124+
apt install --yes nodejs npm git
118125
119126
# Ubuntu's bundled corepack (with stock Node) trips on the dynamic
120127
# ESM imports pnpm 11 uses at launch (ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING).

0 commit comments

Comments
 (0)