Repository navigation
Select the full-megazord libsForTests variant by capability - #7833
Merged
Merged
Conversation
rvandermeulen
force-pushed
the
libsfortests-capability
branch
from
November 24, 2026 02:08
39b7a0b to
4a699b1
Compare
Give the libsForTests variant a Java runtime usage attribute and a capability, and have component tests depend on it with testImplementation instead of implementation. This keeps the desktop test libraries off the components' runtime classpath, and lets mozilla-central's in-tree build pick the variant through dependency substitution, which cannot select a configuration by name. copyMegazordNative now depends on the desktop cargo build itself; the implementation edge used to trigger that build as a side effect of packaging libsForTests.
rvandermeulen
force-pushed
the
libsfortests-capability
branch
from
November 25, 2026 01:43
4a699b1 to
30b4d2d
Compare
rvandermeulen
marked this pull request as ready for review
November 25, 2026 01:58
bendk
approved these changes
Nov 25, 2026
bendk
left a comment
Contributor
There was a problem hiding this comment.
This makes some sense to me, although I don't know enough about gradle to really understand it. I think @ahochheiden's opinion is the important one.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Give the
libsForTestsvariant a Java runtime usage attribute and theorg.mozilla.appservices:full-megazord-libsForTestscapability, and have component tests depend on it withtestImplementationinstead ofimplementation. This keeps the desktop test libraries off the components' runtime classpath, and lets mozilla-central's in-tree build select the variant through dependency substitution, which cannot select a configuration by name.copyMegazordNativenow depends on the desktop cargo build itself; theimplementationedge used to trigger that build as a side effect of packaginglibsForTests.Firefox try push with this change vendored, covering the in-tree application-services builds: https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=124973