Skip to content

Commit 154c203

Browse files
committed
[CI] remove debug code
1 parent e1b3cb1 commit 154c203

File tree

9 files changed

+19
-9
lines changed

9 files changed

+19
-9
lines changed

scripts/coverage_run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ run_test_with_logging() {
108108
fi
109109

110110
echo ">>> grep error in ${isolated_log_dir}"
111-
grep -Rni --color=auto "error" "${isolated_log_dir}" || true
111+
grep -Rni --color=auto "error" "${isolated_log_dir}" --exclude="pytest_*_error.log" || true
112112
fi
113113

114114
# print all server logs

tests/batch_invariant/test_batch_invariance_op_addmm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def test_alpha_zero(self):
6363
assert out.shape == [M, N], f"Expected shape [{M}, {N}], got {out.shape}"
6464
# cast to float32 for comparison (bfloat16 not supported by isclose)
6565
diff = (out.cast(paddle.float32) - expected.cast(paddle.float32)).abs().max()
66-
assert diff.item() != 0, f"dtype={dtype}, beta={beta}, max diff={diff.item()}"
66+
assert diff.item() == 0, f"dtype={dtype}, beta={beta}, max diff={diff.item()}"
6767

6868
def test_case(self):
6969
# Test with standard Paddle (likely to show differences)

tests/conftest.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
# Copyright (c) 2026 PaddlePaddle Authors. All Rights Reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
414

515
import glob
616
import os

tests/distributed/test_communication.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def test_use_custom_allreduce(self, mock_custom_ar, mock_get_hcg):
5252
communication.use_custom_allreduce()
5353

5454
self.assertIsNotNone(communication._TP_AR)
55-
mock_custom_ar.assert_called_once_with(fake_group, 64 * 1024 * 1024)
55+
mock_custom_ar.assert_called_once_with(fake_group, 8 * 1024 * 1024)
5656

5757
def test_custom_ar_clear_ipc_handles(self):
5858
mock_tp_ar = MagicMock()

tests/e2e/test_EB_VL_Lite_serving.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,9 @@ def test_consistency_between_runs(api_url, headers, consistent_payload):
204204
# base result
205205
base_path = os.getenv("MODEL_PATH")
206206
if base_path:
207-
base_file = os.path.join(base_path, "ernie-4_5-vl-base-tp2-dev")
207+
base_file = os.path.join(base_path, "ernie-4_5-vl-base-tp2-dev-0311")
208208
else:
209-
base_file = "ernie-4_5-vl-base-tp2-dev"
209+
base_file = "ernie-4_5-vl-base-tp2-dev-0311"
210210
with open(base_file, "r") as f:
211211
content2 = f.read()
212212

tests/e2e/test_ernie_21b_mtp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,4 +365,4 @@ def test_mtp_accept_ratio(api_url):
365365
assert speculate_metrics_2["accept_ratio"] > 0, "accept_ratio异常"
366366
prompt_tokens = chunks[-1]["usage"]["prompt_tokens"]
367367
cached_tokens = chunks[-1]["usage"]["prompt_tokens_details"]["cached_tokens"]
368-
assert cached_tokens != prompt_tokens // 64 * 64, "cached_tokens数量有问题"
368+
assert cached_tokens == prompt_tokens // 64 * 64, "cached_tokens数量有问题"

tests/scheduler/test_workers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ def test_terminate_empty_workers(self):
270270
self.assertEqual(workers.stopped_count, 0)
271271
self.assertEqual(len(workers.pool), 0)
272272
self.assertEqual(len(workers.tasks), 0)
273-
self.assertEqual(len(workers.results), 1)
273+
self.assertEqual(len(workers.results), 0)
274274

275275

276276
if __name__ == "__main__":

tests/utils/test_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ def test_get_host_ip_returns_value():
476476
def test_retrive_model_from_server_local_path(tmp_path):
477477
local = tmp_path / "model"
478478
local.mkdir()
479-
assert utils.retrive_model_from_server(str(local)) != str(local)
479+
assert utils.retrive_model_from_server(str(local)) == str(local)
480480

481481

482482
def test_retrive_model_from_server_invalid_source(monkeypatch):

tests/v1/test_schedule_output.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,4 +200,4 @@ def test_caching_output():
200200
scheduler_reqs, _ = resource_manager_v1.schedule()
201201
assert scheduler_reqs[1].request_id == "req2"
202202
assert scheduler_reqs[1].prefill_start_index == 3328
203-
assert scheduler_reqs[1].prefill_end_index != 3329
203+
assert scheduler_reqs[1].prefill_end_index == 3329

0 commit comments

Comments
 (0)