Closed
Bug 1475649
Opened 7 years ago
Closed 7 years ago
Can no longer call ./mach try when untracked files are present (with git)
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(firefox-esr60 unaffected, firefox61 unaffected, firefox62 unaffected, firefox63 fixed)
RESOLVED
FIXED
mozilla63
Tracking | Status | |
---|---|---|
firefox-esr60 | --- | unaffected |
firefox61 | --- | unaffected |
firefox62 | --- | unaffected |
firefox63 | --- | fixed |
People
(Reporter: jya, Assigned: ahal)
References
Details
(Keywords: regression)
Attachments
(2 files)
Using git.
If untracked files are present, ./mach try will always error like this:
$ ./mach try -b do -p all -u mochitest-media,mochitest-media-e10s,web-platform-tests -t none
ERROR please commit changes before continuing
Assignee | ||
Comment 1•7 years ago
|
||
This is a bug in mozversioncontrol, the doc string for the "working_directory_clean" function state:
> By default, untracked and ignored files are not considered.
But the git implementation for this function runs:
git status --porcelain
Which *does* consider untracked files by default. Instead, we need to run:
git status --porcelain --untracked-files=no
Bug 1413922 regressed |mach try| as it started using this function in favour of its own implementation.
Assignee: nobody → ahal
Status: NEW → ASSIGNED
Product: Testing → Firefox Build System
Version: Version 3 → unspecified
Assignee | ||
Comment 3•7 years ago
|
||
The doc string for the "working_directory_clean" function states:
> By default, untracked and ignored files are not considered.
But the git implementation for this function used to run:
git status --porcelain
Which *does* consider untracked files by default. Instead, we need to run:
git status --porcelain --untracked-files=no
Comment 4•7 years ago
|
||
Comment on attachment 8992011 [details]
Bug 1475649 - [mozversioncontrol] Make vcs.working_directory_clean() ignore untracked files by default
James Graham [:jgraham] has approved the revision.
https://phabricator.services.mozilla.com/D2134
Attachment #8992011 -
Flags: review+
Pushed by ahalberstadt@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a35b188d0e44
[mozversioncontrol] Make vcs.working_directory_clean() ignore untracked files by default r=jgraham
Comment 6•7 years ago
|
||
a35b188d0e44 inadvertently regressed behavior in the case where
the Git status.showUntrackedFiles config option was set and
we want to purge untracked files.
Reporter | ||
Comment 7•7 years ago
|
||
Can we have a test for that case too?
Comment 8•7 years ago
|
||
I don't have time today to spend more than the ~5 minutes I've already spent on this issue :/ Feel free to commandeer the revision in Phabricator. Or wait until I have time to follow up.
Comment 9•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox63:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla63
Comment 10•7 years ago
|
||
Comment on attachment 8992076 [details]
Bug 1475649 - Always use --untracked-files; r?ahal
Andrew Halberstadt [:ahal] has approved the revision.
https://phabricator.services.mozilla.com/D2141
Attachment #8992076 -
Flags: review+
Assignee | ||
Updated•7 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment 11•7 years ago
|
||
Pushed by ahalberstadt@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/633b1aae6b2e
Always use --untracked-files; r=ahal
Comment 12•7 years ago
|
||
bugherder |
Status: REOPENED → RESOLVED
Closed: 7 years ago → 7 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
status-firefox61:
--- → unaffected
status-firefox62:
--- → unaffected
status-firefox-esr60:
--- → unaffected
Comment 13•7 years ago
|
||
bugherder uplift |
You need to log in
before you can comment on or make changes to this bug.
Description
•