install-node: Upgrade Node.js from 22.12.0 to 22.14.0.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2025-02-26 14:24:34 -08:00
committed by Anders Kaseorg
parent c1e86a9144
commit 3af4900891
4 changed files with 5 additions and 16 deletions

View File

@@ -1,18 +1,18 @@
#!/usr/bin/env bash
set -euo pipefail
version=22.12.0
version=22.14.0
arch="$(uname -m)"
case $arch in
x86_64)
tarball="node-v$version-linux-x64.tar.xz"
sha256=22982235e1b71fa8850f82edd09cdae7e3f32df1764a9ec298c72d25ef2c164f
sha256=69b09dba5c8dcb05c4e4273a4340db1005abeafe3927efda2bc5b249e80437ec
;;
aarch64)
tarball="node-v$version-linux-arm64.tar.xz"
sha256=8cfd5a8b9afae5a2e0bd86b0148ca31d2589c0ea669c2d0b11c132e35d90ed68
sha256=08bfbf538bad0e8cbb0269f0173cca28d705874a67a22f60b57d99dc99e30050
;;
esac

View File

@@ -36,9 +36,4 @@ def setup_node_modules(production: bool = DEFAULT_PRODUCTION) -> None:
"--prefer-offline",
*(["--prod"] if production else []),
],
# https://github.com/nodejs/corepack/issues/612
env={
**os.environ,
"COREPACK_INTEGRITY_KEYS": '{"npm":[{"expires":"2025-01-29T00:00:00.000Z","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","keytype":"ecdsa-sha2-nistp256","scheme":"ecdsa-sha2-nistp256","key":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE1Olb3zMAFFxXKHiIkQO5cJ3Yhl5i6UPp+IhuteBJbuHcA5UogKo0EWtlWwW6KSaKoTNEYL7JlCQiVnkhBktUgg=="},{"expires":null,"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","keytype":"ecdsa-sha2-nistp256","scheme":"ecdsa-sha2-nistp256","key":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEY6Ya7W++7aUPzvMTrezH6Ycx3c+HOKYCcNGybJZSCJq/fd7Qa8uuAKtdIkUQtQiEKERhAmE5lMMJhP8OkDOa2g=="}]}',
},
)

View File

@@ -390,13 +390,7 @@ def run_tests_via_node_js() -> int:
# reports. Running under nyc is slower and creates funny
# tracebacks, so you generally want to get coverage reports only
# after making sure tests will pass.
node_tests_cmd = [
"node",
"--stack-trace-limit=100",
"--experimental-require-module",
"--no-warnings=ExperimentalWarning",
INDEX_JS,
]
node_tests_cmd = ["node", "--stack-trace-limit=100", INDEX_JS]
if individual_files:
# If we passed a specific set of tests, run in serial mode.
global parallel

View File

@@ -49,4 +49,4 @@ API_FEATURE_LEVEL = 359 # Last bumped for not adjusting bot subscriptions on ow
# historical commits sharing the same major version, in which case a
# minor version bump suffices.
PROVISION_VERSION = (318, 0) # bumped 2025-02-25 to remove py3dns
PROVISION_VERSION = (318, 1) # bumped 2025-02-26 to upgrade Node.js