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

Emit Python warnings for beta and tech preview APIs #2675

Merged
merged 5 commits into from
Nov 8, 2024

Conversation

pquentin
Copy link
Member

@pquentin pquentin commented Nov 6, 2024

Closes #2674

The first commit is the manual-written code, while the second one is auto-generated.

Copy link

github-actions bot commented Nov 6, 2024

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

pquentin commented Nov 7, 2024

I added a few commits (stop warning about deprecated features, and fix Python 3.12 that was seeing unrelated warnings in recwarn.list). I'd appreciate a new review.

@pquentin pquentin changed the title Emit Python warnings for deprecated/beta/tech preview APIs Emit Python warnings for beta and tech preview APIs Nov 7, 2024
@pquentin pquentin merged commit 066465e into elastic:main Nov 8, 2024
10 checks passed
Copy link

github-actions bot commented Nov 9, 2024

The backport to 8.x failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-8.x 8.x
# Navigate to the new working tree
cd .worktrees/backport-8.x
# Create a new branch
git switch --create backport-2675-to-8.x
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 066465ef011c336a7b29958e30b39420e483a788
# Push it to GitHub
git push --set-upstream origin backport-2675-to-8.x
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-8.x

Then, create a pull request where the base branch is 8.x and the compare/head branch is backport-2675-to-8.x.

Copy link

github-actions bot commented Nov 9, 2024

The backport to 8.16 failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-8.16 8.16
# Navigate to the new working tree
cd .worktrees/backport-8.16
# Create a new branch
git switch --create backport-2675-to-8.16
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 066465ef011c336a7b29958e30b39420e483a788
# Push it to GitHub
git push --set-upstream origin backport-2675-to-8.16
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-8.16

Then, create a pull request where the base branch is 8.16 and the compare/head branch is backport-2675-to-8.16.

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.

Emit deprecation warnings for tech preview/beta APIs
2 participants