-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Fix preload tests failing on wpt.fyi dashboard #14882
Conversation
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.
Already reviewed downstream.
67657be
to
91c77b4
Compare
verifyNumberOfDownloads only counts resource timing entries with transferSize > 0, so it doesn't count if the resource came from a cache. (See https://bugzilla.mozilla.org/show_bug.cgi?id=1222633#c38 for background why we have it.) link-header-preload-nonce.html and link-header-preload-srcset.tentative.html were failing on wpt.fyi dashboard because they have used the same subresource URLs as other tests, and preloaded resources from the disk cache. This patch adds unique query parameters to these URLs so that they don't conflict with other tests. Bug: 922343 Change-Id: I7fd88530f5fdd83ed2a22d2e2893cc446debd036 Reviewed-on: https://chromium-review.googlesource.com/c/1411963 Reviewed-by: Kinuko Yasuda <kinuko@chromium.org> Commit-Queue: Kunihiko Sakamoto <ksakamoto@chromium.org> Cr-Commit-Position: refs/heads/master@{#623157}
91c77b4
to
d190959
Compare
@irori tests seem flaky on Chrome. Could you take a look? Unstable results
|
Thanks for the ping, https://crrev.com/c/1436777 should fix this. |
https://crrev.com/c/1411963 fixed the url conflicts with other tests, but the test still flakes when running repeatedly, because the resource is loaded from disk cache in subsequent runs (web-platform-tests/wpt#14882). We don't care if the preloaded resources came from cache in these tests, so let's just verify the number of Resource Timing entries. Bug: 922343 Change-Id: I2c1d146856a125dbbb641d7efb4e6151094f6a3e Reviewed-on: https://chromium-review.googlesource.com/c/1436777 Reviewed-by: Kinuko Yasuda <kinuko@chromium.org> Commit-Queue: Kunihiko Sakamoto <ksakamoto@chromium.org> Cr-Commit-Position: refs/heads/master@{#626019}
https://crrev.com/c/1436777 landed, but it seems that WPT PR wasn't created by the bot (because this PR wasn't merged?). |
@irori the reason no PR was created for https://crrev.com/c/1436777 yet is because this PR hasn't been merged yet, so the changes don't apply cleanly to master. Since the follow up should fix this, I'll admin merge this to allow the automatic export process to continue. |
https://crrev.com/c/1411963 fixed the url conflicts with other tests, but the test still flakes when running repeatedly, because the resource is loaded from disk cache in subsequent runs (#14882). We don't care if the preloaded resources came from cache in these tests, so let's just verify the number of Resource Timing entries. Bug: 922343 Change-Id: I2c1d146856a125dbbb641d7efb4e6151094f6a3e Reviewed-on: https://chromium-review.googlesource.com/c/1436777 Reviewed-by: Kinuko Yasuda <kinuko@chromium.org> Commit-Queue: Kunihiko Sakamoto <ksakamoto@chromium.org> Cr-Commit-Position: refs/heads/master@{#626019}
That PR is #15075. |
https://crrev.com/c/1411963 fixed the url conflicts with other tests, but the test still flakes when running repeatedly, because the resource is loaded from disk cache in subsequent runs (#14882). We don't care if the preloaded resources came from cache in these tests, so let's just verify the number of Resource Timing entries. Bug: 922343 Change-Id: I2c1d146856a125dbbb641d7efb4e6151094f6a3e Reviewed-on: https://chromium-review.googlesource.com/c/1436777 Reviewed-by: Kinuko Yasuda <kinuko@chromium.org> Commit-Queue: Kunihiko Sakamoto <ksakamoto@chromium.org> Cr-Commit-Position: refs/heads/master@{#626019}
…hboard, second attempt, a=testonly Automatic update from web-platform-tests Fix preload tests failing on wpt.fyi dashboard, second attempt https://crrev.com/c/1411963 fixed the url conflicts with other tests, but the test still flakes when running repeatedly, because the resource is loaded from disk cache in subsequent runs (web-platform-tests/wpt#14882). We don't care if the preloaded resources came from cache in these tests, so let's just verify the number of Resource Timing entries. Bug: 922343 Change-Id: I2c1d146856a125dbbb641d7efb4e6151094f6a3e Reviewed-on: https://chromium-review.googlesource.com/c/1436777 Reviewed-by: Kinuko Yasuda <kinuko@chromium.org> Commit-Queue: Kunihiko Sakamoto <ksakamoto@chromium.org> Cr-Commit-Position: refs/heads/master@{#626019} -- wpt-commits: a52ae0c66f4a764f036d6b85e9d2e611acf45383 wpt-pr: 15075
…hboard, second attempt, a=testonly Automatic update from web-platform-tests Fix preload tests failing on wpt.fyi dashboard, second attempt https://crrev.com/c/1411963 fixed the url conflicts with other tests, but the test still flakes when running repeatedly, because the resource is loaded from disk cache in subsequent runs (web-platform-tests/wpt#14882). We don't care if the preloaded resources came from cache in these tests, so let's just verify the number of Resource Timing entries. Bug: 922343 Change-Id: I2c1d146856a125dbbb641d7efb4e6151094f6a3e Reviewed-on: https://chromium-review.googlesource.com/c/1436777 Reviewed-by: Kinuko Yasuda <kinuko@chromium.org> Commit-Queue: Kunihiko Sakamoto <ksakamoto@chromium.org> Cr-Commit-Position: refs/heads/master@{#626019} -- wpt-commits: a52ae0c66f4a764f036d6b85e9d2e611acf45383 wpt-pr: 15075
…hboard, second attempt, a=testonly Automatic update from web-platform-tests Fix preload tests failing on wpt.fyi dashboard, second attempt https://crrev.com/c/1411963 fixed the url conflicts with other tests, but the test still flakes when running repeatedly, because the resource is loaded from disk cache in subsequent runs (web-platform-tests/wpt#14882). We don't care if the preloaded resources came from cache in these tests, so let's just verify the number of Resource Timing entries. Bug: 922343 Change-Id: I2c1d146856a125dbbb641d7efb4e6151094f6a3e Reviewed-on: https://chromium-review.googlesource.com/c/1436777 Reviewed-by: Kinuko Yasuda <kinuko@chromium.org> Commit-Queue: Kunihiko Sakamoto <ksakamoto@chromium.org> Cr-Commit-Position: refs/heads/master@{#626019} -- wpt-commits: a52ae0c66f4a764f036d6b85e9d2e611acf45383 wpt-pr: 15075
…hboard, second attempt, a=testonly Automatic update from web-platform-tests Fix preload tests failing on wpt.fyi dashboard, second attempt https://crrev.com/c/1411963 fixed the url conflicts with other tests, but the test still flakes when running repeatedly, because the resource is loaded from disk cache in subsequent runs (web-platform-tests/wpt#14882). We don't care if the preloaded resources came from cache in these tests, so let's just verify the number of Resource Timing entries. Bug: 922343 Change-Id: I2c1d146856a125dbbb641d7efb4e6151094f6a3e Reviewed-on: https://chromium-review.googlesource.com/c/1436777 Reviewed-by: Kinuko Yasuda <kinuko@chromium.org> Commit-Queue: Kunihiko Sakamoto <ksakamoto@chromium.org> Cr-Commit-Position: refs/heads/master@{#626019} -- wpt-commits: a52ae0c66f4a764f036d6b85e9d2e611acf45383 wpt-pr: 15075
…hboard, second attempt, a=testonly Automatic update from web-platform-tests Fix preload tests failing on wpt.fyi dashboard, second attempt https://crrev.com/c/1411963 fixed the url conflicts with other tests, but the test still flakes when running repeatedly, because the resource is loaded from disk cache in subsequent runs (web-platform-tests/wpt#14882). We don't care if the preloaded resources came from cache in these tests, so let's just verify the number of Resource Timing entries. Bug: 922343 Change-Id: I2c1d146856a125dbbb641d7efb4e6151094f6a3e Reviewed-on: https://chromium-review.googlesource.com/c/1436777 Reviewed-by: Kinuko Yasuda <kinukochromium.org> Commit-Queue: Kunihiko Sakamoto <ksakamotochromium.org> Cr-Commit-Position: refs/heads/master{#626019} -- wpt-commits: a52ae0c66f4a764f036d6b85e9d2e611acf45383 wpt-pr: 15075 UltraBlame original commit: 4243b5a671878451290c26710a39b04d8ea9905e
…hboard, second attempt, a=testonly Automatic update from web-platform-tests Fix preload tests failing on wpt.fyi dashboard, second attempt https://crrev.com/c/1411963 fixed the url conflicts with other tests, but the test still flakes when running repeatedly, because the resource is loaded from disk cache in subsequent runs (web-platform-tests/wpt#14882). We don't care if the preloaded resources came from cache in these tests, so let's just verify the number of Resource Timing entries. Bug: 922343 Change-Id: I2c1d146856a125dbbb641d7efb4e6151094f6a3e Reviewed-on: https://chromium-review.googlesource.com/c/1436777 Reviewed-by: Kinuko Yasuda <kinukochromium.org> Commit-Queue: Kunihiko Sakamoto <ksakamotochromium.org> Cr-Commit-Position: refs/heads/master{#626019} -- wpt-commits: a52ae0c66f4a764f036d6b85e9d2e611acf45383 wpt-pr: 15075 UltraBlame original commit: 34865e88897289c24a6cfd1a04fc3373d7bbebcb
…hboard, second attempt, a=testonly Automatic update from web-platform-tests Fix preload tests failing on wpt.fyi dashboard, second attempt https://crrev.com/c/1411963 fixed the url conflicts with other tests, but the test still flakes when running repeatedly, because the resource is loaded from disk cache in subsequent runs (web-platform-tests/wpt#14882). We don't care if the preloaded resources came from cache in these tests, so let's just verify the number of Resource Timing entries. Bug: 922343 Change-Id: I2c1d146856a125dbbb641d7efb4e6151094f6a3e Reviewed-on: https://chromium-review.googlesource.com/c/1436777 Reviewed-by: Kinuko Yasuda <kinukochromium.org> Commit-Queue: Kunihiko Sakamoto <ksakamotochromium.org> Cr-Commit-Position: refs/heads/master{#626019} -- wpt-commits: a52ae0c66f4a764f036d6b85e9d2e611acf45383 wpt-pr: 15075 UltraBlame original commit: 4243b5a671878451290c26710a39b04d8ea9905e
…hboard, second attempt, a=testonly Automatic update from web-platform-tests Fix preload tests failing on wpt.fyi dashboard, second attempt https://crrev.com/c/1411963 fixed the url conflicts with other tests, but the test still flakes when running repeatedly, because the resource is loaded from disk cache in subsequent runs (web-platform-tests/wpt#14882). We don't care if the preloaded resources came from cache in these tests, so let's just verify the number of Resource Timing entries. Bug: 922343 Change-Id: I2c1d146856a125dbbb641d7efb4e6151094f6a3e Reviewed-on: https://chromium-review.googlesource.com/c/1436777 Reviewed-by: Kinuko Yasuda <kinukochromium.org> Commit-Queue: Kunihiko Sakamoto <ksakamotochromium.org> Cr-Commit-Position: refs/heads/master{#626019} -- wpt-commits: a52ae0c66f4a764f036d6b85e9d2e611acf45383 wpt-pr: 15075 UltraBlame original commit: 34865e88897289c24a6cfd1a04fc3373d7bbebcb
…hboard, second attempt, a=testonly Automatic update from web-platform-tests Fix preload tests failing on wpt.fyi dashboard, second attempt https://crrev.com/c/1411963 fixed the url conflicts with other tests, but the test still flakes when running repeatedly, because the resource is loaded from disk cache in subsequent runs (web-platform-tests/wpt#14882). We don't care if the preloaded resources came from cache in these tests, so let's just verify the number of Resource Timing entries. Bug: 922343 Change-Id: I2c1d146856a125dbbb641d7efb4e6151094f6a3e Reviewed-on: https://chromium-review.googlesource.com/c/1436777 Reviewed-by: Kinuko Yasuda <kinukochromium.org> Commit-Queue: Kunihiko Sakamoto <ksakamotochromium.org> Cr-Commit-Position: refs/heads/master{#626019} -- wpt-commits: a52ae0c66f4a764f036d6b85e9d2e611acf45383 wpt-pr: 15075 UltraBlame original commit: 4243b5a671878451290c26710a39b04d8ea9905e
…hboard, second attempt, a=testonly Automatic update from web-platform-tests Fix preload tests failing on wpt.fyi dashboard, second attempt https://crrev.com/c/1411963 fixed the url conflicts with other tests, but the test still flakes when running repeatedly, because the resource is loaded from disk cache in subsequent runs (web-platform-tests/wpt#14882). We don't care if the preloaded resources came from cache in these tests, so let's just verify the number of Resource Timing entries. Bug: 922343 Change-Id: I2c1d146856a125dbbb641d7efb4e6151094f6a3e Reviewed-on: https://chromium-review.googlesource.com/c/1436777 Reviewed-by: Kinuko Yasuda <kinukochromium.org> Commit-Queue: Kunihiko Sakamoto <ksakamotochromium.org> Cr-Commit-Position: refs/heads/master{#626019} -- wpt-commits: a52ae0c66f4a764f036d6b85e9d2e611acf45383 wpt-pr: 15075 UltraBlame original commit: 34865e88897289c24a6cfd1a04fc3373d7bbebcb
verifyNumberOfDownloads only counts resource timing entries with
transferSize > 0, so it doesn't count if the resource came from a cache.
(See https://bugzilla.mozilla.org/show_bug.cgi?id=1222633#c38 for
background why we have it.)
link-header-preload-nonce.html and link-header-preload-srcset.tentative.html
were failing on wpt.fyi dashboard because they have used the same
subresource URLs as other tests, and preloaded resources from the disk
cache.
This patch adds unique query parameters to these URLs so that they don't
conflict with other tests.
Bug: 922343
Change-Id: I7fd88530f5fdd83ed2a22d2e2893cc446debd036
Reviewed-on: https://chromium-review.googlesource.com/c/1411963
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Commit-Queue: Kunihiko Sakamoto <ksakamoto@chromium.org>
Cr-Commit-Position: refs/heads/master@{#623157}