Skip to content

GH-39849: [Python] Remove the use of pytest-lazy-fixture - #39850

Merged
jorisvandenbossche merged 7 commits into
apache:mainfrom
AlenkaF:remove-pytest-lazy-fixture
Feb 1, 2024
Merged

GH-39849: [Python] Remove the use of pytest-lazy-fixture#39850
jorisvandenbossche merged 7 commits into
apache:mainfrom
AlenkaF:remove-pytest-lazy-fixture

Conversation

@AlenkaF

@AlenkaFAlenkaF commented Jan 30, 2024

Copy link
Copy Markdown
Member

Rationale for this change

Removing the use of pytest-lazy-fixture in our test suite as it is unmaintained.
Changes in this PR include:

  • Remove the use of pytest-lazy-fixture
  • Remove marks from fixtures to avoid future error, see
    PytestRemovedIn9Warning: Marks applied to fixtures have no effect
    See docs: https://docs.pytest.org/en/stable/deprecations.html#applying-a-mark-to-a-fixture-function
    
  • Catch two different warnings in def test_legacy_int_type()

Are these changes tested?

The changes affect the tests so they must pass.

Are there any user-facing changes?

No.

Comment threadpython/pyarrow/tests/parquet/test_dataset.py Outdated
@github-actionsgithub-actionsBot added awaiting changes Awaiting changes and removed awaiting review Awaiting review labels Jan 30, 2024
@github-actionsgithub-actionsBot added awaiting change review Awaiting change review and removed awaiting changes Awaiting changes labels Jan 30, 2024
Comment threadpython/pyarrow/tests/test_dataset.py
Comment threadpython/pyarrow/tests/test_dataset.py Outdated
Comment threadpython/pyarrow/tests/test_ipc.py Outdated
Comment threadpython/pyarrow/tests/test_fs.py Outdated
@github-actionsgithub-actionsBot added awaiting changes Awaiting changes awaiting review Awaiting review awaiting committer review Awaiting committer review and removed awaiting change review Awaiting change review awaiting review Awaiting review awaiting changes Awaiting changes labels Jan 30, 2024
@AlenkaF

Copy link
Copy Markdown
MemberAuthor

The failures shouldn't be related, but I do not see them on any other build 🤷‍♀️

@jorisvandenbossche

Copy link
Copy Markdown
Member

@github-actions crossbow submit python

@github-actions

Copy link
Copy Markdown

Revision: c740098

Submitted crossbow builds: ursacomputing/crossbow @ actions-34647c76a2

TaskStatus
example-python-minimal-build-fedora-condaGitHub Actions
example-python-minimal-build-ubuntu-venvGitHub Actions
python-sdistGitHub Actions
test-conda-python-3.10GitHub Actions
test-conda-python-3.10-cython2GitHub Actions
test-conda-python-3.10-hdfs-2.9.2GitHub Actions
test-conda-python-3.10-hdfs-3.2.1GitHub Actions
test-conda-python-3.10-pandas-latestGitHub Actions
test-conda-python-3.10-pandas-nightlyGitHub Actions
test-conda-python-3.10-spark-v3.5.0GitHub Actions
test-conda-python-3.10-substraitGitHub Actions
test-conda-python-3.11GitHub Actions
test-conda-python-3.11-dask-latestGitHub Actions
test-conda-python-3.11-dask-upstream_develGitHub Actions
test-conda-python-3.11-hypothesisGitHub Actions
test-conda-python-3.11-pandas-upstream_develGitHub Actions
test-conda-python-3.11-spark-masterGitHub Actions
test-conda-python-3.12GitHub Actions
test-conda-python-3.8GitHub Actions
test-conda-python-3.8-pandas-1.0GitHub Actions
test-conda-python-3.8-spark-v3.5.0GitHub Actions
test-conda-python-3.9GitHub Actions
test-conda-python-3.9-pandas-latestGitHub Actions
test-cuda-pythonGitHub Actions
test-debian-11-python-3Azure
test-fedora-38-python-3Azure
test-ubuntu-20.04-python-3Azure
test-ubuntu-22.04-python-3GitHub Actions
verify-rc-source-python-linux-almalinux-8-amd64GitHub Actions
verify-rc-source-python-linux-conda-latest-amd64GitHub Actions
verify-rc-source-python-linux-ubuntu-20.04-amd64GitHub Actions
verify-rc-source-python-linux-ubuntu-22.04-amd64GitHub Actions
verify-rc-source-python-macos-amd64GitHub Actions
verify-rc-source-python-macos-arm64GitHub Actions
verify-rc-source-python-macos-conda-amd64GitHub Actions

@AlenkaF
AlenkaF marked this pull request as ready for review February 1, 2024 09:03
@AlenkaF

Copy link
Copy Markdown
MemberAuthor

Maybe the failures are connected to the new version of pytest. WIll pin it back to see if that is true.

@jorisvandenbossche

Copy link
Copy Markdown
Member

@github-actions crossbow submit -g python

@github-actions

Copy link
Copy Markdown

Revision: e4146cb

Submitted crossbow builds: ursacomputing/crossbow @ actions-07f4a3b8ab

TaskStatus
test-conda-python-3.10GitHub Actions
test-conda-python-3.10-cython2GitHub Actions
test-conda-python-3.10-hdfs-2.9.2GitHub Actions
test-conda-python-3.10-hdfs-3.2.1GitHub Actions
test-conda-python-3.10-pandas-latestGitHub Actions
test-conda-python-3.10-pandas-nightlyGitHub Actions
test-conda-python-3.10-spark-v3.5.0GitHub Actions
test-conda-python-3.10-substraitGitHub Actions
test-conda-python-3.11GitHub Actions
test-conda-python-3.11-dask-latestGitHub Actions
test-conda-python-3.11-dask-upstream_develGitHub Actions
test-conda-python-3.11-hypothesisGitHub Actions
test-conda-python-3.11-pandas-upstream_develGitHub Actions
test-conda-python-3.11-spark-masterGitHub Actions
test-conda-python-3.12GitHub Actions
test-conda-python-3.8GitHub Actions
test-conda-python-3.8-pandas-1.0GitHub Actions
test-conda-python-3.8-spark-v3.5.0GitHub Actions
test-conda-python-3.9GitHub Actions
test-conda-python-3.9-pandas-latestGitHub Actions
test-cuda-pythonGitHub Actions
test-debian-11-python-3Azure
test-fedora-38-python-3Azure
test-ubuntu-20.04-python-3Azure
test-ubuntu-22.04-python-3GitHub Actions

Comment threadpython/pyarrow/tests/test_array.py Outdated
@github-actionsgithub-actionsBot added awaiting changes Awaiting changes and removed awaiting committer review Awaiting committer review labels Feb 1, 2024
@jorisvandenbossche
jorisvandenbossche merged commit 44d5597 into apache:mainFeb 1, 2024
@jorisvandenbosschejorisvandenbossche removed the awaiting changes Awaiting changes label Feb 1, 2024
@github-actionsgithub-actionsBot added the awaiting merge Awaiting merge label Feb 1, 2024
@AlenkaF
AlenkaF deleted the remove-pytest-lazy-fixture branch February 1, 2024 14:13
@conbench-apache-arrow

Copy link
Copy Markdown

After merging your PR, Conbench analyzed the 6 benchmarking runs that have been run so far on merge-commit 44d5597.

There were 2 benchmark results with an error:

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about 2 possible false positives for unstable benchmarks that are known to sometimes produce them.

dgreiss pushed a commit to dgreiss/arrow that referenced this pull request Feb 19, 2024
…e#39850)
### Rationale for this change
Removing the use of `pytest-lazy-fixture` in our test suite as it is unmaintained.
Changes in this PR include:
- Remove the use of `pytest-lazy-fixture`
- Remove marks from fixtures to avoid future error, see
```
PytestRemovedIn9Warning: Marks applied to fixtures have no effect
See docs: https://docs.pytest.org/en/stable/deprecations.html#applying-a-mark-to-a-fixture-function
```
- Catch two different warnings in `def test_legacy_int_type()`
### Are these changes tested?
The changes affect the tests so they must pass.
### Are there any user-facing changes?
No.
* Closes: apache#39849
Lead-authored-by: AlenkaF <frim.alenka@gmail.com>
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
Signed-off-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
raulcd pushed a commit that referenced this pull request Feb 20, 2024
### Rationale for this change
Removing the use of `pytest-lazy-fixture` in our test suite as it is unmaintained.
Changes in this PR include:
- Remove the use of `pytest-lazy-fixture`
- Remove marks from fixtures to avoid future error, see
```
PytestRemovedIn9Warning: Marks applied to fixtures have no effect
See docs: https://docs.pytest.org/en/stable/deprecations.html#applying-a-mark-to-a-fixture-function
```
- Catch two different warnings in `def test_legacy_int_type()`
### Are these changes tested?
The changes affect the tests so they must pass.
### Are there any user-facing changes?
No.
* Closes: #39849
Lead-authored-by: AlenkaF <frim.alenka@gmail.com>
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
Signed-off-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
algitbot pushed a commit to alpinelinux/aports that referenced this pull request Mar 25, 2024
Sign up for freeto 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.

[Python] Remove the use of pytest-lazy-fixture

2 participants

@AlenkaF@jorisvandenbossche