Skip to content

Conversation

@dmchoiboi
Copy link
Collaborator

Pull Request Summary

What is this PR changing? Why is this change being made? Any caveats you'd like to highlight? Link any relevant documents, links, or screenshots here if applicable.

vLLM integration tests for the stream case has a few bugs that this addresses

Test Plan and Usage Guide

How did you validate that your PR works correctly? How do you run or demo the code? Provide enough detail so a reviewer can reasonably reproduce the testing procedure. Paste example command line invocations if applicable.

@dmchoiboi dmchoiboi force-pushed the dmchoi/fix-integration-tests branch from 2793e48 to 6468b23 Compare June 24, 2024 07:17
required_output_fields: Optional[List[str]],
response_text_regex: Optional[str],
):
print("raw response", response)
Copy link
Contributor

Choose a reason for hiding this comment

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

remove this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

we can; it's been helpful for debugging if the tests fail

) as response:
assert response.status == 200, (await response.read()).decode()
return await response.json()
return (await response.read()).decode()
Copy link
Contributor

Choose a reason for hiding this comment

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

hmm, how did this work before?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

i'm pretty sure it didn't

Comment on lines 1004 to 1007
Copy link
Contributor

Choose a reason for hiding this comment

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

should implement these?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

i'm not really sure what this is supposed to be testing. the response for streaming is different from that for sync so the same checks don't really apply

@dmchoiboi dmchoiboi force-pushed the dmchoi/fix-integration-tests branch from 44f30ca to 861fea3 Compare June 24, 2024 17:44
@dmchoiboi dmchoiboi enabled auto-merge (squash) June 24, 2024 17:52
@dmchoiboi dmchoiboi merged commit 4471d19 into main Jun 24, 2024
@dmchoiboi dmchoiboi deleted the dmchoi/fix-integration-tests branch June 24, 2024 18:05
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.

3 participants