-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Build dists as part of CI #2707
Conversation
A documentation preview will be available soon. Request a new doc build by commenting
If your PR continues to fail for an unknown reason, the doc build pipeline may be broken. Elastic employees can check the pipeline status here. |
(cherry picked from commit 6ba6e38)
(cherry picked from commit 6ba6e38)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forgot to post my review, posting it anyway after merging.
from ..._version import __versionstr__ | ||
from ...compat import to_bytes, to_str, warn_stacklevel | ||
from ...exceptions import GeneralAvailabilityWarning |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part is needed for the elasticsearch8
package. All imports are relative for this reason.
@@ -102,7 +102,7 @@ def helpers_span(self, span_name: str) -> Generator[OpenTelemetrySpan, None, Non | |||
|
|||
@contextlib.contextmanager | |||
def use_span(self, span: OpenTelemetrySpan) -> Generator[None, None, None]: | |||
if not self.enabled or self.tracer is None: | |||
if not self.enabled or self.tracer is None or span.otel_span is None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is needed for mypy: trace.use_span
below expects a Span
, but span.otel_span
is typed as Span | None
(to handle the case where OpenTelemetry is not available).
The build-dists.py step often fails during publishing, let's add it to CI.