10
10
)
11
11
12
12
from seer .automation .codebase .repo_client import RepoClientType
13
- from seer .automation .codegen .models import CodeUnitTestRequest
14
- from seer .automation .codegen .retry_unittest_coding_component import RetryUnitTestCodingComponent
15
13
from seer .automation .codegen .step import CodegenStep
16
- from seer .automation .codegen .unit_test_github_pr_creator import GeneratedTestsPullRequestCreator
17
14
from seer .automation .models import RepoDefinition
18
15
from seer .automation .pipeline import PipelineStepTaskRequest
19
16
from seer .automation .state import DbStateRunTypes
20
- from seer .automation .utils import determine_mapped_unit_test_run_id
21
17
from seer .db import DbPrContextToUnitTestGenerationRunIdMapping
22
18
23
19
@@ -73,7 +69,7 @@ def _invoke(self, **kwargs):
73
69
repo_client .post_unit_test_reference_to_original_pr (
74
70
saved_memory .original_pr_url , pr .html_url
75
71
)
76
- self . context . event_manager . mark_completed ()
72
+
77
73
else :
78
74
past_run = DbPrContextToUnitTestGenerationRunIdMapping .objects .filter (
79
75
owner = self .request .owner ,
@@ -88,12 +84,4 @@ def _invoke(self, **kwargs):
88
84
else :
89
85
# TODO: Retry test generation
90
86
pass
91
- self .context .event_manager .mark_completed ()
92
-
93
- def get_mapping (owner , repo , pr_id ):
94
- try :
95
- return DbPrContextToUnitTestGenerationRunIdMapping .objects .get (
96
- owner = owner , repo = repo , pr_id = pr_id
97
- )
98
- except DbPrContextToUnitTestGenerationRunIdMapping .DoesNotExist :
99
- return None
87
+ self .context .event_manager .mark_completed ()
0 commit comments