-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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 ^^;
This comment was marked as resolved.
This comment was marked as resolved.
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.
src/build_helper/src/util.rs
Outdated
|
||
/// 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
Looks like it takes ~1.5 minutes now. Could you please add some log like "starting/ending spellcheck" that could be used to figure out how much time is spent on installing/building |
@Kobzol does this look good? I could also disable the |
Ah, I know. You just reran the CI workflow, but that uses the old merge/master commit that it had previously. That's why it's needed to force push :) |
☔ The latest upstream changes (presumably #145423) made this pull request unmergeable. Please resolve the merge conflicts. |
726ece8
to
56c60b2
Compare
This PR was rebased onto a different master commit! Check out the changes with our |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
850851c
to
2050a3b
Compare
@bors r=Kobzol |
…=Kobzol run spellcheck as a tidy extra check in ci This is probably how it should've been done from the start. r? `@Kobzol`
…=Kobzol run spellcheck as a tidy extra check in ci This is probably how it should've been done from the start. r? ``@Kobzol``
…=Kobzol run spellcheck as a tidy extra check in ci This is probably how it should've been done from the start. r? ````@Kobzol````
…=Kobzol run spellcheck as a tidy extra check in ci This is probably how it should've been done from the start. r? `````@Kobzol`````
Rollup of 19 pull requests Successful merges: - #140956 (`impl PartialEq<{str,String}> for {Path,PathBuf}`) - #141744 (Stabilize `ip_from`) - #144804 (Don't warn on never to any `as` casts as unreachable) - #144983 (Rehome 37 `tests/ui/issues/` tests to other subdirectories under `tests/ui/`) - #145025 (run spellcheck as a tidy extra check in ci) - #145041 (rework GAT borrowck limitation error) - #145243 (take attr style into account in diagnostics) - #145359 (Fix bug where `rustdoc-js` tester would not pick the right `search.js` file if there is more than one) - #145429 (Couple of codegen_fn_attrs improvements) - #145452 (Do not strip binaries in bootstrap everytime if they are unchanged) - #145486 (Fix `unicode_data.rs` mention message) - #145489 (library: Migrate from `cfg_if` to `cfg_select`) - #145493 (remove `should_render` in `PrintAttribute` derive) - #145500 (Port must_use to the new target checking) - #145505 (Simplify span caches) - #145511 (Rust build fails on OpenBSD after using file_lock feature) - #145516 (Weekly `cargo update`) - #145533 (Reorder `lto` options from most to least optimizing) - #145550 (Avoid using `()` in `derive(From)` output.) r? `@ghost` `@rustbot` modify labels: rollup
…=Kobzol run spellcheck as a tidy extra check in ci This is probably how it should've been done from the start. r? ``````@Kobzol``````
…=Kobzol run spellcheck as a tidy extra check in ci This is probably how it should've been done from the start. r? `@Kobzol`
…=Kobzol run spellcheck as a tidy extra check in ci This is probably how it should've been done from the start. r? ``@Kobzol``
This is probably how it should've been done from the start.
r? @Kobzol