Skip to content

Conversation

@JennyPng
Copy link
Member

@JennyPng JennyPng commented Dec 12, 2025

#42601

tox version installs subprocess32 but i didn't include that 🤔

next: delete original test_run_samples.py

@JennyPng JennyPng marked this pull request as ready for review December 15, 2025 17:53
Copilot AI review requested due to automatic review settings December 15, 2025 17:53
Copy link
Contributor

Copilot AI left a 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 samples check 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

Copy link
Member

@scbedd scbedd left a 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!

@JennyPng JennyPng enabled auto-merge (squash) December 18, 2025 21:43
@JennyPng JennyPng merged commit 05b029a into Azure:main Dec 18, 2025
20 checks passed
@JennyPng JennyPng deleted the jennypng-samples branch December 18, 2025 21:49
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.

2 participants