Skip to content
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

Revert "Use isort v5.x as the default version (#10258)" #10460

Merged
merged 1 commit into from Jul 27, 2020

Conversation

stuhood
Copy link
Sponsor Member

@stuhood stuhood commented Jul 27, 2020

This reverts commit c827416.

Between isort 4 and isort 5, the requirement on which files are present in the sandbox has changed, and this can result in unstable sort orders. See PyCQA/isort#1147 for the likely cause. Under isort 5, the following set of roots (via ./pants --changed-parent=master list can result in an order that does not align with ./pants list ::: https://gist.github.com/stuhood/ec04e86b8a1f44d8b11dcb79a1732a8f

In order to use isort 5 stably in a sandbox, we will need to include the necessary transitive dependencies for it to execute its new first-party-detection algorithm, or disable it.

[ci skip-rust-tests]

Copy link
Contributor

@Eric-Arellano Eric-Arellano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a real bummer...destroys caching even more than before.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 0.0% when pulling 359be18 on stuhood:stuhood/revert-isort-5 into d63b29c on pantsbuild:master.

@stuhood stuhood merged commit 36968d4 into pantsbuild:master Jul 27, 2020
@stuhood stuhood deleted the stuhood/revert-isort-5 branch July 27, 2020 15:14
Eric-Arellano added a commit that referenced this pull request Sep 4, 2020
Closes #10727.

We originally reverted this in #10460 due to flakiness in the sorting algorithm, but I can't reproduce this. Toolchain has also been using isort 5.x for the past month without any reported issues. Possibly, isort fixed the issue in between 5.0.0 and 5.5.1

[ci skip-rust]
[ci skip-build-wheels]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants