Skip to content

Commit 32a17ca

Browse files
committed
fix tests CI
1 parent 71e5f96 commit 32a17ca

File tree

3 files changed

+7
-19
lines changed

3 files changed

+7
-19
lines changed

.github/workflows/node-clickhouse.js.yml

+2-14
Original file line numberDiff line numberDiff line change
@@ -36,29 +36,17 @@ jobs:
3636
- 9000:9000
3737
steps:
3838
- uses: actions/checkout@v4
39-
- name: Use Node.js ${{ matrix.node-version }}
40-
uses: actions/[email protected]
41-
with:
42-
node-version: ${{ matrix.node-version }}
43-
cache: 'npm'
4439
- name: build qryn-view
4540
uses: ./.github/actions/get-view
4641
env:
4742
TAG: v3.3.2
4843
- name: check if qryn-view pulled
4944
run: pushd view && ls | grep assets && popd
50-
- run: npm install
51-
- run: npm run postinstall
5245
- run: git submodule init
5346
- run: git submodule update
5447
- name: Workflow Telemetry
5548
uses: runforesight/[email protected]
5649
if: github.event_name != 'pull_request'
5750
- env:
58-
CLICKHOUSE_DB: qryn
59-
CLICKHOUSE_TSDB: qryn
60-
INTEGRATION_E2E: 1
61-
CLOKI_EXT_URL: 127.0.0.1:3100
62-
QRYN_LOGIN: a
63-
QRYN_PASSWORD: b
64-
run: node qryn.mjs >/dev/stdout & npm run test --forceExit
51+
NODE_VERSION: ${{ matrix.node-version }}
52+
run: "sh ./test/e2e/compose/clickhouse_sso_e2e/run_test.sh"

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"qryn": "./qryn_node.js"
88
},
99
"scripts": {
10-
"test": "jest",
10+
"test": "jest --maxWorkers 1 --forceExit",
1111
"start": "node qryn.mjs",
1212
"pretty": "node qryn.mjs | pino-pretty",
1313
"postinstall": "patch-package",

pyroscope/pyroscope.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -246,11 +246,11 @@ const selectMergeProfile = async (req, res) => {
246246

247247
const series = async (req, res) => {
248248
const _req = req.body
249-
const fromTimeSec = Math.floor(req.getStart && req.getStart()
250-
? parseInt(req.getStart()) / 1000
249+
const fromTimeSec = Math.floor(_req.getStart && _req.getStart()
250+
? parseInt(_req.getStart()) / 1000
251251
: (Date.now() - HISTORY_TIMESPAN) / 1000)
252-
const toTimeSec = Math.floor(req.getEnd && req.getEnd()
253-
? parseInt(req.getEnd()) / 1000
252+
const toTimeSec = Math.floor(_req.getEnd && _req.getEnd()
253+
? parseInt(_req.getEnd()) / 1000
254254
: Date.now() / 1000)
255255
const dist = clusterName ? '_dist' : ''
256256
const promises = []

0 commit comments

Comments
 (0)