-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Conversation
@bors-servo r+ |
📌 Commit 246475c has been approved by |
246475c
to
55ddf45
Compare
@bors-servo r+ |
📌 Commit 55ddf45 has been approved by |
@bors-servo: treeclosed=9000 |
☔ The latest upstream changes (presumably #19457) made this pull request unmergeable. Please resolve the merge conflicts. |
55ddf45
to
4f29093
Compare
Rebased without conflict. (Maybe GitHub uses a different automatic conflict resolution algorithm than my git client?) @bors-servo r=nox |
📌 Commit 4f29093 has been approved by |
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 -->
💔 Test failed - linux-rel-wpt |
@bors-servo: retry
|
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.) |
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 -->
💔 Test failed - mac-rel-wpt3 |
I also get this when running
|
This will allow writing `tests/unit/*` in the root `Cargo.toml` file to designate Servo unit tests.
(if not usefully)
…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.
99c3df7
to
1f2b66e
Compare
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 |
📌 Commit 1f2b66e has been approved by |
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 -->
☀️ 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 |
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 -->
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 -->
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 -->
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 -->
… 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