Skip to content

Update eng-common-workflow-enforcer#1401

Merged
1 commit merged intoAzure:masterfrom
chidozieononiwu:FixEngCommonWorkflowCheck
Feb 12, 2021
Merged

Update eng-common-workflow-enforcer#1401
1 commit merged intoAzure:masterfrom
chidozieononiwu:FixEngCommonWorkflowCheck

Conversation

@chidozieononiwu
Copy link
Member

Fix error in eng-common-workflow-enforcer

@chidozieononiwu chidozieononiwu requested a review from a team as a code owner February 11, 2021 23:18
@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

@chidozieononiwu chidozieononiwu force-pushed the FixEngCommonWorkflowCheck branch from 278e89f to c456cee Compare February 12, 2021 01:53
@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.

Looks good but lets please test it out before merging.

@chidozieononiwu
Copy link
Member Author

Looks good but lets please test it out before merging.

I'll test it while calling it in the language repos

$filesInCommonDir = git diff "origin/$(System.PullRequest.TargetBranch)" HEAD --name-only -- 'eng/common/*'

if ((-not $PrSourceBranch.StartsWith("sync-eng/common")) -and ($filesInCommonDir.Count -gt 0))
if ((!"$(System.PullRequest.SourceBranch)".StartsWith("sync-eng/common")) -and ($LASTEXITCODE -eq 0) -and ($filesInCommonDir.Count -gt 0))
Copy link
Member

Choose a reason for hiding this comment

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

Will $LASTEXITCODE ever be hit? Wouldn't this script halt in devops if there's a non-zero exit code?

Copy link
Member

Choose a reason for hiding this comment

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

git diff should set a lastexitcode but you are correct that maybe the error preferences devops uses might cause it to fail at that point. We'd have to test to know for sure but in either case I don't think it hurts to have the check.

@ghost
Copy link

ghost commented Feb 12, 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 b11ee82 into Azure:master Feb 12, 2021
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