Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign uprustbuild: Migrate tidy checks to Rust #32590
Conversation
alexcrichton
referenced this pull request
Mar 29, 2016
Closed
Tracking issue for rustbuild, the alternate build system for rustc #31590
petrochenkov
reviewed
Mar 29, 2016
| @$(call E, check: feature sanity) | ||
| $(Q) $(CFG_PYTHON) $(S)src/etc/featureck.py $(S)src/ | ||
|
|
||
| echo "make tidy" is now only available in rustbuild |
This comment has been minimized.
This comment has been minimized.
petrochenkov
Mar 29, 2016
Contributor
So, if I use the old build system because testing is not implement in rustbuild yet, I won't be able to run make tidy anymore?
This comment has been minimized.
This comment has been minimized.
alexcrichton
Mar 29, 2016
Author
Member
For now, yeah, but if it's an important enough use case the tidy check is a small enough program to be easily compile-able
This comment has been minimized.
This comment has been minimized.
rkruppe
Mar 29, 2016
Member
Forget about users, what about the buildbots? This disables tidy checking on Travis, which is unfortunate to say the least. Do we even gate on rustbuild bots yet, or will this allow "untidy" code to merge?
I see that this new tidy has no dependencies other than std so maybe it could still be compiled and run from the Makefiles with very little effort?
If that doesn't work, I would suggest at least making make tidy spit out an error, because this line is easily overlooked in the build log, and I know I will forget that it doesn't work anymore and run make tidy.
This comment has been minimized.
This comment has been minimized.
alexcrichton
Mar 29, 2016
Author
Member
Yes we gate on rustbuild, no we won't check in "untidy" code because we're gating.
Yeah it's possible to just delete this rule altogether (to emit an error), but I figured we'd at least leave it here during a small transition period.
This comment has been minimized.
This comment has been minimized.
rkruppe
Mar 29, 2016
Member
It's still sad to lose the quick feedback from Travis on trivial tidy issues. Please consider adding something to the effect of rustc src/tools/tidy/main.rs -o whereever/tidy && whereever/tidy.
Yeah just deleting the rule is bad because unexplained breakage, but echo bla bla && false would give both a message and an error. Though this does require adjusting .travis.yml and buildbots right now instead of soon-ish so I understand if you don't want to do that.
This comment has been minimized.
This comment has been minimized.
petrochenkov
Mar 29, 2016
Contributor
So, tidy errors slip through make check by default, Travis doesn't catch them as well because it uses the old build system too, so without extra effort from PR authors tidy errors will be detected only after PR approval by rustbuild buildbots and will need to go through re-approval(s). Seems bad.
This comment has been minimized.
This comment has been minimized.
petrochenkov
Mar 29, 2016
Contributor
It's still sad to lose the quick feedback from Travis on trivial tidy issues. Please consider adding something to the effect of rustc src/tools/tidy/main.rs -o whereever/tidy && whereever/tidy.
And it would be much better if this line is added to the old build system instead of Travis.
This comment has been minimized.
This comment has been minimized.
alexcrichton
Mar 30, 2016
Author
Member
Right so I figured no one actually runs make tidy and we don't really care much about it so long as it runs somewhere, and it's trivial to add a builder on Travis if we really want. If it's really wanted that much though then a rule can just be added
This comment has been minimized.
This comment has been minimized.
alexcrichton
force-pushed the
alexcrichton:rustbuild-tidy-checks
branch
from
54d689f
to
e873e97
Mar 30, 2016
This comment has been minimized.
This comment has been minimized.
|
|
alexcrichton
force-pushed the
alexcrichton:rustbuild-tidy-checks
branch
4 times, most recently
from
db7c693
to
e5a2b63
Apr 3, 2016
This comment has been minimized.
This comment has been minimized.
|
Added a new tidy check which ensure that the dependencies listed in |
alexcrichton
force-pushed the
alexcrichton:rustbuild-tidy-checks
branch
2 times, most recently
from
9d32f2e
to
71ec190
Apr 7, 2016
This comment has been minimized.
This comment has been minimized.
|
r=me but please squash the last commit |
alexcrichton
force-pushed the
alexcrichton:rustbuild-tidy-checks
branch
from
71ec190
to
ae70c39
Apr 9, 2016
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Apr 9, 2016
This comment has been minimized.
This comment has been minimized.
|
|
This comment has been minimized.
This comment has been minimized.
|
|
alexcrichton
force-pushed the
alexcrichton:rustbuild-tidy-checks
branch
from
ae70c39
to
a183085
Apr 11, 2016
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Apr 11, 2016
This comment has been minimized.
This comment has been minimized.
|
|
alexcrichton
force-pushed the
alexcrichton:rustbuild-tidy-checks
branch
from
a183085
to
dfb28be
Apr 11, 2016
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Apr 12, 2016
This comment has been minimized.
This comment has been minimized.
|
|
alexcrichton
force-pushed the
alexcrichton:rustbuild-tidy-checks
branch
from
dfb28be
to
7ef35a8
Apr 12, 2016
This comment has been minimized.
This comment has been minimized.
alexcrichton
referenced this pull request
Apr 12, 2016
Closed
rustbuild: Add a tidy check to ensure Cargo.lock updates are checked in #32901
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Apr 12, 2016
This comment has been minimized.
This comment has been minimized.
|
|
alexcrichton
force-pushed the
alexcrichton:rustbuild-tidy-checks
branch
from
7ef35a8
to
386ca6a
Apr 12, 2016
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
bors
added a commit
that referenced
this pull request
Apr 12, 2016
This comment has been minimized.
This comment has been minimized.
|
|
alexcrichton commentedMar 29, 2016
This commit rewrites all of the tidy checks we have, namely:
into Rust under a new
tidytool inside of thesrc/toolsdirectory. This atthe same time deletes all the corresponding Python tidy checks so we can be sure
to only have one source of truth for all the tidy checks.
cc #31590