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

[Build] Add initial conditional testing spec #6841

Merged
merged 8 commits into from
Aug 6, 2024

Conversation

simon-mo
Copy link
Collaborator

Very initial stab at conditional testing. Few remaining tests

  • Work with @khluu to get this enabled
  • Iron-out some bugs: if the test file itself is changed, some tests should rerun?
  • Getting the dependencies more accuracy and precise.

Copy link

👋 Hi! Thank you for contributing to the vLLM project.
Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run fastcheck CI which consists a small and essential subset of CI tests to quickly catch errors. You can run other CI tests on top of default ones by unblocking the steps in your fast-check build on Buildkite UI.

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:

  • Comment /ready on the PR
  • Add ready label to the PR
  • Enable auto-merge.

🚀

@simon-mo simon-mo marked this pull request as draft July 26, 2024 17:50
command: pytest -v -s test_regression.py
working_dir: "/vllm-workspace/tests" # optional

- label: AsyncEngine Test
Copy link
Collaborator Author

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

Comment on lines -238 to -226
- label: Tracing Test
commands:
- "pip install \
opentelemetry-sdk \
opentelemetry-api \
opentelemetry-exporter-otlp \
opentelemetry-semantic-conventions-ai"
- pytest -v -s tracing
Copy link
Collaborator Author

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
Copy link
Collaborator Author

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

Comment on lines 8 to 21
# 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.
Copy link
Collaborator Author

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.

Copy link
Collaborator

Choose a reason for hiding this comment

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

done!

@@ -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.
Copy link
Collaborator

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

# 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".
Copy link
Collaborator

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

# 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.
Copy link
Collaborator

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
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

moved to later section

@simon-mo simon-mo marked this pull request as ready for review August 4, 2024 06:17
@simon-mo simon-mo added the ready ONLY add when PR is ready to merge/full CI is needed label Aug 4, 2024
fast_check: true
fast_check_only: true
no_gpu: True
source_file_dependencies: [] # always run
Copy link
Collaborator

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:
Copy link
Collaborator

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?

@simon-mo simon-mo merged commit e3c664b into vllm-project:main Aug 6, 2024
36 of 37 checks passed
sfc-gh-mkeralapura pushed a commit to sfc-gh-mkeralapura/vllm that referenced this pull request Aug 12, 2024
kylesayrs pushed a commit to neuralmagic/vllm that referenced this pull request Aug 17, 2024
fialhocoelho pushed a commit to opendatahub-io/vllm that referenced this pull request Aug 22, 2024
Alvant pushed a commit to compressa-ai/vllm that referenced this pull request Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready ONLY add when PR is ready to merge/full CI is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants