-
Notifications
You must be signed in to change notification settings - Fork 92
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
Failing test case #465
Comments
Hm, currently I can only see one failing test (openSUSE_Tumbleweed, x86_64), but I can see a few more failures in the build histories - probably they have been rebuild after you removed the tests. |
And thanks for the reports - as we only test 3 specific systems (using Travis.CI and AppVeyor), this is really helpful! |
Yeah, there have been different causes for that and overall the testsuite seems to be somewhat flaky. In the original build log I've attached to this issue, it was the However now
That's right, within this spec file the package is built for python2 as well as for python3. The unit test error is happening during the testing of python3, which is invoked in this way:
In the case of python2 tests are skipped anyway:
Not sure why the tests are skipped, need to further investigate this.
From the build log:
And
Is there anything else I can check up on that would help you to narrow this down? |
If the failure happens in Python 3, and |
No, we are also able to test unreleased versions (from basically any source archive, etc.) and/or apply separate patches on top of some sources. So if you have a git commit / branch, just let me know, I will test it and come back to you. However I'm still not sure why the test suite is skipped for Python 2 altogether:
Any idea on what is going on here? I don't think I'm doing anything special here in regards to Python 2. |
- shall match the current behavior - see pytest-dev#465
Ok, bad idea - this breaks this test consistently. |
- ensures running tests using setup under Python 2 - see #465
I'm still not sure what the problem is. I hopefully fixed the problem with tests not running in Python 2: the test suite was not defined in If the problem persists in Python 2, then there is something wrong with patching |
@kbabioch - can you please check with master? I want to see what the result of the Python 2 tests is to decide where to go. |
I've created a new project within our build service. I'm trying to build master (4e93a2b) there, which fails in the following way:
I'm attaching the full build log here. You can find it online here, but it might become unavailable in the future. Is this output more helpful? Is there something else I can provide you with? |
Thanks for that! I downloaded the logs to have a closer look later. The failures seen in the log above are tests of the real file system - they are just there to check if the real fs behaves as we expect (and emulate). On the one hand, we could just disable these tests if running from I will not have much time before the weekend, so it may take a few days before I will come back to this. I'm not sure what is the best solution to solve the packaging problem (the easiest certainly would be to disable all tests :), and what your time constraints are... |
Thanks for looking into this and all of your support.
I would prefer to not disable the tests. These are the only way to have some confidence in our packages and to not introduce regressions with version updates, etc. You should also be interested to have reliable tests that can be run on all platforms.
I really don't have any time constrains. I'm just packaging this for (open)SUSE and make it available for others to use. I appreciate all of your help, but I really don't have any time constrains here ... |
Same here - that wasn't meant as a real solution. Though I'm thinking about disabling the real OS tests in this case, as they don't test the framework, and I don't see that we will support small differences in the behavior of different systems (other than the ones we already test with CI), at least not until someone really needs it. |
- tests are enabled by an environment variable, set in CI tests - see #465
@kbabioch - can you please have another run with master? I'm not sure that the |
Here are the latest results from my project within our build service. I'm trying to build master (332ff71) there, which succeeds to build now. You'll find the build log here: https://build.opensuse.org/build/home:kbabioch:branches:devel:languages:python/openSUSE_Tumbleweed/i586/python-pyfakefs/_log For archiving purposes I'm also uploading it: build.log Let me know if there is something else you need. |
Thanks - this looks ok now! What about the other systems that have been failing? As far as I remember, there have been failures on other architectures as well... |
As far as I can tell it works on all architectures now (s390x, ppc, aarm64, etc.), so I would suggest to tag a new release. Thank you very much for taking care of this. |
Ah, thanks - I will do this then! |
Ok, done. |
- exclude pathlib tests if pathlib is not available - moved pytest tests put of tests to not be discovered - see pytest-dev#465
- exclude pathlib tests if pathlib is not available - moved pytest tests put of tests to not be discovered - see pytest-dev#465
- exclude pathlib tests if pathlib is not available - moved pytest tests put of tests to not be discovered - see pytest-dev#465
- exclude pathlib tests if pathlib is not available - moved pytest tests put of tests to not be discovered - see pytest-dev#465
I have seen some tests still failing - all have to do with |
It would be nice if you could trigger yet another master build... |
@kbabioch - I'm trying to follow your builds, but I don't really understand them. Some of the builds sometimes fail and sometimes succeed (like the Leap builds) - are these the same builds, or or there any changes in the configuration? |
@kbabioch - looks like all builds are passing now. Is that correct, can we close the issue? |
@mrbean-bremen Yup, for now all is fine and dandy as far as I can tell. Thank you very much for your time and effort, I will be back once there are issues again ;-). |
That's good, thanks :) I'm still unsure about the other issue (rpmlint warning), which still appears in one build - I have no idea how that is possible... |
Describe the bug
While trying to build the package in our build service (https://build.opensuse.org/package/show/devel:languages:python/python-pyfakefs), I've realized that the build fails for some architectures and distributions due to a failing unit test:
This only happens with the latest release, which, according to #462, did some changes in regards to pathlib.
You can find the full build log here
Let me know what other information you need in order to get this debugged.
How To Reproduce
See above (OBS build service)
Your enviroment
See above (OBS build service)
The text was updated successfully, but these errors were encountered: