New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Gecko Bug 1622369] Await the async function to make sure any async steps inside the function will be blocked. #22502
Conversation
…tion will be blocked. It's easy to get time out on mac if we don't await the async function. The async functions return an implicit Promise. If the caller doesn't await it, any async steps inside the function will not be blocked. Differential Revision: https://phabricator.services.mozilla.com/D68448 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1622369 gecko-commit: 254999e1d7614bfcc52a572b1364c6be31a3b09b gecko-integration-branch: autoland gecko-reviewers: birtles
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The review process for this patch is being conducted in the Firefox project.
@stephenmcgruer Any help interpreting the task failure here? Seems like firefox-nightly-stability is failing due to (unrelated) AnimationWorklet errors. Not sure why the upstream/gecko task is marked failing either. |
As you noted,
Based on wpt's flake view, the web-animations ones are definitely pre-existing (I believe kevers@ has a plan to look into these, but feel free to ping the Chromium Animations team about it). The scroll-timeline one has no flakes on wpt, but the original PR that landed it explicitly mentions that the test is flaky?! (cc @yi-gu and @majido as the owners of scroll timeline; are there plans to address this flaky test?) I will admin merge this change since the diffs on browsers looks ok (the one 'regression' in Chrome is a flake). |
Oh sorry, I didn't see the part about |
For reasons I haven't fuly understood that check sometimes doesn't get updated if there's a job failing. I looked at the code and it looks like it should work, but obviously I'm missing something. |
Ok, admin-merging. Thanks :) |
@yi-gu is looking to deflake the scroll timeline test (/scroll-animations/two-animations-attach-to-same-scroll-timeline-cancel-one.html) in https://bugs.chromium.org/p/chromium/issues/detail?id=1060974 |
Thanks all! |
It's easy to get time out on mac if we don't await the async function.
The async functions return an implicit Promise. If the caller doesn't await
it, any async steps inside the function will not be blocked.
Differential Revision: https://phabricator.services.mozilla.com/D68448
bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1622369
gecko-commit: 254999e1d7614bfcc52a572b1364c6be31a3b09b
gecko-integration-branch: autoland
gecko-reviewers: birtles