Skip to content

Commit e4f2d62

Browse files
authored
Using correct JOB_NAME env var for JOB_BUILD_RETRIEVAL_TIME (#4398)
1 parent bbd3c6f commit e4f2d62

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/clusterfuzz/_internal/build_management/build_manager.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ def _download_and_open_build_archive(self, base_build_dir: str,
440440
build_download_duration = time.time() - start_time
441441
monitoring_metrics.JOB_BUILD_RETRIEVAL_TIME.add(
442442
build_download_duration, {
443-
'job': os.getenv('JOB_TYPE'),
443+
'job': os.getenv('JOB_NAME'),
444444
'platform': environment.platform(),
445445
'step': 'download',
446446
'build_type': self._build_type,
@@ -556,7 +556,7 @@ def _unpack_build(self,
556556

557557
monitoring_metrics.JOB_BUILD_RETRIEVAL_TIME.add(
558558
unpack_elapsed_time, {
559-
'job': os.getenv('JOB_TYPE'),
559+
'job': os.getenv('JOB_NAME'),
560560
'platform': environment.platform(),
561561
'step': 'unpack',
562562
'build_type': self._build_type,
@@ -907,7 +907,7 @@ def _unpack_custom_build(self):
907907
build_download_time = time.time() - download_start_time
908908
monitoring_metrics.JOB_BUILD_RETRIEVAL_TIME.add(
909909
build_download_time, {
910-
'job': os.getenv('JOB_TYPE'),
910+
'job': os.getenv('JOB_NAME'),
911911
'platform': environment.platform(),
912912
'step': 'download',
913913
'build_type': self._build_type,
@@ -935,7 +935,7 @@ def _unpack_custom_build(self):
935935
build_unpack_time = time.time() - unpack_start_time
936936
monitoring_metrics.JOB_BUILD_RETRIEVAL_TIME.add(
937937
build_unpack_time, {
938-
'job': os.getenv('JOB_TYPE'),
938+
'job': os.getenv('JOB_NAME'),
939939
'platform': environment.platform(),
940940
'step': 'unpack',
941941
'build_type': self._build_type,

0 commit comments

Comments
 (0)