Skip to content

Conversation

@danieljurek
Copy link
Member

@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

$BranchName = "$(TargetBranchName)"
# Fetch and checkout remote branch if it already exists otherwise create a new branch.
git ls-remote --exit-code --heads $RemoteName $BranchName
if ($LASTEXITCODE -eq 0) {
Copy link
Member

Choose a reason for hiding this comment

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

Looks like you found a good solution. Should I close #1642 ?

Copy link
Member Author

@danieljurek danieljurek Jun 22, 2021

Choose a reason for hiding this comment

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

We've run into this problem in other parts of the codebase. @weshaggard has designs to pull this logic into a yaml template of sorts.

I think valid arguments can be made for including this in sparse-checkout.yml (it's easier to do everything in one template call as opposed to two) or not (call the second template when you need it, don't bloat sparse-checkout.yml).

One deciding factor could be whether we would use this kind of branch-querying logic in a context which does not use sparse checkout.

Copy link
Member

Choose a reason for hiding this comment

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

Is what you're suggesting basically a "checkout main and then make new branch" option?

- template: sparse-checkout.yml
  parameters:
    NewBranch: <branch name>

We would also need to consider whether to support this parameter as global to the template and/or specific to each Repositories object.

Copy link
Member Author

@danieljurek danieljurek Jun 28, 2021

Choose a reason for hiding this comment

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

In the case where the branch does not exist, yes, check out the default some (probably the default) branch and then create the new branch. However the branch may already exist and in that case we want to just check out that branch.

@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

@danieljurek danieljurek force-pushed the common-changes-for-docsms-metadata branch from 08c52cd to f9f57b7 Compare June 28, 2021 23:17
@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

Copy link
Member

@weshaggard weshaggard left a comment

Choose a reason for hiding this comment

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

Lets be sure to verify this across the different languages as release week is here soon and we want to be sure we don't break folks.

@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

@danieljurek
Copy link
Member Author

All CIs have passed, all template releases (except Python) have passed. Python's template release is failing for reasons unrelated to this change. Ready to merge.

@ghost
Copy link

ghost commented Jun 30, 2021

Hello @azure-sdk!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@ghost ghost merged commit fe7086d into Azure:main Jun 30, 2021
}

function GetRelativePath($path) {
# If the path is empty return an empty string
Copy link
Member

Choose a reason for hiding this comment

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

Do we have a case where we are validly passing empty here?

Copy link
Member Author

@danieljurek danieljurek Jun 30, 2021

Choose a reason for hiding this comment

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

In this instance Azure.Core.TestFramework does not have a CHANGELOG.md https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/core/Azure.Core.TestFramework

In previous builds this would have produced output like:

{
  "Name": "Azure.Core.TestFramework",
  "Version": "",
  "DirectoryPath": "D:\\a\\_work\\1\\s\\sdk\\core\\Azure.Core.TestFramework",
  "ServiceDirectory": "core",
  "ReadMePath": "D:\\a\\_work\\1\\s\\sdk\\core\\Azure.Core.TestFramework\\README.md",
  "ChangeLogPath": "",
  "Group": null,
  "SdkType": "client",
  "IsNewSdk": true,
  "ArtifactName": "Azure.Core.TestFramework",
  "ReleaseStatus": null
}

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants