From d48f3130ea0fd225176419a77a62e19e0bedade9 Mon Sep 17 00:00:00 2001 From: Gary Verhaegen Date: Thu, 4 Jan 2024 19:07:31 +0100 Subject: [PATCH] tell team-canton-notifications on canton update failures (#18086) --- ci/bash-lib.yml | 2 +- ci/cron/daily-compat.yml | 2 +- ci/prs.yml | 7 +++++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/ci/bash-lib.yml b/ci/bash-lib.yml index ebbf0d736d..2c27be3991 100644 --- a/ci/bash-lib.yml +++ b/ci/bash-lib.yml @@ -46,7 +46,7 @@ steps: git -c user.name="Azure Pipelines Daml Build" \ -c user.email="support@digitalasset.com" \ commit \ - -m "$(printf "$title\n\n$body\n\nCHANGELOG_BEGIN\nCHANGELOG_END\n")" + -m "$(printf "$title\n\n$body\n")" git push origin $branch:$branch jq -n --arg title "$title" \ --arg branch "$branch" \ diff --git a/ci/cron/daily-compat.yml b/ci/cron/daily-compat.yml index dfa348c172..11250b7503 100644 --- a/ci/cron/daily-compat.yml +++ b/ci/cron/daily-compat.yml @@ -277,7 +277,7 @@ jobs: else if [ "main" = "$(Build.SourceBranchName)" ]; then git add build.sh test-common/canton/BUILD.bazel - open_pr "$branch" "update canton to $canton_tag/$canton2_version/$canton3_version" + open_pr "$branch" "update canton to $canton_tag/$canton2_version/$canton3_version" "tell-slack: canton" az extension add --name azure-devops trap "az devops logout" EXIT echo "$(System.AccessToken)" | az devops login --org "https://dev.azure.com/digitalasset" diff --git a/ci/prs.yml b/ci/prs.yml index b53006d7a3..a3cf5aa5f4 100644 --- a/ci/prs.yml +++ b/ci/prs.yml @@ -115,8 +115,7 @@ jobs: - job: notify_user # No Slack tokens on forks - condition: and(eq(variables['Build.Reason'], 'PullRequest'), - not(canceled()), + condition: and(not(canceled()), eq(variables['System.PullRequest.IsFork'], 'False')) dependsOn: - git_sha @@ -142,6 +141,10 @@ jobs: tell_slack "<@${user}> for has completed with status $(build_status)." \ "$(Slack.team-daml-ci)" fi + if [ "$(git log -n1 --format="%(trailers:key=tell-slack,valueonly)" HEAD)" = "canton" ]; then + tell_slack " for has completed with status $(build_status)." \ + "$(Slack.team-canton-notifications)" + fi - job: self_service_compat_test pool: