From b7f3223ea40683a9a7d474198fbf675ccf39c254 Mon Sep 17 00:00:00 2001 From: Calen Pennington <cale@edx.org> Date: Fri, 16 Aug 2019 12:57:19 -0400 Subject: [PATCH] Set a specific WTW context to name coverage files to upload/download from s3 --- pavelib/utils/test/utils.py | 2 +- scripts/Jenkinsfiles/bokchoy | 3 +++ scripts/Jenkinsfiles/python | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pavelib/utils/test/utils.py b/pavelib/utils/test/utils.py index 0a2a35ec042..0e5d08961d5 100644 --- a/pavelib/utils/test/utils.py +++ b/pavelib/utils/test/utils.py @@ -23,7 +23,7 @@ MINIMUM_FIREFOX_VERSION = 28.0 COVERAGE_CACHE_BUCKET = "edx-tools-coverage-caches" COVERAGE_CACHE_BASEPATH = "test_root/who_tests_what" -COVERAGE_CACHE_BASELINE = "who_tests_what.{}.baseline".format(os.environ.get('TEST_SUITE', 'all')) +COVERAGE_CACHE_BASELINE = "who_tests_what.{}.baseline".format(os.environ.get('WTW_CONTEXT', 'all')) WHO_TESTS_WHAT_DIFF = "who_tests_what.diff" diff --git a/scripts/Jenkinsfiles/bokchoy b/scripts/Jenkinsfiles/bokchoy index 547c01b2d97..988e7adfe58 100644 --- a/scripts/Jenkinsfiles/bokchoy +++ b/scripts/Jenkinsfiles/bokchoy @@ -31,6 +31,9 @@ pipeline { timestamps() timeout(60) } + environment { + WTW_CONTEXT = "bokchoy" + } stages { stage('Mark build as pending on Github') { when { diff --git a/scripts/Jenkinsfiles/python b/scripts/Jenkinsfiles/python index cb9414fc129..604462f4cd5 100644 --- a/scripts/Jenkinsfiles/python +++ b/scripts/Jenkinsfiles/python @@ -50,6 +50,7 @@ pipeline { XDIST_WORKER_KEY_NAME = "jenkins-worker" XDIST_WORKER_SUBNET = credentials('XDIST_WORKER_SUBNET') XDIST_WORKER_SECURITY_GROUP = credentials('XDIST_WORKER_SECURITY_GROUP') + WTW_CONTEXT = "python" } stages { stage('Mark build as pending on Github') { -- GitLab