Skip to content

Conversation

@DiweiSun
Copy link
Collaborator

@DiweiSun DiweiSun commented Sep 10, 2025

Summary
This PR aims to optimize the CI pipeline by aligning the testing workflow with the sglang main repository. The key change is to adopt run_suite.py as the central script for managing test scope, replacing ad-hoc test selection logic. This improves consistency, maintainability, and scalability of CI across platforms.

Motivation
By aligning with the sglang main repo’s practice of using run_suite.py, we can:

✅ Centralize test suite definitions.
✅ Enable dynamic and reusable test scope management.
✅ Simplify future additions (e.g., new platforms(BMG, CRI), test categories).

python run_suite.py --suite per-commit

Key Changes:

  • Add run_suite.py (synced from sglang main or adapted).
  • Modify .github/workflows/ci.yml to use run_suite.py for test selection.
  • Deprecate inline test lists and manual pytest command construction.

@DiweiSun
Copy link
Collaborator Author

@mingfeima, can you please kindly help to review the PR to refine kernel ci pipeline?

estimated_time: float = 60


# Add Intel Xeon tests
Copy link
Collaborator

Choose a reason for hiding this comment

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

this should be xpu tests, right?

}


def auto_partition(files, rank, size):
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you elaborate more what does this function do?

Copy link
Collaborator Author

@DiweiSun DiweiSun Sep 24, 2025

Choose a reason for hiding this comment

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

this file is fully ported from sglang main, aiming to achieve load balance when tests workload is heavy. we may not use this function for now. Shall I remove this function?

@mingfeima
Copy link
Collaborator

How much time does each CI run take for now?

@DiweiSun
Copy link
Collaborator Author

How much time does each CI run take for now?

6-8 mins for the whole process. 5 mins for docker build and 1-2 mins for kernel test.

@DiweiSun DiweiSun added the run-ci label Nov 4, 2025
@chunyuan-w chunyuan-w requested a review from airMeng November 5, 2025 06:30
@DiweiSun DiweiSun merged commit 688c0b8 into sgl-project:main Nov 5, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants