Skip to content

EVEREST-1142 | Add command for validating RBAC policy #1717

EVEREST-1142 | Add command for validating RBAC policy

EVEREST-1142 | Add command for validating RBAC policy #1717

Triggered via pull request July 8, 2024 07:54
Status Failure
Total duration 16m 49s
Artifacts 2

dev-be-ci.yaml

on: pull_request
Matrix: Check
Matrix: API Integration Tests
Matrix: CLI Integration Tests
Matrix: CLI tests
Matrix: Test
Merge Gatekeeper
28s
Merge Gatekeeper
Fit to window
Zoom out
Zoom in

Annotations

70 errors, 24 warnings, and 6 notices
Check (1.22.x, false): pkg/rbac/fileadapter/adapter.go#L25
Error return value of `f.Close` is not checked (errcheck)
Check (1.22.x, false): pkg/rbac/fileadapter/adapter.go#L21
G304: Potential file inclusion via variable (gosec)
Check (1.22.x, false): pkg/rbac/configmap-adapter/adapter.go#L42
unused-parameter: parameter 'l' seems to be unused, consider removing or renaming it as _ (revive)
Check (1.22.x, false): pkg/rbac/rbac.go#L101
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
Check (1.22.x, false): pkg/rbac/validate.go#L70
named return "e" with type "*casbin.Enforcer" found (nonamedreturns)
Check (1.22.x, false): pkg/rbac/validate_test.go#L10
Function TestValidatePolicy missing the call to method parallel (paralleltest)
Check (1.22.x, false): pkg/rbac/validate_test.go#L38
Range statement for test TestValidatePolicy missing the call to method parallel in test Run (paralleltest)
Check (1.22.x, false): commands/settings/rbac/validate.go#L65
SA1006: printf-style function with dynamic format string and no further arguments should use print-style function instead (staticcheck)
Check (1.22.x, false): commands/settings/rbac/validate.go#L66
SA1006: printf-style function with dynamic format string and no further arguments should use print-style function instead (staticcheck)
Check (1.22.x, false): commands/settings/rbac/validate.go#L69
SA1006: printf-style function with dynamic format string and no further arguments should use print-style function instead (staticcheck)
Test (1.22.x, false)
Process completed with exit code 1.
CLI tests (test-pxc-operator) / CLI test-pxc-operator
Cannot open: File exists
CLI tests (test-pxc-operator) / CLI test-pxc-operator
Cannot open: File exists
CLI tests (test-pxc-operator) / CLI test-pxc-operator
Cannot open: File exists
CLI tests (test-pxc-operator) / CLI test-pxc-operator
Cannot open: File exists
CLI tests (test-pxc-operator) / CLI test-pxc-operator
Cannot open: File exists
CLI tests (test-pxc-operator) / CLI test-pxc-operator
Cannot open: File exists
CLI tests (test-pxc-operator) / CLI test-pxc-operator
Cannot open: File exists
CLI tests (test-pxc-operator) / CLI test-pxc-operator
Cannot open: File exists
CLI tests (test-pxc-operator) / CLI test-pxc-operator
Cannot open: File exists
CLI tests (test-pxc-operator) / CLI test-pxc-operator
Cannot open: File exists
CLI tests (test-mongo-operator) / CLI test-mongo-operator
Cannot open: File exists
CLI tests (test-mongo-operator) / CLI test-mongo-operator
Cannot open: File exists
CLI tests (test-mongo-operator) / CLI test-mongo-operator
Cannot open: File exists
CLI tests (test-mongo-operator) / CLI test-mongo-operator
Cannot open: File exists
CLI tests (test-mongo-operator) / CLI test-mongo-operator
Cannot open: File exists
CLI tests (test-mongo-operator) / CLI test-mongo-operator
Cannot open: File exists
CLI tests (test-mongo-operator) / CLI test-mongo-operator
Cannot open: File exists
CLI tests (test-mongo-operator) / CLI test-mongo-operator
Cannot open: File exists
CLI tests (test-mongo-operator) / CLI test-mongo-operator
Cannot open: File exists
CLI tests (test-mongo-operator) / CLI test-mongo-operator
Cannot open: File exists
CLI tests (test-all-operators) / CLI test-all-operators
Cannot open: File exists
CLI tests (test-all-operators) / CLI test-all-operators
Cannot open: File exists
CLI tests (test-all-operators) / CLI test-all-operators
Cannot open: File exists
CLI tests (test-all-operators) / CLI test-all-operators
Cannot open: File exists
CLI tests (test-all-operators) / CLI test-all-operators
Cannot open: File exists
CLI tests (test-all-operators) / CLI test-all-operators
Cannot open: File exists
CLI tests (test-all-operators) / CLI test-all-operators
Cannot open: File exists
CLI tests (test-all-operators) / CLI test-all-operators
Cannot open: File exists
CLI tests (test-all-operators) / CLI test-all-operators
Cannot open: File exists
CLI tests (test-all-operators) / CLI test-all-operators
Cannot open: File exists
CLI tests (test-pg-operator) / CLI test-pg-operator
Cannot open: File exists
CLI tests (test-pg-operator) / CLI test-pg-operator
Cannot open: File exists
CLI tests (test-pg-operator) / CLI test-pg-operator
Cannot open: File exists
CLI tests (test-pg-operator) / CLI test-pg-operator
Cannot open: File exists
CLI tests (test-pg-operator) / CLI test-pg-operator
Cannot open: File exists
CLI tests (test-pg-operator) / CLI test-pg-operator
Cannot open: File exists
CLI tests (test-pg-operator) / CLI test-pg-operator
Cannot open: File exists
CLI tests (test-pg-operator) / CLI test-pg-operator
Cannot open: File exists
CLI tests (test-pg-operator) / CLI test-pg-operator
Cannot open: File exists
CLI tests (test-pg-operator) / CLI test-pg-operator
Cannot open: File exists
CLI Integration Tests (1.22.x, false)
Cannot open: File exists
CLI Integration Tests (1.22.x, false)
Cannot open: File exists
CLI Integration Tests (1.22.x, false)
Cannot open: File exists
CLI Integration Tests (1.22.x, false)
Cannot open: File exists
CLI Integration Tests (1.22.x, false)
Cannot open: File exists
CLI Integration Tests (1.22.x, false)
Cannot open: File exists
CLI Integration Tests (1.22.x, false)
Cannot open: File exists
CLI Integration Tests (1.22.x, false)
Cannot open: File exists
CLI Integration Tests (1.22.x, false)
Cannot open: File exists
CLI Integration Tests (1.22.x, false)
Cannot open: File exists
[api] › database-cluster-backups.spec.ts:19:5 › create/delete database cluster backups: api-tests/tests/helpers.ts#L15
1) [api] › database-cluster-backups.spec.ts:19:5 › create/delete database cluster backups ──────── Error: expect(received).toBeTruthy() Received: false at helpers.ts:15 13 | console.log(`${response.url()}: `, await response.json()); 14 | } > 15 | expect(response.ok()).toBeTruthy() | ^ 16 | } 17 | 18 | export const testsNs = 'everest' at checkError (/home/runner/work/everest/everest/api-tests/tests/helpers.ts:15:25) at Object.deleteBackupStorage (/home/runner/work/everest/everest/api-tests/tests/helpers.ts:92:3) at /home/runner/work/everest/everest/api-tests/tests/database-cluster-backups.spec.ts:53:3
[api] › database-cluster-backups.spec.ts:19:5 › create/delete database cluster backups: api-tests/tests/helpers.ts#L15
1) [api] › database-cluster-backups.spec.ts:19:5 › create/delete database cluster backups ──────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: expect(received).toBeTruthy() Received: false at helpers.ts:15 13 | console.log(`${response.url()}: `, await response.json()); 14 | } > 15 | expect(response.ok()).toBeTruthy() | ^ 16 | } 17 | 18 | export const testsNs = 'everest' at checkError (/home/runner/work/everest/everest/api-tests/tests/helpers.ts:15:25) at Object.deleteBackupStorage (/home/runner/work/everest/everest/api-tests/tests/helpers.ts:92:3) at /home/runner/work/everest/everest/api-tests/tests/database-cluster-backups.spec.ts:53:3
[api] › database-cluster-restores.spec.ts:20:5 › create/update/delete database cluster restore: api-tests/tests/helpers.ts#L15
2) [api] › database-cluster-restores.spec.ts:20:5 › create/update/delete database cluster restore Error: expect(received).toBeTruthy() Received: false at helpers.ts:15 13 | console.log(`${response.url()}: `, await response.json()); 14 | } > 15 | expect(response.ok()).toBeTruthy() | ^ 16 | } 17 | 18 | export const testsNs = 'everest' at checkError (/home/runner/work/everest/everest/api-tests/tests/helpers.ts:15:25) at Object.deleteBackupStorage (/home/runner/work/everest/everest/api-tests/tests/helpers.ts:92:3) at /home/runner/work/everest/everest/api-tests/tests/database-cluster-restores.spec.ts:83:3
[api] › database-cluster-restores.spec.ts:163:5 › create restore: validation errors: api-tests/tests/helpers.ts#L15
3) [api] › database-cluster-restores.spec.ts:163:5 › create restore: validation errors ─────────── Error: expect(received).toBeTruthy() Received: false at helpers.ts:15 13 | console.log(`${response.url()}: `, await response.json()); 14 | } > 15 | expect(response.ok()).toBeTruthy() | ^ 16 | } 17 | 18 | export const testsNs = 'everest' at checkError (/home/runner/work/everest/everest/api-tests/tests/helpers.ts:15:25) at Object.deleteBackupStorage (/home/runner/work/everest/everest/api-tests/tests/helpers.ts:92:3) at /home/runner/work/everest/everest/api-tests/tests/database-cluster-restores.spec.ts:212:3
[api] › psmdb-clusters.spec.ts:186:5 › expose psmdb cluster on EKS to the public internet and scale up: api-tests/tests/psmdb-clusters.spec.ts#L1
4) [api] › psmdb-clusters.spec.ts:186:5 › expose psmdb cluster on EKS to the public internet and scale up Test timeout of 30000ms exceeded.
[api] › psmdb-clusters.spec.ts:186:5 › expose psmdb cluster on EKS to the public internet and scale up: api-tests/tests/psmdb-clusters.spec.ts#L221
4) [api] › psmdb-clusters.spec.ts:186:5 › expose psmdb cluster on EKS to the public internet and scale up Error: page.waitForTimeout: Test timeout of 30000ms exceeded. 219 | }) 220 | for (let i = 0; i < 15; i++) { > 221 | await page.waitForTimeout(2000) | ^ 222 | 223 | const psmdbCluster = await request.get(`/v1/namespaces/${testsNs}/database-clusters/${clusterName}`) 224 | at /home/runner/work/everest/everest/api-tests/tests/psmdb-clusters.spec.ts:221:16
[api] › psmdb-clusters.spec.ts:186:5 › expose psmdb cluster on EKS to the public internet and scale up: api-tests/tests/psmdb-clusters.spec.ts#L1
4) [api] › psmdb-clusters.spec.ts:186: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:186:5 › expose psmdb cluster on EKS to the public internet and scale up: api-tests/tests/psmdb-clusters.spec.ts#L223
4) [api] › psmdb-clusters.spec.ts:186:5 › expose psmdb cluster on EKS to the public internet and scale up Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── Error: apiRequestContext.get: Target page, context or browser has been closed Call log: - → GET http://127.0.0.1:8080/v1/namespaces/everest/database-clusters/eks-psmdb - user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.6422.26 Safari/537.36 - accept: application/json - accept-encoding: gzip,deflate,br - Content-Type: application/json - Authorization: *** 221 | await page.waitForTimeout(2000) 222 | > 223 | const psmdbCluster = await request.get(`/v1/namespaces/${testsNs}/database-clusters/${clusterName}`) | ^ 224 | 225 | await checkError(psmdbCluster) 226 | at /home/runner/work/everest/everest/api-tests/tests/psmdb-clusters.spec.ts:223:40
[api] › pxc-clusters.spec.ts:37:5 › create/edit/delete pxc single node cluster: api-tests/tests/helpers.ts#L15
5) [api] › pxc-clusters.spec.ts:37:5 › create/edit/delete pxc single node cluster ──────────────── Error: expect(received).toBeTruthy() Received: false at helpers.ts:15 13 | console.log(`${response.url()}: `, await response.json()); 14 | } > 15 | expect(response.ok()).toBeTruthy() | ^ 16 | } 17 | 18 | export const testsNs = 'everest' at checkError (/home/runner/work/everest/everest/api-tests/tests/helpers.ts:15:25) at /home/runner/work/everest/everest/api-tests/tests/pxc-clusters.spec.ts:114:3
Check (1.22.x, false)
Restore cache failed: Dependencies file is not found in /home/runner/work/everest/everest. Supported file pattern: go.sum
Test (1.22.x, false)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: percona-platform/setup-go@v4, percona-platform/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Test (1.22.x, false)
Restore cache failed: Dependencies file is not found in /home/runner/work/everest/everest. Supported file pattern: go.sum
CLI tests (test-pxc-operator) / CLI test-pxc-operator
The following actions uses Node.js version which is deprecated and will be forced to run on node20: percona-platform/setup-go@v4, percona-platform/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
CLI tests (test-pxc-operator) / CLI test-pxc-operator
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
CLI tests (test-pxc-operator) / CLI test-pxc-operator
Restore cache failed: Dependencies file is not found in /home/runner/work/everest/everest. Supported file pattern: go.sum
Slow Test: cli-tests/[flows] › flow/pxc-operator.spec.ts#L1
cli-tests/[flows] › flow/pxc-operator.spec.ts took 3.1m
CLI tests (test-mongo-operator) / CLI test-mongo-operator
The following actions uses Node.js version which is deprecated and will be forced to run on node20: percona-platform/setup-go@v4, percona-platform/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
CLI tests (test-mongo-operator) / CLI test-mongo-operator
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
CLI tests (test-mongo-operator) / CLI test-mongo-operator
Restore cache failed: Dependencies file is not found in /home/runner/work/everest/everest. Supported file pattern: go.sum
Slow Test: cli-tests/[flows] › flow/mongodb-operator.spec.ts#L1
cli-tests/[flows] › flow/mongodb-operator.spec.ts took 3.2m
CLI tests (test-all-operators) / CLI test-all-operators
The following actions uses Node.js version which is deprecated and will be forced to run on node20: percona-platform/setup-go@v4, percona-platform/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
CLI tests (test-all-operators) / CLI test-all-operators
Restore cache failed: Dependencies file is not found in /home/runner/work/everest/everest. Supported file pattern: go.sum
Slow Test: cli-tests/[flows] › flow/all-operators.spec.ts#L1
cli-tests/[flows] › flow/all-operators.spec.ts took 4.9m
CLI tests (test-all-operators) / CLI test-all-operators
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
CLI tests (test-pg-operator) / CLI test-pg-operator
The following actions uses Node.js version which is deprecated and will be forced to run on node20: percona-platform/setup-go@v4, percona-platform/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Slow Test: cli-tests/[flows] › flow/pg-operator.spec.ts#L1
cli-tests/[flows] › flow/pg-operator.spec.ts took 5.3m
CLI tests (test-pg-operator) / CLI test-pg-operator
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
CLI tests (test-pg-operator) / CLI test-pg-operator
Restore cache failed: Dependencies file is not found in /home/runner/work/everest/everest. Supported file pattern: go.sum
CLI Integration Tests (1.22.x, false)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: percona-platform/setup-go@v4, percona-platform/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
CLI Integration Tests (1.22.x, false)
Failed to restore: "/usr/bin/tar" failed with error: The process '/usr/bin/tar' failed with exit code 2
CLI Integration Tests (1.22.x, false)
Restore cache failed: Dependencies file is not found in /home/runner/work/everest/everest. Supported file pattern: go.sum
API Integration Tests (1.22.x, false)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: percona-platform/setup-go@v4, percona-platform/cache@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
API Integration Tests (1.22.x, false)
Restore cache failed: Dependencies file is not found in /home/runner/work/everest/everest. Supported file pattern: go.sum
🎭 Playwright Run Summary
1 passed (3.2m)
🎭 Playwright Run Summary
1 passed (3.3m)
🎭 Playwright Run Summary
1 passed (4.9m)
🎭 Playwright Run Summary
1 passed (5.4m)
🎭 Playwright Run Summary
6 passed (1.2s)
🎭 Playwright Run Summary
5 flaky [api] › database-cluster-backups.spec.ts:19:5 › create/delete database cluster backups ───────── [api] › database-cluster-restores.spec.ts:20:5 › create/update/delete database cluster restore ─ [api] › database-cluster-restores.spec.ts:163:5 › create restore: validation errors ──────────── [api] › psmdb-clusters.spec.ts:186:5 › expose psmdb cluster on EKS to the public internet and scale up [api] › pxc-clusters.spec.ts:37:5 › create/edit/delete pxc single node cluster ───────────────── 48 passed (2.0m)

Artifacts

Produced during runtime
Name Size
cli-tests-report Expired
185 KB
test-delete-cluster-tests-report Expired
249 KB