Skip to content

Commit 710d8f0

Browse files
committed
wip
1 parent 3c022f5 commit 710d8f0

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/e2e-test.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -168,18 +168,14 @@ jobs:
168168

169169
- run: chmod a+x ./lightpanda
170170

171-
- name: start http
172-
run: |
173-
go run ws/main.go & echo $! > WS.pid
174-
sleep 2
175-
176171
- name: run puppeteer
177172
run: |
173+
go run ws/main.go & echo $! > WS.pid
178174
./lightpanda serve & echo $! > LPD.pid
179-
sleep 2
175+
sleep 1
180176
RUNS=100 npm run bench-puppeteer-cdp > puppeteer.out || exit 1
181177
cat /proc/`cat LPD.pid`/status |grep VmHWM|grep -oP '\d+' > LPD.VmHWM
182-
kill `cat LPD.pid`
178+
kill `cat LPD.pid` `cat WS.pid`
183179
184180
- name: puppeteer result
185181
run: cat puppeteer.out
@@ -194,10 +190,10 @@ jobs:
194190
195191
- name: run hyperfine
196192
run: |
193+
go run ws/main.go & echo $! > WS.pid
194+
sleep 1
197195
hyperfine --export-json=hyperfine.json --warmup 3 --runs 20 --shell=none "./lightpanda --dump http://127.0.0.1:1234/campfire-commerce/"
198-
199-
- name: stop http
200-
run: kill `cat WS.pid`
196+
kill `cat WS.pid`
201197
202198
- name: write commit
203199
run: |

0 commit comments

Comments
 (0)