diff --git a/noxfile.py b/noxfile.py index fc0ed6c5..f1ce03c7 100644 --- a/noxfile.py +++ b/noxfile.py @@ -373,6 +373,7 @@ def compliance(session): session.install( "mock", "pytest", + "pytest-xdist", "pytest-rerunfailures", "google-cloud-testutils", "-c", @@ -392,13 +393,16 @@ def compliance(session): "py.test", "-vv", f"--junitxml=compliance_{session.python}_sponge_log.xml", - "--reruns=3", - "--reruns-delay=60", + "--reruns=1", + "--reruns-delay=5", "--only-rerun=Exceeded rate limits", "--only-rerun=Already Exists", "--only-rerun=Not found", "--only-rerun=Cannot execute DML over a non-existent table", "--only-rerun=Job exceeded rate limits", + "--durations=50", # shows duration of slowest 50 tests + "--dist=loadscope", + "--numprocesses=auto", system_test_folder_path, *session.posargs, # To suppress the "Deprecated API features detected!" warning when diff --git a/owlbot.py b/owlbot.py index 32655856..734bdfa8 100644 --- a/owlbot.py +++ b/owlbot.py @@ -198,7 +198,7 @@ def compliance(session): "--only-rerun=Not found", "--only-rerun=Cannot execute DML over a non-existent table", "--only-rerun=Job exceeded rate limits", - "--durations=50", + "--durations=50", # shows duration of slowest 50 tests "--dist=loadscope", "--numprocesses=auto", system_test_folder_path,