Closed Bug 1894412 Opened 2 years ago Closed 2 years ago

distro/distroVersion are null on e.g. Arch linux

Categories

(Core :: XPCOM, defect)

defect

Tracking

()

RESOLVED FIXED
127 Branch
Tracking Status
firefox-esr115 --- fixed
firefox126 --- fixed
firefox127 --- fixed

People

(Reporter: glandium, Assigned: glandium)

References

Details

Attachments

(3 files)

No description provided.

Arch Linux doesn't come with a VERSION_ID at all, but it has a BUILD_ID.
Semantically, falling back to BUILD_ID when VERSION_ID is not present
would seem fair play:

Per https://www.freedesktop.org/software/systemd/man/latest/os-release.html:

BUILD_ID=
A string uniquely identifying the system image originally used as the
installation base. In most cases, VERSION_ID or IMAGE_ID+IMAGE_VERSION
are updated when the entire system image is replaced during an update.
BUILD_ID may be used in distributions where the original installation
image version is important: VERSION_ID would change during incremental
system updates, but BUILD_ID would not. This field is optional.

Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/252deaf48658 When reading /etc/os-release, fall back to BUILD_ID when VERSION_ID is not set. r=xpcom-reviewers,emilio
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch

Arch Linux doesn't come with a VERSION_ID at all, but it has a BUILD_ID.
Semantically, falling back to BUILD_ID when VERSION_ID is not present
would seem fair play:

Per https://www.freedesktop.org/software/systemd/man/latest/os-release.html:

BUILD_ID=
A string uniquely identifying the system image originally used as the
installation base. In most cases, VERSION_ID or IMAGE_ID+IMAGE_VERSION
are updated when the entire system image is replaced during an update.
BUILD_ID may be used in distributions where the original installation
image version is important: VERSION_ID would change during incremental
system updates, but BUILD_ID would not. This field is optional.

Original Revision: https://phabricator.services.mozilla.com/D209089

Attachment #9399713 - Flags: approval-mozilla-beta?

beta Uplift Approval Request

  • User impact if declined: Missing telemetry for users on (mostly) Arch Linux
  • Code covered by automated testing: no
  • Fix verified in Nightly: yes
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: N/A
  • Risk associated with taking this patch: Low
  • Explanation of risk level: It's a straightforward fall back, that doesn't touch the cases that already worked.
  • String changes made/needed: N/A
  • Is Android affected?: no

Arch Linux doesn't come with a VERSION_ID at all, but it has a BUILD_ID.
Semantically, falling back to BUILD_ID when VERSION_ID is not present
would seem fair play:

Per https://www.freedesktop.org/software/systemd/man/latest/os-release.html:

BUILD_ID=
A string uniquely identifying the system image originally used as the
installation base. In most cases, VERSION_ID or IMAGE_ID+IMAGE_VERSION
are updated when the entire system image is replaced during an update.
BUILD_ID may be used in distributions where the original installation
image version is important: VERSION_ID would change during incremental
system updates, but BUILD_ID would not. This field is optional.

Original Revision: https://phabricator.services.mozilla.com/D209089

Attachment #9399714 - Flags: approval-mozilla-esr115?

esr115 Uplift Approval Request

  • User impact if declined: Missing telemetry for users on (mostly) Arch Linux
  • Code covered by automated testing: no
  • Fix verified in Nightly: yes
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: N/A
  • Risk associated with taking this patch: Low
  • Explanation of risk level: It's a straightforward fall back, that doesn't touch the cases that already worked.
  • String changes made/needed: N/A
  • Is Android affected?: no
See Also: → 1875874
See Also: → 1877339
Attachment #9399713 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9399714 - Flags: approval-mozilla-esr115? → approval-mozilla-esr115+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: