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

Set Dev Version Fix #38089

Merged
merged 1 commit into from
Oct 24, 2024
Merged

Set Dev Version Fix #38089

merged 1 commit into from
Oct 24, 2024

Conversation

scbedd
Copy link
Member

@scbedd scbedd commented Oct 24, 2024

I broke the SetTestPipeline where we target a specific package with my merge of pyproject.toml.

@scbedd scbedd requested a review from mccoyp as a code owner October 24, 2024 22:15
@scbedd scbedd self-assigned this Oct 24, 2024
@@ -69,7 +69,7 @@ def get_packages(
paths = get_setup_py_paths(args.glob_string, target_dir, additional_excludes)

# Check if package is excluded if a package name param is passed
if package_name and not any(filter(lambda x: package_name == os.path.basename(os.path.dirname(x)), paths)):
Copy link
Member Author

Choose a reason for hiding this comment

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

paths is populated by discover_targeted_packages, which changed to return the directory of the package, not the exact path to the setup.py. As a result, os.path.dirname(x) became unnecessary and in fact broke the targeting by name.

@JimSuplizio JimSuplizio self-requested a review October 24, 2024 22:22
Copy link
Member

@JimSuplizio JimSuplizio left a comment

Choose a reason for hiding this comment

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

Thank you for fixing this, Scott.

@scbedd
Copy link
Member Author

scbedd commented Oct 24, 2024

Thank you for fixing this, Scott.

Thanks for the report!

@scbedd scbedd merged commit 328ae9c into Azure:main Oct 24, 2024
20 of 23 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.

2 participants