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

Graphical X / Wayland renderer tests on the CI? #2383

Closed
Ambrevar opened this issue Jun 17, 2022 · 4 comments
Closed

Graphical X / Wayland renderer tests on the CI? #2383

Ambrevar opened this issue Jun 17, 2022 · 4 comments
Labels
help-wanted test Testing and benchmarking.

Comments

@Ambrevar
Copy link
Member

In 232eddc I had to disable the renderer tests on the CI because they fail with:

<INFO> [14:02:56] Listening to socket #P"/tmp/nyxt-test.socket".
Unable to init server: Could not connect: Connection refused
error: XDG_RUNTIME_DIR not set in the environment.
error: XDG_RUNTIME_DIR not set in the environment
Nested Wayland compositor could not create display socket

Even though we are running in headless mode. I thought #2054 had figured it out, but apparently not.

Any idea?

@Ambrevar Ambrevar added test Testing and benchmarking. help-wanted labels Jun 17, 2022
@CorruptedVor
Copy link
Contributor

well, first off: XDG_RUNTIME_DIR not set in the environment
you need to set it to i.e. export XDG_RUNTIME_DIR="/tmp/$(id -u)" and then make sure it exists via mkdir $XDG_RUNTIME_DIR

The connection refused part seems like a permission issue. Is there any code anywhere starting a window manager? How does it start? https://github.com/atlas-engineer/nyxt/blob/master/.github/workflows/tests.yml looked promising but couldn't find it.

@jmercouris
Copy link
Member

You are correct, there is no code starting a window manager. What I do wonder is if the ubuntu-latest image includes a display server. It is possible/probable that is why it is failing.

@jmercouris
Copy link
Member

I should have read more carefully, it includes Wayland! However, maybe something strange happens when there is no GPU/hardware for a display?

@aadcg
Copy link
Member

aadcg commented Mar 11, 2024

This is certainly possible, but CI doesn't provide much value at the moment.

@aadcg aadcg closed this as not planned Won't fix, can't repro, duplicate, stale Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help-wanted test Testing and benchmarking.
Development

No branches or pull requests

4 participants