New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 919957 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

sync_integration_test tests likely leak state between test runs.

Project Member Reported by erikc...@chromium.org, Jan 8

Issue description

For context, see: https://bugs.chromium.org/p/chromium/issues/detail?id=919945

The test SingleClientWalletSyncTest.DownloadAccountStorage_Card [TSAN build] fails very frequently when run standalone. However, it fails very rarely when run as part of the whole test suite. This suggests that we are leaking state between test runs [reusing Chrome instance, perhaps?]. We should fix this [assuming it doesn't increase the total test run time by a crazy amount] to improve consistency of test results.
 
Cc: treib@chromium.org jkrcal@chromium.org
Components: Services>Sync
Labels: Sync-Triaged
Status: Available (was: Untriaged)
I am not super convinced by the argumentation for the state leakage. I can imagine this relates to the way TSAN runs / checks for thread violations.

The TSAN issue hopefully should get fixed before the weekend. Do we have any way to test/debug it when the TSAN issue is solved?
Do we reuse the browser between tests in sync_integration_test? That could be a source of state leakage. It looks like the test in this bug is part of a test fixture -- those normally also keep some state between tests.

Here's another example of a non-TSAN sync_integration_test test which occasionally flakes when run in a batch, but regularly fails when run standalone:
https://bugs.chromium.org/p/chromium/issues/detail?id=908771#c4

> Do we have any way to test/debug it when the TSAN issue is solved?
I don't know of a way to confirm that state *isn't* being leaked. I can just point out several examples in sync_integration_tests that suggest that state is being leaked.



Sign in to add a comment