Skip to content

Pass a test directory to rustfmt #50468

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 1 commit into from
May 7, 2018
Merged

Pass a test directory to rustfmt #50468

merged 1 commit into from
May 7, 2018

Conversation

nrc
Copy link
Member

@nrc nrc commented May 5, 2018

Another attempt to fix the rustfmt tests. RUSTFMT_TEST_DIR is consumed by Rustfmt in the latext commit (thus the Rustfmt update) because we need a place to create temp files that won't be read-only.

r? @alexcrichton

@rust-highfive
Copy link
Contributor

warning Warning warning

  • These commits modify submodules.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 5, 2018
@alexcrichton
Copy link
Member

@bors: r+

@bors
Copy link
Collaborator

bors commented May 5, 2018

📌 Commit df97dd1 has been approved by alexcrichton

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 5, 2018
@bors
Copy link
Collaborator

bors commented May 6, 2018

⌛ Testing commit df97dd1 with merge 37c20f2...

bors added a commit that referenced this pull request May 6, 2018
Pass a test directory to rustfmt

Another attempt to fix the rustfmt tests. `RUSTFMT_TEST_DIR` is consumed by Rustfmt in the latext commit (thus the Rustfmt update) because we need a place to create temp files that won't be read-only.

r? @alexcrichton
@bors
Copy link
Collaborator

bors commented May 6, 2018

💔 Test failed - status-travis

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels May 6, 2018
@rust-highfive

This comment has been minimized.

@rust-highfive

This comment has been minimized.

@kennytm
Copy link
Member

kennytm commented May 6, 2018

@bors retry

3 hour timeout 🤨

Top 10 timespent:

Step Duration
stage1-rustc 43min
stage0-rustc 27min
run-pass 14min
run-pass-fulldeps 10min
test/core 7min
test/std 6min
llvm 6min
stage0-rustbook 5min
rustdoc 5min
test-stage2-alloc 3min

Top 5 timespent inside stage1-rustc:

Crate Duration
rustc 17min
rustc_mir 13min
rustc_typeck 11min
rustc_metadata 8min
rustc_resolve 5min

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 6, 2018
@bors
Copy link
Collaborator

bors commented May 6, 2018

⌛ Testing commit df97dd1 with merge 700165d...

bors added a commit that referenced this pull request May 6, 2018
Pass a test directory to rustfmt

Another attempt to fix the rustfmt tests. `RUSTFMT_TEST_DIR` is consumed by Rustfmt in the latext commit (thus the Rustfmt update) because we need a place to create temp files that won't be read-only.

r? @alexcrichton
@bors
Copy link
Collaborator

bors commented May 7, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing 700165d to master...

@bors bors merged commit df97dd1 into rust-lang:master May 7, 2018
@nrc
Copy link
Member Author

nrc commented May 7, 2018

I'm cursed. I just can't seem to get Rustfmt's tests to pass :-(

@kennytm
Copy link
Member

kennytm commented May 7, 2018

@nrc you could temporarily run the tools job on CI with this diff:

diff --git a/.travis.yml b/.travis.yml
index 63831cd596..9789b8eb75 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -169,7 +169,7 @@ matrix:
     - env: IMAGE=x86_64-gnu-aux
       if: branch = auto
     - env: IMAGE=x86_64-gnu-tools
-      if: branch = auto
+      # if: branch = auto
     - env: IMAGE=x86_64-gnu-debug
       if: branch = auto
     - env: IMAGE=x86_64-gnu-nopt

This allows you to experiment before merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants