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

Build dists as part of CI #2707

Merged
merged 2 commits into from
Nov 13, 2024
Merged

Build dists as part of CI #2707

merged 2 commits into from
Nov 13, 2024

Conversation

pquentin
Copy link
Member

The build-dists.py step often fails during publishing, let's add it to CI.

Copy link

A documentation preview will be available soon.

Request a new doc build by commenting
  • Rebuild this PR: run docs-build
  • Rebuild this PR and all Elastic docs: run docs-build rebuild

run docs-build is much faster than run docs-build rebuild. A rebuild should only be needed in rare situations.

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.

@pquentin pquentin merged commit 6ba6e38 into elastic:main Nov 13, 2024
12 checks passed
github-actions bot pushed a commit that referenced this pull request Nov 13, 2024
(cherry picked from commit 6ba6e38)
github-actions bot pushed a commit that referenced this pull request Nov 13, 2024
(cherry picked from commit 6ba6e38)
Copy link
Member Author

@pquentin pquentin left a 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
Copy link
Member Author

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:
Copy link
Member Author

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).

@pquentin pquentin deleted the package-dists branch November 13, 2024 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants