Skip to content

test(langgraph, litellm, litestar, mcp, openai, openai_agents, pyramid, requests, rq, starlette, starlite, stdlib, strawberry, wsgi): Remove redundant empty data_collection from sentry_init - #7908

Merged
ericapisani merged 4 commits into
major/3.0from
py-2936-rest
Oct 7, 2026

Conversation

@ericapisani

@ericapisani ericapisani commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

Refs PY-2936

@ericapisani
ericapisani added this pull request to stack #7897 October 6, 2026 19:29
@linear-code

linear-code Bot commented Oct 6, 2026

Copy link
Copy Markdown

PY-2936

@ericapisani
ericapisani marked this pull request as ready for review October 6, 2026 19:32
@ericapisani
ericapisani requested a review from a team as a code owner October 6, 2026 19:32
@github-actions

github-actions Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Codecov Results 📊

✅ 55394 passed | ⏭️ 2727 skipped | Total: 58121 | Pass Rate: 95.31% | Execution Time: 152m 25s

📊 Comparison with Base Branch

Metric Change
Total Tests 📉 -82572
Passed Tests 📉 -78023
Failed Tests —
Skipped Tests 📉 -4549

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 2061 uncovered lines.
❌ Project coverage is 90.03%. Comparing base (94acb83) to head (91035b4).

Coverage diff
@@            Coverage Diff             @@
##        master       #PR       +/-##
==========================================
- Coverage    90.37%    90.03%    -0.34%
==========================================
  Files          202       185       -17
  Lines        26547     20670     -5877
  Branches      9852      7114     -2738
==========================================
+ Hits         23990     18609     -5381
- Misses        2557      2061      -496
- Partials      1496      1215      -281

Generated by Codecov Action

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

shouldn't this one also be removed?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

same as other comment.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

There are still some remaining data_collection={} usages in test_pyramid.py and test_wsgi.py. Should we remove these as well, since the empty config. is now equivalent to the default?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Great catches 🎣 I missed searching for that permutation of data_collection={}, yes they should be removed!

@pabloDeputter

Copy link
Copy Markdown
Member

For the rest, LGTM! I found some other test files that had some redundant inits as well: #7910

Base automatically changed from py-2936-clickhouse-driver-cohere-falcon to major/3.0 October 7, 2026 11:14
ericapisani and others added 4 commits October 7, 2026 07:15
…d, requests, rq, starlette, starlite, stdlib, strawberry, wsgi): Remove redundant empty `data_collection` from sentry_init

An empty `data_collection={}` is equivalent to the default, so passing it
in these tests is redundant.

Refs PY-2936
@ericapisani
ericapisani merged commit 0cc9b31 into major/3.0 Oct 7, 2026
147 checks passed
@ericapisani
ericapisani deleted the py-2936-rest branch October 7, 2026 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants