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

Let resources timing entries be added to performance entry buffer. #23536

Merged
merged 1 commit into from Jun 24, 2019

Conversation

@gatoWololo
Copy link
Contributor

gatoWololo commented Jun 7, 2019

Update relevant tests to properly report and expect failure.

These changes are the first step for #23328. Not sure if I would say they fix the issue.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #___ (GitHub issue number if applicable)
  • There are tests for these changes: Existing tests have been updated to expect pass/failures.

This change is Reviewable

@highfive
Copy link

highfive commented Jun 7, 2019

Thanks for the pull request, and welcome! The Servo team is excited to review your changes, and you should hear from @avadacatavra (or someone else) soon.

@highfive
Copy link

highfive commented Jun 7, 2019

Heads up! This PR modifies the following files:

  • @asajeffrey: components/script/network_listener.rs
  • @KiChjang: components/script/network_listener.rs
@jdm
Copy link
Member

jdm commented Jun 7, 2019

@bors-servo try=wpt

@bors-servo
Copy link
Contributor

bors-servo commented Jun 7, 2019

Trying commit af8520f with merge 952f1ab...

bors-servo added a commit that referenced this pull request Jun 7, 2019
Let resources timing entries be added to performance entry buffer.

<!-- Please describe your changes on the following line: -->
Update relevant tests to properly report and expect failure.

These changes are the first step for #23328. Not sure if I would say they _fix_ the issue.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [ ] These changes fix #___ (GitHub issue number if applicable)

<!-- Either: -->
- [X] There are tests for these changes: Existing tests have been updated to expect pass/failures.

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23536)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Jun 7, 2019

💔 Test failed - linux-rel-css

@jdm
Copy link
Member

jdm commented Jun 7, 2019

Looks like a few more test results changed:

{
    "status": "FAIL", 
    "group": "default", 
    "message": "uncaught exception: unknown (can't convert to string)", 
    "stack": "image_was_loaded/<@http://web-platform.test:8000/html/semantics/embedded-content/the-img-element/srcset/avoid-reload-on-resize.html:15:5\nstep_timeout/<@http://web-platform.test:8000/resources/testharness.js:806:13\n", 
    "subtest": "Avoid srcset image reloads when viewport resizes", 
    "test": "/html/semantics/embedded-content/the-img-element/srcset/avoid-reload-on-resize.html", 
    "line": 179867, 
    "action": "test_result", 
    "expected": "PASS"
}
{
    "status": "FAIL", 
    "group": "default", 
    "message": "assert_equals: expected 1 but got 3", 
    "stack": "request.onload<@http://web-platform.test:8000/_mozilla/mozilla/xmlhttprequest_url.html:22:5\nTest.prototype.step@http://web-platform.test:8000/resources/testharness.js:1594:20\nTest.prototype.step_func_done/<@http://web-platform.test:8000/resources/testharness.js:1634:17\n", 
    "subtest": "Performance entries should contain the URL where the XMLHttpRequest originated", 
    "test": "/_mozilla/mozilla/xmlhttprequest_url.html", 
    "line": 302755, 
    "action": "test_result", 
    "expected": "PASS"
}
{
    "status": "FAIL", 
    "group": "default", 
    "message": "assert_equals: clearResourceTimings cleared the resource timings expected 0 but got 1", 
    "stack": "testPerformanceClearResourceTimings@http://web-platform.test:8000/workers/worker-performance.worker.js:95:5\nTest.prototype.step@http://web-platform.test:8000/resources/testharness.js:1594:20\ntest@http://web-platform.test:8000/resources/testharness.js:544:21\n@http://web-platform.test:8000/workers/worker-performance.worker.js:93:1\n", 
    "subtest": "performance.clearResourceTimings in workers", 
    "test": "/workers/worker-performance.worker.html", 
    "line": 302815, 
    "action": "test_result", 
    "expected": "PASS"
}
{
    "status": "FAIL", 
    "group": "default", 
    "message": "assert_equals: setResourceTimingBufferSize(0) prevents resource entries from being added expected 0 but got 2", 
    "stack": "testPerformanceSetResourceTimingBufferSize@http://web-platform.test:8000/workers/worker-performance.worker.js:103:5\nTest.prototype.step@http://web-platform.test:8000/resources/testharness.js:1594:20\ntest@http://web-platform.test:8000/resources/testharness.js:544:21\n@http://web-platform.test:8000/workers/worker-performance.worker.js:98:1\n", 
    "subtest": "performance.setResourceTimingBufferSize in workers", 
    "test": "/workers/worker-performance.worker.html", 
    "line": 302816, 
    "action": "test_result", 
    "expected": "PASS"
}
@jdm
Copy link
Member

jdm commented Jun 7, 2019

/xmlhttprequest_url.html should be updated to accommodate the new changes. I expressed surprise that it passed in #23372 (comment), and I'm glad to see that this change makes it behave as I expected.

@jdm jdm assigned jdm and unassigned avadacatavra Jun 7, 2019
@gatoWololo gatoWololo force-pushed the gatoWololo:omar_timing_entries branch from af8520f to ff20e35 Jun 7, 2019
@gatoWololo gatoWololo force-pushed the gatoWololo:omar_timing_entries branch from ff20e35 to 4a8bdce Jun 7, 2019
@gatoWololo
Copy link
Contributor Author

gatoWololo commented Jun 10, 2019

This pull request has been marked as Queued since last Friday without any progress. I'm pretty sure it's stuck?

@jdm
Copy link
Member

jdm commented Jun 10, 2019

Indeed! Good thing the TravisCI tests are just early-warning systems instead of mission-critical.
@bors-servo r+

@bors-servo
Copy link
Contributor

bors-servo commented Jun 10, 2019

📌 Commit 4a8bdce has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented Jun 10, 2019

Testing commit 4a8bdce with merge 4d6b5eb...

bors-servo added a commit that referenced this pull request Jun 10, 2019
Let resources timing entries be added to performance entry buffer.

<!-- Please describe your changes on the following line: -->
Update relevant tests to properly report and expect failure.

These changes are the first step for #23328. Not sure if I would say they _fix_ the issue.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [ ] These changes fix #___ (GitHub issue number if applicable)

<!-- Either: -->
- [X] There are tests for these changes: Existing tests have been updated to expect pass/failures.

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23536)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Jun 10, 2019

💔 Test failed - linux-rel-wpt

@gatoWololo
Copy link
Contributor Author

gatoWololo commented Jun 11, 2019

@jdm That makes sense thanks. I was just worried about erroneously modifying the tests.

@gatoWololo
Copy link
Contributor Author

gatoWololo commented Jun 11, 2019

Well, this is fun. Calling ./mach test-wpt --release /performance-timeline several times. It randomly passes half the time, fails the other half.
Passes:

gatowololo@omar-mozilla ~/M/servo> ./mach test-wpt --release /performance-timeline
...
Running 32 tests in web-platform-tests

Ran 32 tests finished in 15.0 seconds.
  • 32 ran as expected. 0 tests skipped.

Fails:

gatowololo@omar-mozilla ~/M/servo> ./mach test-wpt --release /performance-timeline
Running 32 tests in web-platform-tests

  ▶ Unexpected subtest result in /performance-timeline/webtiming-resolution.any.worker.html:
  │ FAIL [expected PASS] Verifies the resolution of performance.now() is at least 5 microseconds.
  │   → assert_greater_than_equal: The second performance.now() should be much greater than the first expected a number greater than or equal to 0.0049900000000000005 but got 0.002425000000002342
  │ 
  │ testTimeResolution/<@http://web-platform.test:8000/performance-timeline/webtiming-resolution.any.js:9:9
  │ Test.prototype.step@http://web-platform.test:8000/resources/testharness.js:1594:20
  │ test@http://web-platform.test:8000/resources/testharness.js:544:21
  │ testTimeResolution@http://web-platform.test:8000/performance-timeline/webtiming-resolution.any.js:2:5
  │ @http://web-platform.test:8000/performance-timeline/webtiming-resolution.any.js:24:1
  └ @http://web-platform.test:8000/performance-timeline/webtiming-resolution.any.worker.js:8:1

Ran 32 tests finished in 15.0 seconds.
  • 31 ran as expected. 0 tests skipped.
  • 1 tests had unexpected subtest results
@jdm
Copy link
Member

jdm commented Jun 11, 2019

That's a known intermittent failure: #21276

Update relevant tests to properly report and expect failure.
Update manifest.
@gatoWololo gatoWololo force-pushed the gatoWololo:omar_timing_entries branch from 4a8bdce to 9eb3687 Jun 11, 2019
@asajeffrey
Copy link
Member

asajeffrey commented Jun 11, 2019

Searching the github repo for wpt test names quite often finds the right intermittent.

@gatoWololo
Copy link
Contributor Author

gatoWololo commented Jun 11, 2019

Thanks, in the future I'll look them up first.

@jdm
Copy link
Member

jdm commented Jun 14, 2019

@bors-servo
Copy link
Contributor

bors-servo commented Jun 14, 2019

📌 Commit 9eb3687 has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented Jun 14, 2019

Testing commit 9eb3687 with merge 08cc072...

bors-servo added a commit that referenced this pull request Jun 14, 2019
Let resources timing entries be added to performance entry buffer.

<!-- Please describe your changes on the following line: -->
Update relevant tests to properly report and expect failure.

These changes are the first step for #23328. Not sure if I would say they _fix_ the issue.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [ ] These changes fix #___ (GitHub issue number if applicable)

<!-- Either: -->
- [X] There are tests for these changes: Existing tests have been updated to expect pass/failures.

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23536)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Jun 14, 2019

💔 Test failed - status-taskcluster

@CYBAI
Copy link
Collaborator

CYBAI commented Jun 14, 2019

{
    "status": "FAIL", 
    "group": "default", 
    "message": "assert_true: responseEnd should not be 0 in timing-allow cross-origin request. expected true got false", 
    "stack": "test_greater_than/<@http://web-platform.test:8000/resource-timing/resources/webperftestharness.js:141:27\nTest.prototype.step@http://web-platform.test:8000/resources/testharness.js:1594:20\ntest@http://web-platform.test:8000/resources/testharness.js:544:21\nwp_test@http://web-platform.test:8000/resource-timing/resources/webperftestharness.js:57:5\ntest_greater_than@http://web-platform.test:8000/resource-timing/resources/webperftestharness.js:141:5\nonload_test@http://web-platform.test:8000/resource-timing/resource_TAO_origin.htm:43:5\n", 
    "subtest": "responseEnd should not be 0 in timing-allow cross-origin request.", 
    "test": "/resource-timing/resource_TAO_origin.htm", 
    "line": 66551, 
    "action": "test_result", 
    "expected": "PASS"
}
{
    "status": "FAIL", 
    "group": "default", 
    "message": "assert_true: responseEnd should be greater than 0 in cross-origin request. expected true got false", 
    "stack": "test_greater_than/<@http://web-platform.test:8000/resource-timing/resources/webperftestharness.js:141:27\nTest.prototype.step@http://web-platform.test:8000/resources/testharness.js:1594:20\ntest@http://web-platform.test:8000/resources/testharness.js:544:21\nwp_test@http://web-platform.test:8000/resource-timing/resources/webperftestharness.js:57:5\ntest_greater_than@http://web-platform.test:8000/resource-timing/resources/webperftestharness.js:141:5\nonload_test@http://web-platform.test:8000/resource-timing/resource_TAO_zero.htm:42:5\n", 
    "subtest": "responseEnd should be greater than 0 in cross-origin request.", 
    "test": "/resource-timing/resource_TAO_zero.htm", 
    "line": 70352, 
    "action": "test_result", 
    "expected": "PASS"
}
@jdm
Copy link
Member

jdm commented Jun 14, 2019

I wonder if those are new intermittent results...

@jdm
Copy link
Member

jdm commented Jun 24, 2019

@bors-servo retry
#23625

@bors-servo
Copy link
Contributor

bors-servo commented Jun 24, 2019

Testing commit 9eb3687 with merge 7490dd6...

bors-servo added a commit that referenced this pull request Jun 24, 2019
Let resources timing entries be added to performance entry buffer.

<!-- Please describe your changes on the following line: -->
Update relevant tests to properly report and expect failure.

These changes are the first step for #23328. Not sure if I would say they _fix_ the issue.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [ ] These changes fix #___ (GitHub issue number if applicable)

<!-- Either: -->
- [X] There are tests for these changes: Existing tests have been updated to expect pass/failures.

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23536)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Jun 24, 2019

☀️ Test successful - arm64, linux-rel-css, linux-rel-wpt, status-taskcluster
Approved by: jdm
Pushing 7490dd6 to master...

@bors-servo bors-servo merged commit 9eb3687 into servo:master Jun 24, 2019
4 checks passed
4 checks passed
Taskcluster (pull_request) TaskGroup: success
Details
Travis CI - Pull Request Build Passed
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

7 participants
You can’t perform that action at this time.