Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1178)

Unified Diff: appengine/findit/waterfall/trigger_base_swarming_task_pipeline.py

Issue 2535953003: [Findit] Add two more gtest command line switches. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « appengine/findit/waterfall/test/trigger_base_swarming_task_result_pipeline_test.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/findit/waterfall/trigger_base_swarming_task_pipeline.py
diff --git a/appengine/findit/waterfall/trigger_base_swarming_task_pipeline.py b/appengine/findit/waterfall/trigger_base_swarming_task_pipeline.py
index f3401a2a41047b70e186efd095f2d7fdaf82f59a..d336140bd3988ec09f94ebb9c2130e9a54810212 100644
--- a/appengine/findit/waterfall/trigger_base_swarming_task_pipeline.py
+++ b/appengine/findit/waterfall/trigger_base_swarming_task_pipeline.py
@@ -40,12 +40,24 @@ class TriggerBaseSwarmingTaskPipeline(BasePipeline): # pragma: no cover.
new_request.idempotent = False
# Set the gtest_filter to run the given tests only.
- new_request.extra_args.append('--gtest_repeat=%s' % iterations)
- new_request.extra_args.append('--test-launcher-retry-limit=0')
+ # Remove existing test filter first.
new_request.extra_args = [
- a for a in new_request.extra_args if not a.startswith('--gtest_filter')
+ a for a in new_request.extra_args if (
+ not a.startswith('--gtest_filter') and
lijeffrey 2016/11/29 05:51:30 So I'm not actually familiar with these flags, whe
stgao 2016/11/29 07:38:53 For gtest_filter, you may search on gtest document
+ not a.startswith('--test-launcher-filter-file'))
]
new_request.extra_args.append('--gtest_filter=%s' % ':'.join(tests))
+ new_request.extra_args.append('--gtest_repeat=%s' % iterations)
+ new_request.extra_args.append('--test-launcher-retry-limit=0')
+
+ # Also rerun disabled tests. Scenario:
+ # 1. A gtest becomes flaky.
+ # 2. It is disabled, but no culprit is identified.
+ # 3. Some dev starts investigation and requests Findit to analyze.
+ # 4. From the starting build, the test is already disabled.
+ # This scenario could happen if the flaky test didn't trigger an analysis
+ # before it is disabled.
+ new_request.extra_args.append('--gtest_also_run_disabled_tests')
chanli 2016/11/29 05:04:48 Question: for more general cases, shouldn't we sto
stgao 2016/11/29 07:38:53 Two questions before I could answer your question
chanli 2016/11/29 17:52:32 IIUC, we don't treat disabling a flaky test as a s
stgao 2016/11/29 18:09:36 No, disabling is just a temporary workaround.
# Remove the env setting for sharding.
sharding_settings = ['GTEST_SHARD_INDEX', 'GTEST_TOTAL_SHARDS']
« no previous file with comments | « appengine/findit/waterfall/test/trigger_base_swarming_task_result_pipeline_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698