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

Fix WebGL tests & Implement WebGLRenderingContext::{validateProgram, getProgramInfoLog, disableVertexAttribArray}. #13208

Merged
merged 2 commits into from
Oct 4, 2016

Conversation

MortimerGoro
Copy link
Contributor

@MortimerGoro MortimerGoro commented Sep 8, 2016

Implement WebGLRenderingContext::{validateProgram, getProgramInfoLog} and improve WebGL testcase to show shader link and validation errors.


  • There are tests for these changes OR
  • These changes do not require tests because _____

This change is Reviewable

@highfive
Copy link

highfive commented Sep 8, 2016

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

@highfive
Copy link

highfive commented Sep 8, 2016

Heads up! This PR modifies the following files:

  • @KiChjang: components/script/dom/webglrenderingcontext.rs, components/script/dom/webidls/WebGLRenderingContext.webidl, components/script/dom/webglprogram.rs
  • @emilio: components/script/dom/webglrenderingcontext.rs, components/script/dom/webglprogram.rs

@highfive
Copy link

highfive commented Sep 8, 2016

warning Warning warning

  • These commits modify script code, but no tests are modified. Please consider adding a test!

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Sep 8, 2016
@bors-servo
Copy link
Contributor

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

@highfive highfive added the S-needs-rebase There are merge conflict errors. label Sep 8, 2016
@@ -1293,6 +1293,11 @@ impl WebGLRenderingContextMethods for WebGLRenderingContext {
}

// https://www.khronos.org/registry/webgl/specs/latest/1.0/#5.14.9
fn GetProgramInfoLog(&self, program: Option<&WebGLProgram>) -> Option<DOMString> {
program.and_then(|p| Some(p.get_info_log())).map(DOMString::from)
Copy link
Member

Choose a reason for hiding this comment

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

nit: This can be program.map(|p| p.get_info_log()).map(DOMString::from)

@KiChjang KiChjang removed the S-needs-rebase There are merge conflict errors. label Sep 9, 2016
@emilio
Copy link
Member

emilio commented Sep 9, 2016

@bors-servo: r+

Thanks!

@bors-servo
Copy link
Contributor

📌 Commit 600ac93 has been approved by emilio

@highfive highfive assigned emilio and unassigned larsbergstrom Sep 9, 2016
@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 Sep 9, 2016
@Ms2ger Ms2ger changed the title Programinfolog Implement WebGLRenderingContext::{validateProgram, getProgramInfoLog}. Sep 9, 2016
@nox
Copy link
Contributor

nox commented Sep 9, 2016

@bors-servo p=1

@bors-servo
Copy link
Contributor

⌛ Testing commit 600ac93 with merge c83e3a4...

bors-servo pushed a commit that referenced this pull request Sep 9, 2016
Implement WebGLRenderingContext::{validateProgram, getProgramInfoLog}.

<!-- Please describe your changes on the following line: -->
Implement WebGLRenderingContext::{validateProgram, getProgramInfoLog} and improve WebGL testcase to show shader link and validation errors.

---
<!-- 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 #13199 (github issue number if applicable).

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

💔 Test failed - mac-rel-wpt

@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 Sep 9, 2016
@larsbergstrom
Copy link
Contributor

Hrm, I've never seen this:

command timed out: 1200 seconds without output running ['./mach', 'test-wpt', '--release', '--processes', '8', '--log-raw', 'test-wpt.log', '--log-errorsummary', 'wpt-errorsummary.log'], attempting to kill

@jdm
Copy link
Member

jdm commented Sep 9, 2016

@bors-servo
Copy link
Contributor

⌛ Testing commit 600ac93 with merge cc85d61...

bors-servo pushed a commit that referenced this pull request Sep 9, 2016
Implement WebGLRenderingContext::{validateProgram, getProgramInfoLog}.

<!-- Please describe your changes on the following line: -->
Implement WebGLRenderingContext::{validateProgram, getProgramInfoLog} and improve WebGL testcase to show shader link and validation errors.

---
<!-- 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 #13199 (github issue number if applicable).

<!-- 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/13208)
<!-- Reviewable:end -->
@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 Sep 9, 2016
@bors-servo
Copy link
Contributor

⌛ Testing commit 328dace with merge f9dfb5c...

bors-servo pushed a commit that referenced this pull request Oct 3, 2016
Fix WebGL tests & Implement WebGLRenderingContext::{validateProgram, getProgramInfoLog, disableVertexAttribArray}.

<!-- Please describe your changes on the following line: -->
Implement WebGLRenderingContext::{validateProgram, getProgramInfoLog} and improve WebGL testcase to show shader link and validation errors.

---
<!-- 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 #13199 (github issue number if applicable).

<!-- 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/13208)
<!-- Reviewable:end -->
@larsbergstrom
Copy link
Contributor

@bors-servo force clean retry

  • infra

@bors-servo
Copy link
Contributor

⌛ Testing commit 328dace with merge 2432b48...

bors-servo pushed a commit that referenced this pull request Oct 3, 2016
Fix WebGL tests & Implement WebGLRenderingContext::{validateProgram, getProgramInfoLog, disableVertexAttribArray}.

<!-- Please describe your changes on the following line: -->
Implement WebGLRenderingContext::{validateProgram, getProgramInfoLog} and improve WebGL testcase to show shader link and validation errors.

---
<!-- 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 #13199 (github issue number if applicable).

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

💔 Test failed - linux-rel-wpt

@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 Oct 3, 2016
@larsbergstrom
Copy link
Contributor

@bors-servo retry

  • infra

bors-servo pushed a commit that referenced this pull request Oct 3, 2016
Fix WebGL tests & Implement WebGLRenderingContext::{validateProgram, getProgramInfoLog, disableVertexAttribArray}.

<!-- Please describe your changes on the following line: -->
Implement WebGLRenderingContext::{validateProgram, getProgramInfoLog} and improve WebGL testcase to show shader link and validation errors.

---
<!-- 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 #13199 (github issue number if applicable).

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

⌛ Testing commit 328dace with merge 89d85ac...

@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 Oct 3, 2016
@bors-servo
Copy link
Contributor

💔 Test failed - linux-dev

@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 Oct 3, 2016
@MortimerGoro
Copy link
Contributor Author

Could you try again?

Linux:

Compiling stylo_tests v0.0.1 (file:///home/servo/buildbot/slave/linux-dev/build/tests/unit/stylo)
/home/servo/buildbot/slave/linux-dev/build/tests/unit/stylo/sanity_checks.rs:65:5: 65:84 error: couldn't read "/home/servo/buildbot/slave/linux-dev/build/tests/unit/stylo/../../../components/style/generated/gecko_pseudo_element_helper.rs": No such file or directory (os error 2)
/home/servo/buildbot/slave/linux-dev/build/tests/unit/stylo/sanity_checks.rs:65 include!("../../../components/style/generated/gecko_pseudo_element_helper.rs");
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error: Could not compile stylo_tests.

To learn more, run the command again with --verbose.

Windows:

Running rustc C:\projects\servo\.cargo\registry\src\github.com-1ecc6299db9ec823\servo-skia-0.20130412.24\src\lib.rs --crate-name skia --crate-type lib -g -C metadata=821f6e887353da86 -C extra-filename=-821f6e887353da86 --out-dir C:\projects\servo\target\debug\deps --emit=dep-info,link -L dependency=C:\projects\servo\target\debug\deps --extern gleam=C:\projects\servo\target\debug\deps\libgleam-77c1dc4cf66c55c7.rlib --extern libc=C:\projects\servo\target\debug\deps\liblibc-1417726cb94dbc83.rlib --extern expat_sys=C:\projects\servo\target\debug\deps\libexpat_sys-b221d02da6c4f70a.rlib --extern euclid=C:\projects\servo\target\debug\deps\libeuclid-005c17dcf11976c9.rlib --extern glutin=C:\projects\servo\target\debug\deps\libglutin-f1caa1609717624f.rlib --cap-lints allow -W unused-extern-crates -L native=C:\projects\servo\target\debug\build\servo-skia-ba112d30f8f02d37\out/lib -l static=skia -l usp10 -l ole32 -L native=C:\projects\servo\target\debug\build\expat-sys-a8e6de2e5e1a3bbc\out\lib
error: failed to build archive: bad archive: permission denied
Build failed, waiting for other jobs to finish...
error: Could not compile servo-skia.

@larsbergstrom
Copy link
Contributor

@bors-servo retry

  • infra

@bors-servo
Copy link
Contributor

⌛ Testing commit 328dace with merge fc25138...

bors-servo pushed a commit that referenced this pull request Oct 3, 2016
Fix WebGL tests & Implement WebGLRenderingContext::{validateProgram, getProgramInfoLog, disableVertexAttribArray}.

<!-- Please describe your changes on the following line: -->
Implement WebGLRenderingContext::{validateProgram, getProgramInfoLog} and improve WebGL testcase to show shader link and validation errors.

---
<!-- 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 #13199 (github issue number if applicable).

<!-- 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/13208)
<!-- Reviewable:end -->
@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 Oct 3, 2016
@bors-servo
Copy link
Contributor

💔 Test failed - mac-rel-wpt2

@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 Oct 3, 2016
@emilio
Copy link
Member

emilio commented Oct 4, 2016

@bors-servo
Copy link
Contributor

⚡ Previous build results for arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css, mac-rel-wpt1, windows-dev are reusable. Rebuilding only mac-rel-wpt2...

@bors-servo
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-fails-tidy `./mach test-tidy` reported errors. S-tests-failed The changes caused existing tests to fail.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement WebGLRenderingContext::{validateProgram, getProgramInfoLog}
9 participants