这是indexloc提供的服务,不要输入任何密码
Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Fix and re-enable flaky test MessageLoopTaskQueue::ConcurrentQueueAndTaskCreatingCounts. #25826

Merged

Conversation

chinmaygarde
Copy link
Member

The intent of this test was to verify that tasks could be posted to tasks queues
concurrently. While there were no data races in test (verified with TSAN), I was
unable to check if there there were race conditions. This was hard to determine
because queue creation and the test assertions could happen as the tasks were
being registered. I have simplified the test to make it easier to read while
ensuring that task registration does happen concurrently. This has also been
verified with TSAN.

Fixes flutter/flutter#43858

…dTaskCreatingCounts`.

The intent of this test was to verify that tasks could be posted to tasks queues
concurrently. While there were no data races in test (verified with TSAN), I was
unable to check if there there were race conditions. This was hard to determine
because queue creation and the test assertions could happen as the tasks were
being registered. I have simplified the test to make it easier to read while
ensuring that task registration does happen concurrently. This has also been
verified with TSAN.

Fixes flutter/flutter#43858
@chinmaygarde
Copy link
Member Author

@iskakaushik As discussed. PTAL. I also ensured that more threads posts to fewer queues to ensure contention.

@chinmaygarde chinmaygarde added the waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land. label Apr 28, 2021
@fluttergithubbot fluttergithubbot merged commit 8c36662 into flutter:master Apr 28, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 29, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 29, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 29, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 29, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 29, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 29, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 29, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 29, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 29, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 29, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 29, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 29, 2021
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 30, 2021
gspencergoog pushed a commit to gspencergoog/engine that referenced this pull request May 5, 2021
@chinmaygarde chinmaygarde deleted the fix_flaky_tq_concur_add_test branch July 7, 2022 22:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fml unittest MessageLoopTaskQueue.ConcurrentQueueAndTaskCreatingCounts is flaky
3 participants