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

Update pylint from 2.3.1 to 2.7.4 #5153

Merged
merged 1 commit into from
Jan 26, 2024
Merged

Conversation

kenodegard
Copy link
Contributor

Description

tests/test_api_skeleton.py::test_get_package_metadata has suddenly become very flaky on Windows (not sure why, it almost looks like a caching issue or some other Windows specific issue where its unable to properly delete old files), see recent failures here and here.

This is a dumb attempt to fix the issue by simply updating the pylint version (from 2.3.1 to 2.7.4, the last pylint to use setup.py without setup.cfg) the test fetches from PyPI. As a bonus this change also allows the test to succeed on osx-arm64.

Checklist - did you ...

  • Add a file to the news directory (using the template) for the next release's release notes?
  • Add / update necessary tests?
  • Add / update outdated documentation?

This is the last `pylint` to use `setup.py` without `setup.cfg`
@conda-bot conda-bot added the cla-signed [bot] added once the contributor has signed the CLA label Jan 26, 2024
@kenodegard kenodegard changed the base branch from main to 24.1.x January 26, 2024 18:11
@kenodegard kenodegard self-assigned this Jan 26, 2024
@kenodegard kenodegard enabled auto-merge (squash) January 26, 2024 18:36
@kenodegard kenodegard merged commit 0fd0f0b into conda:24.1.x Jan 26, 2024
28 checks passed
@kenodegard kenodegard deleted the update-pylint branch January 26, 2024 18:41
@kenodegard kenodegard mentioned this pull request Jan 26, 2024
43 tasks
@@ -297,7 +314,7 @@ def test_get_package_metadata(testing_config, mock_metadata, pylint_metadata):
mock_metadata,
{},
".",
"3.7",
Copy link
Member

Choose a reason for hiding this comment

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

This is probably the thing that fixed the CI.
Python >=3.8 handles TemporaryDirectory cleanups better: python/cpython#10320 .

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hm interesting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed [bot] added once the contributor has signed the CLA
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants