Bump Nodejs runtime tests to Node.js 22.

PiperOrigin-RevId: 640947548
This commit is contained in:
Ayush Ranjan
2024-06-06 10:43:03 -07:00
committed by gVisor bot
parent 4bdb7e9fa0
commit e9e2a18631
7 changed files with 27 additions and 29 deletions
+2 -2
View File
@@ -526,7 +526,7 @@ steps:
- <<: *common
<<: *docker
label: ":node: NodeJS runtime tests"
command: make nodejs16.13.2-runtime-tests RUNTIME_ARGS=--directfs
command: make nodejs22.2.0-runtime-tests RUNTIME_ARGS=--directfs
parallelism: 10
agents:
<<: *platform_specific_agents
@@ -571,7 +571,7 @@ steps:
- <<: *common
<<: *docker
label: ":node: NodeJS runtime tests (goferfs)"
command: make nodejs16.13.2-runtime-tests RUNTIME_ARGS=--directfs=false
command: make nodejs22.2.0-runtime-tests RUNTIME_ARGS=--directfs=false
parallelism: 10
if: build.branch == "master"
agents:
@@ -1,20 +1,20 @@
FROM ubuntu:bionic
FROM ubuntu:jammy
RUN apt-get update && apt-get install -y \
curl \
dumb-init \
g++ \
make \
python \
python3.8
python3.10
WORKDIR /root
ARG VERSION=v16.13.2
RUN curl -o node-${VERSION}.tar.gz https://nodejs.org/dist/${VERSION}/node-${VERSION}.tar.gz
RUN tar -zxf node-${VERSION}.tar.gz
ARG VERSION=v22.2.0
RUN curl -o node-${VERSION}.tar.gz https://nodejs.org/dist/${VERSION}/node-${VERSION}.tar.gz \
&& tar -zxf node-${VERSION}.tar.gz \
&& rm -f node-${VERSION}.tar.gz
WORKDIR /root/node-${VERSION}
RUN ./configure
RUN make test-build
RUN make -j $(nproc) test-build
# Including dumb-init emulates the Linux "init" process, preventing the failure
# of tests involving worker processes.
+2 -2
View File
@@ -22,8 +22,8 @@ runtime_test(
)
runtime_test(
name = "nodejs16.13.2",
exclude_file = "exclude/nodejs16.13.2.csv",
name = "nodejs22.2.0",
exclude_file = "exclude/nodejs22.2.0.csv",
lang = "nodejs",
shard_count = most_shards,
)
+2 -2
View File
@@ -27,10 +27,10 @@ The following `make` targets will run an entire runtime test suite locally.
Note: java runtime test take 1+ hours with 16 cores.
Language | Version | Running the test suite
-------- | ------- | ----------------------------------
-------- | ------- | ---------------------------------
Go | 1.22 | `make go1.22-runtime-tests`
Java | 21 | `make java21-runtime-tests`
NodeJS | 16.13.2 | `make nodejs16.13.2-runtime-tests`
NodeJS | 22.2.0 | `make nodejs22.2.0-runtime-tests`
Php | 8.3.7 | `make php8.3.7-runtime-tests`
Python | 3.12.3 | `make python3.12.3-runtime-tests`
-15
View File
@@ -1,15 +0,0 @@
test name,bug id,comment
benchmark/test-benchmark-napi.js,,Broken test
internet/test-dgram-multicast-ssm-multi-process.js,,
internet/test-dgram-multicast-ssmv6-multi-process.js,,Broken test
internet/test-dns.js,,Broken test
internet/test-dns-any.js,,Broken test
internet/test-dns-ipv4.js,,Flaky on Buildkite because it relies on external network
internet/test-inspector-help-page.js,,Broken test
parallel/test-dns-lookupService-promises.js,,Broken test
parallel/test-http-writable-true-after-close.js,b/171301436,Flaky
parallel/test-https-selfsigned-no-keycertsign-no-crash.js,,Broken test
pseudo-tty/test-stdout-read.js,b/162801321,
tick-processor/test-tick-processor-builtin.js,,Broken test
v8-updates/test-linux-perf.js,,Broken test
wasi/test-wasi.js,,
1 test name bug id comment
2 benchmark/test-benchmark-napi.js Broken test
3 internet/test-dgram-multicast-ssm-multi-process.js
4 internet/test-dgram-multicast-ssmv6-multi-process.js Broken test
5 internet/test-dns.js Broken test
6 internet/test-dns-any.js Broken test
7 internet/test-dns-ipv4.js Flaky on Buildkite because it relies on external network
8 internet/test-inspector-help-page.js Broken test
9 parallel/test-dns-lookupService-promises.js Broken test
10 parallel/test-http-writable-true-after-close.js b/171301436 Flaky
11 parallel/test-https-selfsigned-no-keycertsign-no-crash.js Broken test
12 pseudo-tty/test-stdout-read.js b/162801321
13 tick-processor/test-tick-processor-builtin.js Broken test
14 v8-updates/test-linux-perf.js Broken test
15 wasi/test-wasi.js
+13
View File
@@ -0,0 +1,13 @@
test name,bug id,comment
benchmark/test-benchmark-napi.js,,Broken test
internet/test-dgram-multicast-ssm-multi-process.js,b/344592701,
internet/test-dgram-multicast-ssmv6-multi-process.js,,Broken test
internet/test-dns-ipv4.js,,Broken test (Flaky because it relies on external network)
internet/test-inspector-help-page.js,,Broken test
internet/test-net-autoselectfamily-events-failure.js,,Broken test
internet/test-snapshot-dns-resolve.js,,Broken test (Flaky because it relies on external network)
pseudo-tty/test-stdout-read.js,b/162801321,
parallel/test-child-process-set-blocking.js,,Broken test
pummel/test-child-process-spawn-loop.js,,Broken test
tick-processor/test-tick-processor-builtin.js,,Broken test
v8-updates/test-linux-perf.js,,Broken test
1 test name bug id comment
2 benchmark/test-benchmark-napi.js Broken test
3 internet/test-dgram-multicast-ssm-multi-process.js b/344592701
4 internet/test-dgram-multicast-ssmv6-multi-process.js Broken test
5 internet/test-dns-ipv4.js Broken test (Flaky because it relies on external network)
6 internet/test-inspector-help-page.js Broken test
7 internet/test-net-autoselectfamily-events-failure.js Broken test
8 internet/test-snapshot-dns-resolve.js Broken test (Flaky because it relies on external network)
9 pseudo-tty/test-stdout-read.js b/162801321
10 parallel/test-child-process-set-blocking.js Broken test
11 pummel/test-child-process-spawn-loop.js Broken test
12 tick-processor/test-tick-processor-builtin.js Broken test
13 v8-updates/test-linux-perf.js Broken test
+1 -1
View File
@@ -42,5 +42,5 @@ func (nodejsRunner) ListTests() ([]string, error) {
// TestCmds implements TestRunner.TestCmds.
func (nodejsRunner) TestCmds(tests []string) []*exec.Cmd {
args := append([]string{filepath.Join("tools", "test.py"), "--timeout=180"}, tests...)
return []*exec.Cmd{exec.Command("/usr/bin/python", args...)}
return []*exec.Cmd{exec.Command("/usr/bin/python3.10", args...)}
}