Repository navigation
Added /etc/ci/chaos_monkey_test.py. - #10899
Conversation
|
Fixes #10568 |
|
|
||
| for line in TEST_RESULTS.stdout: | ||
| report = json.loads(line.decode('utf-8')) | ||
| if report.get("action", None) == "process_output": |
There was a problem hiding this comment.
The default value for dict.get is None, so explicitly specifying isn't necessary
dfafabc to
118126f
Compare
|
Fixed and squashed. You can tell my python is a bit rusty. |
| from subprocess import Popen, PIPE | ||
|
|
||
|
|
||
| def is_crash(report): |
There was a problem hiding this comment.
This method isn't being used, so it can be removed.
|
Which outputs of this do you need? We can gate on the exit code, and Buildbot will automatically pick up on anything we I looked at the output and there's quite a bit of it - do we only want to log the CRASHes to output, or is having the rest of it useful as well? |
| status = report.get("status") | ||
| if status: | ||
| print(report.get("thread") + " - " + status + " - " + report.get("test")) | ||
| TEST_CRASHES = TEST_CRASHES or (status == "CRASH") |
There was a problem hiding this comment.
style nit: I find this easier to read, but up to you:
if status == "CRASH":
TEST_CRASHES = True
|
Will we ever have both |
|
IRC chat about outputs: http://logs.glob.uno/?c=mozilla%23servo&s=28+Apr+2016&e=28+Apr+2016#c417879 TL;DR: don't capture the whole log. |
|
|
118126f to
ee8a4ad
Compare
|
Fixed and squashed. |
|
I also increased the probability of pipeline closure to 0.1, to make sure that some crashes happen! This magic number may need played with. |
| # returned by the test command (which is why we can't use check_output). | ||
|
|
||
| test_results = Popen(TEST_CMD, stdout=PIPE) | ||
| test_crashes = False |
There was a problem hiding this comment.
Quick nit: Let's change this to any_crashes because if any_crashes reads better.
There was a problem hiding this comment.
Sure. I'll do this tomorrow, when I'm at a computer.
ee8a4ad to
ac03728
Compare
|
Fixed and squashed. |
|
@bors-servo r+ We should file a follow-up issue for gating on this in the CI. |
|
📌 Commit ac03728 has been approved by |
Add a test to
/etc/ciwhich runs a subset oftest-wptwith--random-pipeline-failure-probability=0.2, and checks to make sure that there's noCRASHreports, so the constellation survived the experience, even if a lot of tests failed.IRC conversation at http://logs.glob.uno/?c=mozilla%23servo&s=27+Apr+2016&e=27+Apr+2016#c416510
Fixes #10568.
r? @aneeshusa
This change is