Skip to content

Commit 2745f37

Browse files
authored
[CI] enhance clean port and add waiting time (#4152)
1 parent 896e3bb commit 2745f37

File tree

8 files changed

+8
-0
lines changed

8 files changed

+8
-0
lines changed

tests/ci_use/EB_Lite/test_EB_Lite_serving.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ def clean_ports():
6868
"""
6969
for port in PORTS_TO_CLEAN:
7070
kill_process_on_port(port)
71+
time.sleep(2)
7172

7273

7374
@pytest.fixture(scope="session", autouse=True)

tests/ci_use/EB_Lite/test_ernie_21b_mtp.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ def clean_ports():
7777
"""
7878
for port in PORTS_TO_CLEAN:
7979
kill_process_on_port(port)
80+
time.sleep(2)
8081

8182

8283
@pytest.fixture(scope="session", autouse=True)

tests/ci_use/EB_VL_Lite/test_EB_VL_Lite_serving.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ def clean_ports():
6767
"""
6868
for port in PORTS_TO_CLEAN:
6969
kill_process_on_port(port)
70+
time.sleep(2)
7071

7172

7273
@pytest.fixture(scope="session", autouse=True)

tests/ci_use/ERNIE_0dot3B/test_ernie_03b_pd.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ def clean_ports():
8080
"""
8181
for port in PORTS_TO_CLEAN:
8282
kill_process_on_port(port)
83+
time.sleep(2)
8384

8485

8586
@pytest.fixture(scope="session", autouse=True)

tests/ci_use/Qwen2-7B-Instruct_serving/test_Qwen2-7B-Instruct_serving.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ def clean_ports():
6969
"""
7070
for port in PORTS_TO_CLEAN:
7171
kill_process_on_port(port)
72+
time.sleep(2)
7273

7374

7475
@pytest.fixture(scope="session", autouse=True)

tests/ci_use/Qwen3-MoE/test_Qwen3-MoE_serving.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ def clean_ports():
6565
"""
6666
for port in PORTS_TO_CLEAN:
6767
kill_process_on_port(port)
68+
time.sleep(2)
6869

6970

7071
@pytest.fixture(scope="session", autouse=True)

tests/cov_pytest.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,4 @@ addopts =
55
--ignore=tests/ce
66
--ignore=tests/operators/test_fused_moe.py
77
--ignore=tests/operators/test_w4afp8_gemm.py
8+
--ignore=tests/model_loader/test_w4a8_model.py

tests/model_loader/test_load_ernie_vl.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ def clean_ports():
7070
"""
7171
for port in PORTS_TO_CLEAN:
7272
kill_process_on_port(port)
73+
time.sleep(2)
7374

7475

7576
@pytest.fixture(scope="session", autouse=True)

0 commit comments

Comments
 (0)