-
Notifications
You must be signed in to change notification settings - Fork 192
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
seemingly random changes in pre-commit #3885
Comments
Just to follow up on this, here are links to recent github actions runs: Looking at the python environment, the only differences are:
I don't think those packages have anything to do with it. |
@ltalirz The only thing that I can imagine is that there were somehow different versions of pylint installed locally and remotely, but that's very weird, since pylint is explicitly pinned to prevent this. |
I'm referring exclusively to what happens on Github actions here. |
@ltalirz I also looked at the differences in the Python environments, and found the exact same that you found. Absolutely no clue what could be going on here since none of the packages that differed are dependencies of |
BTW, I saw the same exact issue also in #3650 |
@giovannipizzi How did you resolve it? Also rebase? |
No, I actually added |
@giovannipizzi Since all tests pass we should probably not mess with #3650 any further, but should this issue occur again, I propose that we rebase on |
I'm now getting this warning in #3894
despite the fact that the @csadorf Given the issues with the git checkout action on the update-requirements workflow, I almost start to suspect that this is related to the git checkout... |
@ltalirz I looked at the output of the checkout action and found that it checks out a special merge commit e0f7cb9 : Note: switching to 'refs/remotes/pull/3894/merge'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:
git switch -c <new-branch-name>
Or undo this operation with:
git switch -
Turn off this advice by setting config variable advice.detachedHead to false
HEAD is now at e0f7cb9 Merge c59c32f823cb4b2285052eeba7d8a4a3afc7c508 into 5da7120645b6cdb751d6db54431ead38417d2345
/usr/bin/git log -1
commit e0f7cb9e4b6a0d074f0b32e36689e9bc34ba8212
Author: Leopold Talirz <leopold.talirz@gmail.com>
Date: Mon Apr 6 07:53:37 2020 -0500
Merge c59c32f823cb4b2285052eeba7d8a4a3afc7c508 into 5da7120645b6cdb751d6db54431ead38417d2345 For this commit, the pylint overrides are indeed present: https://github.com/aiidateam/aiida-core/blob/e0f7cb9e4b6a0d074f0b32e36689e9bc34ba8212/.ci/workchains.py#L71-L72 So in conclusion: I have absolutely no clue how it is possible that pylint complains about these two lines. We could try to run |
I did a few more tests locally: even if I remove the
nor using
nor using
I also tested (only once, since it takes time):
Besides the code being different (which we can check just by adding If that's the case, the question is: which "disturbance in the force" triggers whether we hit the bug? |
Something strange happened in PR #3875
After some time working on the PR, pylint suddenly started complaining about invalid variable names in
.ci/workchains.py
(a file untouched by the PR):aiida-core/.ci/workchains.py
Lines 71 to 72 in 035a9da
I added a commit that added
# pylint: disable=invalid-name
comments and the problem went away.@sphuber in the end rebased my PR, somehow getting rid of these additional changes in the process. So far, so good.
The strange thing is: The pre-commit check on the final commit of the PR passed, despite the fact the comments were no longer there.
It seems we are witnessing the same again in PR #3738 - pre-commit now started complaining about these two lines again.
@csadorf Do you have any idea what could be going on?
The text was updated successfully, but these errors were encountered: