Gecko 'metrics.yaml' is not picked up in a-c when doing dependency substitution
Categories
(Data Platform and Tools :: Glean: SDK, defect, P3)
Tracking
(Not tracked)
People
(Reporter: Dexter, Unassigned)
References
Details
(Whiteboard: [telemetry:glean-rs:backlog])
Attachments
(1 file)
1.37 KB,
patch
|
Details | Diff | Splinter Review |
For some reason, when pointing Android Components to the locally built GeckoView as shown in this guide, the metrics.yaml
does not get fetched.
This means that it's either not being packed by the Gecko build system (assuming, in this case, the AAR is still assembled) or failed to fetch by the Glean script used in engine-gecko-nightly.
Reporter | ||
Updated•5 years ago
|
Reporter | ||
Comment 1•5 years ago
|
||
This is simple to verify: adding a metric to the metrics.yaml
in Gecko does not result in a new entry in engine-gecko-nightly/build/generated/source/glean/<variant>/kotlin/GleanGeckoMetricsMapping.kt
Comment 2•5 years ago
|
||
It's my guess that you are seeing Gradle caching which I expect to be alleviated by SNAPSHOT builds.
To verify:
- apply the commit from that ticket
./mach build
./gradlew ...
as usual in a-c
With luck you'll see the new metrics.yaml
processed. If not, a ./gradlew ... --debug
(attached, it's huge) will help understand the caching layer.
Reporter | ||
Comment 3•5 years ago
|
||
Hey Jamie, any chance you could try that out?
Comment 4•5 years ago
|
||
Unfortunately that didn't work. Even after doing a ./gradlew clean
before ./gradlew assembleDebug
.
Attached is the output from assembleDebug
. (you weren't kidding about it being huge!): https://send.firefox.com/download/5ac19a9f7c3da8c7/#WcQLqit0YUaxc0HschCSEA
Comment 5•5 years ago
|
||
As a workaround to this, I removed the dependencySubstitutions.geckoviewTopsrcdir
line from local.properties, and instead manually added the maven repo to android-components' build.gradle
, and overrode the Gecko.geckoview_nightly
version.
Attached is the patch.
After doing this, android-components picks up my metrics from gecko's metrics.yaml.
Comment 6•5 years ago
|
||
Whoops, definitely didn't mean to assign this to me! That's the limit of my gradle knowledge!
Reporter | ||
Comment 7•5 years ago
|
||
Moving this to backlog. Nick Alexander is away :)
Reporter | ||
Updated•5 years ago
|
Updated•4 years ago
|
Description
•