Closed Bug 1667750 Opened 4 years ago Closed 4 years ago

mach bootstrap fails because sentry setup tries to read repo config before username is set up

Categories

(Firefox Build System :: Bootstrap Configuration, defect)

defect

Tracking

(firefox83 fixed)

RESOLVED FIXED
83 Branch
Tracking Status
firefox83 --- fixed

People

(Reporter: emilio, Assigned: mhentges)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(2 files)

Attached image broken.png

See the following screenshot from a contributor in #introduction.

This looks broken to me. After setting ui.username in the hgrc file then everything worked.

Looking at the code this comes from bug 1646832. Can you take a look?

Flags: needinfo?(mhentges)
Regressed by: 1646832
Summary: mach bootstrap fails because sentry setup tries to read repo config before it's set up → mach bootstrap fails because sentry setup tries to read repo config before username is set up
Has Regression Range: --- → yes

Hmm, weird, it already has behaviour to safely handle the case where ui.username isn't set.
I wonder if your ui.username was using a format that wasn't consistent with the "Full Name <email@domain>" convention.
I'll update this to be more resilient to unexpected formats, thanks for the report!

Flags: needinfo?(mhentges)

If the "ui.username" config option doesn't have a value in the expected
format, assume that the email is unknown instead of throwing an
exception.

Assignee: nobody → mhentges
Status: NEW → ASSIGNED
Pushed by mhentges@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/495109b923c4
safely handle unexpected hg ui.username format r=firefox-build-system-reviewers,rstewart
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 83 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: