Skip to content

Stabilize timer dispatch allocation test - #15412

Merged
Shyam-Gupta merged 1 commit into
mainfrom
dev/shgu/junk
Nov 12, 2026
Merged

Shyam-Gupta merged 1 commit into
mainfrom
dev/shgu/junk

Conversation

@Shyam-Gupta

@Shyam-Gupta Shyam-Gupta commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Test failure: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1678056&view=ms.vss-test-web.build-test-results-tab

Root cause: The test manually dispatches callbacks while registration also starts the real timer. A real tick can overlap the measured dispatch loop and interfere with its allocation measurement.

Fix: Stabilize DispatchCallbacks_SteadyState_DoesNotAllocate by lowering the timer rate to 1 Hz before registration

Microsoft Reviewers: Open in CodeFlow

Coalesce background timer ticks while the test measures deterministic callback dispatch allocations.

Co-authored-by: Copilot <[email protected]>

Copilot-Session: 362088f8-cfc5-4f80-97d8-0c4769ed200f
@Shyam-Gupta
Shyam-Gupta requested a review from a team as a code owner November 12, 2026 19:08
@Shyam-Gupta Shyam-Gupta added the test-bug Problem in test source code (most likely) label Nov 12, 2026
@Shyam-Gupta Shyam-Gupta self-assigned this Nov 12, 2026
@codecov

codecov Bot commented Nov 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 39.79260%. Comparing base (7dd5f84) to head (07d5c8b).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@              Coverage Diff              @@
##                main      #15412   +/-   ##
=============================================
  Coverage   39.79260%   39.79260%           
=============================================
  Files            246         246           
  Lines           9836        9836           
  Branches        1036        1036           
=============================================
  Hits            3914        3914           
  Misses          5741        5741           
  Partials         181         181           
Flag Coverage Δ
Debug 39.79260% <ø> (ø)
production 42.31695% <ø> (ø)
test 19.92786% <ø> (ø)
unit 42.31695% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Shyam-Gupta
Shyam-Gupta merged commit 1526885 into main Nov 12, 2026
10 checks passed
@Shyam-Gupta
Shyam-Gupta deleted the dev/shgu/junk branch November 12, 2026 19:48
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test-bug Problem in test source code (most likely)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants