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

Remote testing fixes #72704

Merged
merged 3 commits into from
Jun 3, 2020
Merged

Remote testing fixes #72704

merged 3 commits into from
Jun 3, 2020

Conversation

tblah
Copy link
Contributor

@tblah tblah commented May 28, 2020

Improvements for remote testing

  • Create a RUST_TEST_TMPDIR directory on the remote testing host
  • Verbose mode for remote-test-server
  • Skip tests which don't support remote testing using // ignore-remote

To test:

  • Build remote-test-server for the target machine and copy it over
  • On the target:
remote-test-server remote
  • On the build machine
export TEST_DEVICE_ADDR="1.2.3.4:12345"
./x.py test

@rust-highfive
Copy link
Collaborator

r? @nikomatsakis

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

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 28, 2020
@Mark-Simulacrum
Copy link
Member

This looks good to me but I think is pretty likely to conflict with #72672 so will hold off on approving, r=me once conflicts with that are resolved though (probably easiest to wait for it to land)

@Mark-Simulacrum Mark-Simulacrum added S-blocked Status: Marked as blocked ❌ on something else such as an RFC or other implementation work. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 29, 2020
@bors
Copy link
Contributor

bors commented Jun 2, 2020

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

@seritools
Copy link
Contributor

Unblocked now @tblah, sorry for the wait!

tblah added 3 commits June 2, 2020 14:00
Some tests (e.g. ui-fulldeps/create-dir-all-bare.rs) assume that
RUST_TEST_TMPDIR exists on the system running the test. Expand
remote-test-{server,client} such that a tmp directory is created on the
remote runner and this environment variable will point at it.
There was an unused verbose command line argument. Add some prints if
verbose is set.
Allow tests to use
// ignore-remote
to ignore the test when using remote-test-{client,server}. In most
situations this would be covered by
// ignore-cross-compile
but I see no reason that a non-cross compiled remote test runner
shouldn't work.
@tblah
Copy link
Contributor Author

tblah commented Jun 2, 2020

Thanks @seritools

r? @Mark-Simulacrum

@Mark-Simulacrum
Copy link
Member

Alright, this looks good to me, thanks!

@bors r+

@bors
Copy link
Contributor

bors commented Jun 2, 2020

📌 Commit 81df5ac has been approved by Mark-Simulacrum

@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-blocked Status: Marked as blocked ❌ on something else such as an RFC or other implementation work. labels Jun 2, 2020
bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 3, 2020
Rollup of 5 pull requests

Successful merges:

 - rust-lang#72704 (Remote testing fixes)
 - rust-lang#72820 (InstCombine: Don't optimize `&mut *x` into `x`)
 - rust-lang#72848 (Correct generic parameter ordering in error note for E0747)
 - rust-lang#72902 (Add a test to ensure Fuse stays covariant)
 - rust-lang#72921 (Add assert to Vec with_capacity docs)

Failed merges:

r? @ghost
@bors bors merged commit b478964 into rust-lang:master Jun 3, 2020
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.

6 participants