Skip to content

【NPU】vime NPU CI Integration#316

Merged
CalvinXKY merged 3 commits into
vllm-project:ascendfrom
yzeyu71:feat/ci-npu-patch
Jul 16, 2026
Merged

【NPU】vime NPU CI Integration#316
CalvinXKY merged 3 commits into
vllm-project:ascendfrom
yzeyu71:feat/ci-npu-patch

Conversation

@yzeyu71

@yzeyu71 yzeyu71 commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Summary

Based on the RFC [RFC]vime NPU CI Integration#315 , this work supplements the VIME NPU CI functionality and isolates it from the VIME CI.

What changed

  1. The configuration and code updates of the NPU environment in CI will be extracted into the script for execution, which is convenient for subsequent updates.

  2. When CI is executed, the patch is reloaded to facilitate verification of patch modifications

  3. It supports reading the block step and generates individual test jobs via 'npu_suites.py'

  4. update the image to the latest version quay.io/ascend/vime:0.3.0-a3-vllm0.22.1rc1

  5. Add a check to rebuild the CI image for validation when dockerfile.npu is modified or a nightly scheduled pipeline is triggered.

  6. pipeline-npu.yaml will execute in a separate buildkite pipeline VIME NPU CI and is deleted from the VIME CI. Added README-NPU-CI.md, introducing VIME-NPU-CI functionality and steps to add test cases

Test result

1、update patch apply in the docker success
image

2、Successfully retrieved the npu-suites block and generated the smk test suite for testing.
image

Todo

To complete the isolation and normal operation of the VIME NPU CI and VIME CI, the following modifications to GitHub and Buildkite configurations are required.

buildkite:

  • Add a new pipeline 'VIME-NPU-CI' in Buildkite and define the pipeline.yml file to be used for triggering.
  • Add pipeline 'VIME-NPU-CI' to the 'CI' cluster so that it can use agents from the 'CI' resource pool for validation.

github:

  • Add a new webhook URL for 'VIME-NPU-CI' to trigger its execution.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a pre-commit lint step and a new script, update-npu-environment.sh, to manage and apply NPU environment patches dynamically within the Buildkite pipeline. While these additions improve the CI workflow, several critical issues were identified in the review. Specifically, the patch application check logic needs to be reversed to work correctly, a typo in the NPU device environment variable name must be fixed, and the script should be sourced rather than executed to persist environment variables. Additionally, leftover sleep 3600 debugging statements should be removed to prevent pipeline hangs, the new vllm_ascend_test.patch needs to be registered in the configuration, and the unused verify_all_patches function should be addressed.

Comment thread .buildkite/scripts/update-npu-environment.sh
Comment thread .buildkite/scripts/update-npu-environment.sh
Comment thread .buildkite/pipeline-npu.yaml Outdated
Comment thread .buildkite/pipeline-npu.yaml Outdated
Comment thread .buildkite/scripts/update-npu-environment.sh
Comment thread .buildkite/scripts/update-npu-environment.sh Outdated
@yzeyu71
yzeyu71 force-pushed the feat/ci-npu-patch branch 28 times, most recently from 96ec45b to f391ae4 Compare July 8, 2026 02:28
@yzeyu71
yzeyu71 force-pushed the feat/ci-npu-patch branch 17 times, most recently from 6750187 to 28e945c Compare July 10, 2026 09:17
yzeyu71 added 2 commits July 13, 2026 10:23
1. The NPU environment update and modification are extracted into the script for execution
2. CI adds judgment, and applies to the corresponding component when there is a patch update

Signed-off-by: yangzeyu <532183776@qq.com>
Signed-off-by: yangzeyu <532183776@qq.com>
@yzeyu71
yzeyu71 force-pushed the feat/ci-npu-patch branch 5 times, most recently from 9748c33 to ecc1dd2 Compare July 13, 2026 02:53
@Meihan-chen Meihan-chen mentioned this pull request Jul 16, 2026
4 tasks
@CalvinXKY

Copy link
Copy Markdown
Collaborator

@miracle0517

Meihan-chen
Meihan-chen previously approved these changes Jul 16, 2026
Comment thread .buildkite/npu_suites.py
}
}
],
"env": pod_env,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://buildkite.com/docs/pipelines/configure/defining-steps#step-types. In Buildkite, the env field is specified as a map of environment variables to be applied to all steps. However, the current generation produces a Kubernetes‑style array. Could this lead to schema validation errors in tests?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Buildkite is compatible with this format, and the script generates the same configuration format as gpu_suites.py. We've tested it and it works correctly.

Comment thread .buildkite/README-NPU-CI.md Outdated

The pipeline supports three trigger modes:

**PR trigger.** When a PR is opened or updated, `check-npu-build.sh` checks

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The check-npu-build.sh script mentioned in the README is not present in the pull request’s file tree.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Related descriptions have been deleted. This script will be added in the next PR.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Signed-off-by: yangzeyu <532183776@qq.com>
Signed-off-by: yangzeyu <yangzeyu7@huawei.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants