Skip to content

chore: ignore useless conversion lint warning from pyo3#12450

Merged
brettlangdon merged 1 commit into
mainfrom
andrew.glaude/clippy-mad
Feb 20, 2025
Merged

chore: ignore useless conversion lint warning from pyo3#12450
brettlangdon merged 1 commit into
mainfrom
andrew.glaude/clippy-mad

Conversation

@ajgajg1134

@ajgajg1134 ajgajg1134 commented Feb 20, 2025

Copy link
Copy Markdown
Contributor

It looks like the latest rust version catches an unnecessary conversion in our pyo3 generated code. To unblock all the builds we can just ignore this for now.

Checklist

  • PR author has checked that all the criteria below are met
  • The PR description includes an overview of the change
  • The PR description articulates the motivation for the change
  • The change includes tests OR the PR description describes a testing strategy
  • The PR description notes risks associated with the change, if any
  • Newly-added code is easy to change
  • The change follows the library release note guidelines
  • The change includes or references documentation updates if necessary
  • Backport labels are set (if applicable)

Reviewer Checklist

  • Reviewer has checked that all the criteria below are met
  • Title is accurate
  • All changes are related to the pull request's stated goal
  • Avoids breaking API changes
  • Testing strategy adequately addresses listed risks
  • Newly-added code is easy to change
  • Release note makes sense to a user of the library
  • If necessary, author has acknowledged and discussed the performance implications of this PR as reported in the benchmarks PR comment
  • Backport labels are set in a manner that is consistent with the release branch maintenance policy

@ajgajg1134 ajgajg1134 requested a review from a team as a code owner February 20, 2025 19:43
@ajgajg1134 ajgajg1134 requested a review from juanjux February 20, 2025 19:43
@ajgajg1134 ajgajg1134 changed the title Ignore useless conversion lint warning from pyo3 chore: Ignore useless conversion lint warning from pyo3 Feb 20, 2025
@github-actions

Copy link
Copy Markdown
Contributor

CODEOWNERS have been resolved as:

src/native/lib.rs                                                       @DataDog/apm-core-python

@ajgajg1134 ajgajg1134 changed the title chore: Ignore useless conversion lint warning from pyo3 chore: ignore useless conversion lint warning from pyo3 Feb 20, 2025

@sanchda sanchda left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, looks good. I'll try to remember to remove the suppression when this gets fixed upstream. 👍

@datadog-dd-trace-py-rkomorn

Copy link
Copy Markdown

Datadog Report

Branch report: andrew.glaude/clippy-mad
Commit report: 16b3ac6
Test service: dd-trace-py

✅ 0 Failed, 130 Passed, 1184 Skipped, 1m 45.28s Total Time

@pr-commenter

pr-commenter Bot commented Feb 20, 2025

Copy link
Copy Markdown

Benchmarks

Benchmark execution time: 2025-02-20 20:22:47

Comparing candidate commit 16b3ac6 in PR branch andrew.glaude/clippy-mad with baseline commit 2a8387a in branch main.

Found 0 performance improvements and 0 performance regressions! Performance is the same for 418 metrics, 2 unstable metrics.

@brettlangdon brettlangdon added changelog/no-changelog A changelog entry is not required for this PR. backport 2.21 labels Feb 20, 2025
@brettlangdon brettlangdon enabled auto-merge (squash) February 20, 2025 20:41
@brettlangdon brettlangdon merged commit 7011d3c into main Feb 20, 2025
@brettlangdon brettlangdon deleted the andrew.glaude/clippy-mad branch February 20, 2025 20:43
@github-actions

Copy link
Copy Markdown
Contributor

The backport to 2.21 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-2.21 2.21
# Navigate to the new working tree
cd .worktrees/backport-2.21
# Create a new branch
git switch --create backport-12450-to-2.21
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 7011d3c9bc8126a3ddeb2ec2955dd4d589281d65
# Push it to GitHub
git push --set-upstream origin backport-12450-to-2.21
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-2.21

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

@github-actions

Copy link
Copy Markdown
Contributor

The backport to 3.0 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-3.0 3.0
# Navigate to the new working tree
cd .worktrees/backport-3.0
# Create a new branch
git switch --create backport-12450-to-3.0
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick -x --mainline 1 7011d3c9bc8126a3ddeb2ec2955dd4d589281d65
# Push it to GitHub
git push --set-upstream origin backport-12450-to-3.0
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-3.0

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

brettlangdon added a commit that referenced this pull request Feb 21, 2025
)

Co-authored-by: Andrew Glaude <andrew.glaude@datadoghq.com>
erikayasuda added a commit that referenced this pull request Feb 26, 2025
avara1986 pushed a commit that referenced this pull request Feb 27, 2025
…kport 2.20] (#12545)

Backport b8d32a2 from #12450 to 2.20.

## Checklist
- [x] PR author has checked that all the criteria below are met
- The PR description includes an overview of the change
- The PR description articulates the motivation for the change
- The change includes tests OR the PR description describes a testing
strategy
- The PR description notes risks associated with the change, if any
- Newly-added code is easy to change
- The change follows the [library release note
guidelines](https://ddtrace.readthedocs.io/en/stable/releasenotes.html)
- The change includes or references documentation updates if necessary
- Backport labels are set (if

[applicable](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting))

## Reviewer Checklist
- [x] Reviewer has checked that all the criteria below are met 
- Title is accurate
- All changes are related to the pull request's stated goal
- Avoids breaking

[API](https://ddtrace.readthedocs.io/en/stable/versioning.html#interfaces)
changes
- Testing strategy adequately addresses listed risks
- Newly-added code is easy to change
- Release note makes sense to a user of the library
- If necessary, author has acknowledged and discussed the performance
implications of this PR as reported in the benchmarks PR comment
- Backport labels are set in a manner that is consistent with the
[release branch maintenance

policy](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)

Co-authored-by: Brett Langdon <brett.langdon@datadoghq.com>
avara1986 pushed a commit that referenced this pull request Feb 27, 2025
…kport 2.19] (#12546)

Backport b8d32a2 from #12450 to 2.19.

## Checklist
- [x] PR author has checked that all the criteria below are met
- The PR description includes an overview of the change
- The PR description articulates the motivation for the change
- The change includes tests OR the PR description describes a testing
strategy
- The PR description notes risks associated with the change, if any
- Newly-added code is easy to change
- The change follows the [library release note
guidelines](https://ddtrace.readthedocs.io/en/stable/releasenotes.html)
- The change includes or references documentation updates if necessary
- Backport labels are set (if

[applicable](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting))

## Reviewer Checklist
- [x] Reviewer has checked that all the criteria below are met 
- Title is accurate
- All changes are related to the pull request's stated goal
- Avoids breaking

[API](https://ddtrace.readthedocs.io/en/stable/versioning.html#interfaces)
changes
- Testing strategy adequately addresses listed risks
- Newly-added code is easy to change
- Release note makes sense to a user of the library
- If necessary, author has acknowledged and discussed the performance
implications of this PR as reported in the benchmarks PR comment
- Backport labels are set in a manner that is consistent with the
[release branch maintenance

policy](https://ddtrace.readthedocs.io/en/latest/contributing.html#backporting)

Co-authored-by: Brett Langdon <brett.langdon@datadoghq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/no-changelog A changelog entry is not required for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants