Skip to content

Update opentelemetry - causing tests failure when BlueAPI used as package #1543

@RJCD-Diamond

Description

@RJCD-Diamond

When I import
from blueapi.core.bluesky_types import DataEvent
or
from blueapi.worker.event import WorkerEvent

pytest fails to recognise any of the tests that uses the file that imports them. Literally just importing them causes the tests to disappear.

Looks like something in opentelemetry has been deprecated and from opentelemetry import context is enough to trigger it.

You can workaround it by adding "ignore::DeprecationWarning" to filterwarnings in the pytest section of your pyproject.toml, but this is obviously not ideal

@tpoliaw

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    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