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
Enable Qtile tests #93837
base: master
Are you sure you want to change the base?
Enable Qtile tests #93837
Conversation
refactor: remove rec and move version into the let expression rename python37Packages usages to "pypa" enabled tests: patch conftest to keep the nix python environment variables, this fixes all the enabled tests add test dependencies run pytest with xvfb-run with HOME set for the duration of the test
f2c2d63
to
e0c9f64
Compare
e0c9f64
to
52ac484
Compare
52ac484
to
04426c1
Compare
I'm not sure but tests might be failing nondeterministically. |
04426c1
to
43b92f8
Compare
|
this time I got:
|
Dev says " xcffib.ConnectionException: xcb connection errors because of socket, pipe and other stream errors." means the X server is crashing. I don't know why, but an intermediate workaround seems to be to use pytest-rerunfailures to rerun tests. Some bad statistics: Edit: It's notable that those are marked "ERROR" and actually failing tests are marked "FAILED". |
43b92f8
to
4e742ad
Compare
4e742ad
to
0b4c420
Compare
Looks like the svg errors are due to env vars being lost somewhere again;
|
8337a5f
to
4779dba
Compare
src = ./0003-Restart-executable.patch; | ||
out = "$out"; | ||
}) | ||
./0004-Keep-env-in-test-process-spawner.patch #TODO upstream this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about doing it? :)
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE" \ | ||
--set QTILE_WRAPPER '$0' \ | ||
--set QTILE_SAVED_PYTHONPATH '$PYTHONPATH' \ | ||
--set QTILE_SAVED_PATH '$PATH' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't built it locally, but I think there's double wrapping here. If I'm correct, could you please use makeWrapperArgs
?
buildInputs = [ glib libxcb cairo pango python37Packages.xcffib ]; | ||
buildInputs = [ glib libxcb cairo pango pypa.xcffib librsvg ]; | ||
|
||
pythonPath = with pypa; [ xcffib cairocffi-xcffib setuptools setuptools_scm ]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this used?
@@ -17,34 +26,60 @@ python37Packages.buildPythonApplication rec { | |||
}; | |||
|
|||
patches = [ | |||
./0001-Substitution-vars-for-absolute-paths.patch | |||
(substituteAll { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It'd be nice to have a comment above each patch explaining them.
Just leaving a note here that I'm not sure when I will be working on this again, so if anyone is interested, feel free to take it up! |
I marked this as stale due to inactivity. → More info |
Following up on qtile/qtile#1828, this enables tests for qtile.
I will disable the failing tests with a push in a few minutes, since I believe partial testing is still better than none, and then reenabling them can be worked on later.