From 437a41f1e058d6439963d4794093e863c92b3312 Mon Sep 17 00:00:00 2001 From: Zeph Grunschlag Date: Fri, 12 May 2023 09:37:01 -0500 Subject: [PATCH 01/12] notify slack --- .circleci/config.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 7d3f994f8..e48f7b7a4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -48,6 +48,7 @@ jobs: environment: CI_E2E_FILENAME: "fa6ad40d/rel-nightly" steps: + - fail_intentionally - go/install: version: << parameters.go_version >> - install_dependencies @@ -56,6 +57,11 @@ jobs: # Change this to run_e2e_tests once we have stable algod binaries containing delta APIs - run_e2e_tests_nightly - codecov/upload + - slack/notify: + channel: "#lamprey-builds" + event: fail + template: basic_fail_1 + test_nightly: machine: image: << pipeline.parameters.ubuntu_image >> @@ -108,6 +114,13 @@ jobs: } commands: + fail_intentionally: + description: Fail intentionally + steps: + - run: + name: Fail intentionally + command: exit 1 + install_dependencies: description: prepare machine for next steps steps: From 3d33107dc94c3d0639f8226ab8dd0512adab491d Mon Sep 17 00:00:00 2001 From: Zeph Grunschlag Date: Fri, 12 May 2023 09:59:07 -0500 Subject: [PATCH 02/12] tg --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e48f7b7a4..23440373e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -57,7 +57,7 @@ jobs: # Change this to run_e2e_tests once we have stable algod binaries containing delta APIs - run_e2e_tests_nightly - codecov/upload - - slack/notify: + - slack/notify: &slack-fail-event channel: "#lamprey-builds" event: fail template: basic_fail_1 From 1b1220d5682ba8008c7dcbe123543c37f47afc4f Mon Sep 17 00:00:00 2001 From: Zeph Grunschlag Date: Fri, 12 May 2023 10:09:05 -0500 Subject: [PATCH 03/12] tg --- .circleci/config.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 23440373e..1ebb67524 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -60,7 +60,18 @@ jobs: - slack/notify: &slack-fail-event channel: "#lamprey-builds" event: fail - template: basic_fail_1 + custom: | + { + "blocks": [ + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "Failed: <$CIRCLE_BUILD_URL|$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME>\n() \n- <$CIRCLE_BUILD_URL|$CIRCLE_JOB> failed\n\n" + } + } + ] + } test_nightly: machine: From cc7ed5839c2f283f7d9aa3695db60faf949436c8 Mon Sep 17 00:00:00 2001 From: Zeph Grunschlag Date: Fri, 12 May 2023 10:16:16 -0500 Subject: [PATCH 04/12] tg --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1ebb67524..eeb822ff4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -58,7 +58,7 @@ jobs: - run_e2e_tests_nightly - codecov/upload - slack/notify: &slack-fail-event - channel: "#lamprey-builds" + # channel: "#lamprey-builds" event: fail custom: | { From 324e3e99a419527d12e2ca2209cf33f639173921 Mon Sep 17 00:00:00 2001 From: Zeph Grunschlag Date: Fri, 12 May 2023 10:19:51 -0500 Subject: [PATCH 05/12] tg --- .circleci/config.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index eeb822ff4..fcca34767 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -16,6 +16,7 @@ workflows: jobs: - test: name: test_with_go_<< matrix.go_version >> + context: slack-secrets matrix: &go-version-matrix parameters: go_version: ["1.17.9"] @@ -58,7 +59,7 @@ jobs: - run_e2e_tests_nightly - codecov/upload - slack/notify: &slack-fail-event - # channel: "#lamprey-builds" + channel: "#lamprey-builds" event: fail custom: | { From d6519be4973a53ab4d7609f953ce93e16d3bc04e Mon Sep 17 00:00:00 2001 From: Zeph Grunschlag Date: Fri, 12 May 2023 10:23:24 -0500 Subject: [PATCH 06/12] tg --- .circleci/config.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index fcca34767..de635a783 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -58,7 +58,7 @@ jobs: # Change this to run_e2e_tests once we have stable algod binaries containing delta APIs - run_e2e_tests_nightly - codecov/upload - - slack/notify: &slack-fail-event + - slack/notify: channel: "#lamprey-builds" event: fail custom: | @@ -68,7 +68,7 @@ jobs: "type": "section", "text": { "type": "mrkdwn", - "text": "Failed: <$CIRCLE_BUILD_URL|$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME>\n() \n- <$CIRCLE_BUILD_URL|$CIRCLE_JOB> failed\n\n" + "text": "Intentional FAIL for experimental purposes: <$CIRCLE_BUILD_URL|$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME>\n() \n- <$CIRCLE_BUILD_URL|$CIRCLE_JOB> failed\n\n" } } ] @@ -91,6 +91,7 @@ jobs: - run_e2e_tests_nightly - codecov/upload - slack/notify: &slack-fail-event + channel: "#lamprey-builds" event: fail custom: | { @@ -111,6 +112,7 @@ jobs: - install_dependencies - run_indexer_vs_algod - slack/notify: &slack-fail-event + channel: "#lamprey-builds" event: fail custom: | { From bfc6cf71cdb93dc4fc57b6f41c55af6c83d01331 Mon Sep 17 00:00:00 2001 From: Zeph Grunschlag Date: Fri, 12 May 2023 12:48:04 -0500 Subject: [PATCH 07/12] testing: notify #lamprey-builds instead of #dev-alerts --- .circleci/config.yml | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index de635a783..f3eb30a93 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -16,7 +16,6 @@ workflows: jobs: - test: name: test_with_go_<< matrix.go_version >> - context: slack-secrets matrix: &go-version-matrix parameters: go_version: ["1.17.9"] @@ -49,7 +48,6 @@ jobs: environment: CI_E2E_FILENAME: "fa6ad40d/rel-nightly" steps: - - fail_intentionally - go/install: version: << parameters.go_version >> - install_dependencies @@ -58,21 +56,6 @@ jobs: # Change this to run_e2e_tests once we have stable algod binaries containing delta APIs - run_e2e_tests_nightly - codecov/upload - - slack/notify: - channel: "#lamprey-builds" - event: fail - custom: | - { - "blocks": [ - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "Intentional FAIL for experimental purposes: <$CIRCLE_BUILD_URL|$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME>\n() \n- <$CIRCLE_BUILD_URL|$CIRCLE_JOB> failed\n\n" - } - } - ] - } test_nightly: machine: @@ -128,13 +111,6 @@ jobs: } commands: - fail_intentionally: - description: Fail intentionally - steps: - - run: - name: Fail intentionally - command: exit 1 - install_dependencies: description: prepare machine for next steps steps: From 5f5d3549ce0f47b9b315eb5fbbfe7ed471219698 Mon Sep 17 00:00:00 2001 From: Zeph Grunschlag Date: Fri, 12 May 2023 12:52:58 -0500 Subject: [PATCH 08/12] Update .circleci/config.yml --- .circleci/config.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index f3eb30a93..15603e9fd 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -56,7 +56,6 @@ jobs: # Change this to run_e2e_tests once we have stable algod binaries containing delta APIs - run_e2e_tests_nightly - codecov/upload - test_nightly: machine: image: << pipeline.parameters.ubuntu_image >> From 33fa2f386e763a8e17dff962cd7c405fd53953c4 Mon Sep 17 00:00:00 2001 From: Zeph Grunschlag Date: Fri, 12 May 2023 13:09:18 -0500 Subject: [PATCH 09/12] =?UTF-8?q?=F0=9F=90=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 15603e9fd..67ab428c7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -54,7 +54,7 @@ jobs: - install_linter - run_tests # Change this to run_e2e_tests once we have stable algod binaries containing delta APIs - - run_e2e_tests_nightly + # - run_e2e_tests_nightly - codecov/upload test_nightly: machine: From 8d745da66fce7b86ede19ca19ad313e9a5a9e4d9 Mon Sep 17 00:00:00 2001 From: Zeph Grunschlag Date: Fri, 12 May 2023 14:50:41 -0500 Subject: [PATCH 10/12] Use `context: lamprey-secrets` which connects to `lamprey-notify` slack app --- .circleci/config.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 67ab428c7..0231c451e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -30,13 +30,13 @@ workflows: jobs: - test_nightly: name: nightly_test_with_go_<< matrix.go_version >> - context: slack-secrets + context: lamprey-secrets matrix: &go-version-matrix parameters: go_version: ["1.17.9"] - indexer_vs_algod_nightly: name: nightly_test_indexer_vs_algod - context: slack-secrets + context: lamprey-secrets jobs: test: @@ -73,7 +73,6 @@ jobs: - run_e2e_tests_nightly - codecov/upload - slack/notify: &slack-fail-event - channel: "#lamprey-builds" event: fail custom: | { @@ -94,7 +93,6 @@ jobs: - install_dependencies - run_indexer_vs_algod - slack/notify: &slack-fail-event - channel: "#lamprey-builds" event: fail custom: | { From cae41321b4d8956d3053afb081fdc31c335714c8 Mon Sep 17 00:00:00 2001 From: Zeph Grunschlag Date: Fri, 12 May 2023 15:08:58 -0500 Subject: [PATCH 11/12] latest codecov --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0231c451e..21d8bcb95 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,7 +3,7 @@ version: 2.1 orbs: go: circleci/go@1.7.0 slack: circleci/slack@4.7.1 - codecov: codecov/codecov@3.1.1 + codecov: codecov/codecov@3.2.4 parameters: ubuntu_image: From a379f9ab9ee3db1851fbd2b2ad1e82a7375901d1 Mon Sep 17 00:00:00 2001 From: Zeph Grunschlag Date: Fri, 12 May 2023 15:56:09 -0500 Subject: [PATCH 12/12] apply Eric's suggestion --- .circleci/config.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 21d8bcb95..e874a70de 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -73,6 +73,7 @@ jobs: - run_e2e_tests_nightly - codecov/upload - slack/notify: &slack-fail-event + channel: C056CK9PYRY # #lamprey-builds event: fail custom: | { @@ -93,6 +94,7 @@ jobs: - install_dependencies - run_indexer_vs_algod - slack/notify: &slack-fail-event + channel: C056CK9PYRY # #lamprey-builds event: fail custom: | {