-
Notifications
You must be signed in to change notification settings - Fork 177
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
Remove package retrieval when verify pkg version #7585
Conversation
The following pipelines have been queued for testing: |
Make sure it is present in eng/scripts/Language-Settings.ps1 and referenced in eng/common/scripts/common.ps1.` | ||
See https://github.com/Azure/azure-sdk-tools/blob/main/doc/common/common_engsys.md#code-structure" | ||
exit 1 | ||
} | ||
if (-not $PackageInfoDirectory) { |
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.
Before this was only for local testing but now after your change this will happen every time and I suspect that isn't what we want. The idea was that we would get the already existing packageInfo from the artifacts but it appears that go doesn't publish those. So, the question is should we have go start publishing them? We might need to for other scenarios like APIView. However if we don't do that we shouldn't write the json files to disk we should just call the helper functions that the at save script is calling.
For example there will be cases where looking for $PackageName.json
will fail that were already handled in that save script https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/scripts/Save-Package-Properties.ps1#L115
@praveenkuttappan @benbp this means that the APIView requirement check doesn't work for go. Is that a know gap? Did we never implement that block for go? |
@weshaggard to my knowledge this block was working, we implemented it last year. |
OK looks like go doesn't use the PackageInfo files https://github.com/Azure/azure-sdk-for-go/blob/main/eng/scripts/Language-Settings.ps1#L137 it is looking for apireview files directly which is why this doesn't work in our general case. We might want to have go start producing those PackageInfo files as artifacts so things can be more consistent and we have that info for other parts of the pipeline. |
@benbp @weshaggard API view works in Go. The point is Go SDK doesn't have package generated like other language which is by design. We could publish the API view artifacts which is |
@weshaggard , I added the step to publish the |
The following pipelines have been queued for testing: |
Sync eng/common directory with azure-sdk-tools for PR Azure/azure-sdk-tools#7585 See [eng/common workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow) --------- Co-authored-by: Ray Chen <[email protected]>
The script fails to find the package for the
Go
language because the Go language doesn't generate a package for release; instead, it simply pushes the code to the GitHub repository.However, since the
Verify-PackageVersion
function doesn't actually use the package found by theAPIView
related function, I removed that part of the code. Now, the script works for these five languages by retrieving package information from the{packagename}.json
file.In addition, I added the validation for
Go
data plane scenario.Test run result:
Go
JS