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

EVEREST-458 Restart everest-operator pod during the provisioning #550

EVEREST-458 Restart everest-operator pod during the provisioning

EVEREST-458 Restart everest-operator pod during the provisioning #550

Triggered via pull request October 5, 2023 09:21
@gen1us2kgen1us2k
synchronize #163
EVEREST-458
Status Failure
Total duration 6m 56s
Artifacts 2
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

ci.yml

on: pull_request
CLI Integration Tests
6m 5s
CLI Integration Tests
Matrix: Check
Matrix: CLI tests
Matrix: Tests
Fit to window
Zoom out
Zoom in

Annotations

35 errors, 10 warnings, and 5 notices
Tests (1.21.x)
Cannot open: File exists
Tests (1.21.x)
Cannot open: File exists
Tests (1.21.x)
Cannot open: File exists
Tests (1.21.x)
Cannot open: File exists
Tests (1.21.x)
Cannot open: File exists
Tests (1.21.x)
Cannot open: File exists
Tests (1.21.x)
Cannot open: File exists
Tests (1.21.x)
Cannot open: File exists
Tests (1.21.x)
Cannot open: File exists
Tests (1.21.x)
Cannot open: File exists
Check (1.21.x, false): commands/provision.go#L26
`newProvisionCmd` is unused (deadcode)
Check (1.21.x, false): pkg/kubernetes/client/client.go#L493
comment on exported method `Client.DeletePod` should be of the form `DeletePod ...` (golint)
Check (1.21.x, false): pkg/kubernetes/kubernetes.go#L839
exported method `Kubernetes.RestartEverestOperator` should have comment or be unexported (golint)
Check (1.21.x, false): pkg/kubernetes/kubernetes.go#L853
var `podUid` should be `podUID` (golint)
Check (1.21.x, false): pkg/kubernetes/kubernetes.go#L862
error is not nil (line 860) but it returns nil (nilerr)
Check (1.21.x, false): pkg/kubernetes/kubernetes.go#L859
named return "done" with type "bool" found (nonamedreturns)
Check (1.21.x, false): pkg/kubernetes/client/client.go#L493
comment on exported method `Client.DeletePod` should be of the form `DeletePod ...` (golint)
Check (1.21.x, false): pkg/kubernetes/kubernetes.go#L839
exported method `Kubernetes.RestartEverestOperator` should have comment or be unexported (golint)
Check (1.21.x, false): pkg/kubernetes/kubernetes.go#L853
var `podUid` should be `podUID` (golint)
Check (1.21.x, false): pkg/kubernetes/kubernetes.go#L862
error is not nil (line 860) but it returns nil (nilerr)
[flows] › flow/pxc-operator.spec.ts:29:7 › Everest CLI install operators › install only xtradb-cluster-operator: cli-tests/support/output.ts#L36
1) [flows] › flow/pxc-operator.spec.ts:29:7 › Everest CLI install operators › install only xtradb-cluster-operator › run delete cluster command › Verify "delete cluster --name=test-7321207334502400 --assume-yes" command executed successfully Error: "delete cluster --name=test-7321207334502400 --assume-yes" expected to exit with 0! Error: "2023-10-05T09:26:37Z info delete/cluster.go:271 Deleting all Kubernetes monitoring resources in Kubernetes cluster "test-7321207334502400" 2023-10-05T09:26:37Z error output/command.go:65 failed to get API group resources: unable to retrieve the complete list of server APIs: operator.victoriametrics.com/v1beta1: the server could not find the requested resource could not delete monitoring resources from the Kubernetes cluster github.com/percona/percona-everest-cli/pkg/output.PrintError /home/runner/work/percona-everest-cli/percona-everest-cli/pkg/output/command.go:65 github.com/percona/percona-everest-cli/commands/delete.NewClusterCmd.func1 /home/runner/work/percona-everest-cli/percona-everest-cli/commands/delete/cluster.go:58 github.com/spf13/cobra.(*Command).execute /home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:944 github.com/spf13/cobra.(*Command).ExecuteC /home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1068 github.com/spf13/cobra.(*Command).Execute /home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:992 main.main /home/runner/work/percona-everest-cli/percona-everest-cli/cmd/everest/main.go:37 runtime.main /opt/hostedtoolcache/go/1.20.8/x64/src/runtime/proc.go:250 " Expected: 0 Received: 1 at ../support/output.ts:36 34 | async assertSuccess() { 35 | await test.step(`Verify "${this.command}" command executed successfully`, async () => { > 36 | expect(this.code, `"${this.command}" expected to exit with 0! Error: "${this.stderr || this.stdout}"`).toEqual(0); | ^ 37 | }); 38 | } 39 | at /home/runner/work/percona-everest-cli/percona-everest-cli/cli-tests/support/output.ts:36:110 at Output.assertSuccess (/home/runner/work/percona-everest-cli/percona-everest-cli/cli-tests/support/output.ts:35:16) at /home/runner/work/percona-everest-cli/percona-everest-cli/cli-tests/support/everest-cli.ts:9:15 at cliDeleteCluster (/home/runner/work/percona-everest-cli/percona-everest-cli/cli-tests/support/everest-cli.ts:6:3) at /home/runner/work/percona-everest-cli/percona-everest-cli/cli-tests/tests/flow/pxc-operator.spec.ts:64:5
CLI tests (test-pxc-operator) / CLI test-pxc-operator
Process completed with exit code 2.
[flows] › flow/all-operators.spec.ts:29:7 › Everest CLI install operators › install all operators: cli-tests/support/output.ts#L36
1) [flows] › flow/all-operators.spec.ts:29:7 › Everest CLI install operators › install all operators › run delete cluster command › Verify "delete cluster --name=test-426110351310848 --assume-yes" command executed successfully Error: "delete cluster --name=test-426110351310848 --assume-yes" expected to exit with 0! Error: "2023-10-05T09:27:27Z info delete/cluster.go:271 Deleting all Kubernetes monitoring resources in Kubernetes cluster "test-426110351310848" 2023-10-05T09:27:27Z error output/command.go:65 failed to get API group resources: unable to retrieve the complete list of server APIs: operator.victoriametrics.com/v1beta1: the server could not find the requested resource could not delete monitoring resources from the Kubernetes cluster github.com/percona/percona-everest-cli/pkg/output.PrintError /home/runner/work/percona-everest-cli/percona-everest-cli/pkg/output/command.go:65 github.com/percona/percona-everest-cli/commands/delete.NewClusterCmd.func1 /home/runner/work/percona-everest-cli/percona-everest-cli/commands/delete/cluster.go:58 github.com/spf13/cobra.(*Command).execute /home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:944 github.com/spf13/cobra.(*Command).ExecuteC /home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1068 github.com/spf13/cobra.(*Command).Execute /home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:992 main.main /home/runner/work/percona-everest-cli/percona-everest-cli/cmd/everest/main.go:37 runtime.main /opt/hostedtoolcache/go/1.20.8/x64/src/runtime/proc.go:250 " Expected: 0 Received: 1 at ../support/output.ts:36 34 | async assertSuccess() { 35 | await test.step(`Verify "${this.command}" command executed successfully`, async () => { > 36 | expect(this.code, `"${this.command}" expected to exit with 0! Error: "${this.stderr || this.stdout}"`).toEqual(0); | ^ 37 | }); 38 | } 39 | at /home/runner/work/percona-everest-cli/percona-everest-cli/cli-tests/support/output.ts:36:110 at Output.assertSuccess (/home/runner/work/percona-everest-cli/percona-everest-cli/cli-tests/support/output.ts:35:16) at /home/runner/work/percona-everest-cli/percona-everest-cli/cli-tests/support/everest-cli.ts:9:15 at cliDeleteCluster (/home/runner/work/percona-everest-cli/percona-everest-cli/cli-tests/support/everest-cli.ts:6:3) at /home/runner/work/percona-everest-cli/percona-everest-cli/cli-tests/tests/flow/all-operators.spec.ts:63:5
CLI tests (test-all-operators) / CLI test-all-operators
Process completed with exit code 2.
[cli] › list/database-engines.spec.ts:35:7 › Database engines › list: cli-tests/tests/list/database-engines.spec.ts#L31
1) [cli] › list/database-engines.spec.ts:35:7 › Database engines › list ────────────────────────── TypeError: dbengine not yet installed Cannot read properties of undefined (reading 'status') 29 | intervals: [1000], 30 | timeout: 240 * 1000, > 31 | }).toBe(true); | ^ 32 | }); 33 | 34 | test.describe('Database engines', async () => { at /home/runner/work/percona-everest-cli/percona-everest-cli/cli-tests/tests/list/database-engines.spec.ts:31:6
[cli] › list/database-engines.spec.ts:35:7 › Database engines › list: cli-tests/tests/list/database-engines.spec.ts#L31
1) [cli] › list/database-engines.spec.ts:35:7 › Database engines › list ────────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TypeError: dbengine not yet installed Cannot read properties of undefined (reading 'status') 29 | intervals: [1000], 30 | timeout: 240 * 1000, > 31 | }).toBe(true); | ^ 32 | }); 33 | 34 | test.describe('Database engines', async () => { at /home/runner/work/percona-everest-cli/percona-everest-cli/cli-tests/tests/list/database-engines.spec.ts:31:6
[cli] › list/database-engines.spec.ts:35:7 › Database engines › list: cli-tests/tests/list/database-engines.spec.ts#L31
1) [cli] › list/database-engines.spec.ts:35:7 › Database engines › list ────────────────────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── TypeError: dbengine not yet installed Cannot read properties of undefined (reading 'status') 29 | intervals: [1000], 30 | timeout: 240 * 1000, > 31 | }).toBe(true); | ^ 32 | }); 33 | 34 | test.describe('Database engines', async () => { at /home/runner/work/percona-everest-cli/percona-everest-cli/cli-tests/tests/list/database-engines.spec.ts:31:6
[cli] › list/versions.spec.ts:35:7 › Versions › list: cli-tests/tests/list/versions.spec.ts#L31
2) [cli] › list/versions.spec.ts:35:7 › Versions › list ────────────────────────────────────────── TypeError: dbengine not yet installed Cannot read properties of undefined (reading 'status') 29 | intervals: [1000], 30 | timeout: 240 * 1000, > 31 | }).toBe(true); | ^ 32 | }); 33 | 34 | test.describe('Versions', async () => { at /home/runner/work/percona-everest-cli/percona-everest-cli/cli-tests/tests/list/versions.spec.ts:31:6
[cli] › list/versions.spec.ts:35:7 › Versions › list: cli-tests/tests/list/versions.spec.ts#L31
2) [cli] › list/versions.spec.ts:35:7 › Versions › list ────────────────────────────────────────── Retry #1 ─────────────────────────────────────────────────────────────────────────────────────── TypeError: dbengine not yet installed Cannot read properties of undefined (reading 'status') 29 | intervals: [1000], 30 | timeout: 240 * 1000, > 31 | }).toBe(true); | ^ 32 | }); 33 | 34 | test.describe('Versions', async () => { at /home/runner/work/percona-everest-cli/percona-everest-cli/cli-tests/tests/list/versions.spec.ts:31:6
[cli] › list/versions.spec.ts:35:7 › Versions › list: cli-tests/tests/list/versions.spec.ts#L31
2) [cli] › list/versions.spec.ts:35:7 › Versions › list ────────────────────────────────────────── Retry #2 ─────────────────────────────────────────────────────────────────────────────────────── TypeError: dbengine not yet installed Cannot read properties of undefined (reading 'status') 29 | intervals: [1000], 30 | timeout: 240 * 1000, > 31 | }).toBe(true); | ^ 32 | }); 33 | 34 | test.describe('Versions', async () => { at /home/runner/work/percona-everest-cli/percona-everest-cli/cli-tests/tests/list/versions.spec.ts:31:6
CLI Integration Tests
Process completed with exit code 2.
[flows] › flow/mongodb-operator.spec.ts:29:7 › Everest CLI install operators › install only mongodb-operator: cli-tests/support/output.ts#L36
1) [flows] › flow/mongodb-operator.spec.ts:29:7 › Everest CLI install operators › install only mongodb-operator › run delete cluster command › Verify "delete cluster --name=test-5192542284939264 --assume-yes" command executed successfully Error: "delete cluster --name=test-5192542284939264 --assume-yes" expected to exit with 0! Error: "2023-10-05T09:27:43Z info delete/cluster.go:271 Deleting all Kubernetes monitoring resources in Kubernetes cluster "test-5192542284939264" 2023-10-05T09:27:43Z error output/command.go:65 failed to get API group resources: unable to retrieve the complete list of server APIs: operator.victoriametrics.com/v1beta1: the server could not find the requested resource could not delete monitoring resources from the Kubernetes cluster github.com/percona/percona-everest-cli/pkg/output.PrintError /home/runner/work/percona-everest-cli/percona-everest-cli/pkg/output/command.go:65 github.com/percona/percona-everest-cli/commands/delete.NewClusterCmd.func1 /home/runner/work/percona-everest-cli/percona-everest-cli/commands/delete/cluster.go:58 github.com/spf13/cobra.(*Command).execute /home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:944 github.com/spf13/cobra.(*Command).ExecuteC /home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:1068 github.com/spf13/cobra.(*Command).Execute /home/runner/go/pkg/mod/github.com/spf13/[email protected]/command.go:992 main.main /home/runner/work/percona-everest-cli/percona-everest-cli/cmd/everest/main.go:37 runtime.main /opt/hostedtoolcache/go/1.20.8/x64/src/runtime/proc.go:250 " Expected: 0 Received: 1 at ../support/output.ts:36 34 | async assertSuccess() { 35 | await test.step(`Verify "${this.command}" command executed successfully`, async () => { > 36 | expect(this.code, `"${this.command}" expected to exit with 0! Error: "${this.stderr || this.stdout}"`).toEqual(0); | ^ 37 | }); 38 | } 39 | at /home/runner/work/percona-everest-cli/percona-everest-cli/cli-tests/support/output.ts:36:110 at Output.assertSuccess (/home/runner/work/percona-everest-cli/percona-everest-cli/cli-tests/support/output.ts:35:16) at /home/runner/work/percona-everest-cli/percona-everest-cli/cli-tests/support/everest-cli.ts:9:15 at cliDeleteCluster (/home/runner/work/percona-everest-cli/percona-everest-cli/cli-tests/support/everest-cli.ts:6:3) at /home/runner/work/percona-everest-cli/percona-everest-cli/cli-tests/tests/flow/mongodb-operator.spec.ts:64:5
CLI tests (test-mongo-operator) / CLI test-mongo-operator
Process completed with exit code 2.
[flows] › flow/pg-operator.spec.ts:29:7 › Everest CLI install operators › install only postgresql-operator: cli-tests/tests/flow/pg-operator.spec.ts#L74
1) [flows] › flow/pg-operator.spec.ts:29:7 › Everest CLI install operators › install only postgresql-operator › re-run everest install operators command ReferenceError: expect is not defined 72 | await restartedOperator.assertSuccess(); 73 | > 74 | expect(await operator.getStdOutLines()[0]).toNotEqual(await restartedOperator.getStdoutLines()[0]); | ^ 75 | await out.assertSuccess(); 76 | await out.outErrContainsNormalizedMany([ 77 | 'percona-xtradb-cluster-operator operator has been installed', at /home/runner/work/percona-everest-cli/percona-everest-cli/cli-tests/tests/flow/pg-operator.spec.ts:74:7 at /home/runner/work/percona-everest-cli/percona-everest-cli/cli-tests/tests/flow/pg-operator.spec.ts:64:5
CLI tests (test-pg-operator) / CLI test-pg-operator
Process completed with exit code 2.
Check (1.21.x, false)
Restore cache failed: Dependencies file is not found in /home/runner/work/percona-everest-cli/percona-everest-cli. Supported file pattern: go.sum
CLI tests (test-pxc-operator) / CLI test-pxc-operator
Restore cache failed: Dependencies file is not found in /home/runner/work/percona-everest-cli/percona-everest-cli. 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 2.2m
Slow Test: cli-tests/[flows] › flow/all-operators.spec.ts#L1
cli-tests/[flows] › flow/all-operators.spec.ts took 2.8m
CLI tests (test-all-operators) / CLI test-all-operators
Restore cache failed: Dependencies file is not found in /home/runner/work/percona-everest-cli/percona-everest-cli. Supported file pattern: go.sum
CLI Integration Tests
Restore cache failed: Dependencies file is not found in /home/runner/work/percona-everest-cli/percona-everest-cli. Supported file pattern: go.sum
CLI tests (test-mongo-operator) / CLI test-mongo-operator
Restore cache failed: Dependencies file is not found in /home/runner/work/percona-everest-cli/percona-everest-cli. 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 2.9m
CLI tests (test-pg-operator) / CLI test-pg-operator
Restore cache failed: Dependencies file is not found in /home/runner/work/percona-everest-cli/percona-everest-cli. Supported file pattern: go.sum
Slow Test: cli-tests/[flows] › flow/pg-operator.spec.ts#L1
cli-tests/[flows] › flow/pg-operator.spec.ts took 3.0m
🎭 Playwright Run Summary
1 failed [flows] › flow/pxc-operator.spec.ts:29:7 › Everest CLI install operators › install only xtradb-cluster-operator
🎭 Playwright Run Summary
1 failed [flows] › flow/all-operators.spec.ts:29:7 › Everest CLI install operators › install all operators
🎭 Playwright Run Summary
2 failed [cli] › list/database-engines.spec.ts:35:7 › Database engines › list ─────────────────────────── [cli] › list/versions.spec.ts:35:7 › Versions › list ─────────────────────────────────────────── 3 skipped 6 passed (7.2s)
🎭 Playwright Run Summary
1 failed [flows] › flow/mongodb-operator.spec.ts:29:7 › Everest CLI install operators › install only mongodb-operator
🎭 Playwright Run Summary
1 failed [flows] › flow/pg-operator.spec.ts:29:7 › Everest CLI install operators › install only postgresql-operator

Artifacts

Produced during runtime
Name Size
cli-tests-report Expired
1.43 MB
test-delete-cluster-tests-report Expired
415 KB