File tree Expand file tree Collapse file tree 6 files changed +18
-27
lines changed Expand file tree Collapse file tree 6 files changed +18
-27
lines changed Original file line number Diff line number Diff line change @@ -59,8 +59,8 @@ accept your pull requests.
59
59
60
60
# Running the system test
61
61
The 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.
64
64
65
65
To run the system test, [golang](https://golang.org/) must be installed.
66
66
@@ -69,8 +69,3 @@ versions of Node.JS:
69
69
` ` ` sh
70
70
sh system-test/system_test.sh
71
71
` ` `
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
8
8
FROM debian:11
9
9
10
10
ARG NODE_VERSION
11
- ARG NVM_NODEJS_ORG_MIRROR
12
11
ARG ADDITIONAL_PACKAGES
13
12
ARG VERIFY_TIME_LINE_NUMBERS
14
13
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)
12
12
13
13
if [[ -z " $BINARY_HOST " ]]; then
14
14
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)
20
16
else
21
17
NODE_VERSIONS=(10 12 14 15 16)
22
18
fi
@@ -25,7 +21,6 @@ for i in ${NODE_VERSIONS[@]}; do
25
21
# Test Linux support for the given node version.
26
22
retry docker build -f Dockerfile.linux --build-arg NODE_VERSION=$i \
27
23
--build-arg ADDITIONAL_PACKAGES=" $ADDITIONAL_PACKAGES " \
28
- --build-arg NVM_NODEJS_ORG_MIRROR=" $NVM_NODEJS_ORG_MIRROR " \
29
24
-t node$i -linux .
30
25
31
26
docker run -v $PWD /..:/src -e BINARY_HOST=" $BINARY_HOST " node$i -linux \
@@ -39,11 +34,6 @@ for i in ${NODE_VERSIONS[@]}; do
39
34
/src/system-test/test.sh
40
35
fi
41
36
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
-
47
37
# Test Alpine support for the given node version.
48
38
retry docker build -f Dockerfile.node$i -alpine \
49
39
--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)/..
23
23
24
24
NODEDIR=$( dirname $( dirname $( which node) ) )
25
25
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
-
33
26
retry npm_install --nodedir=" $NODEDIR " \
34
27
${BINARY_HOST: +--pprof_binary_host_mirror=$BINARY_HOST } > /dev/null
35
28
Original file line number Diff line number Diff line change 1
1
FROM node:14-alpine
2
- RUN apk add --no-cache python curl bash python g++ make
2
+ RUN apk add --no-cache python3 curl bash g++ make
You can’t perform that action at this time.
0 commit comments