Repository navigation
Taskcluster: build for Android x86 and test in emulator - #22046
Conversation
|
|
c66d16a to
c212f26
Compare
c212f26 to
46f9312
Compare
|
@bors-servo try |
WIP: Taskcluster: build for Android x86 and test in emulator This adds to Taskcluster the equivalent of Buildbot’s `android-x86` job. CC servo/saltfs#559 Like on Buildbot, the Android emulator runs on a Packet.net server. However we can compiler in a separate task, and run that task on fast AWS instances. The Packet server is provisionned and installed automatically with Terraform scripts forked from https://github.com/taskcluster/taskcluster-infrastructure/tree/master/modules/docker-worker. Taskcluster’s “livelog” functionality seems to be broken on Packet tasks, so logs are only available after a task is completed. <!-- 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/22046) <!-- Reviewable:end -->
|
This is ready for review. r? @Manishearth |
|
💔 Test failed - linux-rel-wpt |
|
The relevant task is green: https://tools.taskcluster.net/groups/Uy6sz-rURdaFnJDFPuo4oA/tasks/LYITcvGFTqiLlG5v3149cQ/details Although it is running on a much weaker CPU (Intel Atom C2550 @ 2.4 GHz) than the equivalent Buildbot job (Intel Xeon E3-1240 @ 3.5 GHz), it is slightly worrying that this task that runs very few tests and does not compile Servo takes a full 8 minutes. The logs from the emulator contain: Maybe it’s trying to use some CPU functionality that are not available on Atom? |
|
https://en.wikipedia.org/wiki/CPUID links to https://en.wikipedia.org/wiki/Bit_Manipulation_Instruction_Sets#ABM which says |
|
Can you try running all of the webgl tests and see how long that takes? |
|
Still with very few test (not all of webgl), with Corresponding times on Buildbot (but on different hardware): |
| ) | ||
| .find_or_create("build.android_x86_release." + CONFIG.git_sha) | ||
| ) | ||
| return ( |
There was a problem hiding this comment.
(ignore if you disagree) can we split this into an android_x86_build and android_x86_test function?
There was a problem hiding this comment.
I expect we’ll never want to build for Android x86 other than in order to run tests in the emulator (devices we care about are all ARM or ARM64), but if we ever do it’ll be easy to split then.
| n = self.curl_scripts_count | ||
| return self \ | ||
| .with_env(**{ | ||
| "CURL_%s_URL" % n: url, |
There was a problem hiding this comment.
Is the n for making sure we don't end up caching distinct fetches? Can you leave a comment to that effect?
There was a problem hiding this comment.
If this method is called more than once for the same task definition, we want distinct environment variables variables since those variables end up in the same dictionary. This method itself doesn’t do caching, though.
| - "queue:route:index.project.servo.servo.*" | ||
| - "docker-worker:cache:servo-*" | ||
| - "docker-worker:capability:privileged" | ||
| - "assume:project:servo:decision-task/trusted" |
There was a problem hiding this comment.
where can one view and edit these?
There was a problem hiding this comment.
In https://tools.taskcluster.net/auth/roles/project%3Aservo%3Adecision-task%2Ftrusted, as document in the edits to etc/taskcluster/README.md in this PR.
|
I don't quite understand the packet stuff, but r=me |
asajeffrey
left a comment
There was a problem hiding this comment.
LGTM, not that I know much.
| """) | ||
| android_build_task("Android ARMv7: release build") | ||
| .with_script("./mach build --android --release") | ||
| .with_artifacts( |
There was a problem hiding this comment.
Why is a change to the ARMv7 build in a PR that's about android x86?
There was a problem hiding this comment.
Previously Android ARMv7 was the only Android build configured in this file. This is refactored in order to share code between the various (two) Android builds. See the android_build_task function.
| .with_dependencies(build_task) | ||
| .with_repo() | ||
| .with_curl_artifact_script(build_task, "target.tar.gz") | ||
| .with_script("tar -xzf target.tar.gz") |
There was a problem hiding this comment.
Changes to the linux build in an Android PR?
There was a problem hiding this comment.
Yes, all of this code is new and still a bit in flux. The “move curl’ing artifacts into decisionlib” commit could have been a separate PR, but since it’s merely nicer (IMO) code for doing the same thing I didn’t bother. (It is a separate commit though.)
|
|
||
| def android_build_task(name): | ||
| return ( | ||
| linux_build_task(name) |
There was a problem hiding this comment.
Ah, is this why there were linux changes?
|
Thank you both! @bors-servo r=Manishearth+asajeffrey |
|
📌 Commit d1a18dc has been approved by |
Taskcluster: build for Android x86 and test in emulator This adds to Taskcluster the equivalent of Buildbot’s `android-x86` job. CC servo/saltfs#559 Like on Buildbot, the Android emulator runs on a Packet.net server. However we can compiler in a separate task, and run that task on fast AWS instances. The Packet server is provisionned and installed automatically with Terraform scripts forked from https://github.com/taskcluster/taskcluster-infrastructure/tree/master/modules/docker-worker. Taskcluster’s “livelog” functionality seems to be broken on Packet tasks, so logs are only available after a task is completed. <!-- 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/22046) <!-- Reviewable:end -->
|
💔 Test failed - status-taskcluster |
Added a Use @bors-servo r=Manishearth+asajeffrey |
|
💡 This pull request was already approved, no need to approve it again.
|
|
📌 Commit d1a18dc has been approved by |
Taskcluster: build for Android x86 and test in emulator This adds to Taskcluster the equivalent of Buildbot’s `android-x86` job. CC servo/saltfs#559 Like on Buildbot, the Android emulator runs on a Packet.net server. However we can compiler in a separate task, and run that task on fast AWS instances. The Packet server is provisionned and installed automatically with Terraform scripts forked from https://github.com/taskcluster/taskcluster-infrastructure/tree/master/modules/docker-worker. Taskcluster’s “livelog” functionality seems to be broken on Packet tasks, so logs are only available after a task is completed. <!-- 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/22046) <!-- Reviewable:end -->
|
Err, forgot to push… @bors-servo r=Manishearth+asajeffrey |
|
📌 Commit b1da53e has been approved by |
Taskcluster: build for Android x86 and test in emulator This adds to Taskcluster the equivalent of Buildbot’s `android-x86` job. CC servo/saltfs#559 Like on Buildbot, the Android emulator runs on a Packet.net server. However we can compiler in a separate task, and run that task on fast AWS instances. The Packet server is provisionned and installed automatically with Terraform scripts forked from https://github.com/taskcluster/taskcluster-infrastructure/tree/master/modules/docker-worker. Taskcluster’s “livelog” functionality seems to be broken on Packet tasks, so logs are only available after a task is completed. <!-- 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/22046) <!-- Reviewable:end -->
|
☀️ Test successful - android, android-mac, android-x86, 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, status-taskcluster, windows-msvc-dev |
This adds to Taskcluster the equivalent of Buildbot’s
android-x86job. CC servo/saltfs#559Like on Buildbot, the Android emulator runs on a Packet.net server. However we can compiler in a separate task, and run that task on fast AWS instances. The Packet server is provisionned and installed automatically with Terraform scripts forked from https://github.com/taskcluster/taskcluster-infrastructure/tree/master/modules/docker-worker.
Taskcluster’s “livelog” functionality seems to be broken on Packet tasks, so logs are only available after a task is completed.
This change is