Use the vendored `glean_parser` for `mach` and `build`
Categories
(Toolkit :: Telemetry, task, P1)
Tracking
()
Tracking | Status | |
---|---|---|
firefox130 | --- | fixed |
People
(Reporter: chutten, Assigned: chutten)
References
Details
Attachments
(1 file, 2 obsolete files)
We're currently at v14.1.2. The upgrade to v14.2.0 will bring us fixed Kotlin (and Swift, but mozilla-central doesn't need that as badly) codegen for object
metrics, as well as set us up for labeled_{custom|memory|timing}_distribution
metric type support coming in bug 1907945
Assignee | ||
Comment 1•4 months ago
|
||
Also instruct mach
to use the vendored glean_parser
instead of the one it
would otherwise pull down from pip
as part of its glean_sdk
dep.
This unfortunately ties updates of mach
's glean_sdk
to any updates m-c gets
for its glean_parser
. It's required to ensure ./mach build
always uses the
vendored glean_parser
(see bug 1908020).
Comment 3•4 months ago
|
||
Backed out for causing build bustage
Backout link: https://hg.mozilla.org/integration/autoland/rev/93af9692fbff6336519b0e8ee2102caa40856b9a
Assignee | ||
Comment 4•4 months ago
|
||
Alex, got any ideas? Maybe it's that glean-parser 14.2 requires appdirs
, diskcache
, and pyyaml
which aren't in the system python? I'll say that glean_parser
's setup.py
hasn't changed in seven months so these aren't new deps or anything.
Comment 5•4 months ago
|
||
We just need to add them the mach.txt
as well, they're vendored already alongside glean_parser
. This didn't occur for us locally since glean-sdk
installs those deps in the mach
site, but I'm guessing that's not happening in CI because glean-sdk
isn't being installed.
vendored:third_party/python/appdirs
vendored:third_party/python/diskcache
vendored:third_party/python/PyYAML/lib/
Just add that and it should work.
I'll check to make sure there aren't any chained dependencies in those 3 that you'd also need to add.
Comment 6•4 months ago
|
||
I don't see any chaining dependencies in the lockfile, so it should be good after you add those three to mach.txt
. Do a try run before pushing though, just in case.
Assignee | ||
Comment 7•4 months ago
|
||
Will do. But first, I apparently need to fix rust codegen in glean_parser
and cut a v14.2.1 which we'll need instead because as of the 16th we now have a direct rust consumer in-tree (hello crashreporter client).
Assignee | ||
Updated•3 months ago
|
Updated•3 months ago
|
Assignee | ||
Comment 8•3 months ago
|
||
Ah, this places a hard dep on a Glean version with LabeledMetricData
in it, so we'll not be able to bring it in ahead of time. It'll have to land with bug 1907945
Assignee | ||
Comment 9•3 months ago
|
||
Assignee | ||
Comment 10•3 months ago
|
||
With the glean_parser
upgrade happening in bug 1907945, this is now just a "fix glean_parser
deps to be sourced from the right place" bug
Comment 11•3 months ago
|
||
Comment 12•3 months ago
|
||
bugherder |
Assignee | ||
Comment 13•3 months ago
|
||
Updated•3 months ago
|
Description
•