File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 69
69
run : |
70
70
export KFP_ENDPOINT="http://localhost:8888"
71
71
export TIMEOUT_SECONDS=2700
72
- pytest ./test/sdk-execution-tests/sdk_execution_tests.py --asyncio-task-timeout $TIMEOUT_SECONDS
72
+ pytest -v -n 5 ./test/sdk-execution-tests/sdk_execution_tests.py
73
73
continue-on-error : true
74
74
75
75
- name : Collect failed logs
Original file line number Diff line number Diff line change 1
1
sdk/python
2
2
pytest == 8.3.2
3
- pytest-asyncio-cooperative == 0.37 .0
3
+ pytest-xdist == 2.5 .0
Original file line number Diff line number Diff line change 11
11
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
- import asyncio
15
14
import dataclasses
16
15
import functools
17
16
import os
@@ -112,18 +111,15 @@ def get_kfp_package_path() -> str:
112
111
dsl .component , kfp_package_path = get_kfp_package_path ())
113
112
114
113
115
- @pytest .mark .asyncio_cooperative
116
114
@pytest .mark .parametrize ('test_case' , create_test_case_parameters ())
117
- async def test (test_case : TestCase ) -> None :
118
- """Asynchronously runs all samples and test that they succeed."""
119
- event_loop = asyncio .get_running_loop ()
115
+ def test (test_case : TestCase ) -> None :
120
116
try :
121
117
run_url , run_result = run (test_case )
122
118
except Exception as e :
123
119
raise RuntimeError (
124
120
f'Error triggering pipeline { test_case .name } .' ) from e
125
121
126
- api_run = await event_loop . run_in_executor ( None , wait , run_result )
122
+ api_run = wait ( run_result )
127
123
assert api_run .state == test_case .expected_state , f'Pipeline { test_case .name } ended with incorrect status: { api_run .state } . More info: { run_url } '
128
124
129
125
You can’t perform that action at this time.
0 commit comments