Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd `tidy` to dependencies' CI #10636
Comments
|
I'm kind of ambivalent about asking authors of crates that are unrelated to Servo (except that we make use of them) to install our Servo-specific linter. For the license checks in particular, I wonder if we could make use of the crates.io API and fetch that data for local evaluation? |
|
@jdm Good point. Do you think it'd be an appropriate compromise to ask the crate authors whether they'd be interested in running our lints, and if they aren't, run our own nightly check on clones of their repos to stay informed of how they compare? I expect that some maintainers will welcome the extra tests while others may disagree with the opinions enforced by the lints. |
|
Most of our lints are for enforcing our code style rules (along with some common code nits). I don't think we gain any useful information by doing so, given how little we end up contributing to many of the crates we depend upon. Another thing to point out is that Cargo.lock has the complete graph of our dependencies, which is a much larger list. |
|
This is gonna be fun! |
|
The boilerplate for making
|
Tidy and fixes for servo/servo#10636 * add tidy stuff to .travis.yml * transform conditional `use` to one-liners and put them after the other `use` statements * alphebetize many lists * add whitespace around some `=`
Allow another wording of apache2/MIT (used by gaol) r? @larsbergstrom need this for #10636 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10715) <!-- Reviewable:end -->
|
@edunham now that tidy's license validation logic and config file landed, it is possible to update |
|
@UK992 thanks for the reminder! Pushed new version to PyPI and wrote down how to do it this time, https://github.com/servo/servo/wiki/Infrastructure#tidy-on-pypi |
bump Tidy version Published a new tidy after config file fixes landed, as requested in #10636 (comment). This commit makes the repo match what I published, is all. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because **I changed one character in a string. If this breaks stuff, we're !#@$#@!$'d.** <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13113) <!-- Reviewable:end -->
bump Tidy version Published a new tidy after config file fixes landed, as requested in #10636 (comment). This commit makes the repo match what I published, is all. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because **I changed one character in a string. If this breaks stuff, we're !#@$#@!$'d.** <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13113) <!-- Reviewable:end -->
…aol) (from edunham:tidy-licenses); r=larsbergstrom r? larsbergstrom need this for servo/servo#10636 Source-Repo: https://github.com/servo/servo Source-Revision: a129ce1bccf313db85547a5c32ecf8cd7aac489b UltraBlame original commit: 7790d9b954bf74cfa6f43fcbfd7cd371bd5648df
…r=emilio Published a new tidy after config file fixes landed, as requested in servo/servo#10636 (comment). This commit makes the repo match what I published, is all. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because **I changed one character in a string. If this breaks stuff, we're !#$#!$'d.** <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Source-Repo: https://github.com/servo/servo Source-Revision: c4f34e9019e8324440d46a51e3df3bd150507199 UltraBlame original commit: 3fcd631d81f7979e1a5cc6dec75a6609a4d3e2cf
…aol) (from edunham:tidy-licenses); r=larsbergstrom r? larsbergstrom need this for servo/servo#10636 Source-Repo: https://github.com/servo/servo Source-Revision: a129ce1bccf313db85547a5c32ecf8cd7aac489b UltraBlame original commit: 7790d9b954bf74cfa6f43fcbfd7cd371bd5648df
…aol) (from edunham:tidy-licenses); r=larsbergstrom r? larsbergstrom need this for servo/servo#10636 Source-Repo: https://github.com/servo/servo Source-Revision: a129ce1bccf313db85547a5c32ecf8cd7aac489b UltraBlame original commit: 7790d9b954bf74cfa6f43fcbfd7cd371bd5648df
…r=emilio Published a new tidy after config file fixes landed, as requested in servo/servo#10636 (comment). This commit makes the repo match what I published, is all. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because **I changed one character in a string. If this breaks stuff, we're !#$#!$'d.** <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Source-Repo: https://github.com/servo/servo Source-Revision: c4f34e9019e8324440d46a51e3df3bd150507199 UltraBlame original commit: 3fcd631d81f7979e1a5cc6dec75a6609a4d3e2cf
…r=emilio Published a new tidy after config file fixes landed, as requested in servo/servo#10636 (comment). This commit makes the repo match what I published, is all. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: --> - [ ] `./mach build -d` does not report any errors - [ ] `./mach test-tidy` does not report any errors - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because **I changed one character in a string. If this breaks stuff, we're !#$#!$'d.** <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> Source-Repo: https://github.com/servo/servo Source-Revision: c4f34e9019e8324440d46a51e3df3bd150507199 UltraBlame original commit: 3fcd631d81f7979e1a5cc6dec75a6609a4d3e2cf
|
This work isn't going to happen. |
Creating a new issue to follow up on #861, since the packaging-tidy discussion took over that thread.
The
servo_tidypackage is now available on pip at https://pypi.python.org/pypi/servo_tidy/0.0.1 . Currently changes to it need to be deployed manually (secrets are in the "servo build machine secrets" doc), but we can automate the process once it becomes clearer how often we'll need to bump the version.From examining the cargo.toml, I get this list of external dependencies that we should try to get
tidyrun on:Ours (do these first)
[NEEDS TO BE TIDIED]Others' (Discuss adding lint to their CI, or alternately run it ourselves)