Skip to content

Conversation

@zhengruifeng
Copy link
Contributor

@zhengruifeng zhengruifeng commented Oct 25, 2022

What changes were proposed in this pull request?

Pin pytest==7.1.3

Why are the changes needed?

pytest-mypy-plugins==1.9.3 depends on pytest [required: >=6.0.0], pytest 7.2.0 is released just now

I guess it breaks the python linter

Traceback (most recent call last):
  File "/usr/local/bin/pytest", line 8, in <module>
    sys.exit(console_main())
  File "/usr/local/lib/python3.9/dist-packages/_pytest/config/__init__.py", line 190, in console_main
    code = main()
  File "/usr/local/lib/python3.9/dist-packages/_pytest/config/__init__.py", line 148, in main
    config = _prepareconfig(args, plugins)

Does this PR introduce any user-facing change?

No

How was this patch tested?

CI, but can not reproduce locally

@github-actions github-actions bot added the INFRA label Oct 25, 2022
@zhengruifeng
Copy link
Contributor Author

I compare the failed CI

Successfully installed alabaster-0.7.12 attrs-22.1.0 babel-2.10.3 beautifulsoup4-4.11.1 black-22.6.0 chevron-0.14.0 decorator-5.1.1 docutils-0.19 exceptiongroup-1.0.0rc9 flake8-3.9.0 imagesize-1.4.1 iniconfig-1.1.1 jinja2-2.11.3 mccabe-0.6.1 mypy-0.920 mypy-extensions-0.4.3 numpydoc-1.5.0 pathspec-0.10.1 platformdirs-2.5.2 pluggy-1.0.0 pycodestyle-2.7.0 pydata_sphinx_theme-0.11.0 pyflakes-2.3.1 pygments-2.13.0 pytest-7.2.0 pytest-mypy-plugins-1.9.3 regex-2022.9.13 snowballstemmer-2.2.0 soupsieve-2.3.2.post1 sphinx-5.1.1 sphinxcontrib-applehelp-1.0.2 sphinxcontrib-devhelp-1.0.2 sphinxcontrib-htmlhelp-2.0.0 sphinxcontrib-jsmath-1.0.1 sphinxcontrib-qthelp-1.0.3 sphinxcontrib-serializinghtml-1.1.5 tomli-2.0.1 typing-extensions-4.4.0

with a green one:

Successfully installed alabaster-0.7.12 attrs-22.1.0 babel-2.10.3 beautifulsoup4-4.11.1 black-22.6.0 chevron-0.14.0 decorator-5.1.1 docutils-0.19 flake8-3.9.0 imagesize-1.4.1 iniconfig-1.1.1 jinja2-2.11.3 mccabe-0.6.1 mypy-0.920 mypy-extensions-0.4.3 numpydoc-1.5.0 pathspec-0.10.1 platformdirs-2.5.2 pluggy-1.0.0 py-1.11.0 pycodestyle-2.7.0 pydata_sphinx_theme-0.11.0 pyflakes-2.3.1 pygments-2.13.0 pytest-7.1.3 pytest-mypy-plugins-1.9.3 regex-2022.9.13 snowballstemmer-2.2.0 soupsieve-2.3.2.post1 sphinx-5.1.1 sphinxcontrib-applehelp-1.0.2 sphinxcontrib-devhelp-1.0.2 sphinxcontrib-htmlhelp-2.0.0 sphinxcontrib-jsmath-1.0.1 sphinxcontrib-qthelp-1.0.3 sphinxcontrib-serializinghtml-1.1.5 tomli-2.0.1 typing-extensions-4.4.0

the major difference is the version of pytest, but I can not reproduce the failure locally with pytest=7.2.0, not sure whether it can fix the master

@zhengruifeng zhengruifeng changed the title [INFRA][WIP] Pin pytest==7.1.3 [SPARK-40913][INFRA] Pin pytest==7.1.3 Oct 25, 2022
@zhengruifeng zhengruifeng marked this pull request as ready for review October 25, 2022 13:13
@zhengruifeng
Copy link
Contributor Author

the python linter passed

cc @HyukjinKwon @dongjoon-hyun @Yikun

@HyukjinKwon
Copy link
Member

HyukjinKwon commented Oct 25, 2022

Merged to master.

HyukjinKwon pushed a commit that referenced this pull request Oct 25, 2022
Pin pytest==7.1.3

`pytest-mypy-plugins==1.9.3` depends on `pytest [required: >=6.0.0]`, [pytest 7.2.0](https://pypi.org/project/pytest/) is released just now

I guess it breaks the python linter

```
Traceback (most recent call last):
  File "/usr/local/bin/pytest", line 8, in <module>
    sys.exit(console_main())
  File "/usr/local/lib/python3.9/dist-packages/_pytest/config/__init__.py", line 190, in console_main
    code = main()
  File "/usr/local/lib/python3.9/dist-packages/_pytest/config/__init__.py", line 148, in main
    config = _prepareconfig(args, plugins)
```

No

CI,  but can not reproduce locally

Closes #38390 from zhengruifeng/infra_pin_pytest.

Authored-by: Ruifeng Zheng <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
(cherry picked from commit 25a9dfc)
Signed-off-by: Hyukjin Kwon <[email protected]>
@HyukjinKwon
Copy link
Member

Merged to branch-3.3 too.

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

+1, LGTM, too. Thanks!

@zhengruifeng zhengruifeng deleted the infra_pin_pytest branch October 26, 2022 01:56
SandishKumarHN pushed a commit to SandishKumarHN/spark that referenced this pull request Dec 12, 2022
### What changes were proposed in this pull request?
Pin pytest==7.1.3

### Why are the changes needed?

`pytest-mypy-plugins==1.9.3` depends on `pytest [required: >=6.0.0]`, [pytest 7.2.0](https://pypi.org/project/pytest/) is released just now

I guess it breaks the python linter

```
Traceback (most recent call last):
  File "/usr/local/bin/pytest", line 8, in <module>
    sys.exit(console_main())
  File "/usr/local/lib/python3.9/dist-packages/_pytest/config/__init__.py", line 190, in console_main
    code = main()
  File "/usr/local/lib/python3.9/dist-packages/_pytest/config/__init__.py", line 148, in main
    config = _prepareconfig(args, plugins)
```

### Does this PR introduce _any_ user-facing change?
No

### How was this patch tested?
CI,  but can not reproduce locally

Closes apache#38390 from zhengruifeng/infra_pin_pytest.

Authored-by: Ruifeng Zheng <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants