Skip to content

Commit 2c2bd52

Browse files
committed
test: improve reliability of E2E local npm registry on CI
This change limits the number of sockets used by the local npm registry during E2E tests as well as keeping a limited pool alive for reuse. (cherry picked from commit 6a5286b)
1 parent ab8c8a5 commit 2c2bd52

File tree

3 files changed

+311
-344
lines changed

3 files changed

+311
-344
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@
221221
"tslint-no-circular-imports": "^0.7.0",
222222
"tslint-sonarts": "1.9.0",
223223
"typescript": "3.9.5",
224-
"verdaccio": "4.5.1",
224+
"verdaccio": "4.8.1",
225+
"verdaccio-auth-memory": "^9.7.2",
225226
"webpack": "4.42.1",
226227
"webpack-dev-middleware": "3.7.2",
227228
"webpack-dev-server": "3.10.3",

tests/legacy-cli/verdaccio.yaml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
storage: ./storage
22

33
auth:
4-
htpasswd:
5-
file: ./htpasswd
6-
max_users: -1
4+
auth-memory:
5+
users: {}
76

87
uplinks:
98
npmjs:
109
url: https://registry.npmjs.org/
10+
cache: false
11+
maxage: 20m
12+
max_fails: 32
13+
timeout: 60s
14+
agent_options:
15+
keepAlive: true
16+
maxSockets: 32
17+
maxFreeSockets: 8
1118

1219
packages:
1320
'@angular/{cli,pwa}':
@@ -26,6 +33,10 @@ packages:
2633
access: $all
2734
publish: $all
2835

36+
'@*/*':
37+
access: $all
38+
proxy: npmjs
39+
2940
'**':
3041
access: $all
3142
proxy: npmjs

0 commit comments

Comments
 (0)