Skip to content

Conversation

@Pierre-Sassoulas
Copy link
Member

@Pierre-Sassoulas Pierre-Sassoulas commented Sep 17, 2023

Type of Changes

Type
βœ“ πŸ› Bug fix

Description

Closes #7710

Require an upgrade in astroid and pylint-dev/astroid#2244 being merged. Will probably fix other issues in other messages whenever sys.argv is used in a check but I don't aim to create exhaustive tests.

@codecov
Copy link

codecov bot commented Sep 17, 2023

Codecov Report

Merging #9041 (2717c53) into main (8231e06) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@ Coverage Diff @@ ## main #9041 +/- ## ======================================= Coverage 95.75% 95.75% ======================================= Files 173 173 Lines 18656 18656 ======================================= Hits 17864 17864 Misses 792 792 
@Pierre-Sassoulas
Copy link
Member Author

When launching all the tests it's not failing, but when launching only the test with pytest -k unbalan it properly fail :

________________________ test_functional[unbalanced_tuple_unpacking] ____________________________ self = <pylint.testutils.lint_module_test.LintModuleTest object at 0x7f8fea7c2dd0> def runTest(self) -> None: > self._runTest() E AssertionError: Wrong message(s) raised for "unbalanced_tuple_unpacking.py": E E Unexpected in testdata: E 169: unbalanced-tuple-unpacking 

Not sure why, but without the astroid upgrade if should fail all the time.

@Pierre-Sassoulas Pierre-Sassoulas self-assigned this Sep 18, 2023
@Pierre-Sassoulas Pierre-Sassoulas added the Needs investigation πŸ”¬ A bug or crash where it's not immediately obvious what is happenning label Sep 18, 2023
@github-actions
Copy link
Contributor

πŸ€– Effect of this PR on checked open source code: πŸ€–

Effect on pytest:
The following messages are now emitted:

  1. deprecated-typing-alias:
    'typing.Callable' is deprecated, use 'collections.abc.Callable' instead
    https://github.com/pytest-dev/pytest/blob/d2b214220f63e1fc90120495d600893cfba6219f/src/_pytest/compat.py#L174
  2. deprecated-typing-alias:
    'typing.Callable' is deprecated, use 'collections.abc.Callable' instead
    https://github.com/pytest-dev/pytest/blob/d2b214220f63e1fc90120495d600893cfba6219f/src/_pytest/mark/expression.py#L173

This comment was generated for commit 2717c53

@Pierre-Sassoulas
Copy link
Member Author

Upgrading astroid locally does fix the test when launched with pytest -k unbalan

@jacobtylerwalls
Copy link
Member

We can tackle test isolation issues in future work by adding a pytest plugin or some other solution for shuffling test cases.

@Pierre-Sassoulas Pierre-Sassoulas merged commit 65959d3 into pylint-dev:main Sep 24, 2023
@Pierre-Sassoulas Pierre-Sassoulas deleted the regression-tests-7710 branch September 24, 2023 16:06
@github-actions
Copy link
Contributor

The backport to maintenance/2.17.x failed:

The process '/usr/bin/git' failed with exit code 1 

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub git fetch # Create a new working tree git worktree add .worktrees/backport-maintenance/2.17.x maintenance/2.17.x # Navigate to the new working tree cd .worktrees/backport-maintenance/2.17.x # Create a new branch git switch --create backport-9041-to-maintenance/2.17.x # Cherry-pick the merged commit of this pull request and resolve the conflicts git cherry-pick -x --mainline 1 65959d3c310f9da6e1d89ace3c1abb3bed4c8757 # Push it to GitHub git push --set-upstream origin backport-9041-to-maintenance/2.17.x # Go back to the original working tree cd ../.. # Delete the working tree git worktree remove .worktrees/backport-maintenance/2.17.x

Then, create a pull request where the base branch is maintenance/2.17.x and the compare/head branch is backport-9041-to-maintenance/2.17.x.

@Pierre-Sassoulas Pierre-Sassoulas removed Blocked 🚧 Blocked by a particular issue Needs investigation πŸ”¬ A bug or crash where it's not immediately obvious what is happenning labels Sep 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants