Skip to content
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

Assert that we don't build test project twice. #3708

Merged
merged 3 commits into from
Feb 21, 2017

Conversation

matklad
Copy link
Member

@matklad matklad commented Feb 15, 2017

Discussed in #3691 (comment).

I've modify the offending tests to be more explicit about recreating projects.

@rust-highfive
Copy link

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton
Copy link
Member

r+ from me!

I think there's a few nighty-only tests failing though?

@matklad
Copy link
Member Author

matklad commented Feb 15, 2017

I think there's a few nighty-only tests failing though?

Hm, actually there's a whole bunch of tests failing, because I've forgotten that tests are fail-fast by default :)

tests/path.rs Outdated

p.build(); // rebuild the files (rewriting them in the process)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alexcrichton I don't understand how this test is supposed to work. We move files into the past and immediately replace them...

Also, the assertion on the previous line looks suspicions, because we never print to stdout in build....

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test has not survived the test of time well.

Let's just delete this test from this clause down, but leave the above clauses. We should have tons of tests for rebuilding, so it's not critical that this exact tests works.

Also note that this test is in no way testing what its name implies as well :)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's just delete this test from this clause down, but leave the above clauses. We should have tons of tests for rebuilding, so it's not critical that this exact tests works.

Hm, that test would test nothing at all then I think... I've brought it in line with its title :)

@matklad matklad force-pushed the assert-tests branch 2 times, most recently from 7271c74 to 4556f30 Compare February 15, 2017 20:24
That may work on linux and fail on windows, so it's better to proactively verify it.
@alexcrichton
Copy link
Member

@bors: r+

Thanks!

@bors
Copy link
Contributor

bors commented Feb 16, 2017

📌 Commit 73f870c has been approved by alexcrichton

@bors
Copy link
Contributor

bors commented Feb 16, 2017

⌛ Testing commit 73f870c with merge cd8b72c...

@bors
Copy link
Contributor

bors commented Feb 16, 2017

💔 Test failed - status-appveyor

@alexcrichton
Copy link
Member

@bors: retry

@bors
Copy link
Contributor

bors commented Feb 16, 2017

⌛ Testing commit 73f870c with merge cadc619...

@bors
Copy link
Contributor

bors commented Feb 16, 2017

💔 Test failed - status-travis

@alexcrichton
Copy link
Member

alexcrichton commented Feb 16, 2017 via email

@bors
Copy link
Contributor

bors commented Feb 16, 2017

⌛ Testing commit 73f870c with merge f07314e...

@bors
Copy link
Contributor

bors commented Feb 16, 2017

💔 Test failed - status-travis

@alexcrichton
Copy link
Member

@bors: retry

@bors
Copy link
Contributor

bors commented Feb 16, 2017

⌛ Testing commit 73f870c with merge 3fd66f8...

@bors
Copy link
Contributor

bors commented Feb 16, 2017

💔 Test failed - status-travis

@alexcrichton
Copy link
Member

alexcrichton commented Feb 16, 2017 via email

@bors
Copy link
Contributor

bors commented Feb 17, 2017

⌛ Testing commit 73f870c with merge db7c5bc...

@bors
Copy link
Contributor

bors commented Feb 17, 2017

💔 Test failed - status-travis

@alexcrichton
Copy link
Member

alexcrichton commented Feb 17, 2017 via email

@bors
Copy link
Contributor

bors commented Feb 17, 2017

⌛ Testing commit 73f870c with merge 83135c8...

@bors
Copy link
Contributor

bors commented Feb 17, 2017

💔 Test failed - status-travis

@alexcrichton
Copy link
Member

alexcrichton commented Feb 17, 2017 via email

@bors
Copy link
Contributor

bors commented Feb 17, 2017

⌛ Testing commit 73f870c with merge 1e3a7d2...

@bors
Copy link
Contributor

bors commented Feb 17, 2017

💔 Test failed - status-travis

@alexcrichton
Copy link
Member

alexcrichton commented Feb 17, 2017 via email

@bors
Copy link
Contributor

bors commented Feb 17, 2017

⌛ Testing commit 73f870c with merge a8539c5...

@bors
Copy link
Contributor

bors commented Feb 17, 2017

💔 Test failed - status-travis

@alexcrichton
Copy link
Member

alexcrichton commented Feb 17, 2017 via email

@bors
Copy link
Contributor

bors commented Feb 17, 2017

⌛ Testing commit 73f870c with merge 3bf6c41...

@bors
Copy link
Contributor

bors commented Feb 17, 2017

💔 Test failed - status-travis

@matklad
Copy link
Member Author

matklad commented Feb 18, 2017

@alexcrichton the last couple of mac failures appear to be legit. This test fails: 73f870c

foo is not recompiled.

On macs, mtime has a seconds granularity, so we need to sleep a bit
@matklad
Copy link
Member Author

matklad commented Feb 18, 2017

Ah, mtime on macs does not have subsec resolution. I've added a sleep as elsewhere in this file.

@alexcrichton
Copy link
Member

@bors: r+

@bors
Copy link
Contributor

bors commented Feb 21, 2017

📌 Commit 3d15df9 has been approved by alexcrichton

@bors
Copy link
Contributor

bors commented Feb 21, 2017

⌛ Testing commit 3d15df9 with merge 24256af...

bors added a commit that referenced this pull request Feb 21, 2017
Assert that we don't build test project twice.

Discussed in #3691 (comment).

I've modify the offending tests to be more explicit about recreating projects.
@bors
Copy link
Contributor

bors commented Feb 21, 2017

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

@bors bors merged commit 3d15df9 into rust-lang:master Feb 21, 2017
@matklad matklad deleted the assert-tests branch February 25, 2017 10:56
@ehuss ehuss added this to the 1.17.0 milestone Feb 6, 2022
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.

5 participants