Merged
feat(build): Support mixed execution of STest and Examples in a single pytest command to reduce overall runtime #636
杨旭Add on Jan 23
feat(build): Support mixed execution of STest and Examples in a single pytest command to reduce overall runtime #636
Merged
Merged fromDCGDDD/pyptomasterintocann/pyptomaster
Pull Request has been successfully merged by CANN-robot.
(Thank you for 杨旭's contribution.)CANN-robot
Jan 23 Comments:
Jan 23 Comments:
CANN-robot
Jan 23 Comments:
Jan 23 Comments:
以下是根据您提交的修改文件推荐的Reviewer和Committer序列,需各模块评审通过后方可合入
| Module List | Reviewers | Committers |
|---|---|---|
| repo-cann/pypto | N/A | zhangqi-chen, linjiashu, yinjie27_, DCGDDD, dai-zhentao |


Jan 23 Added label: cann-cla/yes
CANN-robot
Jan 23 Comments:
Jan 23 Comments:
🔵 source code change are detected, tasks labels is removed in this pull request!


杨旭
Jan 23 Comments:
Jan 23 Comments:
compile


51 messages are collapsed here。 See more
lidongsheng
Jan 24 Comments:
Jan 24 Comments:
/lgtm


Jie Yin
Jan 24 Comments:
Jan 24 Comments:
/approve


Jan 24 Added label: lgtmapproved
CANN-robot
Jan 24 Comments:
Jan 24 Comments:
Jan 24 Merged pull request
feat(build): Support mixed execution of STest and Examples in a single pytest command to reduce overall runtime
Objective:
Enable mixed execution of STest and Examples cases via a single pytest command to reduce overall CI execution time, while unifying configuration files to eliminate conflicts and ensure compatibility across test scenarios.
Key Changes:
Analyzed the implementation of build_ci.py and updated the pytest command configuration to execute pytest examples python/tests/st when both -e (Examples) and -s (STest) parameters are specified, enabling mixed running of Examples and STest cases in one command.
Resolved the issue of duplicate conftest.py files existing in the examples directory and python/tests directory:
Migrated and extended the functionality of examples/pytest.ini to the project root's pytest.ini for unified configuration management:
Impact:
Issue: #196