-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
[Build] Add initial conditional testing spec #6841
Conversation
👋 Hi! Thank you for contributing to the vLLM project. Once the PR is approved and ready to go, please make sure to run full CI as it is required to merge (or just use auto-merge). To run full CI, you can do one of these:
🚀 |
command: pytest -v -s test_regression.py | ||
working_dir: "/vllm-workspace/tests" # optional | ||
|
||
- label: AsyncEngine Test |
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.
removed because it is covered in Async Engine, Inputs, Utils, Worker Test
- label: Tracing Test | ||
commands: | ||
- "pip install \ | ||
opentelemetry-sdk \ | ||
opentelemetry-api \ | ||
opentelemetry-exporter-otlp \ | ||
opentelemetry-semantic-conventions-ai" | ||
- pytest -v -s tracing |
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.
covered in fastcheck that combiend metrics and tracing
commands: | ||
- apt-get install -y curl libsodium23 | ||
- export VLLM_WORKER_MULTIPROC_METHOD=spawn | ||
- pytest -v -s tensorizer_loader | ||
|
||
- label: Metrics Test |
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.
covered in fastcheck that combiend metrics and tracing
.buildkite/test-pipeline.yaml
Outdated
# Documentation | ||
# label(str): the name of the test. emoji allowed. | ||
# fast_check(bool): whether to run this on each commit by default, without the /ready tag. | ||
# fast_check_only(bool): whether to skip this test on full suite. | ||
# command(str): the single command to run for tests. incompatible with commands. | ||
# commands(list): the list of commands to run for test. incompatbile with command. | ||
# mirror_hardwares(list): the list of hardwares to run the test on as well. currently only supports [amd] | ||
# gpu(str): override the GPU selection for the test. default is on L4 GPUs. currently only supports a100 | ||
# num_gpus(int): override the number of GPUs for the test. default to 1 GPU. currently support 2,4. | ||
# num_nodes(int): whether to simulate multi-node setup by launch multiple containers on one host, | ||
# in this case, commands must be specified. the first command runs on first host, the second | ||
# command runs on the second host. | ||
# working_dir(str): override the place where command execute. default to "/vllm-workspace/tests". | ||
# source_file_dependencies(list): the list of prefix to opt-in the test for, if empty, the test will always 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.
@khluu can you review some of the docs here? I'm afraid I might have mis-interpret some fields.
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.
done!
.buildkite/test-pipeline.yaml
Outdated
@@ -5,11 +5,27 @@ | |||
# https://github.com/vllm-project/buildkite-ci/blob/main/scripts/test-template-aws.j2 | |||
# to generate the final pipeline yaml file. | |||
|
|||
# Documentation | |||
# label(str): the name of the test. emoji allowed. | |||
# fast_check(bool): whether to run this on each commit by default, without the /ready tag. |
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.
whether to run this on each commit on fastcheck
pipeline
.buildkite/test-pipeline.yaml
Outdated
# num_nodes(int): whether to simulate multi-node setup by launch multiple containers on one host, | ||
# in this case, commands must be specified. the first command runs on first host, the second | ||
# command runs on the second host. | ||
# working_dir(str): override the place where command execute. default to "/vllm-workspace/tests". |
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.
Specify the place where command should execute, default to /vllm-workspace/tests
.buildkite/test-pipeline.yaml
Outdated
# Documentation | ||
# label(str): the name of the test. emoji allowed. | ||
# fast_check(bool): whether to run this on each commit by default, without the /ready tag. | ||
# fast_check_only(bool): whether to skip this test on full suite. |
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.
Run this test on fastcheck
pipeline only
commands: | ||
- pytest -v -s async_engine # Async Engine | ||
- pytest -v -s test_inputs.py | ||
- pytest -v -s multimodal | ||
- pytest -v -s test_utils.py # Utils | ||
- pytest -v -s worker # Worker | ||
|
||
- label: Metrics, Tracing Test |
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.
moved to later section
.buildkite/test-pipeline.yaml
Outdated
fast_check: true | ||
fast_check_only: true | ||
no_gpu: True | ||
source_file_dependencies: [] # always 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.
if test always run, maybe this key should be here at all
mirror_hardwares: [amd] | ||
fast_check: true | ||
source_file_dependencies: |
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.
Besides the source file dependencies, I think we should add the tests themselves as dependency too. Like if tests/core/
changes, this test should also run. Maybe we can rename source_file_dependencies
to dependencies
to be inclusive?
Signed-off-by: Alvant <alvasian@yandex.ru>
Very initial stab at conditional testing. Few remaining tests