-
Notifications
You must be signed in to change notification settings - Fork 319
Fix servicebus metadata #3396
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
base: main
Are you sure you want to change the base?
Fix servicebus metadata #3396
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 fixes a build and test pipeline issue where the servicebus package was being excluded from automation due to having publish = false in its Cargo.toml, causing the pipeline to fail when no publishable packages were found in the service directory.
Key Changes:
- Changed
publish = falsetopublish = truein the servicebus Cargo.toml to make the package discoverable by the build system - Added defensive error handling in the PowerShell script to log when no publishable packages are found
- Cleaned up trailing whitespace in the PowerShell script
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| sdk/servicebus/azure_messaging_servicebus/Cargo.toml | Changed package from non-publishable to publishable, allowing it to be included in build and test pipelines |
| eng/scripts/Language-Settings.ps1 | Added error logging when no publishable packages are found and removed trailing whitespace |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…"test" as a differentiated part of the name
…control flow, but an empty list of packages might not be an error)
Get-GetAllPackageInfoFromRepo returns an empty array if no packages are publishable. This means there are no packages in the service to build and test which causes an error.
To fix: set
publish = truein theazure_messaging_servicebusCargo.toml file.Example build: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=5638463&view=logs&j=8be16720-14eb-5bbb-1134-7a8b2c5000bc&t=98f58421-5e68-5db5-4107-79c932a43ba0