FoundationDB / fdb-kubernetes-operator

A kubernetes operator for FoundationDB
Apache License 2.0
241 stars 82 forks source link

Add e2e migration test from split to unified image #2048

Closed johscheuer closed 4 months ago

johscheuer commented 4 months ago

Description

Adding e2e test cases for converting a cluster from split image to unified and from the unified to the split image.

Type of change

Please select one of the options below.

Discussion

I adjusted the e2e testing code to make sure we can test those migrations.

Testing

Manually tested:

tail -f /Users/jscheuermann/go/src/github.com/FoundationDB/fdb-kubernetes-operator/e2e/../logs/test_operator_migrate_image_type.log

[ReportAfterSuite] Autogenerated ReportAfterSuite for --junit-report
autogenerated by Ginkgo
[ReportAfterSuite] PASSED [0.003 seconds]
------------------------------

Ran 2 of 2 Specs in 1011.427 seconds
SUCCESS! -- 2 Passed | 0 Failed | 0 Pending | 0 Skipped
--- PASS: TestOperator (1011.43s)
PASS
ok      github.com/FoundationDB/fdb-kubernetes-operator/e2e/test_operator_migrate_image_type    1011.843s

Documentation

-

Follow-up

Run those tests regularly.

foundationdb-ci commented 4 months ago

Result of fdb-kubernetes-operator-pr on Linux CentOS 7

foundationdb-ci commented 4 months ago

Result of fdb-kubernetes-operator-pr on Linux CentOS 7

foundationdb-ci commented 4 months ago

Result of fdb-kubernetes-operator-pr on Linux CentOS 7

foundationdb-ci commented 4 months ago

Result of fdb-kubernetes-operator-pr on Linux CentOS 7

foundationdb-ci commented 4 months ago

Result of fdb-kubernetes-operator-pr on Linux CentOS 7

johscheuer commented 4 months ago

Result of fdb-kubernetes-operator-pr on Linux CentOS 7

  • Commit ID: c9e038e
  • Duration 2:38:46
  • Result: ❌ FAILED
  • Error: Error while executing command: if $fail_test; then exit 1; fi. Reason: exit status 1
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)
• [FAILED] [496.714 seconds]
Operator Upgrades one process is marked for removal and is stuck in terminating state [It] Upgrade from 7.1.57 to 7.3.33 [e2e, pr]
/codebuild/output/src1459034628/src/github.com/FoundationDB/fdb-kubernetes-operator/e2e/fixtures/upgrade_test_configuration.go:115

  [FAILED] Timed out after 300.001s.
  Expected
      <*int64 | 0x0>: nil
  not to be nil
  In [It] at: /codebuild/output/src1459034628/src/github.com/FoundationDB/fdb-kubernetes-operator/e2e/test_operator_upgrades/operator_upgrades_test.go:573 @ 06/05/24 13:18:11.891
------------------------------

There was one unrelated failure. I'm going to open an issue later.

johscheuer commented 4 months ago

Result of fdb-kubernetes-operator-pr on Linux CentOS 7

  • Commit ID: 5825d6b
  • Duration 3:36:50
  • Result: ❌ FAILED
  • Error: Error while executing command: if $fail_test; then exit 1; fi. Reason: exit status 1
  • Build Log terminal output (available for 30 days)
  • Build Workspace zip file of the working directory (available for 30 days)

Same here:


  [FAILED] in [AfterEach] - /codebuild/output/src3879914366/src/github.com/FoundationDB/fdb-kubernetes-operator/e2e/test_operator/operator_test.go:114 @ 06/05/24 12:37:45.98
• [FAILED] [3001.315 seconds]
Operator when we change the process group prefix [It] should add the prefix to all instances [e2e, pr]
/codebuild/output/src3879914366/src/github.com/FoundationDB/fdb-kubernetes-operator/e2e/test_operator/operator_test.go:897

  [FAILED] Timed out after 1200.001s.
  The function passed to Eventually failed at /codebuild/output/src3879914366/src/github.com/FoundationDB/fdb-kubernetes-operator/e2e/test_operator/operator_test.go:913 with:
  Expected
      <string>: log-1
  to have prefix
      <string>: banana
  In [It] at: /codebuild/output/src3879914366/src/github.com/FoundationDB/fdb-kubernetes-operator/e2e/test_operator/operator_test.go:917 @ 06/05/24 12:07:45.785

  There were additional failures detected.  To view them in detail run ginkgo -vv
------------------------------