-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Add Samples Check to azpysdk
#44417
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
Add Samples Check to azpysdk
#44417
Conversation
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.
Pull request overview
This PR adds samples check functionality to the azpysdk tool, enabling developers to run package samples locally using azpysdk samples . instead of relying solely on the tox-based framework. This change supports the ongoing migration from tox to azpysdk as mentioned in the tool usage guide.
Key changes:
- Implementation of a new
samplescheck class with sample execution logic - Registration of the samples command in the main CLI
- Updated documentation to reflect the new azpysdk samples command
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| eng/tools/azure-sdk-tools/azpysdk/samples.py | New file implementing the samples check with timeout handling, ignored samples configuration, and sample execution logic |
| eng/tools/azure-sdk-tools/azpysdk/main.py | Imports and registers the new samples check |
| doc/tool_usage_guide.md | Adds samples command to the tool usage documentation |
| doc/dev/sample_guide.md | Updates sample testing documentation to mention azpysdk as an alternative to tox |
Co-authored-by: Copilot <[email protected]>
scbedd
left a comment
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 for tackling this! I have some comments that need addressing before I sign off on this one!
#42601
tox version installs subprocess32 but i didn't include that 🤔
next: delete
original test_run_samples.py