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

Run non-native tests on real device? #40733

Closed
mmatyas opened this issue Mar 22, 2017 · 2 comments
Closed

Run non-native tests on real device? #40733

mmatyas opened this issue Mar 22, 2017 · 2 comments

Comments

@mmatyas
Copy link
Contributor

mmatyas commented Mar 22, 2017

I see there is now support for running the test suites in QEMU emulators (#39400). Unfortunately, multithreaded tests tend to throw panics, so instead of a rootfs, I'd like to send them to a real hardware for better results. Would this be possible? I'm mainly thinking about generic ARM/Linux devices, not something like Android phones.

cc @alexcrichton

@alexcrichton
Copy link
Member

Right now we're unfortunately not really equipped to deal with this right now infrastructure-wise. We have pretty strict uptime requirements on our infrastructure in the sense of if anything goes down then nothing can make progress.

If we really do want to go down this route it would look like:

  1. Develop a daemon to schedule builds
  2. Hook the daemon up to github webhooks
  3. Implement the daemon updating the commit status through the github API
  4. Hook the build up to the bors queue, don't gate on it
  5. Watch it work for a few weeks
  6. Turn on gating by default if we're comfortable

Unfortunately that's quite a lot of work, and the payoff doesn't seem to be proportional to the investment required right now.

@alexcrichton
Copy link
Member

At this time this is such an ambitious project (and such a massive investment on our part) that I don't think it will be facilitated by having an issue open for this unfortunately. We also do not have immediate plans for implementing and supporting this, so I'm going to close this.

bors added a commit that referenced this issue May 4, 2017
Run non-native tests on real device

After #40733, I've made some hacks to the QEMU client-server tools to allow running the tests on a real device when cross compiling Rust. The address and port of the remote server can be set using an environment variable.

I've made this mainly for local testing purposes, if you're interested in merging this, I'd clean it a bit more (eg. renaming the functions from `qemu-` to something else). I'm not asking for CI integration or adding ARM boards to the build system; it's just that I used these modifications and I was wondering if you'd find them useful too.
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

No branches or pull requests

3 participants