@@ -32,10 +32,7 @@ def create_executions(self, pytest_args: List[str]) -> List[PytestExecution]:
32
32
processed_args = self .process_arguments (pytest_args )
33
33
34
34
# Check if we need two-phase execution
35
- if self ._should_use_two_phase_execution (processed_args ):
36
- processed_args = self ._ensure_generate_all_formats_for_tarball (processed_args )
37
- return self ._create_two_phase_executions (processed_args )
38
- elif "--use-pre-alloc-groups" in processed_args :
35
+ if "--use-pre-alloc-groups" in processed_args :
39
36
# Only phase 2: using existing pre-allocation groups
40
37
return self ._create_single_phase_with_pre_alloc_groups (processed_args )
41
38
else :
@@ -47,27 +44,6 @@ def create_executions(self, pytest_args: List[str]) -> List[PytestExecution]:
47
44
)
48
45
]
49
46
50
- def _create_two_phase_executions (self , args : List [str ]) -> List [PytestExecution ]:
51
- """Create two-phase execution: pre-allocation group generation + fixture filling."""
52
- # Phase 1: Pre-allocation group generation (clean and minimal output)
53
- phase1_args = self ._create_phase1_args (args )
54
-
55
- # Phase 2: Main fixture generation (full user options)
56
- phase2_args = self ._create_phase2_args (args )
57
-
58
- return [
59
- PytestExecution (
60
- config_file = self .config_path ,
61
- args = phase1_args ,
62
- description = "generating pre-allocation groups" ,
63
- ),
64
- PytestExecution (
65
- config_file = self .config_path ,
66
- args = phase2_args ,
67
- description = "filling test fixtures" ,
68
- ),
69
- ]
70
-
71
47
def _create_single_phase_with_pre_alloc_groups (self , args : List [str ]) -> List [PytestExecution ]:
72
48
"""Create single execution using existing pre-allocation groups."""
73
49
return [
@@ -155,12 +131,6 @@ def _should_use_two_phase_execution(self, args: List[str]) -> bool:
155
131
or self ._is_tarball_output (args )
156
132
)
157
133
158
- def _ensure_generate_all_formats_for_tarball (self , args : List [str ]) -> List [str ]:
159
- """Auto-add --generate-all-formats for tarball output."""
160
- if self ._is_tarball_output (args ) and "--generate-all-formats" not in args :
161
- return args + ["--generate-all-formats" ]
162
- return args
163
-
164
134
def _is_tarball_output (self , args : List [str ]) -> bool :
165
135
"""Check if output argument specifies a tarball (.tar.gz) path."""
166
136
from pathlib import Path
0 commit comments