Skip to content

Fix test expectations #891

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
Aug 5, 2017
Merged

Conversation

fitzgen
Copy link
Member

@fitzgen fitzgen commented Aug 4, 2017

r? @photoszzt

cc @tmfink: I had to revert the target features commit because there were a bunch of compilation failures in the test expectations (we had another, earlier regression that accidentally made it so that we weren't compiling and running the test expectations in CI, so we didn't catch the target features PR's regressions).

fitzgen added 2 commits August 4, 2017 14:58
This reverts commit 0bb7b9f.

It turns out our CI stopped running test expectations in an earlier
regression (from d73507e; fix incoming) and so this pull request actually
introduced a bunch of failures when compiling the test expectations and running
their unit tests :(
Fixes a regression from d73507e which accidentally broke this.
@photoszzt
Copy link
Contributor

@bors-servo r+

Thanks!

@bors-servo
Copy link

@photoszzt: 🔑 Insufficient privileges: Not in reviewers

@fitzgen
Copy link
Member Author

fitzgen commented Aug 4, 2017

@bors-servo r=photoszzt

@bors-servo
Copy link

📌 Commit f4763bc has been approved by photoszzt

@bors-servo
Copy link

⌛ Testing commit f4763bc with merge 39a88d3...

bors-servo pushed a commit that referenced this pull request Aug 4, 2017
Fix test expectations

r? @photoszzt

cc @tmfink: I had to revert the target features commit because there were a bunch of compilation failures in the test expectations (we had another, earlier regression that accidentally made it so that we weren't compiling and running the test expectations in CI, so we didn't catch the target features PR's regressions).
@tmfink
Copy link
Contributor

tmfink commented Aug 4, 2017

@fitzgen, what are next steps? Should I open another pull request?

What regressions did I introduce? I did not observe any test failures locally.

@photoszzt
Copy link
Contributor

@tmfink Have you tried to run the following:
cd rust-bindgen/tests/expectations
cargo test

@fitzgen
Copy link
Member Author

fitzgen commented Aug 4, 2017

@tmfink,

Yes, let's open a new pull request to reland it.

As @photoszzt points out, because the test expectations changed, we need to retest that they can still compile, and that their layout unit tests still pass. This is done by changing into the tests/expectations directory and running cargo test.

I haven't dug into why the test expectations are failing to compile, yet, and I don't have time at the moment. I can help out on Tuesday, though (or answer questions you ask in the new PR before then at that time).

Good luck!

@photoszzt
Copy link
Contributor

@fitzgen I think running cargo test in tests/expectations should be documented somewhere. At least I don't know about it until you told me.

@bors-servo
Copy link

☀️ Test successful - status-travis
Approved by: photoszzt
Pushing 39a88d3 to master...

@bors-servo bors-servo merged commit f4763bc into rust-lang:master Aug 5, 2017
@fitzgen fitzgen deleted the fix-test-expectations branch August 5, 2017 00:09
@fitzgen
Copy link
Member Author

fitzgen commented Aug 5, 2017

Yeah definitely... I thought we had something in CONTRIBUTING.md...

@tmfink
Copy link
Contributor

tmfink commented Aug 5, 2017

@photoszzt @fitzgen, I always ran cargo test from the repo root, which appeared to work.

@tmfink
Copy link
Contributor

tmfink commented Aug 5, 2017

I see that running cargo test from the root is different than running from tests/expectations.

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.

4 participants