Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a "mach test-wpt --chaos" mode for reproducing intermittent failures using rr #9607

Merged
merged 3 commits into from Feb 11, 2016
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Prev

Add an rr chaos mode

  • Loading branch information
mbrubeck committed Feb 11, 2016
commit 7c740d395bc731f4bd2822a0876da3a4000008ab
@@ -41,6 +41,8 @@ def create_parser_wpt():
parser = wptcommandline.create_parser()
parser.add_argument('--release', default=False, action="store_true",
help="Run with a release build of servo")
parser.add_argument('--chaos', default=False, action="store_true",
help="Run under chaos mode in rr until a failure is captured")
return parser


@@ -344,6 +346,11 @@ def test_wpt(self, **kwargs):
def wptrunner(self, run_file, **kwargs):
os.environ["RUST_BACKTRACE"] = "1"
kwargs["debug"] = not kwargs["release"]
if kwargs.pop("chaos"):
kwargs["debugger"] = "rr"
kwargs["debugger_args"] = "record --chaos"
kwargs["repeat_until_unexpected"] = True
# TODO: Delete rr traces from green test runs?

run_globals = {"__file__": run_file}
execfile(run_file, run_globals)
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.