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

Use workspace.default-members to specify default crates for cargo build #19476

Merged
merged 5 commits into from
Dec 7, 2017

Conversation

SimonSapin
Copy link
Member

@SimonSapin SimonSapin commented Dec 4, 2017

… and 'cargo test', etc. Include Servo and its unit tests, but not Stylo because that would try to compile the style crate with incompatible feature flags: rust-lang/cargo#4463

workspace.default-members was added in rust-lang/cargo#4743. Older Cargo versions ignore it.


This change is Reviewable

@nox
Copy link
Contributor

nox commented Dec 4, 2017

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit 246475c has been approved by nox

@highfive highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Dec 4, 2017
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Dec 4, 2017
@nox
Copy link
Contributor

nox commented Dec 4, 2017

@bors-servo r+

@bors-servo
Copy link
Contributor

📌 Commit 55ddf45 has been approved by nox

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Dec 4, 2017
@jdm
Copy link
Member

jdm commented Dec 4, 2017

@bors-servo: treeclosed=9000
Going to try restarting buildbot on a couple builders.

@bors-servo
Copy link
Contributor

☔ The latest upstream changes (presumably #19457) made this pull request unmergeable. Please resolve the merge conflicts.

@highfive highfive added S-needs-rebase There are merge conflict errors. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Dec 5, 2017
@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Dec 5, 2017
@SimonSapin
Copy link
Member Author

Rebased without conflict. (Maybe GitHub uses a different automatic conflict resolution algorithm than my git client?)

@bors-servo r=nox

@bors-servo
Copy link
Contributor

📌 Commit 4f29093 has been approved by nox

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. S-needs-rebase There are merge conflict errors. labels Dec 5, 2017
@bors-servo
Copy link
Contributor

⌛ Testing commit 4f29093 with merge 7175653...

bors-servo pushed a commit that referenced this pull request Dec 5, 2017
 Use workspace.default-members to specify default crates for cargo build

… and 'cargo test', etc. Include Servo and its unit tests, but not Stylo because that would try to compile the style crate with incompatible feature flags: rust-lang/cargo#4463

`workspace.default-members` was added in rust-lang/cargo#4743. Older Cargo versions ignore it.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19476)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

💔 Test failed - linux-rel-wpt

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Dec 5, 2017
@jdm
Copy link
Member

jdm commented Dec 5, 2017

@bors-servo: retry

  • "couldn't compile style"?

@SimonSapin
Copy link
Member Author

That means the rustc process terminated with a non-zero (unsuccessful) exit code. However there is no error message from rustc. Maybe rustc segfaulted? I can’t reproduce though :/ Let’s see if it happens reliably.

@bors-servo retry

(Note that this PR includes a compiler upgrade.)

@bors-servo
Copy link
Contributor

⌛ Testing commit 4f29093 with merge b7fa079...

bors-servo pushed a commit that referenced this pull request Dec 7, 2017
 Use workspace.default-members to specify default crates for cargo build

… and 'cargo test', etc. Include Servo and its unit tests, but not Stylo because that would try to compile the style crate with incompatible feature flags: rust-lang/cargo#4463

`workspace.default-members` was added in rust-lang/cargo#4743. Older Cargo versions ignore it.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19476)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

💔 Test failed - mac-rel-wpt3

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Dec 7, 2017
@SimonSapin
Copy link
Member Author

--- stderr
error: Connection to server timed out
make[2]: *** [CMakeFiles/ogg.dir/gecko/src/media/libogg/src/ogg_alloc.c.o] Error 2
make[1]: *** [CMakeFiles/ogg.dir/all] Error 2
make: *** [all] Error 2

I also get this when running ./mach test-unit on my machine:

rustdoc: Option 'document-private-items' given more than once

This will allow writing `tests/unit/*` in the root `Cargo.toml` file
to designate Servo unit tests.
…ild'

… and 'cargo test', etc. Include Servo and its unit tests,
but not Stylo because that would try to compile the style
crate with incompatible feature flags:
rust-lang/cargo#4463

`workspace.default-members` was added in
rust-lang/cargo#4743.
Older Cargo versions ignore it.
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-tests-failed The changes caused existing tests to fail. labels Dec 7, 2017
@SimonSapin
Copy link
Member Author

Added:

--- a/python/servo/testing_commands.py
+++ b/python/servo/testing_commands.py
@@ -254,6 +254,9 @@ class MachCommands(CommandBase):
         env = self.build_env()
         env["RUST_BACKTRACE"] = "1"
 
+        # Work around https://github.com/rust-lang/cargo/issues/4790
+        del env["RUSTDOCFLAGS"]
+
         if "msvc" in host_triple():
             # on MSVC, we need some DLLs in the path. They were copied
             # in to the servo.exe build dir, so just point PATH to that.

Maybe the "server timed out" was flaky network?

@bors-servo r=nox

@bors-servo
Copy link
Contributor

📌 Commit 1f2b66e has been approved by nox

@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Dec 7, 2017
@bors-servo
Copy link
Contributor

⌛ Testing commit 1f2b66e with merge df68eea...

bors-servo pushed a commit that referenced this pull request Dec 7, 2017
 Use workspace.default-members to specify default crates for cargo build

… and 'cargo test', etc. Include Servo and its unit tests, but not Stylo because that would try to compile the style crate with incompatible feature flags: rust-lang/cargo#4463

`workspace.default-members` was added in rust-lang/cargo#4743. Older Cargo versions ignore it.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19476)
<!-- Reviewable:end -->
@bors-servo
Copy link
Contributor

☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel-css, linux-rel-wpt, mac-dev-unit, mac-rel-css1, mac-rel-css2, mac-rel-wpt1, mac-rel-wpt2, mac-rel-wpt3, mac-rel-wpt4, windows-msvc-dev
Approved by: nox
Pushing df68eea to master...

@bors-servo bors-servo merged commit 1f2b66e into master Dec 7, 2017
@highfive highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Dec 7, 2017
@SimonSapin SimonSapin deleted the default-members branch December 7, 2017 17:37
emilio added a commit to emilio/servo that referenced this pull request Dec 9, 2017
bors-servo pushed a commit that referenced this pull request Dec 9, 2017
mach: Fix cargo-geckolib check / cargo-geckolib build after #19476.

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19539)
<!-- Reviewable:end -->
emilio added a commit to emilio/servo that referenced this pull request Dec 10, 2017
emilio added a commit to emilio/servo that referenced this pull request Dec 10, 2017
bors-servo pushed a commit that referenced this pull request Dec 13, 2017
mach: Fix cargo-geckolib check / cargo-geckolib build after #19476.

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19539)
<!-- Reviewable:end -->
bors-servo pushed a commit that referenced this pull request Dec 13, 2017
mach: Fix cargo-geckolib check / cargo-geckolib build after #19476.

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19539)
<!-- Reviewable:end -->
bors-servo pushed a commit that referenced this pull request Dec 14, 2017
mach: Fix cargo-geckolib check / cargo-geckolib build after #19476.

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19539)
<!-- Reviewable:end -->
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