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

Enable wpt WebGL tests on Linux #12858

Closed
wants to merge 8 commits into from
Closed

Conversation

@anholt
Copy link
Contributor

anholt commented Aug 14, 2016

Enables the WebGL tests in test-wpt on Linux. They have been disabled since the webgl conformance tests first showed up, and it looks like they should work now.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #9331
  • There are tests for these changes OR
  • These changes do not require tests because _____

This change is Reviewable

@anholt
Copy link
Contributor Author

anholt commented Aug 14, 2016

Note: My testing was done on Mesa's i965 driver on Haswell. There's an interesting problem in the out-of-bounds tests where with a debug build of Mesa they assertion fail. I think we may just be getting lucky and not crashing in a release build, requiring better bounds checking on our draws.

@@ -2,6 +2,7 @@
type: testharness
expected:
if os == "mac": CRASH

This comment has been minimized.

@Manishearth

Manishearth Aug 14, 2016

Member

this should just be CRASH, since we only test on linux and osx? same for the next two

@Manishearth
Copy link
Member

Manishearth commented Aug 14, 2016

bors-servo added a commit that referenced this pull request Aug 14, 2016
Enable wpt WebGL tests on Linux

<!-- Please describe your changes on the following line: -->

Enables the WebGL tests in test-wpt on Linux.  They have been disabled since the webgl conformance tests first showed up, and it looks like they should work now.

---
<!-- 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
- [X] These changes fix #9331

<!-- Either: -->
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- 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/12858)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Aug 14, 2016

Trying commit 60a44d8 with merge 12f7c70...

@bors-servo
Copy link
Contributor

bors-servo commented Aug 14, 2016

💔 Test failed - linux-rel

@Manishearth
Copy link
Member

Manishearth commented Aug 14, 2016

Seem to be lots of failures on the server :/

@anholt
Copy link
Contributor Author

anholt commented Aug 14, 2016

Yeah, this PR was mostly an attempt to give the CI a shot at it, since its driver would be different from mine. Hopefully the next force-push will be cleaner on CI.

@anholt anholt force-pushed the anholt:webgl-enable-tests-linux branch from 60a44d8 to acbdc00 Aug 14, 2016
@emilio
Copy link
Member

emilio commented Aug 14, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Aug 14, 2016

Trying commit acbdc00 with merge 10bf9e5...

bors-servo added a commit that referenced this pull request Aug 14, 2016
Enable wpt WebGL tests on Linux

<!-- Please describe your changes on the following line: -->

Enables the WebGL tests in test-wpt on Linux.  They have been disabled since the webgl conformance tests first showed up, and it looks like they should work now.

---
<!-- 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
- [X] These changes fix #9331

<!-- Either: -->
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- 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/12858)
<!-- Reviewable:end -->
@anholt
Copy link
Contributor Author

anholt commented Aug 14, 2016

Note the way I added the subtest FAILs in 7ef67c3 -- do I need to file those under linux only somehow?

@bors-servo
Copy link
Contributor

bors-servo commented Aug 14, 2016

💔 Test failed - linux-rel

@anholt anholt force-pushed the anholt:webgl-enable-tests-linux branch from acbdc00 to af99035 Aug 14, 2016
@anholt
Copy link
Contributor Author

anholt commented Aug 14, 2016

Looks like in round 2 the llvmpipe crashes didn't show up (some spurious failure?) but the texture-npot failures matched. Update dropped the two crashes and (hopefully correctly) added the texture-npot.

@emilio
Copy link
Member

emilio commented Aug 14, 2016

@bors-servo
Copy link
Contributor

bors-servo commented Aug 14, 2016

Trying commit af99035 with merge 58c909d...

bors-servo added a commit that referenced this pull request Aug 14, 2016
Enable wpt WebGL tests on Linux

<!-- Please describe your changes on the following line: -->

Enables the WebGL tests in test-wpt on Linux.  They have been disabled since the webgl conformance tests first showed up, and it looks like they should work now.

---
<!-- 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
- [X] These changes fix #9331

<!-- Either: -->
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- 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/12858)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Aug 14, 2016

💔 Test failed - linux-rel

@highfive
Copy link

highfive commented Aug 14, 2016

  ▶ FAIL [expected PASS] /css-transforms-1_dev/html/transform-table-007.htm
  └   → /css-transforms-1_dev/html/transform-table-007.htm a5c014b20ef1363bea6f24eda28c7efb7c45698a
/css-transforms-1_dev/html/reference/transform-blank-ref.htm fa6407b1acbbfea27e27061e7d1bdeca98e4a728
Testing a5c014b20ef1363bea6f24eda28c7efb7c45698a == fa6407b1acbbfea27e27061e7d1bdeca98e4a728
@bors-servo
Copy link
Contributor

bors-servo commented Aug 14, 2016

The latest upstream changes (presumably #12857) made this pull request unmergeable. Please resolve the merge conflicts.

@larsbergstrom
Copy link
Contributor

larsbergstrom commented Aug 22, 2016


ParseError: EOL in expression: /Users/servo/buildbot/slave/mac-rel-wpt/build/tests/wpt/metadata/webgl/conformance-1.0.3/conformance/textures/tex-image-and-sub-image-2d-with-image-rgba4444.html.ini line 3
@@ -1,5 +1,7 @@
[tex-image-and-sub-image-2d-with-webgl-canvas-rgba4444.html]
type: testharness
disabled:
if os == "linux": https://github.com/servo/servo/issues/12864

This comment has been minimized.

@KiChjang

KiChjang Aug 22, 2016

Member

Why not disable it for all OSes?

This comment has been minimized.

@jdm

jdm Aug 22, 2016

Member

Because it works on macOS?

This comment has been minimized.

@anholt

anholt Aug 22, 2016

Author Contributor

Oh, right.

I was just autopiloting here. Given that I haven't actually changed anything about MacOS in this series, we should probably drop this commit and ignore the macos failure.

This comment has been minimized.

@anholt

anholt Aug 22, 2016

Author Contributor

Scratch that. The original timeout was linux, this failure was reported on Mac because of the syntax error.

@@ -1,4 +1,6 @@
[tex-image-and-sub-image-2d-with-image-rgba4444.html]
disabled:
if os == "linux"

This comment has been minimized.

@KiChjang

KiChjang Aug 22, 2016

Member

And it looks like it's failing because of this line.

@anholt anholt force-pushed the anholt:webgl-enable-tests-linux branch from 549c0c1 to ca06388 Aug 22, 2016
anholt added 6 commits Aug 14, 2016
It looks like we should basically skip the call of readPixels() in
this case.
Across many test runs, I haven't seen them crash.
These don't appear on the i965 driver, but seem to be reliable on CI.
These don't crash on the i965 driver or my local 11.2.2 llvmpipe, but
have shown intermittent failures in CI.
@anholt anholt force-pushed the anholt:webgl-enable-tests-linux branch from ca06388 to 5782d7a Aug 22, 2016
anholt added 2 commits Aug 20, 2016
From a conversation on #servo:

<Manishearth> Ms2ger: why are they disabled on linux only?
<Ms2ger> Don't recall
<Ms2ger> Probably builder issues

Fixes #9331
@anholt anholt force-pushed the anholt:webgl-enable-tests-linux branch from 5782d7a to a0b738d Aug 22, 2016
@KiChjang
Copy link
Member

KiChjang commented Aug 22, 2016

@bors-servo r=emilio

@bors-servo
Copy link
Contributor

bors-servo commented Aug 22, 2016

📌 Commit a0b738d has been approved by emilio

@bors-servo
Copy link
Contributor

bors-servo commented Aug 22, 2016

Testing commit a0b738d with merge 8491c09...

bors-servo added a commit that referenced this pull request Aug 22, 2016
Enable wpt WebGL tests on Linux

<!-- Please describe your changes on the following line: -->

Enables the WebGL tests in test-wpt on Linux.  They have been disabled since the webgl conformance tests first showed up, and it looks like they should work now.

---
<!-- 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
- [X] These changes fix #9331

<!-- Either: -->
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because _____

<!-- 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/12858)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

bors-servo commented Aug 22, 2016

💔 Test failed - mac-rel-wpt

@anholt
Copy link
Contributor Author

anholt commented Aug 22, 2016

In that last round, the macos timeouts on readpixels tests are unrelated to my changes.

There are also unexpected passes reported on gl-bindAttribLocation-aliasing.html. I had thought the testsuite was treating the expected-FAIL in subtests as "if the test fails overall, treat these subtests as expected fail and report any ones not listed". Is that not the case? Do we need to annotate each line of tests/wpt/metadata/webgl/conformance-1.0.3/conformance/attribs/gl-bindAttribLocation-aliasing.html.ini with "if linux, then expect this"?

@bors-servo
Copy link
Contributor

bors-servo commented Aug 29, 2016

The latest upstream changes (presumably #13060) made this pull request unmergeable. Please resolve the merge conflicts.

@anholt
Copy link
Contributor Author

anholt commented Sep 17, 2016

We've got so many errors different between MacOS and Linux that trying to keep the expecteds updated for both is going to be madness. I'm shelving this project for now, and instead working on improving our implementation so that we don't have so many expecteds to manage.

@anholt anholt closed this Sep 17, 2016
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.

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