-
Notifications
You must be signed in to change notification settings - Fork 170
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
BUG: Travis builds are failing due to "pip install cython" #199
Comments
I tried a quick fix of returning the build to the default Python version (v3.6 as of now), but with that we are now seeing a Python test failure. Travis patch:
Test failure: https://travis-ci.org/pcmoore/misc-libseccomp/builds/634088624
|
Yuck - I agree this is high priority. I'll try and help debug this today. |
I have hacked around with this a little bit, and I don't like what I have found. As best as I can tell, test 24 seems dependent upon what has been run before it. I created a branch and I have two patches in it. Patch 1 - The above patch to disable the nightly python - Automated tests fail (due to test 24) |
Well that is really annoying, and not something that makes much sense. Sigh. Thanks for playing with it; the latter half of last week was a bit bonkers for me, and I expect the rest of January will be the same. @whereswaldon has a fix in #201, but I'm starting to think the proper fix for Travis might be to just skip the Python live tests and only run the native/C live tests; otherwise I'm afraid we will continue to have sporadic test failures due to Python changes in the Travis environment. The Python bindings are a thin layer that doesn't actually generate any BPF, that's left to the C code. As long as we continue to run the simulated Python tests and the native/C live tests I think we should be okay, thoughts? FWIW, I consider Travis to be a bit of a special case and not always indicative of real distros, but the benefits of CI outweigh the risks due to the difference. Further, I would still expect us to run the live tests as part of the regular release process testing. |
Yes, I think this is the best option available to us. |
So we'd be skipping only running the live shim layer that invokes libseccomp from python? What are the "simulated Python tests"? I'm trying to understand the different kinds of testing in use in the repo. I assume that the live tests run against the kernel underneath them, but what do that simulated tests do? Does it fake the |
Correct.
Good questions. There are several test types in libseccomp:
Finally, all of the above tests can test the C APIs or the python APIs. You will typically see two copies of a test (a *.c and a *.py) in our test directory. @pcmoore is proposing that we no longer run the live python tests since they are encountering errors outside of our control. Given that we're still running live C tests and simulated python tests, I feel like this is probably our best approach. |
I've attempted to implement this proposal in #202 |
This should be fixed in #202, closing for now. |
When merging PRs today I noticed that Travis started failing due to problems installing Cython via pip:
We need to fix this soon.
The text was updated successfully, but these errors were encountered: