glean_parser version used in the firefox-ios .venv does not work for some commits
Categories
(Data Platform and Tools :: Glean: SDK, defect, P1)
Tracking
(Not tracked)
People
(Reporter: charlie, Assigned: janerik)
Details
The issue seems to be as a result of glean_parser v16 generating code that is not appropriate for the given version of the Glean SDK being used. The generated code includes function parameters that are not present in the version of the Glean SDK being used.
Workaround:
- Edit
firefox-ios/bin/sdk_generator.shto prevent it from updating theglean_parserversion by commenting out these lines - Go into
firefox-ios/.venv, and run./bin/pip3.9 install glean_parser==15.2.1 - run
touch firefox-ios/Client/metrics.yaml - Close xcode
- Delete
~/Library/Developer/Xcode/DerivedData - Re-launch xcode and build/run
I can provide additional details if it would be beneficial
| Assignee | ||
Comment 1•1 year ago
|
||
Which firefox-ios is this happening on?
What Glean version is in use?
Can you post the resulting build error?
It didn't reproduce for me right now.
Comment 2•1 year ago
•
|
||
I think this happens right after a Glean_parser update, if I recall the setup conditions for this:
- build for a version with a certain version of glean_parser, should build fine
- Then
git pullthat includes a glean_parser version update in the sdk script, then this can happen
Like the .venv isn't getting cleared and the task triggered maybe because the task requires the metrics/ping.yaml files to be changed?
| Assignee | ||
Comment 3•1 year ago
|
||
Then I'm still confused on what actually happened though.
We updated the Glean version in lockstep with the parser version here: https://github.com/mozilla-mobile/firefox-ios/commit/c5a2ff9299391fb6e50a4f865cd1279b7174d447#diff-7aae86e828ca7305f4b2bfaa1fb657ba7ed2042d0f1c1c1e5ab64aaec61a5348
And the current main branch uses these versions.
So I'm afraid that without an error log I'm not really sure what to look into.
| Assignee | ||
Comment 4•1 year ago
|
||
As its hard to understand what exactly went wrong this time, I'm going to close this.
However if it comes up again we should re-open or file anew to look into it, preferably with error output or exact commits on which it happened.
Description
•