Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--chore(ci_visibility): decouple EFD faulty session from is_new #13062

Closed
wants to merge 23 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 2 additions & 12 deletions ddtrace/internal/ci_visibility/api/_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,18 +129,8 @@ def _set_item_tags(self) -> None:
def _set_known_tests_tags(self) -> None:
# NOTE: The `is_new` tag is currently being set in the context of:
# - Known tests enabled
# - EFD
if not self.is_new():
return

session = self.get_session()
if session is not None and self._session_settings.efd_settings.enabled:
# If a session is considered faulty, we do not want to tag the
# test as new.
if not session.efd_is_faulty_session():
self.set_tag(TEST_IS_NEW, self._is_new)

elif self._is_known_tests_enabled:
# - EFD (subset of known tests)
if self._is_known_tests_enabled and self.is_new():
self.set_tag(TEST_IS_NEW, self._is_new)

def _set_efd_tags(self) -> None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"test.command": "manual_efd_faulty_session",
"test.framework": "dd_manual_test_fw",
"test.framework_version": "1.0.0",
"test.is_new": "true",
"test.module": "m1",
"test.module_path": "",
"test.name": "m1_s1_t1",
Expand Down Expand Up @@ -118,6 +119,7 @@
"test.command": "manual_efd_faulty_session",
"test.framework": "dd_manual_test_fw",
"test.framework_version": "1.0.0",
"test.is_new": "true",
"test.module": "m1",
"test.module_path": "",
"test.name": "m1_s1_t2",
Expand Down Expand Up @@ -781,6 +783,7 @@
"test.command": "manual_efd_faulty_session",
"test.framework": "dd_manual_test_fw",
"test.framework_version": "1.0.0",
"test.is_new": "true",
"test.module": "m2",
"test.module_path": "",
"test.name": "m2_s1_t0",
Expand Down Expand Up @@ -850,6 +853,7 @@
"test.command": "manual_efd_faulty_session",
"test.framework": "dd_manual_test_fw",
"test.framework_version": "1.0.0",
"test.is_new": "true",
"test.module": "m2",
"test.module_path": "",
"test.name": "m2_s1_t1",
Expand Down
Loading