Skip to content

Commit

Permalink
Merge pull request #1220 from DARMA-tasking/1219-run-commentary-task-…
Browse files Browse the repository at this point in the history
…only-from-prs

#1219: Run commentary task only for PRs
  • Loading branch information
lifflander authored Jan 15, 2021
2 parents f46d5a5 + 399ea85 commit 14ecb0e
Show file tree
Hide file tree
Showing 17 changed files with 34 additions and 34 deletions.
4 changes: 2 additions & 2 deletions ci/azure/azure-clang-3.9-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ stages:
dockerComposeCommand: 'run ubuntu-cpp-clean'
- task: Bash@3
displayName: Prepare comment with compilation errors and warnings
condition: succeededOrFailed()
condition: and(succeededOrFailed(), eq(variables['Build.Reason'], 'PullRequest'))
inputs:
targetType: 'inline'
# Maximum length of the comment body is 65536 characters.
Expand Down Expand Up @@ -153,7 +153,7 @@ stages:
echo "##vso[task.setvariable variable=comp_errs_warns;]$comment_body"
- task: GitHubComment@0
displayName: Put warnings and errors in PR comment
condition: and(succeededOrFailed(), ne(variables['comp_errs_warns'], ''))
condition: and(succeededOrFailed(), and(eq(variables['Build.Reason'], 'PullRequest'), ne(variables['comp_errs_warns'], '')))
inputs:
gitHubConnection: 'DARMA-tasking'
repositoryName: $(Build.Repository.Name)
Expand Down
4 changes: 2 additions & 2 deletions ci/azure/azure-clang-5.0-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ stages:
dockerComposeCommand: 'run ubuntu-cpp-clean'
- task: Bash@3
displayName: Prepare comment with compilation errors and warnings
condition: succeededOrFailed()
condition: and(succeededOrFailed(), eq(variables['Build.Reason'], 'PullRequest'))
inputs:
targetType: 'inline'
# Maximum length of the comment body is 65536 characters.
Expand Down Expand Up @@ -153,7 +153,7 @@ stages:
echo "##vso[task.setvariable variable=comp_errs_warns;]$comment_body"
- task: GitHubComment@0
displayName: Put warnings and errors in PR comment
condition: and(succeededOrFailed(), ne(variables['comp_errs_warns'], ''))
condition: and(succeededOrFailed(), and(eq(variables['Build.Reason'], 'PullRequest'), ne(variables['comp_errs_warns'], '')))
inputs:
gitHubConnection: 'DARMA-tasking'
repositoryName: $(Build.Repository.Name)
Expand Down
4 changes: 2 additions & 2 deletions ci/azure/azure-clang-8-alpine-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ stages:
dockerComposeCommand: 'run alpine-cpp-clean'
- task: Bash@3
displayName: Prepare comment with compilation errors and warnings
condition: succeededOrFailed()
condition: and(succeededOrFailed(), eq(variables['Build.Reason'], 'PullRequest'))
inputs:
targetType: 'inline'
# Maximum length of the comment body is 65536 characters.
Expand Down Expand Up @@ -153,7 +153,7 @@ stages:
echo "##vso[task.setvariable variable=comp_errs_warns;]$comment_body"
- task: GitHubComment@0
displayName: Put warnings and errors in PR comment
condition: and(succeededOrFailed(), ne(variables['comp_errs_warns'], ''))
condition: and(succeededOrFailed(), and(eq(variables['Build.Reason'], 'PullRequest'), ne(variables['comp_errs_warns'], '')))
inputs:
gitHubConnection: 'DARMA-tasking'
repositoryName: $(Build.Repository.Name)
Expand Down
4 changes: 2 additions & 2 deletions ci/azure/azure-gcc-10-ubuntu-openmpi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ stages:
dockerComposeCommand: 'run ubuntu-cpp-clean-openmpi'
- task: Bash@3
displayName: Prepare comment with compilation errors and warnings
condition: succeededOrFailed()
condition: and(succeededOrFailed(), eq(variables['Build.Reason'], 'PullRequest'))
inputs:
targetType: 'inline'
# Maximum length of the comment body is 65536 characters.
Expand Down Expand Up @@ -153,7 +153,7 @@ stages:
echo "##vso[task.setvariable variable=comp_errs_warns;]$comment_body"
- task: GitHubComment@0
displayName: Put warnings and errors in PR comment
condition: and(succeededOrFailed(), ne(variables['comp_errs_warns'], ''))
condition: and(succeededOrFailed(), and(eq(variables['Build.Reason'], 'PullRequest'), ne(variables['comp_errs_warns'], '')))
inputs:
gitHubConnection: 'DARMA-tasking'
repositoryName: $(Build.Repository.Name)
Expand Down
4 changes: 2 additions & 2 deletions ci/azure/azure-gcc-5-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ stages:
dockerComposeCommand: 'run ubuntu-cpp-clean'
- task: Bash@3
displayName: Prepare comment with compilation errors and warnings
condition: succeededOrFailed()
condition: and(succeededOrFailed(), eq(variables['Build.Reason'], 'PullRequest'))
inputs:
targetType: 'inline'
# Maximum length of the comment body is 65536 characters.
Expand Down Expand Up @@ -153,7 +153,7 @@ stages:
echo "##vso[task.setvariable variable=comp_errs_warns;]$comment_body"
- task: GitHubComment@0
displayName: Put warnings and errors in PR comment
condition: and(succeededOrFailed(), ne(variables['comp_errs_warns'], ''))
condition: and(succeededOrFailed(), and(eq(variables['Build.Reason'], 'PullRequest'), ne(variables['comp_errs_warns'], '')))
inputs:
gitHubConnection: 'DARMA-tasking'
repositoryName: $(Build.Repository.Name)
Expand Down
4 changes: 2 additions & 2 deletions ci/azure/azure-gcc-6-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ stages:
dockerComposeCommand: 'run ubuntu-cpp-clean'
- task: Bash@3
displayName: Prepare comment with compilation errors and warnings
condition: succeededOrFailed()
condition: and(succeededOrFailed(), eq(variables['Build.Reason'], 'PullRequest'))
inputs:
targetType: 'inline'
# Maximum length of the comment body is 65536 characters.
Expand Down Expand Up @@ -153,7 +153,7 @@ stages:
echo "##vso[task.setvariable variable=comp_errs_warns;]$comment_body"
- task: GitHubComment@0
displayName: Put warnings and errors in PR comment
condition: and(succeededOrFailed(), ne(variables['comp_errs_warns'], ''))
condition: and(succeededOrFailed(), and(eq(variables['Build.Reason'], 'PullRequest'), ne(variables['comp_errs_warns'], '')))
inputs:
gitHubConnection: 'DARMA-tasking'
repositoryName: $(Build.Repository.Name)
Expand Down
4 changes: 2 additions & 2 deletions ci/azure/azure-gcc-7-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ stages:
dockerComposeCommand: 'run ubuntu-cpp-clean'
- task: Bash@3
displayName: Prepare comment with compilation errors and warnings
condition: succeededOrFailed()
condition: and(succeededOrFailed(), eq(variables['Build.Reason'], 'PullRequest'))
inputs:
targetType: 'inline'
# Maximum length of the comment body is 65536 characters.
Expand Down Expand Up @@ -153,7 +153,7 @@ stages:
echo "##vso[task.setvariable variable=comp_errs_warns;]$comment_body"
- task: GitHubComment@0
displayName: Put warnings and errors in PR comment
condition: and(succeededOrFailed(), ne(variables['comp_errs_warns'], ''))
condition: and(succeededOrFailed(), and(eq(variables['Build.Reason'], 'PullRequest'), ne(variables['comp_errs_warns'], '')))
inputs:
gitHubConnection: 'DARMA-tasking'
repositoryName: $(Build.Repository.Name)
Expand Down
4 changes: 2 additions & 2 deletions ci/azure/azure-gcc-8-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ stages:
dockerComposeCommand: 'run ubuntu-cpp-clean'
- task: Bash@3
displayName: Prepare comment with compilation errors and warnings
condition: succeededOrFailed()
condition: and(succeededOrFailed(), eq(variables['Build.Reason'], 'PullRequest'))
inputs:
targetType: 'inline'
# Maximum length of the comment body is 65536 characters.
Expand Down Expand Up @@ -153,7 +153,7 @@ stages:
echo "##vso[task.setvariable variable=comp_errs_warns;]$comment_body"
- task: GitHubComment@0
displayName: Put warnings and errors in PR comment
condition: and(succeededOrFailed(), ne(variables['comp_errs_warns'], ''))
condition: and(succeededOrFailed(), and(eq(variables['Build.Reason'], 'PullRequest'), ne(variables['comp_errs_warns'], '')))
inputs:
gitHubConnection: 'DARMA-tasking'
repositoryName: $(Build.Repository.Name)
Expand Down
4 changes: 2 additions & 2 deletions ci/azure/azure-gcc-9-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ stages:
dockerComposeCommand: 'run ubuntu-cpp-clean'
- task: Bash@3
displayName: Prepare comment with compilation errors and warnings
condition: succeededOrFailed()
condition: and(succeededOrFailed(), eq(variables['Build.Reason'], 'PullRequest'))
inputs:
targetType: 'inline'
# Maximum length of the comment body is 65536 characters.
Expand Down Expand Up @@ -153,7 +153,7 @@ stages:
echo "##vso[task.setvariable variable=comp_errs_warns;]$comment_body"
- task: GitHubComment@0
displayName: Put warnings and errors in PR comment
condition: and(succeededOrFailed(), ne(variables['comp_errs_warns'], ''))
condition: and(succeededOrFailed(), and(eq(variables['Build.Reason'], 'PullRequest'), ne(variables['comp_errs_warns'], '')))
inputs:
gitHubConnection: 'DARMA-tasking'
repositoryName: $(Build.Repository.Name)
Expand Down
4 changes: 2 additions & 2 deletions ci/azure/azure-intel-18-ubuntu-mpich-extended.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ stages:
dockerComposeCommand: 'run ubuntu-cpp-clean'
- task: Bash@3
displayName: Prepare comment with compilation errors and warnings
condition: succeededOrFailed()
condition: and(succeededOrFailed(), eq(variables['Build.Reason'], 'PullRequest'))
inputs:
targetType: 'inline'
# Maximum length of the comment body is 65536 characters.
Expand Down Expand Up @@ -147,7 +147,7 @@ stages:
echo "##vso[task.setvariable variable=comp_errs_warns;]$comment_body"
- task: GitHubComment@0
displayName: Put warnings and errors in PR comment
condition: and(succeededOrFailed(), ne(variables['comp_errs_warns'], ''))
condition: and(succeededOrFailed(), and(eq(variables['Build.Reason'], 'PullRequest'), ne(variables['comp_errs_warns'], '')))
inputs:
gitHubConnection: 'DARMA-tasking'
repositoryName: $(Build.Repository.Name)
Expand Down
4 changes: 2 additions & 2 deletions ci/azure/azure-intel-18-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ stages:
dockerComposeCommand: 'run ubuntu-cpp-clean'
- task: Bash@3
displayName: Prepare comment with compilation errors and warnings
condition: succeededOrFailed()
condition: and(succeededOrFailed(), eq(variables['Build.Reason'], 'PullRequest'))
inputs:
targetType: 'inline'
# Maximum length of the comment body is 65536 characters.
Expand Down Expand Up @@ -153,7 +153,7 @@ stages:
echo "##vso[task.setvariable variable=comp_errs_warns;]$comment_body"
- task: GitHubComment@0
displayName: Put warnings and errors in PR comment
condition: and(succeededOrFailed(), ne(variables['comp_errs_warns'], ''))
condition: and(succeededOrFailed(), and(eq(variables['Build.Reason'], 'PullRequest'), ne(variables['comp_errs_warns'], '')))
inputs:
gitHubConnection: 'DARMA-tasking'
repositoryName: $(Build.Repository.Name)
Expand Down
4 changes: 2 additions & 2 deletions ci/azure/azure-intel-19-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ stages:
dockerComposeCommand: 'run ubuntu-cpp-clean'
- task: Bash@3
displayName: Prepare comment with compilation errors and warnings
condition: succeededOrFailed()
condition: and(succeededOrFailed(), eq(variables['Build.Reason'], 'PullRequest'))
inputs:
targetType: 'inline'
# Maximum length of the comment body is 65536 characters.
Expand Down Expand Up @@ -153,7 +153,7 @@ stages:
echo "##vso[task.setvariable variable=comp_errs_warns;]$comment_body"
- task: GitHubComment@0
displayName: Put warnings and errors in PR comment
condition: and(succeededOrFailed(), ne(variables['comp_errs_warns'], ''))
condition: and(succeededOrFailed(), and(eq(variables['Build.Reason'], 'PullRequest'), ne(variables['comp_errs_warns'], '')))
inputs:
gitHubConnection: 'DARMA-tasking'
repositoryName: $(Build.Repository.Name)
Expand Down
4 changes: 2 additions & 2 deletions ci/azure/azure-nvidia-10-ubuntu-mpich-extended.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ stages:
dockerComposeCommand: 'run ubuntu-cpp-clean'
- task: Bash@3
displayName: Prepare comment with compilation errors and warnings
condition: succeededOrFailed()
condition: and(succeededOrFailed(), eq(variables['Build.Reason'], 'PullRequest'))
inputs:
targetType: 'inline'
# Maximum length of the comment body is 65536 characters.
Expand Down Expand Up @@ -147,7 +147,7 @@ stages:
echo "##vso[task.setvariable variable=comp_errs_warns;]$comment_body"
- task: GitHubComment@0
displayName: Put warnings and errors in PR comment
condition: and(succeededOrFailed(), ne(variables['comp_errs_warns'], ''))
condition: and(succeededOrFailed(), and(eq(variables['Build.Reason'], 'PullRequest'), ne(variables['comp_errs_warns'], '')))
inputs:
gitHubConnection: 'DARMA-tasking'
repositoryName: $(Build.Repository.Name)
Expand Down
4 changes: 2 additions & 2 deletions ci/azure/azure-nvidia-10-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ stages:
dockerComposeCommand: 'run ubuntu-cpp-clean'
- task: Bash@3
displayName: Prepare comment with compilation errors and warnings
condition: succeededOrFailed()
condition: and(succeededOrFailed(), eq(variables['Build.Reason'], 'PullRequest'))
inputs:
targetType: 'inline'
# Maximum length of the comment body is 65536 characters.
Expand Down Expand Up @@ -153,7 +153,7 @@ stages:
echo "##vso[task.setvariable variable=comp_errs_warns;]$comment_body"
- task: GitHubComment@0
displayName: Put warnings and errors in PR comment
condition: and(succeededOrFailed(), ne(variables['comp_errs_warns'], ''))
condition: and(succeededOrFailed(), and(eq(variables['Build.Reason'], 'PullRequest'), ne(variables['comp_errs_warns'], '')))
inputs:
gitHubConnection: 'DARMA-tasking'
repositoryName: $(Build.Repository.Name)
Expand Down
4 changes: 2 additions & 2 deletions ci/azure/azure-nvidia-11-ubuntu-mpich-extended.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ stages:
dockerComposeCommand: 'run ubuntu-cpp-clean'
- task: Bash@3
displayName: Prepare comment with compilation errors and warnings
condition: succeededOrFailed()
condition: and(succeededOrFailed(), eq(variables['Build.Reason'], 'PullRequest'))
inputs:
targetType: 'inline'
# Maximum length of the comment body is 65536 characters.
Expand Down Expand Up @@ -147,7 +147,7 @@ stages:
echo "##vso[task.setvariable variable=comp_errs_warns;]$comment_body"
- task: GitHubComment@0
displayName: Put warnings and errors in PR comment
condition: and(succeededOrFailed(), ne(variables['comp_errs_warns'], ''))
condition: and(succeededOrFailed(), and(eq(variables['Build.Reason'], 'PullRequest'), ne(variables['comp_errs_warns'], '')))
inputs:
gitHubConnection: 'DARMA-tasking'
repositoryName: $(Build.Repository.Name)
Expand Down
4 changes: 2 additions & 2 deletions ci/azure/azure-nvidia-11-ubuntu-mpich.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ stages:
dockerComposeCommand: 'run ubuntu-cpp-clean'
- task: Bash@3
displayName: Prepare comment with compilation errors and warnings
condition: succeededOrFailed()
condition: and(succeededOrFailed(), eq(variables['Build.Reason'], 'PullRequest'))
inputs:
targetType: 'inline'
# Maximum length of the comment body is 65536 characters.
Expand Down Expand Up @@ -153,7 +153,7 @@ stages:
echo "##vso[task.setvariable variable=comp_errs_warns;]$comment_body"
- task: GitHubComment@0
displayName: Put warnings and errors in PR comment
condition: and(succeededOrFailed(), ne(variables['comp_errs_warns'], ''))
condition: and(succeededOrFailed(), and(eq(variables['Build.Reason'], 'PullRequest'), ne(variables['comp_errs_warns'], '')))
inputs:
gitHubConnection: 'DARMA-tasking'
repositoryName: $(Build.Repository.Name)
Expand Down
4 changes: 2 additions & 2 deletions scripts/azure-workflow-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ stages:
dockerComposeCommand: 'run [% docker_target %]'
- task: Bash@3
displayName: Prepare comment with compilation errors and warnings
condition: succeededOrFailed()
condition: and(succeededOrFailed(), eq(variables['Build.Reason'], 'PullRequest'))
inputs:
targetType: 'inline'
# Maximum length of the comment body is 65536 characters.
Expand Down Expand Up @@ -143,7 +143,7 @@ stages:
echo "##vso[task.setvariable variable=comp_errs_warns;]$comment_body"
- task: GitHubComment@0
displayName: Put warnings and errors in PR comment
condition: and(succeededOrFailed(), ne(variables['comp_errs_warns'], ''))
condition: and(succeededOrFailed(), and(eq(variables['Build.Reason'], 'PullRequest'), ne(variables['comp_errs_warns'], '')))
inputs:
gitHubConnection: 'DARMA-tasking'
repositoryName: $(Build.Repository.Name)
Expand Down

0 comments on commit 14ecb0e

Please sign in to comment.