-
Notifications
You must be signed in to change notification settings - Fork 229
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
Fix taskcluster breakage from #6524 #6533
Conversation
One reason we didn't catch this sooner we relied posting `/taskcluster ci full` in a GH comment, but that didn't actually run all the tasks. - Added a set of test parameters for the github issue comment - Run all tasks for issue comments
db468bf
to
4942777
Compare
/taskcluster ci full |
4942777
to
8f9691d
Compare
/taskcluster ci full |
I think this one is ready for review now.
|
dependsOn(processTestResTask) | ||
} | ||
|
||
testTask.dependsOn(copyNativeMegazord) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To make things work on android-components we need to package a JAR file with the libraries. A nice side benefit of this is that we can just depend on it directly rather than have the weird copy task.
@@ -127,7 +127,7 @@ projects: | |||
publications: | |||
- name: full-megazord | |||
type: aar | |||
- name: full-megazord-forUnitTests | |||
- name: full-megazord-libsForTests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I renamed it because I think it's a bit more precise/clear since:
- We're not shipping the Megazord .kt sources, just libraries
- We are shipping libjnidispatch, which is a not really part of the Megazord it's just a library needed for the tests.
I'm open to other names or keeping the old name. One reason to keep the old name is that we don't need to land code in android-components, but it feels like it's worth it to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing worrying me here -- if it's good for you and automation, it's good for me.
megazords/full/android/build.gradle
Outdated
// Android. | ||
// | ||
// For libmegazord, we copy the desktop libs from the | ||
// (rust-android-gradle plugin](https://github.com/mozilla/rust-android-gradle), which is |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This markdown is busted -- maybe
// ([rust-android-gradle plugin](...) ...)
megazords/full/android/build.gradle
Outdated
// Native megazord library, this is the one compatible with the user's local machine. We use it | ||
// to run unit tests. | ||
// to run uniffi-bindgen against |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: trailing period.
Build a JAR file with libjnidispatch and libmegazord, targetted at Desktop arches so that devs can run unit tests with it. Export this as a configuration and Maven package. This allows android-components code to run the unit tests and also simplifies the gradle code for our own components. Named this full-megazord-libsForTest, which I think is a bit more clear than full-megazord-forUnitTests.
8f9691d
to
33975fe
Compare
…, r=RyanVM The new package name is going to be `full-megazord-libsForTest` (mozilla/application-services#6533). Differential Revision: https://phabricator.services.mozilla.com/D232720
…, r=RyanVM The new package name is going to be `full-megazord-libsForTest` (mozilla/application-services#6533). Differential Revision: https://phabricator.services.mozilla.com/D232720
…, r=RyanVM The new package name is going to be `full-megazord-libsForTest` (mozilla/application-services#6533). Differential Revision: https://phabricator.services.mozilla.com/D232720 UltraBlame original commit: 8c693fe9f2ce5d5b3a11625224f09e01e110caad
…, r=RyanVM The new package name is going to be `full-megazord-libsForTest` (mozilla/application-services#6533). Differential Revision: https://phabricator.services.mozilla.com/D232720 UltraBlame original commit: 8c693fe9f2ce5d5b3a11625224f09e01e110caad
…, r=RyanVM The new package name is going to be `full-megazord-libsForTest` (mozilla/application-services#6533). Differential Revision: https://phabricator.services.mozilla.com/D232720 UltraBlame original commit: 8c693fe9f2ce5d5b3a11625224f09e01e110caad
…, r=RyanVM The new package name is going to be `full-megazord-libsForTest` (mozilla/application-services#6533). Differential Revision: https://phabricator.services.mozilla.com/D232720
Build a JAR file with libjnidispatch and libmegazord, targetted at Desktop arches so that devs can run unit tests with it. Export this as a configuration and Maven package. This allows android-components code to run the unit tests and also simplifies the gradle code for our own components.
Named this full-megazord-libsForTest, which I think is a bit more clear than full-megazord-forUnitTests.
Pull Request checklist
[ci full]
to the PR title.Branch builds: add
[firefox-android: branch-name]
to the PR title.