-
Notifications
You must be signed in to change notification settings - Fork 346
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
miri-script: Transform Windows paths to Unix. #2877
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,7 +77,7 @@ if [ -z "$COMMAND" ]; then | |
fi | ||
shift | ||
# macOS does not have a useful readlink/realpath so we have to use Python instead... | ||
MIRIDIR=$(python3 -c 'import os, sys; print(os.path.dirname(os.path.realpath(sys.argv[1])))' "$0") | ||
MIRIDIR=$(python3 -c 'import pathlib, sys; print(pathlib.Path(sys.argv[1]).resolve().parent.as_posix())' "$0") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. By the way, what do you think about detecting python binary to run (similar to what's done in ci.sh)? On my Windows machine There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oh no why is everything so terrible. :( We don't have to use python for this but I found no better way to make it work on macOS. Really we should rewrite the entire damn thing in Rust I guess if we truly want it to be portable... There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I'd be happy to tackle that in the future PR. Is there a tracking issue for that initiative? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No. Do you want to create one? :) |
||
# Used for rustc syncs. | ||
JOSH_FILTER=":rev(75dd959a3a40eb5b4574f8d2e23aa6efbeb33573:prefix=src/tools/miri):/src/tools/miri" | ||
# Needed for `./miri bench`. | ||
|
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.
This looks like it will cost us a minute. :/ Are there binary releases we could install?
Also the Linux run in this PR took almost 1h which is a lot slower than what I remember... is that a coincidence or related to this PR?
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.
I'm not aware of binary distributions of hyperfine.
Perhaps we could install
dev
version, as we don't really care about measurements?Though I'd expect hyperfine to be quick to build - even in release mode.
As for the slowdown of Linux build, let's see if reproduces on another CI run. I wouldn't expect this PR to slow down CI significantly.
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.
It looks like Linux run is back to normal. Perhaps running
miri bench
only for host targets is a positive factor?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.
It's about a minute to build. So not too bad I guess...
OTOH we don't actually care about the benchmarking part on CI, so we could as a hack also have CI create some
hyperfine
shell script that just executes its last argument. At least that would work on Linux. Whether it makes sense on Windows I cannot say.