已开启
fix(op-verify): Validate adversarial suite against kernel contract, fix suite default path #586
lizixuan创建于 6 天前
fix(op-verify): Validate adversarial suite against kernel contract, fix suite default path #586
已开启
合并受阻
6 天前 关联了issue:[Bug-Report|缺陷反馈]: [断裂点]对抗测试套件与 kernel 静态契约对不上(12 个用例必然报 F00002)+ runner 按"当前目录"找套件文件导致仓库根运行必崩
6 天前 关联了issue:[Bug-Report|缺陷反馈]: [断裂点]对抗测试套件与 kernel 静态契约对不上(12 个用例必然报 F00002)+ runner 按"当前目录"找套件文件导致仓库根运行必崩
6 天前 添加了label:cann-cla/yes
CANN-robot
6 天前 评论:
6 天前 评论:
Thanks for your pull-request.
The full list of commands accepted by me can be found at here.
You can get sig-info at here.
You can self-configure the PR merge rules for this repository. For more details, please refer to Here.
For more, you also can visit HICANN.
PR Approval Progress
⚠️ This PR does not yet meet the following requirements:lgtm (requires ≥ 2 person(s) per module)、approve (requires ≥ 1 person(s) per module)
Module Approval Details
| module | lgtm status | approve status |
|---|---|---|
| repo-cann/pypto-gym | ❌ (0/2)(You can also ask: DCGDDD, ym-HW, jason_yuan_ye, 冯思远, lim-jiunnbin) | ❌ (0/1)(You can also ask: 孙文博, gaoxingwang, DCGDDD, pan-boyi, wangbing110) |
💡 Tip:
- Committer can comment
/approveor/lgtm- Commenting
/approveimplies both code review (lgtm) and intent to merge (approve)
CLA Signature Pass
lizixuan1020, thanks for your pull request. All authors of the commits have signed the CLA. 👍


CANN-robot
6 天前 评论:
6 天前 评论:
3 天前 update merge request[project id: 9743536, iid: 586, commit_id: f385d40c307ac16d8576a95bb3eecd27d79e0270] virtual merging success
3 天前 update merge request[project id: 9743536, iid: 586, commit_id: f385d40c307ac16d8576a95bb3eecd27d79e0270] virtual merging success
3 天前 update merge request[project id: 9743536, iid: 586, commit_id: acdf3b2de7284878bfc4271d6a6ede710b38dd7d] virtual merging success
3 天前 update merge request[project id: 9743536, iid: 586, commit_id: acdf3b2de7284878bfc4271d6a6ede710b38dd7d] virtual merging success
3 天前 删除了label:cann-cla/yes
3 天前 添加了label:stat/needs-squash
3 天前 添加了label:cann-cla/yes
3 天前 update merge request[project id: 9743536, iid: 586, commit_id: 53bea6fd4a73f6893e9d8286944e3702bc0c76e2] virtual merging success
3 天前 update merge request[project id: 9743536, iid: 586, commit_id: 53bea6fd4a73f6893e9d8286944e3702bc0c76e2] virtual merging success
3 天前 update merge request[project id: 9743536, iid: 586, commit_id: 3cd8afc7191773fac66702c617454708e46ef0e0] virtual merging success
3 天前 update merge request[project id: 9743536, iid: 586, commit_id: 3cd8afc7191773fac66702c617454708e46ef0e0] virtual merging success
3 天前 删除了label:cann-cla/yes
3 天前 添加了label:cann-cla/yes
Closes #117
问题
对抗测试套件与 kernel 静态契约对不上(12 个用例必然报 F00002)+ runner 按"当前目录"找套件文件:
--suite默认./adversarial_suite.json(相对当前目录),从仓库根启动必 FileNotFoundError。修复(仅模板 adversarial_runner_template.py.tmpl)
--suite默认值改为相对脚本自身目录(os.path.dirname(os.path.abspath(__file__)))。"excluded": true,只进report[probes],不进 cases_total/cases_passed("对抗性"与"门禁统计"各归各)。_contract_violation_reason(case)(verifier 按算子填充静态形状几何);_run遇未标 excluded 却违反契约的用例直接 raise,--self-test则返回 1 并逐条点名——越界从运行时噪音变成生成期硬错误。验证
_is_excluded_probe/_partition_cases/_check_contract单元验证通过。