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

Add Windows support for the new WPT test runner UI #8313

Closed
mrobinson opened this issue Nov 3, 2015 · 4 comments
Closed

Add Windows support for the new WPT test runner UI #8313

mrobinson opened this issue Nov 3, 2015 · 4 comments
Labels

Comments

@mrobinson
Copy link
Member

@mrobinson mrobinson commented Nov 3, 2015

It currently uses escape codes that probably do not work in Windows terminals.

@jdm jdm added the P-windows label Nov 3, 2015
@camlorn
Copy link
Contributor

@camlorn camlorn commented Jun 20, 2017

I'm looking into this because of #17392.

Per an IRC discussion with @retep998, It appears that ANSI can be made to work in Windows 10 well enough for what we're doing. I've hard-coded the line width.

Python terminal support for earlier versions of Windows is an epic train wreck. I don't think there's a cross-platform Python package for it, but haven't researched it heavily.

@camlorn camlorn mentioned this issue Jun 20, 2017
4 of 4 tasks complete
bors-servo added a commit that referenced this issue Jun 21, 2017
Windows can run WPT

<!-- Please describe your changes on the following line: -->
This PR contains fixes that address the specific errors in #17392: WTP workarounds for Windows terminals (see #8313), modifications to `mach test --all` that allow `test_tidy` to be called properly, and modifications to the test harness for WPT that allow it to run when OpenSSL isn't found.  How to handle OpenSSL on Windows is probably a separate issue because it doesn't have a straightforward answer: we either need to provide specific instructions to users or bundle it in binary form ourselves.

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

<!-- Either: -->
- [x] These changes do not require tests because they fix test running.

<!-- 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/17419)
<!-- Reviewable:end -->
bors-servo added a commit that referenced this issue Jun 22, 2017
Windows can run WPT

<!-- Please describe your changes on the following line: -->
This PR contains fixes that address the specific errors in #17392: WTP workarounds for Windows terminals (see #8313), modifications to `mach test --all` that allow `test_tidy` to be called properly, and modifications to the test harness for WPT that allow it to run when OpenSSL isn't found.  How to handle OpenSSL on Windows is probably a separate issue because it doesn't have a straightforward answer: we either need to provide specific instructions to users or bundle it in binary form ourselves.

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

<!-- Either: -->
- [x] These changes do not require tests because they fix test running.

<!-- 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/17419)
<!-- Reviewable:end -->
bors-servo added a commit that referenced this issue Jun 22, 2017
Windows can run WPT

<!-- Please describe your changes on the following line: -->
This PR contains fixes that address the specific errors in #17392: WTP workarounds for Windows terminals (see #8313), modifications to `mach test --all` that allow `test_tidy` to be called properly, and modifications to the test harness for WPT that allow it to run when OpenSSL isn't found.  How to handle OpenSSL on Windows is probably a separate issue because it doesn't have a straightforward answer: we either need to provide specific instructions to users or bundle it in binary form ourselves.

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

<!-- Either: -->
- [x] These changes do not require tests because they fix test running.

<!-- 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/17419)
<!-- Reviewable:end -->
@mrobinson
Copy link
Member Author

@mrobinson mrobinson commented Aug 16, 2017

@camlorn Just looking through some of my old bugs and wanted to check in with you about this: Can we close this bug now since it seems that your changes allow the WPT UI to run on Windows? If not, what's a good description for this bug to encapsulate the current work remaining to do?

@camlorn
Copy link
Contributor

@camlorn camlorn commented Aug 22, 2017

@mrobinson
It does run, but the UI might be awful. I had to hack around assumptions that we'd be in a Linux terminal. There weren't good Python libs for Windows.

It's been too long for me to remember specifics, but I'd suggest closing this and waiting for someone to open another ticket if there's still a problem.

@mrobinson
Copy link
Member Author

@mrobinson mrobinson commented Aug 30, 2017

Thanks!

@mrobinson mrobinson closed this Aug 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.