Skip to content
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

Address flakiness of service-workers/service-worker/update-no-cache-r… #20797

Merged

Conversation

cdumez
Copy link
Contributor

@cdumez cdumez commented Dec 16, 2019

…equest-headers.https.html

The test triggers a registration update and then expects registration.installing to be non-null
once the registration update promise is resolved. This is only true if the content of the service
worker script is different since last update. The script included a timestamp to try and make
the script different every time but it would sometimes not suffice if the update happens quickly
enough (https://bugs.webkit.org/show_bug.cgi?id=205286). To address the issue, include a UUID in
the script instead of a timestamp.

…equest-headers.https.html

The test triggers a registration update and then expects registration.installing to be non-null
once the registration update promise is resolved. This is only true if the content of the service
worker script is different since last update. The script included a timestamp to try and make
the script different every time but it would sometimes not suffice if the update happens quickly
enough (https://bugs.webkit.org/show_bug.cgi?id=205286). To address the issue, include a UUID in
the script instead of a timestamp.
@cdumez
Copy link
Contributor Author

cdumez commented Dec 16, 2019

cc @youennf

Copy link
Member

@mfalken mfalken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This lgtm. But the bot shows a failure on wpt-firefox-nightly-stability:
assert_equals: expected (string) "etag" but got (undefined) undefined`

This might be existing flakiness caused by another bug in this test. wpt.fyi shows the same error for Chrome and Safari today.

@asutherland are you ok with merging this?

philn pushed a commit to philn/old-webkit that referenced this pull request Dec 17, 2019
…rs/service-worker/update-no-cache-request-headers.https.html is a flaky failure

https://bugs.webkit.org/show_bug.cgi?id=205286
<rdar://problem/57976344>

Reviewed by Alexey Proskuryakov.

The test triggers a registration update and then expects registration.installing to be non-null
once the registration update promise is resolved. This is only true if the content of the service
worker script is different since last update. The script included a timestamp to try and make
the script different every time but it would sometimes not suffice if the update happens quickly
enough. To address the issue, include a UUID in the script instead of a timestamp.

Upstream PR: web-platform-tests/wpt#20797

* web-platform-tests/service-workers/service-worker/resources/test-request-headers-worker.js:
* web-platform-tests/service-workers/service-worker/resources/test-request-headers-worker.py:
(main):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@253592 268f45cc-cd09-0410-ab3c-d52691b4dbfc
@asutherland
Copy link
Contributor

The UUID change seems fine to me. Firefox locally has a bug on the etag issue and I think my most recent analysis on that was at https://bugzilla.mozilla.org/show_bug.cgi?id=1541192#c35.

@cdumez
Copy link
Contributor Author

cdumez commented Dec 17, 2019

How do we go about merging this?

@mfalken
Copy link
Member

mfalken commented Dec 18, 2019

@foolip or @Hexcles can you merge this? As discussed above, we're OK with the bot failure.

@foolip
Copy link
Member

foolip commented Dec 18, 2019

I'll admin merge per #20797 (comment).

@foolip foolip merged commit 26870d8 into web-platform-tests:master Dec 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants