Skip to content

Fix timeout vs. task-queue race conditions in promise rejection tests - #25698

Merged
bors-servo merged 1 commit into
servo:masterfrom
pshaughn:rejectiontests
Feb 10, 2020
Merged

bors-servo merged 1 commit into
servo:masterfrom
pshaughn:rejectiontests

Conversation

@pshaughn

@pshaughn pshaughn commented Feb 6, 2020

Copy link
Copy Markdown
Contributor

These two tests were assuming that timeouts and promise rejection events would have a temporal relationship not actually guaranteed by spec, leading to test timeouts if the DOM manipulation task queue was running slower than anticipated.

fix #22207, fix #22295

Of course, the upstream WPT results need looking at to be sure this hasn't done something weird to another browser.

@servo-wpt-sync

Copy link
Copy Markdown
Collaborator

Opened new PR for upstreamable changes.

Completed upstream sync of web-platform-test changes at web-platform-tests/wpt#21618.

@servo-wpt-sync

Copy link
Copy Markdown
Collaborator

Transplanted upstreamable changes to existing PR.

Completed upstream sync of web-platform-test changes at web-platform-tests/wpt#21618.

@jdm

jdm commented Feb 10, 2020

Copy link
Copy Markdown
Member

Great catch!
@bors-servo r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 7684afb has been approved by jdm

@highfive highfive assigned jdm and unassigned asajeffrey Feb 10, 2020
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Feb 10, 2020
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 7684afb with merge 143b06f...

bors-servo pushed a commit that referenced this pull request Feb 10, 2020
Fix timeout vs. task-queue race conditions in promise rejection tests

<!-- Please describe your changes on the following line: -->
These two tests were assuming that timeouts and promise rejection events would have a temporal relationship not actually guaranteed by spec, leading to test timeouts if the DOM manipulation task queue was running slower than anticipated.

fix #22207, fix #22295

Of course, the upstream WPT results need looking at to be sure this hasn't done something weird to another browser.
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - status-taskcluster

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Feb 10, 2020
@jdm

jdm commented Feb 10, 2020

Copy link
Copy Markdown
Member

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 7684afb with merge 5bcd0d8...

bors-servo pushed a commit that referenced this pull request Feb 10, 2020
Fix timeout vs. task-queue race conditions in promise rejection tests

<!-- Please describe your changes on the following line: -->
These two tests were assuming that timeouts and promise rejection events would have a temporal relationship not actually guaranteed by spec, leading to test timeouts if the DOM manipulation task queue was running slower than anticipated.

fix #22207, fix #22295

Of course, the upstream WPT results need looking at to be sure this hasn't done something weird to another browser.
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-tests-failed The changes caused existing tests to fail. labels Feb 10, 2020
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - status-taskcluster
Approved by: jdm
Pushing 5bcd0d8 to master...

@bors-servo
bors-servo merged commit 7684afb into servo:master Feb 10, 2020
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Feb 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

6 participants