`mach try` commands return job_id as exit code instead of 0 on success
Categories
(Developer Infrastructure :: Try, defect)
Tracking
(firefox-esr115 unaffected, firefox-esr140 wontfix, firefox146 wontfix, firefox147 wontfix, firefox148 wontfix, firefox149 fixed)
People
(Reporter: Logan, Assigned: Logan)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
./mach try auto and other try commands return a non-zero exit code (the Lando job_id, e.g., 48) even when the push succeeds. This breaks shell scripting conventions where 0 indicates success and non-zero indicates failure.
Steps to Reproduce:
./mach try auto
echo $?
Expected Result:
Exit code 0 (success)
Actual Result:
Exit code 48 (or other job_id number)
Comment 1•4 months ago
|
||
Set release status flags based on info from the regressing bug 1964784
:sparky, since you are the author of the regressor, bug 1964784, could you take a look? Also, could you set the severity field?
For more information, please visit BugBot documentation.
| Assignee | ||
Comment 2•4 months ago
|
||
./mach try commands were returning the Lando job_id (e.g., 48) as the shell
exit code instead of 0 on success. This broke shell scripting conventions.
The issue was introduced in Bug 1964784 when push_to_try() was changed to
return the job_id. This value propagated up through the mach command layer.
This fix normalizes exit codes in mach_commands.py to return 0 for success
while preserving error code 1 for validation failures.
Updated•4 months ago
|
Updated•4 months ago
|
Updated•4 months ago
|
Comment 3•3 months ago
|
||
The severity field is not set for this bug.
:marco, could you have a look please?
For more information, please visit BugBot documentation.
Updated•3 months ago
|
Updated•3 months ago
|
Updated•2 months ago
|
Description
•