-
Notifications
You must be signed in to change notification settings - Fork 547
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
support filter flag for buildkite #4534
support filter flag for buildkite #4534
Conversation
/smoke-test managed_jobs |
/quicktest-core |
.buildkite/generate_pipeline.py
Outdated
output = subprocess.run(cmd, shell=True, capture_output=True, text=True) | ||
matches = re.findall('Collected (.+?) with marks: \[(.*?)\]', output.stdout) |
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.
Why don't we directly pass the flag to the cmd run and let pytest
figure out the tests to run?
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.
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.
@Michaelvll if you are asking why we need to extract the test list at all, instead of just letting pytest figure it out at test time, it's described in the docstring
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.
Thanks @zpoint! I am good with this PR if this works : )
/smoke-test managed_jobs |
/smoke-test managed_jobs |
/smoke-test managed_jobs,serve |
/smoke-test |
support
So that we can configure Buildkite to call this script with this flag, supporting arbitrary pytest flags.
Now we can comment on PR:
/smoke-test
to trigger all smoke tests./smoke-test managed_jobs
to trigger smoke tests marked by certain pytest mark./smoke-test <mark1>,<mark2>
Tested (run the relevant ones):
bash format.sh
pytest tests/test_smoke.py
pytest tests/test_smoke.py::test_fill_in_the_name
conda deactivate; bash -i tests/backward_compatibility_tests.sh