Skip to content

Commit 45b79c1

Browse files
committed
ci(sea): cache ~/.npm in kernel-e2e (mirror main.yml) so npm ci doesn't hit unreachable dev proxy
Two package-lock entries (flatbuffers etc.) resolve to npm-proxy.dev.databricks.com, which the protected runner can't reach (ECONNRESET). main.yml's e2e job only succeeds because it caches ~/.npm — those tarballs load from the warm cache, never fetched. kernel-e2e had no such cache, so npm ci failed deterministically. Add the identical actions/cache step (same key) before npm ci. The driver has a single root package-lock.json and the kernel checkout adds none, so hashFiles('**/package-lock.json') matches main.yml's key exactly → restores main's warmed cache. Confirmed end-to-end up to this point: App token + private-kernel checkout + JFrog now all pass; npm ci was the only remaining failure. Co-authored-by: Isaac Signed-off-by: Madhavendra Rathore <madhavendra.rathore@databricks.com>
1 parent 3ade6d9 commit 45b79c1

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/kernel-e2e.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,24 @@ jobs:
281281
EOF
282282
echo "CARGO_REGISTRIES_JFROG_TOKEN=Bearer ${JFROG_ACCESS_TOKEN}" >> "$GITHUB_ENV"
283283
284+
# Restore the same `~/.npm` cache main.yml's e2e job warms. A couple of
285+
# lockfile entries resolve to `npm-proxy.dev.databricks.com` (a dev proxy
286+
# the protected runner can't reach); they only ever load from this cache.
287+
# The key matches main.yml exactly (driver has a single root
288+
# package-lock.json; the kernel checkout adds none), so this restores
289+
# main's warmed cache and `npm ci` never hits the unreachable proxy.
290+
- name: Cache node modules
291+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
292+
env:
293+
cache-name: cache-node-modules
294+
with:
295+
path: ~/.npm
296+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
297+
restore-keys: |
298+
${{ runner.os }}-build-${{ env.cache-name }}-
299+
${{ runner.os }}-build-
300+
${{ runner.os }}-
301+
284302
- name: Install driver deps
285303
run: npm ci
286304

0 commit comments

Comments
 (0)