-
Notifications
You must be signed in to change notification settings - Fork 42
Intelligent test filtering if only test files are modified #184
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
Conversation
Signed-off-by: Reza Barazesh <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll trust you that this works, because this is hurting my eyes to read.
ehhh should we keep jinja as it is or looking for other options to configure pipelines? cc @khluu |
There was an attempt to refactor jinja and use python to generate the pipeline files but I believe it's no longer actively being worked on. |
I feel really sorry for anyone who has to look at and work on this jinja file... we should've never had any complex logic in jinja in the first place. |
@rzabarazesh Can you run a few builds to verify that it works? |
I have. The builds are linked at the bottom of the first post |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
This logic seems to ignore whether the test files that were changed are actually included in the original |
I responded in your original PR |
This will make it so that if only some tests are modified, we will only run those tests in the CI.
Because jinja is hard to read, this is the python translation to make understanding it easier:
Testing
Test : Only engine test file modified -> Only running the new test
vllm-project/vllm@db06bd0
Build: https://buildkite.com/vllm/ci/builds/33083/steps/canvas?sid=0199a0cb-d268-42e4-b644-967f4e59a267
Test: Some test files and non-test files modified --> Behaving as before
https://github.com/vllm-project/vllm/pull/26036/files
Build: https://buildkite.com/vllm/ci/builds/33100/steps/canvas?sid=0199a13c-d6da-4781-8ea2-f968e48c1826