Closed Bug 1708113 Opened 3 years ago Closed 3 years ago

SpiderMonkey job exits with 0 status even if there's failure in some case

Categories

(Core :: JavaScript Engine, defect, P1)

defect

Tracking

()

RESOLVED FIXED
90 Branch
Tracking Status
firefox90 --- fixed

People

(Reporter: arai, Assigned: sfink)

Details

Attachments

(1 file)

https://treeherder.mozilla.org/jobs?repo=try&group_state=expanded&revision=41d4245d7d9a05f6f96f334d5aefdfebcf5aba19&selectedTaskRun=Ce90P6ajR72-QQlwnDmSyA.0

This try job fails with many testcase hitting TEST-UNEXPECTED-FAIL, but its shown as green.

[task 2021-04-27T22:05:59.259Z] exit status 0 for '(make-nonempty)'
[task 2021-04-27T22:05:59.259Z] exit status 0 for 'make check'
[task 2021-04-27T22:05:59.259Z] exit status 2 for 'make check-jit-test'
[task 2021-04-27T22:05:59.259Z] exit status 2147483651 for 'jsapi-tests'
[task 2021-04-27T22:05:59.259Z] exit status 2 for 'jstests'
...
[task 2021-04-27T22:05:59.767Z] + exit 0
...
[taskcluster 2021-04-27T22:05:59.790Z]    Exit Code: 0
...
[taskcluster 2021-04-27T22:05:59.790Z]       Result: SUCCEEDED

it sounds like the exit code is somehow overridden, or overlooked

Summary: SpiderMonkey job exits with 0 status even if there's failure → SpiderMonkey job exits with 0 status even if there's failure in some case

Whoa, it even prints out that it has a nonzero exit status. I must have broken this very recently.

Assignee: nobody → sphink
Severity: -- → S2
Type: task → defect
Priority: -- → P1

My guess is that my fix for pretty much the same problem must be broken:

sys.exit(max((st for _, st in results), key=abs))

The 2147483651 exit status must be throwing it off.

It seems like that ought to work when I tried it in a local python, but maybe there's something weird going on on Windows. I'll look tomorrow. I am not arai, so I sleep sometimes.

Status: NEW → ASSIGNED
Pushed by sfink@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7b854d162a85
sys.exit(2147483651L) on Windows exits with status 0 r=arai
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: