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

[Test automation] generate custom test report #739

Merged
merged 12 commits into from
Jan 16, 2025
Merged

Conversation

sixianyi0721
Copy link
Contributor

@sixianyi0721 sixianyi0721 commented Jan 9, 2025

What does this PR do?

Generate a test report in MD that contains two main infos:

  1. custom report on inference provider -> API / functionalities
  2. [TO BE ADDED] test log for easy debugging

Test Plan

For local testing, run test script in command line. See a test report being generated at tests/report.html

pytest /Users/sxyi/llama-stack/llama_stack/providers/tests/. --config=ci_test_config.yaml

See gist for output MD file

Sources

Please link relevant resources if necessary.

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Ran pre-commit to handle lint / formatting issues.
  • Read the contributor guideline,
    Pull Request section?
  • Updated relevant documentation.
  • Wrote necessary unit or integration tests.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jan 9, 2025
@sixianyi0721 sixianyi0721 force-pushed the ci_test_report branch 2 times, most recently from 76b4ace to 991f0e0 Compare January 9, 2025 22:07
@sixianyi0721 sixianyi0721 changed the title generate custom test report [Test automation] generate custom test report Jan 9, 2025
@sixianyi0721 sixianyi0721 marked this pull request as ready for review January 9, 2025 22:13
@sixianyi0721 sixianyi0721 force-pushed the ci_test_report branch 3 times, most recently from e718395 to e4f9175 Compare January 9, 2025 23:19
requirements.txt Outdated
@@ -11,3 +11,4 @@ requests
rich
setuptools
termcolor
pytest-html
Copy link
Contributor

Choose a reason for hiding this comment

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

hm, I don't think we should add this plugin by default because anyone who is not doing development won't need it. this dependency can be added only for the github workflow, or can be manually installed by any developer.

@sixianyi0721 sixianyi0721 force-pushed the ci_test_report branch 14 times, most recently from 47b6cfb to b4b9462 Compare January 10, 2025 00:52
@ashwinb
Copy link
Contributor

ashwinb commented Jan 12, 2025

Please update the test plan / gist when you have a tabular format for the results

Comment on lines 19 to 38
SUPPORTED_MODELS = {
"ollama": [
CoreModelId.llama3_1_8b_instruct.value,
CoreModelId.llama3_1_8b_instruct.value,
CoreModelId.llama3_1_70b_instruct.value,
CoreModelId.llama3_1_70b_instruct.value,
CoreModelId.llama3_1_405b_instruct.value,
CoreModelId.llama3_1_405b_instruct.value,
CoreModelId.llama3_2_1b_instruct.value,
CoreModelId.llama3_2_1b_instruct.value,
CoreModelId.llama3_2_3b_instruct.value,
CoreModelId.llama3_2_3b_instruct.value,
CoreModelId.llama3_2_11b_vision_instruct.value,
CoreModelId.llama3_2_11b_vision_instruct.value,
CoreModelId.llama3_2_90b_vision_instruct.value,
CoreModelId.llama3_2_90b_vision_instruct.value,
CoreModelId.llama3_3_70b_instruct.value,
CoreModelId.llama_guard_3_8b.value,
CoreModelId.llama_guard_3_1b.value,
],
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider getting these values dynamically instead of explicitly retrieving them individually?

@sixianyi0721
Copy link
Contributor Author

Please update the test plan / gist when you have a tabular format for the results

@ashwinb the gist file has been updated!

@sixianyi0721 sixianyi0721 requested a review from ashwinb January 13, 2025 23:13
@yanxi0830 yanxi0830 added this to the v0.1 milestone Jan 15, 2025
@sixianyi0721 sixianyi0721 force-pushed the ci-test-new branch 2 times, most recently from 33de00c to 901c10d Compare January 16, 2025 00:25
Base automatically changed from ci-test-new to main January 16, 2025 20:05
@sixianyi0721 sixianyi0721 merged commit 48b12b9 into main Jan 16, 2025
2 checks passed
@sixianyi0721 sixianyi0721 deleted the ci_test_report branch January 16, 2025 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants