-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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(ci): fix windows ci #9261
fix(ci): fix windows ci #9261
Conversation
} | ||
} | ||
// Give the wpt runner time to start up. | ||
std::thread::sleep(std::time::Duration::from_secs(5)); |
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.
:)
@@ -5316,39 +5313,8 @@ fn web_platform_tests() { | |||
.spawn() | |||
.unwrap(); | |||
|
|||
let stderr = proc.stderr.as_mut().unwrap(); | |||
let mut stderr = BufReader::new(stderr).lines(); |
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.
We should remove use declaration of this as well?
_ => "python3", | ||
}; | ||
|
||
eprintln!("If the wpt server fails or gets stuck, please set up your /etc/hosts file like specified in //docs/contributing/building_from_source.md."); | ||
eprintln!("On windows python.exe needs to available in your path, and needs to point to python 3. On macOS and Linux, python3 needs to be available in your path."); |
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.
Maybe we should check this here in Rust? Like start python.exe --version
and see that it has the correct output?
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.
Would it be ok if I do this when I move the WPT runner to TS?
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.
Not convinced about moving WPT runner to TS, but sure
There are some clippy warnings popping up:
|
I have reverted #9046 because I am going to do a full rewrite of the WPT runner. Because of this, this does not apply anymore. |
An alternative to #9254
This PR tries to avoid windows CI error by passing
--py2
option to wpt util script. ref: https://github.com/web-platform-tests/wpt/blob/61d85c8/wpt#L10