Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] use pytest for sgl-kernel #4697

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

adarshxs
Copy link
Contributor

Motivation

For: #4690

Modifications

test files in: https://github.com/sgl-project/sglang/tree/main/sgl-kernel/tests

Checklist

@@ -36,4 +36,6 @@ def test_fused_gelu_mul(dim, batch_size, seq_len):


if __name__ == "__main__":
pytest.main([__file__])
import sys
Copy link
Member

Choose a reason for hiding this comment

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

QQ Why not use pytest.main([__file__])

Copy link
Contributor Author

@adarshxs adarshxs Mar 23, 2025

Choose a reason for hiding this comment

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

wanted the error code to propagate rather than zero if test fails in CI. Should I revert back to using only pytest.main([__file__])? @zhyncs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants