Closed Bug 1907991 Opened 4 months ago Closed 3 months ago

Use the vendored `glean_parser` for `mach` and `build`

Categories

(Toolkit :: Telemetry, task, P1)

task

Tracking

()

RESOLVED FIXED
130 Branch
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

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).

Pushed by chutten@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4f5fd55945a5 Vendor glean_parser v14.2.0 r=janerik,mach-reviewers

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.

Flags: needinfo?(chutten) → needinfo?(ahochheiden)

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.

Flags: needinfo?(ahochheiden) → needinfo?(chutten)

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.

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).

Flags: needinfo?(chutten)
Summary: Vendor glean_parser v14.2.0 into mozilla-central → Vendor glean_parser v14.2.1 into mozilla-central
Depends on: 1909244
Summary: Vendor glean_parser v14.2.1 into mozilla-central → Vendor glean_parser v14.3.0 into mozilla-central
Attachment #9413043 - Attachment is obsolete: true

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

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

Summary: Vendor glean_parser v14.3.0 into mozilla-central → Use the vendored `glean_parser` for `mach` and `build`
Pushed by chutten@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/51ece15f6b4e Require mach to use the vendored glean_parser r=TravisLong,mach-reviewers,ahochheiden
Status: ASSIGNED → RESOLVED
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 130 Branch
Attachment #9414667 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: