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

Some tests do not run locally (macOS) #1387

Open
akurinnoy opened this issue Feb 17, 2025 · 0 comments
Open

Some tests do not run locally (macOS) #1387

akurinnoy opened this issue Feb 17, 2025 · 0 comments

Comments

@akurinnoy
Copy link
Contributor

Is your task related to a problem? Please describe

Trying to run tests locally in macOS I noticed that some tests did not even run with the following error:

  [FAILED] Unexpected error:
      <*fmt.wrapError | 0xc0003ea340>:
      unable to start control plane itself: failed to start the controlplane. retried 5 times: fork/exec ../../../bin/k8s/1.24.2-linux-amd64/etcd: no such file or directory
      {
          msg: "unable to start control plane itself: failed to start the controlplane. retried 5 times: fork/exec ../../../bin/k8s/1.24.2-linux-amd64/etcd: no such file or directory",
          err: <*fmt.wrapError | 0xc0003ea320>{
              msg: "failed to start the controlplane. retried 5 times: fork/exec ../../../bin/k8s/1.24.2-linux-amd64/etcd: no such file or directory",
              err: <*fs.PathError | 0xc0003e77a0>{
                  Op: "fork/exec",
                  Path: "../../../bin/k8s/1.24.2-linux-amd64/etcd",
                  Err: <syscall.Errno>0x2,
              },
          },
      }
  occurred

I think it is because of the envtest configuration which points to the wrong location for the macOS users: https://github.com/devfile/devworkspace-operator/blob/main/controllers/controller/devworkspacerouting/suite_test.go#L89.
The correct location should contain 1.24.2-darwin-amd64 instead.

Describe the solution you'd like

Configure envtest according to the OS on which the tests will run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant