Trying to bootstrap without a VCS will lead to a endless loop instead of an error message
Categories
(Firefox Build System :: Bootstrap Configuration, defect)
Tracking
(firefox-esr91 unaffected, firefox98 wontfix, firefox99 wontfix, firefox100 fixed)
| Tracking | Status | |
|---|---|---|
| firefox-esr91 | --- | unaffected |
| firefox98 | --- | wontfix |
| firefox99 | --- | wontfix |
| firefox100 | --- | fixed |
People
(Reporter: maltejur, Assigned: ahochheiden)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
To reproduce
- Download Firefox Tarball from https://archive.mozilla.org/pub/firefox/releases/98.0.2/source/firefox-98.0.2.source.tar.xz
- Run
./mach --no-interactive bootstrap --application-choice=browser - Be stuck in an endless loop after some time
Expected result
The error message:
Could not identify the root directory of your checkout!
Are you runningmach bootstrapin an hg or git clone?
Notes
This is caused by https://bugzilla.mozilla.org/show_bug.cgi?id=1744884, more specifically this change: https://hg.mozilla.org/mozilla-central/diff/4aec4364abea6454e89ed977a147f311dfaaa95a/python/mozboot/mozboot/bootstrap.py#l1.323. Previously, the path was always split and thus shortened, until it is empty and the loop gets canceled. This now doesn't happen anymore, the path never gets modified, and the loop will run forever.
This whole thing isn't that big of a deal with the missing error message, but I could imagine that it can also cause some other issues.
Updated•4 years ago
|
Comment 1•4 years ago
|
||
Set release status flags based on info from the regressing bug 1744884
Updated•4 years ago
|
| Assignee | ||
Updated•4 years ago
|
| Assignee | ||
Comment 2•4 years ago
|
||
| Assignee | ||
Comment 3•4 years ago
|
||
Thanks for the report!
The attached patch should resolve the issue.
I wasn't able to reproduce, but I ran the old code and new code side-by-side in my own little testing sandbox. The behaviour with my fix should be identical to the original behaviour now (before my Pathlib migration change introduced mistake).
Comment 5•4 years ago
|
||
| bugherder | ||
Updated•4 years ago
|
Description
•