Skip to content
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

[Python][CI] S3 fixtures fail with Pytest 8.0.0 #39957

Closed
Tracked by #39958
AlenkaF opened this issue Feb 6, 2024 · 0 comments · Fixed by #40487
Closed
Tracked by #39958

[Python][CI] S3 fixtures fail with Pytest 8.0.0 #39957

AlenkaF opened this issue Feb 6, 2024 · 0 comments · Fixed by #40487
Assignees

Comments

@AlenkaF
Copy link
Member

AlenkaF commented Feb 6, 2024

Describe the bug, including details regarding any error messages, version, and platform.

S3 fixtures from out test suite fail with the new pytest=8.0.0 release with:

==================================== ERRORS ====================================
__________ ERROR at setup of test_parquet_file_with_filesystem[True] ___________

s3_server = {'connection': ('localhost', 37805, 'arrow', 'apachearrow'), 'process': <Popen: returncode: None args: ['minio', '--compat', 'server', '--quiet', '-...>, 'tempdir': local('/tmp/pytest-of-root/pytest-0')}

    @pytest.fixture
    def s3_example_fs(s3_server):
        from pyarrow.fs import FileSystem
    
        host, port, access_key, secret_key = s3_server['connection']
        uri = (
            "s3://{}:{}@mybucket/data.parquet?scheme=http&endpoint_override={}:{}"
            .format(access_key, secret_key, host, port)
        )
        fs, path = FileSystem.from_uri(uri)
    
>       fs.create_dir("mybucket")

opt/conda/envs/arrow/lib/python3.10/site-packages/pyarrow/tests/parquet/conftest.py:88: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
pyarrow/_fs.pyx:603: in pyarrow._fs.FileSystem.create_dir
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

>   ???
E   OSError: Bucket 'mybucket' not found. To create buckets, enable the allow_bucket_creation option.

see

Pytest currently has an upper pin so our CI is not failing.

Component(s)

Python

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant