Latest Firefox Preview Nightly doesn't have a $version in Remote Debugging
Categories
(DevTools :: about:debugging, defect, P3)
Tracking
(firefox71 fixed)
Tracking | Status | |
---|---|---|
firefox71 | --- | fixed |
People
(Reporter: Harald, Assigned: jdescottes)
References
(Blocks 1 open bug)
Details
Attachments
(3 files)
STR: Connext Firefox Preview Nightly in Remote Debugging
AR: Title is Firefox Preview Nightly ({$version})
ER: Version shown
Assignee | ||
Comment 1•4 years ago
|
||
Thanks for filing, mentioned it in https://github.com/mozilla-mobile/fenix/issues/2016
Assignee | ||
Comment 2•4 years ago
|
||
Initial workaround was to use a version retrieved from ADB as explained in https://bugzilla.mozilla.org/show_bug.cgi?id=1542286#c9
Assignee | ||
Comment 3•4 years ago
|
||
The exact code we are using at the moment to retrieve the version is
async init() {
const packageName = this._packageName();
const query = `dumpsys package ${packageName} | grep versionName`;
const versionNameString = await shell(this._adbDevice.id, query);
const matches = versionNameString.match(/versionName=([\d.]+)/);
if (matches && matches[1]) {
this._versionName = matches[1];
}
}
Assignee | ||
Comment 4•4 years ago
|
||
It looks like the version number is now Nightly 191016 06:01
on Nightly builds of Firefox Preview, so it no longer matches our regexp. We can update the regexp to be a bit more flexible, but I mentioned it in #fission on slack because this seems weird as a version number.
Assignee | ||
Comment 5•4 years ago
|
||
Fixed it but it's not looking great :)
Assignee | ||
Comment 6•4 years ago
|
||
The format of the Fenix versionName on Nightly no longer matches our regular expression.
Updating the regular expression to accommodate both versions such as "2.1.0" and "Nightly 191016 06:01"
Reporter | ||
Comment 7•4 years ago
|
||
Fixed it but it's not looking great :)
Mh, but probably good enough for Nightly for the moment.
Assignee | ||
Comment 8•4 years ago
|
||
For some more context, the version format changed in https://github.com/mozilla-mobile/fenix/pull/3742
The goal was to have more granularity and avoid clashes when several builds occur on the same day.
The actual format is not set in stone and might be updated later if the fenix team decides to do so.
The release version format remains X.Y.Z
Pushed by jdescottes@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f042cb2f447c Update regular expression used in ADB to extract Fenix version r=ladybenko
Assignee | ||
Updated•4 years ago
|
Comment 10•4 years ago
|
||
bugherder |
Description
•