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

pin astroid version? #4527

Closed
skshetry opened this issue May 31, 2021 · 7 comments · Fixed by #4533
Closed

pin astroid version? #4527

skshetry opened this issue May 31, 2021 · 7 comments · Fixed by #4533
Milestone

Comments

@skshetry
Copy link
Contributor

skshetry commented May 31, 2021

Hi there. Would it be possible to pin the astroid version? It looks like in astroid==2.5.7, the inference was improved and started to notify errors that were false negatives before (which is a good thing).

But this makes CI fail in a surprising way. If the new release came with pylint, it'd have been easier to fix the errors. 🙂

@skshetry skshetry changed the title pin astroid pin astroid? May 31, 2021
@skshetry skshetry changed the title pin astroid? pin astroid version? May 31, 2021
@Pierre-Sassoulas
Copy link
Member

I think it makes sense, beside, anticipating the effect of new astroids in old pylint is always a difficult exercise. We might have impacted the performance of pylint 2.8.2 because of #4524 and cannot expect everyone to downgrade to 2.5.6 manually if that really become a problem. What do you think @cdce8p ?

@cdce8p
Copy link
Member

cdce8p commented May 31, 2021

I agree, the situation isn't ideal. Usually it's not that big of a deal as we also release pylint shortly after, but as you mentioned we have to deal with #4524 first. The only downside to limiting it that releasing becomes a bit more time consuming, since it needs to be >= during the development period.

@Pierre-Sassoulas Do you consider releasing 2.8.3 just with astroid==2.5.7?

Long term we might want to consider vendoring astroid. That way we could update the astroid version pylint uses more frequently without the need for a new release. It would also negate the need for some pylint MRs to wait until the next release before we can merge them.

@stanislavlevin
Copy link
Contributor

With the released Astroid 2.5.7 even Pylint's selftests fail...

@stanislavlevin
Copy link
Contributor

Some mechanism of synced releases is required, IMO. Otherwise, CI is broken again :(

@Pierre-Sassoulas
Copy link
Member

With the released Astroid 2.5.7 even Pylint's selftests fail...

Two tests are not passing but only because a false negative is now detected. See #4523

@Pierre-Sassoulas
Copy link
Member

I released pylint 2.8.3 with astroid pinned to 2.5.6 and upgraded the release documentation so astroid is pinned for the next release in #4533.

@stanislavlevin
Copy link
Contributor

Thank you!

crwood added a commit to gridsync/gridsync that referenced this issue Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants