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

APIView Creation from PR for Go #24000

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

chidozieononiwu
Copy link
Member

  • This adds a step to publish .gosource artifact and trigger call to APIView endpoint for detecting API changes

@chidozieononiwu
Copy link
Member Author

/azp run go - aztemplate

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@chidozieononiwu chidozieononiwu requested a review from a team as a code owner January 28, 2025 21:51
@chidozieononiwu
Copy link
Member Author

/azp run go - aztemplate - ci

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@chidozieononiwu
Copy link
Member Author

/azp run go - aztemplate - ci

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@chidozieononiwu chidozieononiwu force-pushed the apiView/goPullRequests branch 3 times, most recently from d7d3aa0 to 86b795c Compare January 30, 2025 01:14
@chidozieononiwu
Copy link
Member Author

/azp run go - aztemplate - ci

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@chidozieononiwu
Copy link
Member Author

/azp run go - aztemplate - ci

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@chidozieononiwu
Copy link
Member Author

/azp run go - aztemplate - ci

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@chidozieononiwu
Copy link
Member Author

/azp run go - aztemplate - ci

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@chidozieononiwu chidozieononiwu force-pushed the apiView/goPullRequests branch 11 times, most recently from 56c2dae to a77e679 Compare January 31, 2025 08:39
@@ -101,13 +101,11 @@ function Get-AllPackageInfoFromRepo($serviceDirectory)
$searchPath = Join-Path $RepoRoot "sdk"
$pkgFiles = @()
if ($serviceDirectory) {
$searchPath = Join-Path $searchPath $serviceDirectory "go.mod"
Copy link
Member

Choose a reason for hiding this comment

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

Previous code was not doing recursive search when service directory is passed. I think Go has sub modules which contains go.mod and that's probably the reason we don't do Recurse to find package in service directory.

@benbp Can you please confirm if sub module also can have go.mod?

Copy link
Member Author

Choose a reason for hiding this comment

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

In most cases the go.mod is not at the service directory level, which is why old logic did not work

- template: /eng/common/pipelines/templates/steps/publish-1es-artifact.yml
parameters:
ArtifactName: "PackageInfo"
Copy link
Member

Choose a reason for hiding this comment

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

Don't we still need old PackageInfo for other EngSys tools?

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't think so. All calls to it are from the $(ArtifactStagingDirectory) where it is initially created.

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually, It is being downloaded in the go release job

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't see it being used though. However, I have added another publish step for PackageInfo artifact.

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@chidozieononiwu chidozieononiwu force-pushed the apiView/goPullRequests branch 5 times, most recently from b81ffff to e98872c Compare February 5, 2025 00:33
Changes in Template for testing

Update go Language Settings and Detect-Api-Changes

test Changes manually

Update Go Analyze Step
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.

4 participants