Closed Bug 1380731 Opened 7 years ago Closed 7 years ago

CI sometimes succeeds even though there are test failures

Categories

(Release Engineering Graveyard :: Applications: Balrog (backend), defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bhearsum, Assigned: bhearsum)

References

Details

Attachments

(1 file)

Eg: https://public-artifacts.taskcluster.net/MRW75V5zRoOgpFAb_OgxDw/0/public/logs/live_backing.log

==================== 8 failed, 881 passed in 256.01 seconds ====================
ERROR: InvocationError: '/app/.tox/py27/bin/py.test -n2 --cov=. --doctest-modules auslib'
py27 runtests: commands[2] | coverage run -a scripts/test-rules.py
Starting /app/scripts/../aus-data-snapshots/3.6.27-10.0.2-major
PASS   (108 PASS, 0 FAIL, 0.57 sec, 188.1 tests/second)
Starting /app/scripts/../aus-data-snapshots/rule-priorities
PASS   (2 PASS, 0 FAIL)
Starting /app/scripts/../aus-data-snapshots/version-matching
PASS   (8 PASS, 0 FAIL)
Starting /app/scripts/../aus-data-snapshots/alias
PASS   (8 PASS, 0 FAIL)
Starting /app/scripts/../aus-data-snapshots/locale-level-overrides
PASS   (2 PASS, 0 FAIL)
Starting /app/scripts/../aus-data-snapshots/xml-attributes-v2
PASS   (8 PASS, 0 FAIL)
Starting /app/scripts/../aus-data-snapshots/fallback-override
PASS   (1 PASS, 0 FAIL)
Starting /app/scripts/../aus-data-snapshots/fallback-falls-back
PASS   (2 PASS, 0 FAIL)
Starting /app/scripts/../aus-data-snapshots/3.6.12-3.6.13
PASS   (324 PASS, 0 FAIL, 2.38 sec, 136.2 tests/second)
Coverage.py warning: No data was collected. (no-data-collected)
___________________________________ summary ____________________________________
ERROR:   py27: commands failed
[taskcluster 2017-07-13 15:16:27.533Z] === Task Finished ===
[taskcluster 2017-07-13 15:16:27.534Z] Successful task run with exit code: 0 completed in 420.198 seconds


Most likely broken by the new coveralls code at https://github.com/mozilla/balrog/blob/master/scripts/run.sh#L83 -- the tests are no longer the last command we run, so their exit code is not the exit code of the overall script.
Assignee: nobody → bhearsum
Status: NEW → ASSIGNED
Attachment #8886356 - Flags: review?(jlorenzo)
Comment on attachment 8886356 [details] [review]
fix test failure detection

LGTM. More details in PR.
Attachment #8886356 - Flags: review?(jlorenzo) → review+
Priority: -- → P1
Depends on: 1382233
This is in production
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Product: Release Engineering → Release Engineering Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: