h-vetinari opened a new issue, #37354:
URL: https://github.com/apache/arrow/issues/37354
### Describe the bug, including details regarding any error messages,
version, and platform.
When running the pyarrow test suite with pytest 7.4, I get:
```
=========================== short test summary info
============================
ERROR test_substrait.py::test_udf_via_substrait[True]
ERROR test_substrait.py::test_udf_via_substrait[False]
ERROR test_substrait.py::test_scalar_aggregate_udf_basic
ERROR test_substrait.py::test_hash_aggregate_udf_basic
ERROR test_udf.py::test_udf_array_unary
ERROR test_udf.py::test_scalar_udf_context
ERROR test_udf.py::test_scalar_input
ERROR test_udf.py::test_input_lifetime
ERROR test_udf.py::test_scalar_agg_basic
ERROR test_udf.py::test_scalar_agg_empty
ERROR test_udf.py::test_scalar_agg_varargs
ERROR test_udf.py::test_hash_agg_basic
ERROR test_udf.py::test_hash_agg_empty
```
It seems to be something about fixture discovery, in particular
`unary_func_fixture` is not being found anymore.
<details>
<summary>More details</summary>
```
==================================== ERRORS
====================================
________________ ERROR at setup of test_udf_via_substrait[True]
________________
file $PREFIX/lib/python3.8/site-packages/pyarrow/tests/test_substrait.py,
line 325
@pytest.mark.parametrize("use_threads", [True, False])
def test_udf_via_substrait(unary_func_fixture, use_threads):
E fixture 'unary_func_fixture' not found
> available fixtures: base_datadir, cache, capfd, capfdbinary, caplog,
capsys, capsysbinary, disable_aws_metadata, doctest_namespace, gcs_server,
hdfs_connection, monkeypatch, pytestconfig, record_property,
record_testsuite_property, record_xml_attribute, recwarn, s3_connection,
s3_server, tempdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
$PREFIX/lib/python3.8/site-packages/pyarrow/tests/test_substrait.py:325
_______________ ERROR at setup of test_udf_via_substrait[False]
________________
file $PREFIX/lib/python3.8/site-packages/pyarrow/tests/test_substrait.py,
line 325
@pytest.mark.parametrize("use_threads", [True, False])
def test_udf_via_substrait(unary_func_fixture, use_threads):
E fixture 'unary_func_fixture' not found
> available fixtures: base_datadir, cache, capfd, capfdbinary, caplog,
capsys, capsysbinary, disable_aws_metadata, doctest_namespace, gcs_server,
hdfs_connection, monkeypatch, pytestconfig, record_property,
record_testsuite_property, record_xml_attribute, recwarn, s3_connection,
s3_server, tempdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
$PREFIX/lib/python3.8/site-packages/pyarrow/tests/test_substrait.py:325
______________ ERROR at setup of test_scalar_aggregate_udf_basic
_______________
file $PREFIX/lib/python3.8/site-packages/pyarrow/tests/test_substrait.py,
line 610
def test_scalar_aggregate_udf_basic(varargs_agg_func_fixture):
E fixture 'varargs_agg_func_fixture' not found
> available fixtures: base_datadir, cache, capfd, capfdbinary, caplog,
capsys, capsysbinary, disable_aws_metadata, doctest_namespace, gcs_server,
hdfs_connection, monkeypatch, pytestconfig, record_property,
record_testsuite_property, record_xml_attribute, recwarn, s3_connection,
s3_server, tempdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
$PREFIX/lib/python3.8/site-packages/pyarrow/tests/test_substrait.py:610
_______________ ERROR at setup of test_hash_aggregate_udf_basic
________________
file $PREFIX/lib/python3.8/site-packages/pyarrow/tests/test_substrait.py,
line 758
def test_hash_aggregate_udf_basic(varargs_agg_func_fixture):
E fixture 'varargs_agg_func_fixture' not found
> available fixtures: base_datadir, cache, capfd, capfdbinary, caplog,
capsys, capsysbinary, disable_aws_metadata, doctest_namespace, gcs_server,
hdfs_connection, monkeypatch, pytestconfig, record_property,
record_testsuite_property, record_xml_attribute, recwarn, s3_connection,
s3_server, tempdir, tmp_path, tmp_path_factory, tmpdir, tmpdir_factory
> use 'pytest --fixtures [testpath]' for help on them.
$PREFIX/lib/python3.8/site-packages/pyarrow/tests/test_substrait.py:758
____________________ ERROR at setup of test_udf_array_unary
____________________
file $PREFIX/lib/python3.8/site-packages/pyarrow/tests/test_udf.py, line 334
def test_udf_array_unary(unary_func_fixture):
E fixture 'unary_func_fixture' not found
> available fixtures: base_datadir, binary_func_fixture, cache, capfd,
capfdbinary, caplog, capsys, capsysbinary, disable_aws_metadata,
doctest_namespace, exception_agg_func_fixture, gcs_server, hdfs_connection,
monkeypatch, nullary_func_fixture, pytestconfig, raising_func_fixture,
record_property, record_testsuite_property, record_xml_attribute, recwarn,
s3_connection, s3_server, sum_agg_func_fixture, tempdir, ternary_func_fixture,
tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, varargs_func_fixture,
wrong_output_datatype_func_fixture, wrong_output_dtype_agg_func_fixture,
wrong_output_type_agg_func_fixture, wrong_output_type_func_fixture,
wrong_signature_func_fixture
> use 'pytest --fixtures [testpath]' for help on them.
$PREFIX/lib/python3.8/site-packages/pyarrow/tests/test_udf.py:334
__________________ ERROR at setup of test_scalar_udf_context
___________________
file $PREFIX/lib/python3.8/site-packages/pyarrow/tests/test_udf.py, line 532
def test_scalar_udf_context(unary_func_fixture):
E fixture 'unary_func_fixture' not found
> available fixtures: base_datadir, binary_func_fixture, cache, capfd,
capfdbinary, caplog, capsys, capsysbinary, disable_aws_metadata,
doctest_namespace, exception_agg_func_fixture, gcs_server, hdfs_connection,
monkeypatch, nullary_func_fixture, pytestconfig, raising_func_fixture,
record_property, record_testsuite_property, record_xml_attribute, recwarn,
s3_connection, s3_server, sum_agg_func_fixture, tempdir, ternary_func_fixture,
tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, varargs_func_fixture,
wrong_output_datatype_func_fixture, wrong_output_dtype_agg_func_fixture,
wrong_output_type_agg_func_fixture, wrong_output_type_func_fixture,
wrong_signature_func_fixture
> use 'pytest --fixtures [testpath]' for help on them.
$PREFIX/lib/python3.8/site-packages/pyarrow/tests/test_udf.py:532
_____________________ ERROR at setup of test_scalar_input
______________________
file $PREFIX/lib/python3.8/site-packages/pyarrow/tests/test_udf.py, line 553
def test_scalar_input(unary_func_fixture):
E fixture 'unary_func_fixture' not found
> available fixtures: base_datadir, binary_func_fixture, cache, capfd,
capfdbinary, caplog, capsys, capsysbinary, disable_aws_metadata,
doctest_namespace, exception_agg_func_fixture, gcs_server, hdfs_connection,
monkeypatch, nullary_func_fixture, pytestconfig, raising_func_fixture,
record_property, record_testsuite_property, record_xml_attribute, recwarn,
s3_connection, s3_server, sum_agg_func_fixture, tempdir, ternary_func_fixture,
tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, varargs_func_fixture,
wrong_output_datatype_func_fixture, wrong_output_dtype_agg_func_fixture,
wrong_output_type_agg_func_fixture, wrong_output_type_func_fixture,
wrong_signature_func_fixture
> use 'pytest --fixtures [testpath]' for help on them.
$PREFIX/lib/python3.8/site-packages/pyarrow/tests/test_udf.py:553
____________________ ERROR at setup of test_input_lifetime
_____________________
file $PREFIX/lib/python3.8/site-packages/pyarrow/tests/test_udf.py, line 559
def test_input_lifetime(unary_func_fixture):
E fixture 'unary_func_fixture' not found
> available fixtures: base_datadir, binary_func_fixture, cache, capfd,
capfdbinary, caplog, capsys, capsysbinary, disable_aws_metadata,
doctest_namespace, exception_agg_func_fixture, gcs_server, hdfs_connection,
monkeypatch, nullary_func_fixture, pytestconfig, raising_func_fixture,
record_property, record_testsuite_property, record_xml_attribute, recwarn,
s3_connection, s3_server, sum_agg_func_fixture, tempdir, ternary_func_fixture,
tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, varargs_func_fixture,
wrong_output_datatype_func_fixture, wrong_output_dtype_agg_func_fixture,
wrong_output_type_agg_func_fixture, wrong_output_type_func_fixture,
wrong_signature_func_fixture
> use 'pytest --fixtures [testpath]' for help on them.
$PREFIX/lib/python3.8/site-packages/pyarrow/tests/test_udf.py:559
___________________ ERROR at setup of test_scalar_agg_basic
____________________
file $PREFIX/lib/python3.8/site-packages/pyarrow/tests/test_udf.py, line 683
def test_scalar_agg_basic(unary_agg_func_fixture):
E fixture 'unary_agg_func_fixture' not found
> available fixtures: base_datadir, binary_func_fixture, cache, capfd,
capfdbinary, caplog, capsys, capsysbinary, disable_aws_metadata,
doctest_namespace, exception_agg_func_fixture, gcs_server, hdfs_connection,
monkeypatch, nullary_func_fixture, pytestconfig, raising_func_fixture,
record_property, record_testsuite_property, record_xml_attribute, recwarn,
s3_connection, s3_server, sum_agg_func_fixture, tempdir, ternary_func_fixture,
tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, varargs_func_fixture,
wrong_output_datatype_func_fixture, wrong_output_dtype_agg_func_fixture,
wrong_output_type_agg_func_fixture, wrong_output_type_func_fixture,
wrong_signature_func_fixture
> use 'pytest --fixtures [testpath]' for help on them.
$PREFIX/lib/python3.8/site-packages/pyarrow/tests/test_udf.py:683
___________________ ERROR at setup of test_scalar_agg_empty
____________________
file $PREFIX/lib/python3.8/site-packages/pyarrow/tests/test_udf.py, line 690
def test_scalar_agg_empty(unary_agg_func_fixture):
E fixture 'unary_agg_func_fixture' not found
> available fixtures: base_datadir, binary_func_fixture, cache, capfd,
capfdbinary, caplog, capsys, capsysbinary, disable_aws_metadata,
doctest_namespace, exception_agg_func_fixture, gcs_server, hdfs_connection,
monkeypatch, nullary_func_fixture, pytestconfig, raising_func_fixture,
record_property, record_testsuite_property, record_xml_attribute, recwarn,
s3_connection, s3_server, sum_agg_func_fixture, tempdir, ternary_func_fixture,
tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, varargs_func_fixture,
wrong_output_datatype_func_fixture, wrong_output_dtype_agg_func_fixture,
wrong_output_type_agg_func_fixture, wrong_output_type_func_fixture,
wrong_signature_func_fixture
> use 'pytest --fixtures [testpath]' for help on them.
$PREFIX/lib/python3.8/site-packages/pyarrow/tests/test_udf.py:690
__________________ ERROR at setup of test_scalar_agg_varargs
___________________
file $PREFIX/lib/python3.8/site-packages/pyarrow/tests/test_udf.py, line 709
def test_scalar_agg_varargs(varargs_agg_func_fixture):
E fixture 'varargs_agg_func_fixture' not found
> available fixtures: base_datadir, binary_func_fixture, cache, capfd,
capfdbinary, caplog, capsys, capsysbinary, disable_aws_metadata,
doctest_namespace, exception_agg_func_fixture, gcs_server, hdfs_connection,
monkeypatch, nullary_func_fixture, pytestconfig, raising_func_fixture,
record_property, record_testsuite_property, record_xml_attribute, recwarn,
s3_connection, s3_server, sum_agg_func_fixture, tempdir, ternary_func_fixture,
tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, varargs_func_fixture,
wrong_output_datatype_func_fixture, wrong_output_dtype_agg_func_fixture,
wrong_output_type_agg_func_fixture, wrong_output_type_func_fixture,
wrong_signature_func_fixture
> use 'pytest --fixtures [testpath]' for help on them.
$PREFIX/lib/python3.8/site-packages/pyarrow/tests/test_udf.py:709
____________________ ERROR at setup of test_hash_agg_basic
_____________________
file $PREFIX/lib/python3.8/site-packages/pyarrow/tests/test_udf.py, line 727
def test_hash_agg_basic(unary_agg_func_fixture):
E fixture 'unary_agg_func_fixture' not found
> available fixtures: base_datadir, binary_func_fixture, cache, capfd,
capfdbinary, caplog, capsys, capsysbinary, disable_aws_metadata,
doctest_namespace, exception_agg_func_fixture, gcs_server, hdfs_connection,
monkeypatch, nullary_func_fixture, pytestconfig, raising_func_fixture,
record_property, record_testsuite_property, record_xml_attribute, recwarn,
s3_connection, s3_server, sum_agg_func_fixture, tempdir, ternary_func_fixture,
tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, varargs_func_fixture,
wrong_output_datatype_func_fixture, wrong_output_dtype_agg_func_fixture,
wrong_output_type_agg_func_fixture, wrong_output_type_func_fixture,
wrong_signature_func_fixture
> use 'pytest --fixtures [testpath]' for help on them.
$PREFIX/lib/python3.8/site-packages/pyarrow/tests/test_udf.py:727
____________________ ERROR at setup of test_hash_agg_empty
_____________________
file $PREFIX/lib/python3.8/site-packages/pyarrow/tests/test_udf.py, line 745
def test_hash_agg_empty(unary_agg_func_fixture):
E fixture 'unary_agg_func_fixture' not found
> available fixtures: base_datadir, binary_func_fixture, cache, capfd,
capfdbinary, caplog, capsys, capsysbinary, disable_aws_metadata,
doctest_namespace, exception_agg_func_fixture, gcs_server, hdfs_connection,
monkeypatch, nullary_func_fixture, pytestconfig, raising_func_fixture,
record_property, record_testsuite_property, record_xml_attribute, recwarn,
s3_connection, s3_server, sum_agg_func_fixture, tempdir, ternary_func_fixture,
tmp_path, tmp_path_factory, tmpdir, tmpdir_factory, varargs_func_fixture,
wrong_output_datatype_func_fixture, wrong_output_dtype_agg_func_fixture,
wrong_output_type_agg_func_fixture, wrong_output_type_func_fixture,
wrong_signature_func_fixture
> use 'pytest --fixtures [testpath]' for help on them.
$PREFIX/lib/python3.8/site-packages/pyarrow/tests/test_udf.py:745
```
</details>
### Component(s)
Python
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]