summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian DeLeonardis <brian.deleonardis@mongodb.com>2020-11-11 22:53:25 +0000
committerBrian DeLeonardis <brian.deleonardis@mongodb.com>2020-11-11 22:53:25 +0000
commit04415c7f5e6c824d0683da7b9a647fd785d03efb (patch)
tree281d7c872de0aa8f3f61d38596e4b663199dada9
parent60900eb22ea83561c78e8ab9b0409b30333174e4 (diff)
downloadmongo-04415c7f5e6c824d0683da7b9a647fd785d03efb.tar.gz
Progress
-rw-r--r--buildscripts/resmokeconfig/suites/concurrency_metrics.yml4
-rw-r--r--buildscripts/resmokelib/testing/hooks/aggregate_metrics_background.py11
2 files changed, 13 insertions, 2 deletions
diff --git a/buildscripts/resmokeconfig/suites/concurrency_metrics.yml b/buildscripts/resmokeconfig/suites/concurrency_metrics.yml
index 2c043d99f48..da6143d3216 100644
--- a/buildscripts/resmokeconfig/suites/concurrency_metrics.yml
+++ b/buildscripts/resmokeconfig/suites/concurrency_metrics.yml
@@ -25,13 +25,13 @@ selector:
executor:
archive:
hooks:
- - # run the aggregations stage in the background
+ - AggregateResourceConsumptionMetricsInBackground
tests: true
config:
shell_options:
readMode: commands
hooks:
- - # run the aggregations stage in the background
+ - AggregateResourceConsumptionMetricsInBackground
fixture:
class: ReplicaSetFixture
mongod_options:
diff --git a/buildscripts/resmokelib/testing/hooks/aggregate_metrics_background.py b/buildscripts/resmokelib/testing/hooks/aggregate_metrics_background.py
new file mode 100644
index 00000000000..73de9ee8d61
--- /dev/null
+++ b/buildscripts/resmokelib/testing/hooks/aggregate_metrics_background.py
@@ -0,0 +1,11 @@
+"""Test hook for running the $operationMetrics stage in the background.
+
+This hook runs every five seconds.
+"""
+
+from buildscripts.resmokelib.testing.hooks import jsfile
+from buildscripts.resmokelib.testing.hooks.background_job import _BackgroundJob
+
+
+class EnsureOperationMetricsAreAggregatedInBackground(jsfile.JSHook):
+ """A hook to run $operationMetrics stage in the background"""