summaryrefslogtreecommitdiff
path: root/evergreen
diff options
context:
space:
mode:
authorTausif Rahman <tausif.rahman@mongodb.com>2022-11-14 15:16:54 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-11-14 16:14:16 +0000
commit93612bf95f8003a1e1d6af27fb1b67c57c6f3e39 (patch)
tree8a1ce23b1224d6069b15bc1ce4a5ec568279e157 /evergreen
parent31f5c4c0dc92f1bc3dd7b4a9f2613cfabf070e35 (diff)
downloadmongo-93612bf95f8003a1e1d6af27fb1b67c57c6f3e39.tar.gz
SERVER-69636 Collect SCons Metrics
Diffstat (limited to 'evergreen')
-rw-r--r--evergreen/compile_venv_dependency_check.sh12
-rwxr-xr-xevergreen/publish_metrics.py3
2 files changed, 13 insertions, 2 deletions
diff --git a/evergreen/compile_venv_dependency_check.sh b/evergreen/compile_venv_dependency_check.sh
new file mode 100644
index 00000000000..b71a93e29f1
--- /dev/null
+++ b/evergreen/compile_venv_dependency_check.sh
@@ -0,0 +1,12 @@
+# Quick check to ensure all scons.py dependecies have been added to compile-requirements.txt
+set -o errexit
+set -o verbose
+
+# Create virtual env
+/opt/mongodbtoolchain/v3/bin/virtualenv --python /opt/mongodbtoolchain/v3/bin/python3 ./compile_venv
+source ./compile_venv/bin/activate
+
+# Try printing scons.py help message
+cd src
+python -m pip install -r etc/pip/compile-requirements.txt
+buildscripts/scons.py --help
diff --git a/evergreen/publish_metrics.py b/evergreen/publish_metrics.py
index d2536e0b6a8..c5db53b0220 100755
--- a/evergreen/publish_metrics.py
+++ b/evergreen/publish_metrics.py
@@ -1,5 +1,4 @@
import datetime
-import subprocess
import sys
import os
@@ -10,7 +9,7 @@ if __name__ == "__main__" and __package__ is None:
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from buildscripts.metrics.metrics_datatypes import ToolingMetrics
-from buildscripts.metrics.tooling_metrics import _get_internal_tooling_metrics_client
+from buildscripts.metrics.tooling_metrics_utils import _get_internal_tooling_metrics_client
from evergreen.api import RetryingEvergreenApi
# Check cluster connectivity