Skip to content

Commit e25092f

Browse files
fix(ci_visibility): honor the DD_CIVISIBILITY_ITR_ENABLED env var [backport 3.7] (#13469)
Co-authored-by: Federico Mon <[email protected]>
1 parent 8eb08c2 commit e25092f

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

ddtrace/internal/ci_visibility/recorder.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,11 @@ def is_itr_enabled(cls) -> bool:
432432
# cls.enabled guarantees _instance is not None
433433
if not cls.enabled or cls._instance is None:
434434
return False
435+
436+
if not ddconfig._ci_visibility_intelligent_testrunner_enabled:
437+
log.debug("Intelligent Test Runner is disabled by environment variable")
438+
return False
439+
435440
return cls._instance._api_settings.itr_enabled
436441

437442
@classmethod
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
fixes:
3+
- |
4+
CI Visibility: This fix resolves an issue where the DD_CIVISIBILITY_ITR_ENABLED was not honored properly.

0 commit comments

Comments
 (0)