cfdaily
|
7335cafa90
|
[moz] fix(test): 补回 test_e2e_v27.py 的 pytest.mark.e2e 标记 (Review G1)
CI / lint (pull_request) Successful in 25s
CI / test (pull_request) Successful in 1m1s
CI / frontend (pull_request) Successful in 16s
CI / notify-on-failure (pull_request) Successful in 1s
|
2026-06-21 07:27:47 +08:00 |
|
cfdaily
|
1362cc5d64
|
[moz] fix(test): 修复 integration/e2e 测试 sys.path 污染导致 CI 失败
CI / lint (pull_request) Successful in 19s
CI / test (pull_request) Successful in 43s
CI / frontend (pull_request) Successful in 16s
CI / notify-on-failure (pull_request) Successful in 0s
根因:4 个测试文件在模块级别执行 sys.path.insert(0, DEPLOY_DIR),
即使测试被 deselect/conftest 跳过,模块仍被 import 触发 sys.path 污染。
后续测试 import src 时从安装目录加载(缺少新增模块如 algorithms/)。
修复:在 sys.path 操作前加 allow_module_level skip guard,
未设置 RUN_INTEGRATION 时跳过整个模块,不执行任何模块级代码。
影响文件:
- tests/integration/test_e2e_api_s1_s8.py
- tests/e2e/test_e2e_stress.py
- tests/e2e/test_e2e_scenarios.py
- tests/e2e/test_e2e_v27.py
|
2026-06-21 07:23:41 +08:00 |
|
cfdaily
|
b90b7b37c7
|
fix(test): e2e test 在 collection 阶段跳过(不 import 安装目录)
CI / lint (pull_request) Successful in 8s
CI / test (pull_request) Successful in 8s
CI / notify-on-failure (pull_request) Successful in 1s
根因: test_e2e_v27.py 的 skipif 只标记了函数级别,pytest collection 阶段
仍会 import 该文件,触发 sys.path.insert 指向安装目录的 spawner.py。
如果安装目录有 merge conflict 残留,整个 test job crash。
修复: 将 skipif 加入 pytestmark 级别,collection 阶段即跳过。
|
2026-06-10 07:52:41 +08:00 |
|
cfdaily
|
7e1bdec0b2
|
auto-sync: 2026-06-07 08:23:57
Deploy / ci (push) Waiting to run
Deploy / deploy (push) Blocked by required conditions
Deploy / notify-deploy-failure (push) Blocked by required conditions
|
2026-06-07 08:23:57 +08:00 |
|
cfdaily
|
363879f80d
|
auto-sync: 2026-06-05 23:36:26
|
2026-06-05 23:36:26 +08:00 |
|
cfdaily
|
df54cf9f2b
|
auto-sync: 2026-06-05 23:25:51
|
2026-06-05 23:25:51 +08:00 |
|
cfdaily
|
83e1d3b252
|
auto-sync: 2026-06-05 23:24:58
|
2026-06-05 23:24:58 +08:00 |
|
cfdaily
|
9c455f8660
|
auto-sync: 2026-06-05 23:22:03
|
2026-06-05 23:22:03 +08:00 |
|
cfdaily
|
de4f708f82
|
auto-sync: 2026-06-05 23:19:24
|
2026-06-05 23:19:24 +08:00 |
|
cfdaily
|
bf77187633
|
auto-sync: 2026-06-05 23:18:33
|
2026-06-05 23:18:33 +08:00 |
|
cfdaily
|
6a649aba07
|
auto-sync: 2026-06-05 11:03:30
|
2026-06-05 11:03:30 +08:00 |
|