Skip to content

Stabilize TryGetIStreamData_DoesNotDoubleReleaseStream ref count checks - #15411

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

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

Conversation

@Shyam-Gupta

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

Copy link
Copy Markdown
Member

Fix flaky TryGetIStreamData_DoesNotDoubleReleaseStream ref count assertions

Fixes #15410

Proposed changes:

Force a GC and wait for finalizers before each IDataObject ref count snapshot in TryGetIStreamData_DoesNotDoubleReleaseStream, so finalizers of unreferenced COM wrappers releasing references mid-test no longer change the observed count (CI saw 7 then 3).

Test-only change; no product code touched.

Customer Impact: None (test only).

Regression? No

Risk: Minimal; test-only.

Microsoft Reviewers: Open in CodeFlow

@Shyam-Gupta Shyam-Gupta self-assigned this Nov 12, 2026
@Shyam-Gupta
Shyam-Gupta requested a review from a team as a code owner November 12, 2026 18:10
@Shyam-Gupta Shyam-Gupta added the test-bug Problem in test source code (most likely) label 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 (887ae20).

Additional details and impacted files
@@              Coverage Diff              @@
##                main      #15411   +/-   ##
=============================================
  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 c68a612 into main Nov 12, 2026
10 checks passed
@Shyam-Gupta
Shyam-Gupta deleted the dev/shgu/gc branch November 12, 2026 19:09
@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.

TryGetIStreamData_DoesNotDoubleReleaseStream test failure

2 participants