Repository navigation
Description
Android framework version
net11.0-android
Affected platform version
Public dotnet-android Azure DevOps pipeline (definition 333, dnceng-public/public), main. Lanes: macOS APKs (10).
Description
Java.InteropTests.JavaObjectTest.Dispose_Finalized (Mono.Android.NET-Tests (device), tests/Mono.Android-Tests/Java.Interop-Tests/Java.Interop/JavaObjectTest.cs) fails intermittently in CI and passes when the job is retried on the same commit. It's being disabled with [Ignore] so it stops failing unrelated PRs. This issue tracks investigating it and re-enabling it.
Evidence, 2026-10-19 to 2026-11-18. A failure counts as isolated when 3 or fewer tests failed in that job attempt.
- 5 isolated failures on commits that later passed on the same commit.
- Isolated failures in 6 different PRs.
- Failures on 7 distinct commits; on 5 of them, a retry later passed.
Likely cause, not yet verified: Depends on the finalizer running within the wait window. Possibly related to #12031.
Failing attempts on main-targeting builds:
| Date | Build | Attempt | Job | PR | Commit | Passed later on same commit |
|---|---|---|---|---|---|---|
| 2026-11-16 | 1684213 | 1 | macOS > Tests > APKs 2 | #13563 | edd736b0ce |
no |
| 2026-11-14 | 1681395 | 1 | macOS > Tests > APKs 2 | #13312 | 2136314425 |
yes |
| 2026-11-13 | 1679688 | 1 | macOS > Tests > APKs 2 | #13312 | 0cbb26f630 |
yes |
| 2026-11-13 | 1679688 | 2 | macOS > Tests > APKs 2 | #13312 | 0cbb26f630 |
yes |
| 2026-11-13 | 1679688 | 3 | macOS > Tests > APKs 2 | #13312 | 0cbb26f630 |
yes |
| 2026-11-07 | 1668974 | 1 | macOS > Tests > APKs 1 | — | 39cc235cd3 |
no |
Context: #13429 (CI flakiness inventory)
Steps to Reproduce
Intermittent in CI; no reliable local repro yet. To re-enable it:
- Find and fix the root cause. If the test is timing-, network-, or GC-dependent, make it deterministic.
- Remove the
[Ignore]attribute that references this issue. - Confirm it passes repeatedly in CI before closing this issue.
Did you find any workaround?
Disabled via [Ignore] until fixed.
Relevant log output
10× Expected JavaDisposedObject.Dispose(disposing: false) to run.
Activity
[tests] Wait for a new GC bridge round in GC bridge tests (dotnet#13675)