Skip to content

test_eo3converter.py::test_s1_nrb takes 29s inside the Docker container locally #2160

@pjonsson

Description

@pjonsson

Running uv run pytest tests/test_eo3converter.py::test_s1_nrb inside the Docker container takes 29s for me. My CPU does nothing during those 29s.

Here's a reproducer (which is the same thing that the CI uses, but the CI doesn't sit for nearly 30s doing nothing):

docker compose --progress plain up --build --wait -d
docker attach datacube-core-core-1
source .venv/bin/activate
pytest tests/test_eo3converter.py::test_s1_nrb

Removing this line:


makes the test pass instantly.

Running netstat -cpWe during the test shows many slow accesses like these:

tcp        0      0 8550a749a47c:34250      s3-r-w.ap-southeast-2.amazonaws.com:https ESTABLISHED ubuntu     154230519  -

I have no idea what odc.stac.load does internally, but it would be nice if the tests do not insist on talking a lot to remote servers far away.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions