Skip to content
This repository has been archived by the owner on Mar 4, 2024. It is now read-only.

EVEREST-785: fix validation when creating a monitoring instance (#407) #1851

EVEREST-785: fix validation when creating a monitoring instance (#407)

EVEREST-785: fix validation when creating a monitoring instance (#407) #1851

Triggered via push January 29, 2024 09:28
Status Success
Total duration 9m 33s
Artifacts

ci.yml

on: push
Matrix: Check
Matrix: API Integration Tests
Matrix: Test
Fit to window
Zoom out
Zoom in

Annotations

9 errors, 4 warnings, and 1 notice
API Integration Tests (1.21.x, false)
Process completed with exit code 1.
[api] › database-cluster.spec.ts:55:5 › create db cluster with monitoring config: api-tests/tests/database-cluster.spec.ts#L100
1) [api] › database-cluster.spec.ts:55:5 › create db cluster with monitoring config ────────────── Error: expect(received).toBeGreaterThanOrEqual(expected) Matcher error: received value must be a number or bigint Received has value: undefined Call Log: - Timeout 60000ms exceeded while waiting on the predicate 98 | 99 | expect(res?.status?.size).toBeGreaterThanOrEqual(1) > 100 | }).toPass({ | ^ 101 | intervals: [1000], 102 | timeout: 60 * 1000, 103 | }) at /home/runner/work/percona-everest-backend/percona-everest-backend/api-tests/tests/database-cluster.spec.ts:100:8
[api] › monitoring-instances.spec.ts:36:5 › create monitoring instance with api key: api-tests/tests/monitoring-instances.spec.ts#L48
2) [api] › monitoring-instances.spec.ts:36:5 › create monitoring instance with api key ─────────── Error: expect(received).toBeTruthy() Received: false 46 | const response = await request.post('/v1/monitoring-instances', { data }) 47 | > 48 | expect(response.ok()).toBeTruthy() | ^ 49 | const created = await response.json() 50 | 51 | expect(created.name).toBe(data.name) at /home/runner/work/percona-everest-backend/percona-everest-backend/api-tests/tests/monitoring-instances.spec.ts:48:25
[api] › monitoring-instances.spec.ts:128:5 › delete monitoring instance: api-tests/tests/monitoring-instances.spec.ts#L147
3) [api] › monitoring-instances.spec.ts:128:5 › delete monitoring instance ─────────────────────── Error: expect(received).toBe(expected) // Object.is equality Expected: 2 Received: 3 145 | list = await response.json() 146 | > 147 | expect(list.filter((i) => i.name.startsWith(`${namePrefix}${testPrefix}`)).length).toBe(2) | ^ 148 | }) 149 | 150 | test('patch monitoring instance', async ({ request }) => { at /home/runner/work/percona-everest-backend/percona-everest-backend/api-tests/tests/monitoring-instances.spec.ts:147:86
[api] › monitoring-instances.spec.ts:169:5 › patch monitoring instance secret key changes: api-tests/tests/monitoring-instances.spec.ts#L186
4) [api] › monitoring-instances.spec.ts:169:5 › patch monitoring instance secret key changes ───── Error: expect(received).toBeTruthy() Received: false 184 | const updated = await request.patch(`/v1/monitoring-instances/${name}`, { data: patchData }) 185 | > 186 | expect(updated.ok()).toBeTruthy() | ^ 187 | const getJson = await updated.json() 188 | 189 | expect(getJson.url).toBe(patchData.url) at /home/runner/work/percona-everest-backend/percona-everest-backend/api-tests/tests/monitoring-instances.spec.ts:186:24
[api] › psmdb-clusters.spec.ts:189:5 › expose psmdb cluster on EKS to the public internet and scale up: api-tests/tests/psmdb-clusters.spec.ts#L1
5) [api] › psmdb-clusters.spec.ts:189:5 › expose psmdb cluster on EKS to the public internet and scale up Test timeout of 30000ms exceeded.
[api] › psmdb-clusters.spec.ts:189:5 › expose psmdb cluster on EKS to the public internet and scale up: api-tests/tests/psmdb-clusters.spec.ts#L223
5) [api] › psmdb-clusters.spec.ts:189:5 › expose psmdb cluster on EKS to the public internet and scale up Error: page.waitForTimeout: Test timeout of 30000ms exceeded. 221 | }) 222 | for (let i = 0; i < 15; i++) { > 223 | await page.waitForTimeout(2000) | ^ 224 | 225 | const psmdbCluster = await request.get(`/v1/database-clusters/${clusterName}`) 226 | at /home/runner/work/percona-everest-backend/percona-everest-backend/api-tests/tests/psmdb-clusters.spec.ts:223:16
[api] › psmdb-clusters.spec.ts:189:5 › expose psmdb cluster on EKS to the public internet and scale up: api-tests/tests/psmdb-clusters.spec.ts#L1
5) [api] › psmdb-clusters.spec.ts:189:5 › expose psmdb cluster on EKS to the public internet and scale up Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Test timeout of 30000ms exceeded.
[api] › psmdb-clusters.spec.ts:189:5 › expose psmdb cluster on EKS to the public internet and scale up: api-tests/tests/psmdb-clusters.spec.ts#L223
5) [api] › psmdb-clusters.spec.ts:189:5 › expose psmdb cluster on EKS to the public internet and scale up Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: page.waitForTimeout: Test timeout of 30000ms exceeded. 221 | }) 222 | for (let i = 0; i < 15; i++) { > 223 | await page.waitForTimeout(2000) | ^ 224 | 225 | const psmdbCluster = await request.get(`/v1/database-clusters/${clusterName}`) 226 | at /home/runner/work/percona-everest-backend/percona-everest-backend/api-tests/tests/psmdb-clusters.spec.ts:223:16
Test (1.21.x, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: percona-platform/setup-go@v4, percona-platform/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Test (1.21.x, false)
Restore cache failed: Dependencies file is not found in /home/runner/work/percona-everest-backend/percona-everest-backend. Supported file pattern: go.sum
API Integration Tests (1.21.x, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: percona-platform/setup-go@v4, percona-platform/cache@v3, medyagh/setup-minikube@latest. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
API Integration Tests (1.21.x, false)
Restore cache failed: Dependencies file is not found in /home/runner/work/percona-everest-backend/percona-everest-backend. Supported file pattern: go.sum
🎭 Playwright Run Summary
5 flaky [api] › database-cluster.spec.ts:55:5 › create db cluster with monitoring config ─────────────── [api] › monitoring-instances.spec.ts:36:5 › create monitoring instance with api key ──────────── [api] › monitoring-instances.spec.ts:128:5 › delete monitoring instance ──────────────────────── [api] › monitoring-instances.spec.ts:169:5 › patch monitoring instance secret key changes ────── [api] › psmdb-clusters.spec.ts:189:5 › expose psmdb cluster on EKS to the public internet and scale up 48 passed (1.7m)