Skip to content

test(django): Strictly order cache spans to avoid flakes - #8266

Merged
alexander-alderman-webb merged 1 commit into
masterfrom
webb/django/flaky-test
Nov 13, 2026
Merged

alexander-alderman-webb merged 1 commit into
masterfrom
webb/django/flaky-test

Conversation

@alexander-alderman-webb

@alexander-alderman-webb alexander-alderman-webb commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Force a flush between successive requests that create cache spans.
The span batcher does not guarantee that segments are flushed in the order in which they ended.
Resolve flakes resulting from the cache spans with a cache miss and a cache hit being at unexpected indices.

@alexander-alderman-webb
alexander-alderman-webb requested a review from a team as a code owner November 13, 2026 09:12
@github-actions

Copy link
Copy Markdown
Contributor

Coverage Results 📊

✅ 139222 passed | ⏭️ 7861 skipped | Total: 147083 | Pass Rate: 94.66% | Execution Time: 440m 8s

📊 Comparison with Base Branch

Metric Change
Total Tests —
Passed Tests 📈 +1
Failed Tests 📉 -1
Skipped Tests —

➖ Removed Tests (1)

View removed tests
  • test_openfeature_integration_threaded
    • File: tests.integrations.openfeature.test_openfeature

All tests are passing successfully.

✅ Patch coverage is 100.00% (no changed executable lines found; target 80%).
Project statement coverage is 90.21% (unchanged from base (c12eb30) to head (bf18700)).

Coverage diff
@@            Coverage Diff             @@
##        master     #8266       +/-##
==========================================
  Coverage    90.21%    90.21%        —%
==========================================
  Files          203       203         —
  Tracked lines     27335     27335         —
  Branches     10246     10246         —
==========================================
- Hits         24661     24660        -1
- Misses        2674      2675        +1
- Partials      1558      1559        +1

Generated by Coverage Action

@alexander-alderman-webb
alexander-alderman-webb merged commit 26ef571 into master Nov 13, 2026
174 checks passed
@alexander-alderman-webb
alexander-alderman-webb deleted the webb/django/flaky-test branch November 13, 2026 09:46
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