Skip to content

Add travis jobs for tidy #12417

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

Closed
wants to merge 1 commit into from
Closed

Conversation

flaper87
Copy link
Contributor

I'm creating this PR to extend the discussion that started here and as an example of what we could do to improve our pre-gating / pre-review process.

Here's the link to the job executed by this commit.

If we decided to extend this to other lite jobs, the configure and make process will need to be tweaked a bit - for example, --disable-optimize - to ensure that it runs faster and just does a pre-check on the PR.

This definitely needs more discussion.

@alexcrichton
Copy link
Member

While I think that this would certainly help some PRs, it's pretty rare that a tidy failure is the PR that fails. I could imagine that something like this could be extended to executing more pre-check functionality like verifying the format of a commit message (or something like that).

Regardless, we should proceed carefully when adding more infrastructure to what already exists.

@alexcrichton
Copy link
Member

Another option is something that looks like alexcrichton@715fc85 which completes in around 30 minutes.

That exercises the --llvm-root option so we don't have to build LLVM, and it also gets good-ish test coverage. I'm worried about @bnoordhuis's concerns though, so I'd like to give this some trial runs before committing to it.

@alexcrichton
Copy link
Member

If it's ok, I'm going to close this in favor of #12437

@flaper87
Copy link
Contributor Author

@alexcrichton totally, I didn't expect this to be merged as is. I wanted this PR to grow with comments of what it should or shouldn't do.

@flaper87 flaper87 deleted the travis-test branch March 11, 2014 09:15
bors added a commit to rust-lang-ci/rust that referenced this pull request Jul 25, 2022
…-schievink

minor: Update commit/PR style guide

What matters for the changelog is having PR title/description from the user's perspective, while commits can be internal.
matthiaskrgr pushed a commit to matthiaskrgr/rust that referenced this pull request Mar 21, 2024
Move `iter_nth` to `style`, add machine applicable suggestion

There's no `O(n)` involved with `.iter().nth()` on the linted types since the iterator implementations provide `nth` and/or `advance_by` that operate in `O(1)`

For slice iterators the codegen is equivalent, `VecDeque`'s iterator seems to codegen differently but that doesn't seem significant enough to keep it as a perf lint

changelog: [`iter_nth`] Move to `style`

r? `@flip1995`
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