Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor code to make use of the process group directly without passing the class and id number down #1807

Conversation

johscheuer
Copy link
Member

Description

This is a follow up to refactor the operator code and remove some old technical debts, e.g. there is no need to parse the process class and id number multiple times, we just can pass down the whole process group.

Type of change

Please select one of the options below.

  • Other

Discussion

Most of the changes are adjustments for the test cases.

Testing

Ran unit tests and e2e tests will be running with CI.

Documentation

Follow-up

@foundationdb-ci
Copy link

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

  • Commit ID: 3cfe0d6
  • Duration 4:07:14
  • 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)

@johscheuer johscheuer closed this Sep 19, 2023
@johscheuer johscheuer reopened this Sep 19, 2023
@foundationdb-ci
Copy link

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

  • Commit ID: 3cfe0d6
  • Duration 3:32:13
  • 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)

@johscheuer
Copy link
Member Author

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

  • Commit ID: 3cfe0d6
  • Duration 3:32:13
  • 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)
Operator when we change the process group prefix [It] should add the prefix to all instances [e2e, pr]
/codebuild/output/src3645663570/src/github.com/FoundationDB/fdb-kubernetes-operator/e2e/test_operator/operator_test.go:757

  [FAILED] Expected
      <string>: log-1
  to have prefix
      <string>: banana
  In [It] at: /codebuild/output/src3645663570/src/github.com/FoundationDB/fdb-kubernetes-operator/e2e/test_operator/operator_test.go:760 @ 09/19/23 05:45:05.405
------------------------------

@johscheuer johscheuer force-pushed the refactor-code-use-process-group-directly branch from 3cfe0d6 to 54fe73d Compare September 19, 2023 15:16
@foundationdb-ci
Copy link

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

  • Commit ID: 54fe73d
  • Duration 4:07:14
  • 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)

@johscheuer johscheuer force-pushed the refactor-code-use-process-group-directly branch from 54fe73d to b2a1008 Compare September 21, 2023 05:31
@foundationdb-ci
Copy link

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

  • Commit ID: b2a1008
  • Duration 3:38:27
  • 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)

@johscheuer johscheuer force-pushed the refactor-code-use-process-group-directly branch from b2a1008 to 3f116bd Compare September 25, 2023 08:22
@foundationdb-ci
Copy link

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

  • Commit ID: 3f116bd
  • Duration 2:39:31
  • 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)

@foundationdb-ci
Copy link

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

  • Commit ID: 53bafba
  • Duration 2:54:19
  • 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)

@foundationdb-ci
Copy link

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

  • Commit ID: 65e8480
  • Duration 2:34:24
  • 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)

@foundationdb-ci
Copy link

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

  • Commit ID: 9cf27d9
  • Duration 2:48:17
  • 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)

1 similar comment
@foundationdb-ci
Copy link

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

  • Commit ID: 9cf27d9
  • Duration 2:48:17
  • 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)

@johscheuer johscheuer force-pushed the refactor-code-use-process-group-directly branch from 9cf27d9 to 3b7aa88 Compare September 26, 2023 12:26
@foundationdb-ci
Copy link

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

  • Commit ID: 3b7aa88
  • Duration 2:44:30
  • 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)

@johscheuer johscheuer closed this Sep 26, 2023
@johscheuer johscheuer reopened this Sep 26, 2023
@foundationdb-ci
Copy link

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

  • Commit ID: 3b7aa88
  • Duration 2:47:23
  • 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)

Copy link
Member Author

@johscheuer johscheuer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I create a follow up to fix the two HA test failing:


Summarizing 2 Failures:
  [FAIL] Operator HA Upgrades upgrading a cluster with operator pod chaos and without foundationdb pod chaos [It] Upgrade from 7.1.37 to 7.3.15 [e2e, pr]
  /codebuild/output/src3189181246/src/github.com/FoundationDB/fdb-kubernetes-operator/e2e/test_operator_ha_upgrades/operator_ha_upgrade_test.go:197
  [FAIL] Operator HA Upgrades Upgrading a multi-DC cluster, with a temporary partition [It] Upgrade, with a temporary partition, from 7.1.37 to 7.3.15 [e2e, pr]
  /codebuild/output/src3189181246/src/github.com/FoundationDB/fdb-kubernetes-operator/e2e/fixtures/ha_fdb_cluster.go:313

@johscheuer johscheuer merged commit 3f46d10 into FoundationDB:main Sep 27, 2023
16 checks passed
@johscheuer johscheuer deleted the refactor-code-use-process-group-directly branch September 27, 2023 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants