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

Interactive example does not work for MacOS #4642

Closed
metonymic-smokey opened this issue Sep 7, 2021 · 7 comments
Closed

Interactive example does not work for MacOS #4642

metonymic-smokey opened this issue Sep 7, 2021 · 7 comments

Comments

@metonymic-smokey
Copy link
Contributor

Thanos, Prometheus and Golang version used: latest,2.29,1.16

Object Storage Provider:
Local filesystem

What happened:
The interactive example, examples/interactive/interactive_test.go does not run for MacOS users. The go test command results in an error.

What you expected to happen:
The example should run without an error and the UI should open in a browser when it runs.

How to reproduce it (as minimally and precisely as possible):
Run make docker. Then run go test interactive_test.go -test.timeout=9999m in examples/interactive.

Anything else we need to know:

@matej-g
Copy link
Collaborator

matej-g commented Sep 11, 2021

Hey @metonymic-smokey, would you mind posting what is the exact error you get?

AFAIK the interactive test has not been really tried on platforms other than Linux, but would be nice if we can make it work on MacOS as well.

@yeya24
Copy link
Contributor

yeya24 commented Sep 19, 2021

@matej-g The error I got locally:

❯ go test interactive_test.go -test.timeout=9999m
# github.com/containerd/cgroups
/Users/yeya24/go/pkg/mod/github.com/containerd/cgroups@v1.0.1/memory.go:463:14: undefined: unix.Eventfd
/Users/yeya24/go/pkg/mod/github.com/containerd/cgroups@v1.0.1/memory.go:463:30: undefined: unix.EFD_CLOEXEC
/Users/yeya24/go/pkg/mod/github.com/containerd/cgroups@v1.0.1/utils.go:70:8: undefined: unix.CGROUP2_SUPER_MAGIC
/Users/yeya24/go/pkg/mod/github.com/containerd/cgroups@v1.0.1/utils.go:77:18: undefined: unix.CGROUP2_SUPER_MAGIC
FAIL    command-line-arguments [build failed]
FAIL

@matej-g
Copy link
Collaborator

matej-g commented Sep 20, 2021

Hm it looks like we're hitting this containerd/cgroups#19. The package is used in e2emonitoring in efficientgo/e2e. We will probably need to find a way to solve this in the upstream.

In the meantime, perhaps we can have the tests without the monitoring endpoint, which would remove the dependency on e2emonitoring - which is nice-to-have but it is not essential for the interactive tests to run. WDYT?

@yeya24
Copy link
Contributor

yeya24 commented Oct 1, 2021

In the meantime, perhaps we can have the tests without the monitoring endpoint, which would remove the dependency on e2emonitoring - which is nice-to-have but it is not essential for the interactive tests to run. WDYT?

SGTM!

@matej-g
Copy link
Collaborator

matej-g commented Oct 1, 2021

If any MacOS user can confirm this works 🙂 - #4726

@metonymic-smokey
Copy link
Contributor Author

metonymic-smokey commented Oct 1, 2021 via email

@yeya24
Copy link
Contributor

yeya24 commented Nov 10, 2021

Close now as it is fixed.

@yeya24 yeya24 closed this as completed Nov 10, 2021
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

3 participants