File tree Expand file tree Collapse file tree 5 files changed +17
-26
lines changed
Expand file tree Collapse file tree 5 files changed +17
-26
lines changed Original file line number Diff line number Diff line change @@ -59,8 +59,8 @@ accept your pull requests.
5959
6060# Running the system test
6161The system test starts a simple benchmark, uses this module to collect a time
62- and a heap profile, and verifies that the profiles contain functions from
63- within the benchmark.
62+ and a heap profile, and verifies that the profiles contain functions from
63+ within the benchmark.
6464
6565To run the system test, [golang](https://golang.org/) must be installed.
6666
@@ -69,8 +69,3 @@ versions of Node.JS:
6969` ` ` sh
7070sh system-test/system_test.sh
7171` ` `
72-
73- To run the system test with the v8 canary build, use:
74- ` ` ` sh
75- RUN_ONLY_V8_CANARY_TEST=true sh system-test/system_test.sh
76- ` ` `
Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ RUN go get github.com/google/pprof
88FROM debian:11
99
1010ARG NODE_VERSION
11- ARG NVM_NODEJS_ORG_MIRROR
1211ARG ADDITIONAL_PACKAGES
1312ARG VERIFY_TIME_LINE_NUMBERS
1413
Original file line number Diff line number Diff line change 1+ FROM golang:1.17-alpine as builder
2+ RUN apk add --no-cache git
3+ WORKDIR /root/
4+ RUN go get github.com/google/pprof
5+
6+
7+ FROM node:current-alpine
8+
9+ ARG ADDITIONAL_PACKAGES
10+
11+ RUN apk add --no-cache bash $ADDITIONAL_PACKAGES
12+ WORKDIR /root/
13+ COPY --from=builder /go/bin/pprof /bin
14+ RUN chmod a+x /bin/pprof
Original file line number Diff line number Diff line change @@ -12,11 +12,7 @@ cd $(dirname $0)
1212
1313if [[ -z " $BINARY_HOST " ]]; then
1414 ADDITIONAL_PACKAGES=" python3 g++ make"
15- fi
16-
17- if [[ " $RUN_ONLY_V8_CANARY_TEST " == " true" ]]; then
18- NVM_NODEJS_ORG_MIRROR=" https://nodejs.org/download/v8-canary"
19- NODE_VERSIONS=(node)
15+ NODE_VERSIONS=(10 12 14 15 16 node)
2016else
2117 NODE_VERSIONS=(10 12 14 15 16)
2218fi
@@ -25,7 +21,6 @@ for i in ${NODE_VERSIONS[@]}; do
2521 # Test Linux support for the given node version.
2622 retry docker build -f Dockerfile.linux --build-arg NODE_VERSION=$i \
2723 --build-arg ADDITIONAL_PACKAGES=" $ADDITIONAL_PACKAGES " \
28- --build-arg NVM_NODEJS_ORG_MIRROR=" $NVM_NODEJS_ORG_MIRROR " \
2924 -t node$i -linux .
3025
3126 docker run -v $PWD /..:/src -e BINARY_HOST=" $BINARY_HOST " node$i -linux \
@@ -39,11 +34,6 @@ for i in ${NODE_VERSIONS[@]}; do
3934 /src/system-test/test.sh
4035 fi
4136
42- # Skip running on alpine if NVM_NODEJS_ORG_MIRROR is specified.
43- if [[ ! -z " $NVM_NODEJS_ORG_MIRROR " ]]; then
44- continue
45- fi
46-
4737 # Test Alpine support for the given node version.
4838 retry docker build -f Dockerfile.node$i -alpine \
4939 --build-arg ADDITIONAL_PACKAGES=" $ADDITIONAL_PACKAGES " -t node$i -alpine .
Original file line number Diff line number Diff line change @@ -23,13 +23,6 @@ cd $(dirname $0)/..
2323
2424NODEDIR=$( dirname $( dirname $( which node) ) )
2525
26- # TODO: Remove when a new version of nan (current version 2.12.1) is released.
27- # For v8-canary tests, we need to use the version of NAN on github, which
28- # contains unreleased fixes that allow the native component to be compiled
29- # with Node's V8 canary build.
30- [ -z $NVM_NODEJS_ORG_MIRROR ] \
31- || retry npm_install https://github.com/nodejs/nan.git
32-
3326retry npm_install --nodedir=" $NODEDIR " \
3427 ${BINARY_HOST: +--pprof_binary_host_mirror=$BINARY_HOST } > /dev/null
3528
You can’t perform that action at this time.
0 commit comments