Skip to content

test(django): Drop span_streaming parametrize where the arm is inert - #7157

Draft
ericapisani wants to merge 1 commit into
ep/django-tests-hygienefrom
ep/django-tests-span-streaming
Draft

test(django): Drop span_streaming parametrize where the arm is inert#7157
ericapisani wants to merge 1 commit into
ep/django-tests-hygienefrom
ep/django-tests-span-streaming

Conversation

@ericapisani

@ericapisani ericapisani commented Aug 10, 2026

Copy link
Copy Markdown
Member

Description

These tests are event-only: they capture events, never spans, and the span_streaming argument was only ever fed to trace_lifecycle. Both arms exercised identical code paths and asserted identical payloads, so the parametrize doubled the case count without adding coverage.

Tests that inspect spans or transactions keep their parametrize.

391 -> 356 cases.

Refs PY-2641
Refs #6975

These tests are event-only: they capture events, never spans, and the
span_streaming argument was only ever fed to trace_lifecycle. Both arms
therefore exercised identical code paths and asserted identical payloads,
so the parametrize doubled the case count without adding coverage.

Affected: 18 event-only tests in test_basic.py, the 3 cookie-scrubbing
tests in test_data_scrubbing.py, test_set_db_data_custom_backend, and
test_cache_spans_get_span_name (a pure unit test of _get_span_description
that never referenced the argument).

Tests that inspect spans or transactions keep their parametrize.
@linear-code

linear-code Bot commented Aug 10, 2026

Copy link
Copy Markdown

PY-2641

@github-actions

Copy link
Copy Markdown
Contributor

Codecov Results 📊

103319 passed | ⏭️ 6677 skipped | Total: 109996 | Pass Rate: 93.93% | Execution Time: 354m 44s

📊 Comparison with Base Branch

Metric Change
Total Tests 📉 -665
Passed Tests 📉 -665
Failed Tests
Skipped Tests

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 2477 uncovered lines.
✅ Project coverage is 90.15%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    90.15%    90.15%        —%
==========================================
  Files          193       193         —
  Lines        25147     25147         —
  Branches      9136      9136         —
==========================================
+ Hits         22669     22670        +1
- Misses        2478      2477        -1
- Partials      1431      1430        -1

Generated by Codecov Action

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.

1 participant