[CI/NPU] Fix ascend CI issue#16953
Conversation
Summary of ChangesHello @ocss884, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request provides a targeted fix for a CI issue affecting Ascend NPU tests. The problem stemmed from an incorrect method of passing command-line arguments to a subprocess, where a list of tokens was being treated as a single argument rather than being expanded into multiple distinct arguments. The change ensures that the test suite can now correctly configure and run the piecewise CUDA graph prefill tests on Ascend hardware, thereby stabilizing the CI pipeline for this specific environment. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This PR correctly fixes an issue with command-line argument passing in an Ascend CI test by unpacking a list of tokens. I've added a comment to point out a similar issue in another test within the same file that should also be addressed to ensure consistency and correctness across all related tests.
| "--enable-piecewise-cuda-graph", | ||
| "--piecewise-cuda-graph-tokens", | ||
| TOKENS_TO_CAPTURE, | ||
| *TOKENS_TO_CAPTURE, |
There was a problem hiding this comment.
This change correctly fixes the argument passing. A similar issue exists in the TestPiecewiseGraphPrefillBenchmark class on line 82, where TOKENS_TO_CAPTURE also needs to be unpacked. Please apply the same fix there to ensure the benchmark test runs correctly.
Suggested change for line 82:
*TOKENS_TO_CAPTURE,|
/tag-and-rerun-ci |
|
thanks for your contribution, and we have another duplicate PR #16933 fix it. |
|
sorry for close it, i found your changes is better than his, thank you. |
| "--piecewise-cuda-graph-tokens", | ||
| ] | ||
| + TOKENS_TO_CAPTURE, | ||
| TOKENS_TO_CAPTURE, |
There was a problem hiding this comment.
need the same fix here
|
/tag-and-rerun-ci |
|
/rerun-failed-ci |
|
nice work! thx |
Motivation
See: https://github.com/sgl-project/sglang/actions/runs/20914212553/job/60083859620?pr=16945
Modifications
Accuracy Tests
Benchmarking and Profiling
Checklist
Review Process
/tag-run-ci-label,/rerun-failed-ci,/tag-and-rerun-ci