Skip to content

Conversation

scbedd
Copy link
Member

@scbedd scbedd commented Aug 27, 2025

Effectively, the first glob match needs to be provided ** to act recursively. The sdk/ check explicitly will handle any * passed in. Maintaining that for backwards compatibility for now.

@Copilot Copilot AI review requested due to automatic review settings August 27, 2025 22:56
@scbedd scbedd self-assigned this Aug 27, 2025
Copy link
Contributor

@Copilot 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 simplifies and enhances the discover_targeted_packages function by improving glob pattern handling and adding better test package filtering. The changes make the package discovery more robust and comprehensive while ensuring test packages are properly excluded.

Key changes:

  • Simplified glob operations by using recursive globbing instead of multiple explicit patterns
  • Added filtering to exclude packages within test/tests directories
  • Enhanced test coverage with a new comprehensive test against the entire SDK

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
eng/tools/azure-sdk-tools/ci_tools/functions.py Simplified glob operations using recursive patterns and added test directory filtering
eng/tools/azure-sdk-tools/tests/integration/test_package_discovery.py Added comprehensive test for SDK-wide package discovery and refactored path variables

@scbedd scbedd moved this from 🤔 Triage to 🔬 Dev in PR in Azure SDK EngSys 🍕 Aug 27, 2025
@scbedd scbedd merged commit c0bb26b into Azure:main Aug 28, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🔬 Dev in PR
Development

Successfully merging this pull request may close these issues.

1 participant