| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
【FEAT】新增根目录 build.py 作为部门统一构建/测试入口 Co-authored-by: liujiawang<anonymousdev@163.com> # message auto-generated for no-merge-commit merge: !485 merge build_all_in_one into master 【FEAT】新增根目录 build.py 作为部门统一构建/测试入口 Created-by: AvadaKedavrua Commit-by: liujiawang Merged-by: ascend-robot Description: ## 修改原因 部门工具仓规范要求仓库根目录提供统一 build.py 入口。msmodeling 需在本地与 CI 中以稳定 CLI 委托现有 scripts/build.sh(构建 wheel)与 scripts/run_ci_gate.sh(增量门禁测试),并支持 -v 指定制品版本且与 uv build 日志一致。 ## 修改内容 - 新增根目录 [build.py](build.py) 及 [scripts/helpers/build/](scripts/helpers/build/)(argv.py 参数解析、main.py 流程编排) - 默认构建:委托 bash scripts/build.sh,wheel 输出到 artifacts/wheels/,写入 artifacts/build-manifest.json - python build.py test:委托 bash scripts/run_ci_gate.sh,日志/摘要写入 artifacts/test-reports/ - -v/--version:构建前 uv version <ver> --frozen 临时写入 pyproject.toml,finally 恢复原版本;不再仅重命名 whl - fail-fast:uv 不在 PATH、test_map_path 非文件时提前退出;version staging / restore 失败有明确退出码 - local token 解析但无行为分支(纯 Python 仓规范兼容) - 新增 tests/regression/scripts/helpers/build/ 回归(41 用例);gate_policy.yaml 增加 build.py 配置触发项;.gitignore 忽略 artifacts/ - 更新 [scripts/README.md](scripts/README.md) 说明入口与 uv run python build.py -v 用法 ## 自验证 ### 回归测试 目的:验证 build 模块参数解析、版本 staging/restore、fail-fast 与委托逻辑。 步骤: 1. 运行 build 回归套件 bash uv run pytest tests/regression/scripts/helpers/build/ -q --tb=short 结果: text ......................................... [100%] 41 passed in 0.26s ### 指定版本构建 wheel 目的:验证 -v 时 uv build 日志与 whl 文件名均为指定版本,且 pyproject.toml 构建后恢复。 步骤: 1. 清理并构建 bash rm -rf artifacts/wheels/* uv run python build.py -v 26.1.2 2. 检查 pyproject 版本 bash grep '^version' pyproject.toml 结果: text INFO 06-30 10:05:56.446 [main.py:66] setting project version to 26.1.2 msmodeling 0.2.0 => 26.1.2 INFO 06-30 10:05:56.463 [main.py:84] running: bash /root/workspace/gitcode/msmodeling-test/scripts/build.sh Building wheel... Successfully built artifacts/wheels/msmodeling-26.1.2-py3-none-any.whl Built wheel: /root/workspace/gitcode/msmodeling-test/artifacts/wheels/msmodeling-26.1.2-py3-none-any.whl INFO 06-30 10:05:57.534 [main.py:182] restoring project version to 0.2.0 INFO 06-30 10:05:57.534 [main.py:66] setting project version to 0.2.0 msmodeling 26.1.2 => 0.2.0 version = "0.2.0" ### test 模式 fail-fast 目的:未提供 test_map 时应在启动 ci_gate 前失败。 步骤: 1. 无 test_map 运行 test bash uv run python build.py test 结果: text ERROR 06-30 10:06:04.247 [main.py:222] test requires test_map_path via --extra test_map_path=... or MSMODELING_TEST_MAP_PATH exit=1 See merge request: Ascend/msmodeling!485 | 1 天前 | |
【FEAT】新增根目录 build.py 作为部门统一构建/测试入口 Co-authored-by: liujiawang<anonymousdev@163.com> # message auto-generated for no-merge-commit merge: !485 merge build_all_in_one into master 【FEAT】新增根目录 build.py 作为部门统一构建/测试入口 Created-by: AvadaKedavrua Commit-by: liujiawang Merged-by: ascend-robot Description: ## 修改原因 部门工具仓规范要求仓库根目录提供统一 build.py 入口。msmodeling 需在本地与 CI 中以稳定 CLI 委托现有 scripts/build.sh(构建 wheel)与 scripts/run_ci_gate.sh(增量门禁测试),并支持 -v 指定制品版本且与 uv build 日志一致。 ## 修改内容 - 新增根目录 [build.py](build.py) 及 [scripts/helpers/build/](scripts/helpers/build/)(argv.py 参数解析、main.py 流程编排) - 默认构建:委托 bash scripts/build.sh,wheel 输出到 artifacts/wheels/,写入 artifacts/build-manifest.json - python build.py test:委托 bash scripts/run_ci_gate.sh,日志/摘要写入 artifacts/test-reports/ - -v/--version:构建前 uv version <ver> --frozen 临时写入 pyproject.toml,finally 恢复原版本;不再仅重命名 whl - fail-fast:uv 不在 PATH、test_map_path 非文件时提前退出;version staging / restore 失败有明确退出码 - local token 解析但无行为分支(纯 Python 仓规范兼容) - 新增 tests/regression/scripts/helpers/build/ 回归(41 用例);gate_policy.yaml 增加 build.py 配置触发项;.gitignore 忽略 artifacts/ - 更新 [scripts/README.md](scripts/README.md) 说明入口与 uv run python build.py -v 用法 ## 自验证 ### 回归测试 目的:验证 build 模块参数解析、版本 staging/restore、fail-fast 与委托逻辑。 步骤: 1. 运行 build 回归套件 bash uv run pytest tests/regression/scripts/helpers/build/ -q --tb=short 结果: text ......................................... [100%] 41 passed in 0.26s ### 指定版本构建 wheel 目的:验证 -v 时 uv build 日志与 whl 文件名均为指定版本,且 pyproject.toml 构建后恢复。 步骤: 1. 清理并构建 bash rm -rf artifacts/wheels/* uv run python build.py -v 26.1.2 2. 检查 pyproject 版本 bash grep '^version' pyproject.toml 结果: text INFO 06-30 10:05:56.446 [main.py:66] setting project version to 26.1.2 msmodeling 0.2.0 => 26.1.2 INFO 06-30 10:05:56.463 [main.py:84] running: bash /root/workspace/gitcode/msmodeling-test/scripts/build.sh Building wheel... Successfully built artifacts/wheels/msmodeling-26.1.2-py3-none-any.whl Built wheel: /root/workspace/gitcode/msmodeling-test/artifacts/wheels/msmodeling-26.1.2-py3-none-any.whl INFO 06-30 10:05:57.534 [main.py:182] restoring project version to 0.2.0 INFO 06-30 10:05:57.534 [main.py:66] setting project version to 0.2.0 msmodeling 26.1.2 => 0.2.0 version = "0.2.0" ### test 模式 fail-fast 目的:未提供 test_map 时应在启动 ci_gate 前失败。 步骤: 1. 无 test_map 运行 test bash uv run python build.py test 结果: text ERROR 06-30 10:06:04.247 [main.py:222] test requires test_map_path via --extra test_map_path=... or MSMODELING_TEST_MAP_PATH exit=1 See merge request: Ascend/msmodeling!485 | 1 天前 | |
【FEAT】新增根目录 build.py 作为部门统一构建/测试入口 Co-authored-by: liujiawang<anonymousdev@163.com> # message auto-generated for no-merge-commit merge: !485 merge build_all_in_one into master 【FEAT】新增根目录 build.py 作为部门统一构建/测试入口 Created-by: AvadaKedavrua Commit-by: liujiawang Merged-by: ascend-robot Description: ## 修改原因 部门工具仓规范要求仓库根目录提供统一 build.py 入口。msmodeling 需在本地与 CI 中以稳定 CLI 委托现有 scripts/build.sh(构建 wheel)与 scripts/run_ci_gate.sh(增量门禁测试),并支持 -v 指定制品版本且与 uv build 日志一致。 ## 修改内容 - 新增根目录 [build.py](build.py) 及 [scripts/helpers/build/](scripts/helpers/build/)(argv.py 参数解析、main.py 流程编排) - 默认构建:委托 bash scripts/build.sh,wheel 输出到 artifacts/wheels/,写入 artifacts/build-manifest.json - python build.py test:委托 bash scripts/run_ci_gate.sh,日志/摘要写入 artifacts/test-reports/ - -v/--version:构建前 uv version <ver> --frozen 临时写入 pyproject.toml,finally 恢复原版本;不再仅重命名 whl - fail-fast:uv 不在 PATH、test_map_path 非文件时提前退出;version staging / restore 失败有明确退出码 - local token 解析但无行为分支(纯 Python 仓规范兼容) - 新增 tests/regression/scripts/helpers/build/ 回归(41 用例);gate_policy.yaml 增加 build.py 配置触发项;.gitignore 忽略 artifacts/ - 更新 [scripts/README.md](scripts/README.md) 说明入口与 uv run python build.py -v 用法 ## 自验证 ### 回归测试 目的:验证 build 模块参数解析、版本 staging/restore、fail-fast 与委托逻辑。 步骤: 1. 运行 build 回归套件 bash uv run pytest tests/regression/scripts/helpers/build/ -q --tb=short 结果: text ......................................... [100%] 41 passed in 0.26s ### 指定版本构建 wheel 目的:验证 -v 时 uv build 日志与 whl 文件名均为指定版本,且 pyproject.toml 构建后恢复。 步骤: 1. 清理并构建 bash rm -rf artifacts/wheels/* uv run python build.py -v 26.1.2 2. 检查 pyproject 版本 bash grep '^version' pyproject.toml 结果: text INFO 06-30 10:05:56.446 [main.py:66] setting project version to 26.1.2 msmodeling 0.2.0 => 26.1.2 INFO 06-30 10:05:56.463 [main.py:84] running: bash /root/workspace/gitcode/msmodeling-test/scripts/build.sh Building wheel... Successfully built artifacts/wheels/msmodeling-26.1.2-py3-none-any.whl Built wheel: /root/workspace/gitcode/msmodeling-test/artifacts/wheels/msmodeling-26.1.2-py3-none-any.whl INFO 06-30 10:05:57.534 [main.py:182] restoring project version to 0.2.0 INFO 06-30 10:05:57.534 [main.py:66] setting project version to 0.2.0 msmodeling 26.1.2 => 0.2.0 version = "0.2.0" ### test 模式 fail-fast 目的:未提供 test_map 时应在启动 ci_gate 前失败。 步骤: 1. 无 test_map 运行 test bash uv run python build.py test 结果: text ERROR 06-30 10:06:04.247 [main.py:222] test requires test_map_path via --extra test_map_path=... or MSMODELING_TEST_MAP_PATH exit=1 See merge request: Ascend/msmodeling!485 | 1 天前 | |
【FEAT】新增根目录 build.py 作为部门统一构建/测试入口 Co-authored-by: liujiawang<anonymousdev@163.com> # message auto-generated for no-merge-commit merge: !485 merge build_all_in_one into master 【FEAT】新增根目录 build.py 作为部门统一构建/测试入口 Created-by: AvadaKedavrua Commit-by: liujiawang Merged-by: ascend-robot Description: ## 修改原因 部门工具仓规范要求仓库根目录提供统一 build.py 入口。msmodeling 需在本地与 CI 中以稳定 CLI 委托现有 scripts/build.sh(构建 wheel)与 scripts/run_ci_gate.sh(增量门禁测试),并支持 -v 指定制品版本且与 uv build 日志一致。 ## 修改内容 - 新增根目录 [build.py](build.py) 及 [scripts/helpers/build/](scripts/helpers/build/)(argv.py 参数解析、main.py 流程编排) - 默认构建:委托 bash scripts/build.sh,wheel 输出到 artifacts/wheels/,写入 artifacts/build-manifest.json - python build.py test:委托 bash scripts/run_ci_gate.sh,日志/摘要写入 artifacts/test-reports/ - -v/--version:构建前 uv version <ver> --frozen 临时写入 pyproject.toml,finally 恢复原版本;不再仅重命名 whl - fail-fast:uv 不在 PATH、test_map_path 非文件时提前退出;version staging / restore 失败有明确退出码 - local token 解析但无行为分支(纯 Python 仓规范兼容) - 新增 tests/regression/scripts/helpers/build/ 回归(41 用例);gate_policy.yaml 增加 build.py 配置触发项;.gitignore 忽略 artifacts/ - 更新 [scripts/README.md](scripts/README.md) 说明入口与 uv run python build.py -v 用法 ## 自验证 ### 回归测试 目的:验证 build 模块参数解析、版本 staging/restore、fail-fast 与委托逻辑。 步骤: 1. 运行 build 回归套件 bash uv run pytest tests/regression/scripts/helpers/build/ -q --tb=short 结果: text ......................................... [100%] 41 passed in 0.26s ### 指定版本构建 wheel 目的:验证 -v 时 uv build 日志与 whl 文件名均为指定版本,且 pyproject.toml 构建后恢复。 步骤: 1. 清理并构建 bash rm -rf artifacts/wheels/* uv run python build.py -v 26.1.2 2. 检查 pyproject 版本 bash grep '^version' pyproject.toml 结果: text INFO 06-30 10:05:56.446 [main.py:66] setting project version to 26.1.2 msmodeling 0.2.0 => 26.1.2 INFO 06-30 10:05:56.463 [main.py:84] running: bash /root/workspace/gitcode/msmodeling-test/scripts/build.sh Building wheel... Successfully built artifacts/wheels/msmodeling-26.1.2-py3-none-any.whl Built wheel: /root/workspace/gitcode/msmodeling-test/artifacts/wheels/msmodeling-26.1.2-py3-none-any.whl INFO 06-30 10:05:57.534 [main.py:182] restoring project version to 0.2.0 INFO 06-30 10:05:57.534 [main.py:66] setting project version to 0.2.0 msmodeling 26.1.2 => 0.2.0 version = "0.2.0" ### test 模式 fail-fast 目的:未提供 test_map 时应在启动 ci_gate 前失败。 步骤: 1. 无 test_map 运行 test bash uv run python build.py test 结果: text ERROR 06-30 10:06:04.247 [main.py:222] test requires test_map_path via --extra test_map_path=... or MSMODELING_TEST_MAP_PATH exit=1 See merge request: Ascend/msmodeling!485 | 1 天前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 1 天前 | ||
| 1 天前 | ||
| 1 天前 | ||
| 1 天前 |