Skip to content

Run clippy on Travis-CI #353

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

Merged
merged 2 commits into from
Mar 26, 2019
Merged

Conversation

spl
Copy link
Contributor

@spl spl commented Mar 22, 2019

This causes Travis-CI to fail if clippy finds any warning lints. It will, of course, fail now, since there are warnings to be found. But if #351 and #352 are merged and this branch is updated, it will pass.

@pkgw
Copy link
Collaborator

pkgw commented Mar 25, 2019

#351 and #352 are now merged, so if you rebase onto master we should be able to see how this goes. (I tried to do it for you but I guess I haven't enabled the feature that lets maintainers edit other people's PRs directly for this repo.)

@spl
Copy link
Contributor Author

spl commented Mar 25, 2019

Rebased.

@spl
Copy link
Contributor Author

spl commented Mar 25, 2019

Oh, I just noticed this on Travis-CI:

component 'clippy' for target 'x86_64-unknown-linux-gnu' is unavailable for download for channel 'nightly'

@spl
Copy link
Contributor Author

spl commented Mar 25, 2019

I guess clippy isn't always available for nightly. See this rustup components history. I'm not sure what “present” and “missing” mean. Perhaps it's missing if it fails to build? Perhaps rustup component add clippy should not be run for the nightly CI.

@spl
Copy link
Contributor Author

spl commented Mar 25, 2019

But it's nice to see Travis-CI passing for stable. 🙂

@pkgw
Copy link
Collaborator

pkgw commented Mar 25, 2019

@spl Yes, I believe that for non-core components such as clippy, it's not guaranteed that they'll be available on nightly. Based on the small sample size, it looks like that happens non-negligibly often, but nightly failures are OK anyway so I don't think we need to do anything special to deal with those failures. Stable and beta will always have clippy, I think.

@pkgw pkgw self-assigned this Mar 25, 2019
@codecov
Copy link

codecov bot commented Mar 25, 2019

Codecov Report

Merging #353 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #353   +/-   ##
=======================================
  Coverage   39.61%   39.61%           
=======================================
  Files         135      135           
  Lines       59496    59496           
=======================================
  Hits        23569    23569           
  Misses      35927    35927

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a82e3b4...63f3a86. Read the comment docs.

The rustfmt and clippy components may not be available for nightly Rust.
In order to avoid spurious failures, we'll only fetch rustfmt and clippy
for the main build.
@spl
Copy link
Contributor Author

spl commented Mar 26, 2019

I think it's better to to avoid spurious failures even for nightly. That way, a (non-network-related) failure is a valid failure that may deserve inspection. So, I pushed the rustup operations after the $is_main_build check to avoid fetching rustfmt and clippy for other CI runs.

@pkgw
Copy link
Collaborator

pkgw commented Mar 26, 2019

👍

@pkgw pkgw merged commit ec262de into tectonic-typesetting:master Mar 26, 2019
@spl spl deleted the travis-clippy branch March 26, 2019 12:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants