-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
CI: Fix clipboard problems #29712
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
CI: Fix clipboard problems #29712
Conversation
First run successful (problems uploading the coverage, but all tests passed in all builds). Restarting... |
Or I don't think this should harm, if you prefer to merge and see in the other builds... Otherwise I'll restart the job couple times more to see if this looks like it's fixing the unreliable test. |
Looks like this doesn't fix the problem. Re-reading again the docs, I think the new option would help errors if there are multiple I think it's still worth merging this, but still need to find out what's making that test fail. |
@datapythonista maybe try 6557e9b out? I didn't look into the failures for that run. Turns out they were unrelated. I'm not sure how pytest-xdist splits up modules, but if it's done after importing the file, that first one would have already run. |
Will have a look. |
The whole file is definitely run on one worker (you can check with `-v`).
I'm just unsure whether or not the top-level of the module is executed
before being assigned to a worker.
…On Tue, Nov 19, 2019 at 1:03 PM Marc Garcia ***@***.***> wrote:
@datapythonista <https://github.com/datapythonista> maybe try 6557e9b
<6557e9b>
out?
Will have a look. pytest-xdist should allocate whole files to workers, I
guess that will happen in the worker already, but not sure.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#29712?email_source=notifications&email_token=AAKAOIQQMK4AK6HGJCH5OITQUQ2ALA5CNFSM4JPGDLK2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEEPK64A#issuecomment-555659120>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAKAOIW3EEZZBWFXS66BGX3QUQ2ALANCNFSM4JPGDLKQ>
.
|
could we put this into an allowed_fail or something so this doesn't hang up other PRs? or would that make it too likely to slip through the cracks? |
(cherry picked from commit 6557e9b)
Pushed up the deferred check. I think if that's failing and @datapythonista is out of ideas then we can xfail these tests. |
got green here. does that mean this is fixed or just a lucky run? |
Lucky run so far, let's try again... |
…ice), and moving unicode test with the others
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.
I don’t think we want this on the class. IUCC, the tests in the class have the clipboard mocked.
Yep, you're right. Not sure why I thought only the methods using What I see is that I'll continue tomorrow, it's 2am here, but once we know where they are running we may want to do one of:
I'd also remove the skip, and add to the patterns |
…wn, not sure where they run)
…ere it should, and fixing linting
@jreback @TomAugspurger this should fix the problems with the clipboard, and stop xfailing the tricky test. What I'm doing here:
|
Thanks for tracking this down. A bit unfortunate about qt, but uninstalling is probably the right move. I don’t expect this to cause issues elsewhere.
… On Jan 14, 2020, at 19:47, Marc Garcia ***@***.***> wrote:
@jreback @TomAugspurger this should fix the problems with the clipboard, and stop xfailing the tricky test.
What I'm doing here:
Be explicit on when we run the tests (previously, we ignored the clipboard tests if the pandas to_clipboard() method was failing)
Use xvfb when a X server is not available in the CI
Install xsel in all the builds where we test the clipboard
Uninstall qt, which was causing problems
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
lgtm. I moved to the 1.0.0 milestone. @TomAugspurger if you are ok, merge away. |
Thanks @datapythonista! |
Co-authored-by: Marc Garcia <[email protected]>
The strange thing is that it seems this has not been fixed on i586. In openSUSE, test suite passes with x86_64, but fails with i586 on test_raw_rountrip:
|
Can you verify that the clipboard is set up properly on that system? If not then the clipboard tests need to be skipped. |
|
We were erroneously skipping the clipboard tests so we decided to make these opt-out. |
Fixes the clipboard problems in the CI. With this PR we're sure they are being run, and they work as expected.