-
Notifications
You must be signed in to change notification settings - Fork 13.6k
run spellcheck as a tidy extra check in ci #145025
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
base: master
Are you sure you want to change the base?
Conversation
Some changes occurred in HTML/CSS/JS. |
This comment has been minimized.
This comment has been minimized.
I would suggest preinstalling the |
This comment has been minimized.
This comment has been minimized.
Can you keep previous logic: check version first and only if not found/wrong build it? I have typos in PATH downloaded from github and not build via cargo, so current logic will build second one for me. P.S. in case of building |
This comment has been minimized.
This comment has been minimized.
3290d1a
to
140bb2d
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
src/build_helper/src/util.rs
Outdated
@@ -66,3 +67,65 @@ pub fn parse_gitmodules(target_dir: &Path) -> Vec<String> { | |||
|
|||
submodules_paths | |||
} | |||
|
|||
/// If the given executible is installed with the given version, use that, |
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.
/// If the given executible is installed with the given version, use that, | |
/// If the given executable is installed with the given version, use that, |
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.
you would really think that enabling typo checking would catch that ^^;
I think that tidy is being executed from some other directory. You should specify the working directory when running the |
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.
The comment on top of SPELLCHECK_DIRS
is outdated, could you remove it please?
The build of typos
seems to take ~1 minute on CI. We could try to build it with --debug
, or preinstall it in the Dockerfile, but in any case 1 minute isn't so terrible.
|
||
/// If the given executible is installed with the given version, use that, | ||
/// otherwise install via cargo. | ||
pub fn ensure_version_or_cargo_install( |
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.
Let's move this to tidy. It's only used in one place now, no need to increase bootstrap's (and other tools') build time by putting it into build_helper
.
this seems like the exact usecase for opt-level 1 or 2, where you care about minimizing run + build time. i'll do local testing to see what works best. UPDATE: local testing seems very noisy, opt level 0 was fastest, but then weirdly 3 was next fastest, with 1 and 2 being almost twice as slow as the others. this seems strange, as the non-rebuild runtime of tidy seemed about the same no matter the opt level. I guess we can just stick |
This comment has been minimized.
This comment has been minimized.
e5d05ae
to
715bbe0
Compare
This is probably how it should've been done from the start.
r? @Kobzol