-
-
Notifications
You must be signed in to change notification settings - Fork 574
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
[regression] Inconsistent results on travis-ci #541
Comments
I'm getting this too, it's not the same as #457. Which I think was caused by installing some packages locally. Example: https://travis-ci.org/samuelcolvin/arq/jobs/238303765 |
@nemesisdesign: Do you mean inconsistent from local running of isort? I couldn't reproduce this issue, but I did notice you only run isort for Python3 - so it couldn't be inconsistencies between Python versions. It looks like on travis it's incorrectly identifying a project level import, is this correct? Thanks! ~Timothy |
I don't think it was a case for @nemesisdesign build, but in general you might get inconsistencies if travis is cacheing pip and using cached isort in version other than your local one (clearing travis repo cache might help). |
another example: https://travis-ci.org/em-2/em2/jobs/239309361 pytest-isort on travis wants blank lines but pytest-isort locally doesn't care. This is fixed by running |
@krzysztof thank you for the tip. I've ran into the same issue before and it was a pain to fix. But this time I tried the same fix I applied last time and it didn't work. I worked around it by pinning isort to 4.2.5 for the moment. |
@timothycrosley in short, the problem is that I cannot get the same output of the travis build in my local development environment, I'm having this issues in several python packages. I usually create my virtualenvs with the following command: mkvirtualenv --python=/usr/bin/python3 <name> May it be a problem with virtualenvwrapper? I really don't know :-/ |
Or maybe is a misunderstanding in how the library should be used? Not sure! |
@nemesisdesign It looks like a problem with the isort distinction between first/third party packages, it sometimes happens when they are installed with dev dependencies (not your case). Nonetheless, you can try creating an .editorconfig file and setting "known_third_party" value, which specifies the dependencies for some of the requirements you have here: https://github.com/openwisp/django-netjsonconfig/blob/master/requirements.txt For example, our editorconfig: |
@krzysztof You are my hero of the day. Solved my inconsistent test results with:
|
@krzysztof @timothycrosley: |
I solved that build issue by specifying It's a shame I will have to do this for all my projects though.. there are quite a few openwisp2 modules out there I will need to upgrade.. |
I had the same issue as described above, despite already having |
I am having a similar issue, but not with Python. It is happening on my clone of the MuseScore repo, and is illustrated by these two log files: These are two Travis jobs that ran concurrently on the same git commit and push, because I have Travis setup on my repo and this branch is also attached to a pull request that runs Travis. These two log files are far from identical. Travis is producing different results on the same branch, the same commit. Travis does have two separate commit ids for the two jobs. I don't know why that is. The issues are in the final stage of each build, running ctest scripts. Travis, using is the same code, generates different files that fail diff tests for different reasons. I don't expect you to know about MuseScore, but you can see near the bottom of the file, where it summarizes the failures, that in one log there are 27 failures, and in the other there are 25. Sounds impossible, but it's true, and there are specific diff differences that I can point to if you care to see them. Of course non of these failures happen when I run ctest locally, which is the worst part of this. If this comment is deemed unrelated to this issue, I'll create a separate issue. I'm simply exasperated and looking for any way to resolve this, hoping that someone here might be able to clarify and point me in the right direction. Thanks! |
I've done a significant amount of work to improve consistency across environments and platforms in the last few releases, i hope I have resolved these issues and am therefore closing this report. If I closed incorrectly please comment to let me know! Thanks! ~Timothy |
Thanks Timothy, I use isort on almost all my projects and it's now extremely consistent across different platforms. |
After the last release I started to get inconsistent results on travis again (python3).
I cannot replicate and fix the issues.
I opened this issue even though I don't have much details to offer, hoping that if more people are experiencing the same problem they will help to debug, for now I will try to pin the test requirements to the previous stable version.
The text was updated successfully, but these errors were encountered: