-
Notifications
You must be signed in to change notification settings - Fork 110
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
Travis: test flickering #341
Comments
The problem comes from the test that simulates an "nvidia" search. That stub mocks the http call on a search by substring, as we do expect the search to hit https://github.com/openSUSE/software-o-o/blob/master/app/models/seeker.rb#L29 However, sometimes, the search hits https://github.com/openSUSE/software-o-o/blob/master/app/models/seeker.rb#L32 , which happens for terms specified with quotes, which results in a exact match being issued, which is not stubbed by our tests. The only places where such search happens, is:
Giving that the first usage is in the search results (
So a way of fixing it would be to stub the search for every subpackage based on exact match. However, I would still be puzzled on why it happens sometimes. |
I have a fix that stubs the missing query, however this code path comes directly from hell. The code is calling:
And the stub is
And here is the culprit of that space: software-o-o/app/models/seeker.rb Line 32 in 72ae9d1
Which seems to be a totally out of place space, as then the items are joined, not concatenated. |
There is one test that fails sometimes. Triggering a rerun of travis often gets the test to pass. This happens in many PRs and while this is not news to some of us, I want to have it documented here so everyone can know about it 😃
Quoting Duncan:
The text was updated successfully, but these errors were encountered: