Skip to content

Commit f19d267

Browse files
authored
Merge branch 'main' into renovate/typescript-4.x
2 parents 4190ccf + ea087ae commit f19d267

File tree

6 files changed

+18
-27
lines changed

6 files changed

+18
-27
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ accept your pull requests.
5959

6060
# Running the system test
6161
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.
6464

6565
To run the system test, [golang](https://golang.org/) must be installed.
6666

@@ -69,8 +69,3 @@ versions of Node.JS:
6969
```sh
7070
sh 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-
```

system-test/Dockerfile.linux

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ RUN go get github.com/google/pprof
88
FROM debian:11
99

1010
ARG NODE_VERSION
11-
ARG NVM_NODEJS_ORG_MIRROR
1211
ARG ADDITIONAL_PACKAGES
1312
ARG VERIFY_TIME_LINE_NUMBERS
1413

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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

system-test/system_test.sh

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,7 @@ cd $(dirname $0)
1212

1313
if [[ -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)
2016
else
2117
NODE_VERSIONS=(10 12 14 15 16)
2218
fi
@@ -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 .

system-test/test.sh

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,6 @@ cd $(dirname $0)/..
2323

2424
NODEDIR=$(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-
3326
retry npm_install --nodedir="$NODEDIR" \
3427
${BINARY_HOST:+--pprof_binary_host_mirror=$BINARY_HOST} >/dev/null
3528

tools/build/Dockerfile.alpine

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
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

0 commit comments

Comments
 (0)