Skip to content

Commit e4d304c

Browse files
committed
CI: Add failure notifications to all jobs that might be included in a nightly run
1 parent 63169f1 commit e4d304c

File tree

1 file changed

+14
-19
lines changed

1 file changed

+14
-19
lines changed

.circleci/config.yml

Lines changed: 14 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ defaults:
189189
- run: *run_soltest
190190
- store_test_results: *store_test_results
191191
- store_artifacts: *artifacts_test_results
192+
- gitter_notify_failure_unless_pr
192193

193194
- steps_soltest_all: &steps_soltest_all
194195
steps:
@@ -198,6 +199,7 @@ defaults:
198199
- run: *run_soltest_all
199200
- store_test_results: *store_test_results
200201
- store_artifacts: *artifacts_test_results
202+
- gitter_notify_failure_unless_pr
201203

202204
- steps_cmdline_tests: &steps_cmdline_tests
203205
steps:
@@ -207,6 +209,7 @@ defaults:
207209
- run: *run_cmdline_tests
208210
- store_test_results: *store_test_results
209211
- store_artifacts: *artifacts_test_results
212+
- gitter_notify_failure_unless_pr
210213

211214
# --------------------------------------------------------------------------
212215
# Base Image Templates
@@ -532,6 +535,7 @@ jobs:
532535
- run: *run_build
533536
- store_artifacts: *artifacts_solc
534537
- persist_to_workspace: *artifacts_executables
538+
- gitter_notify_failure_unless_pr
535539

536540
b_ubu_clang: &b_ubu_clang
537541
<<: *base_ubuntu2004_clang_xlarge
@@ -553,6 +557,7 @@ jobs:
553557
- run: *run_build
554558
- store_artifacts: *artifacts_solc
555559
- persist_to_workspace: *artifacts_executables
560+
- gitter_notify_failure_unless_pr
556561

557562
b_ubu_ubsan_clang: &b_ubu_ubsan_clang
558563
<<: *base_ubuntu2004_clang
@@ -597,6 +602,7 @@ jobs:
597602
- checkout
598603
- run: *run_build
599604
- persist_to_workspace: *artifacts_executables
605+
- gitter_notify_failure_unless_pr
600606

601607
t_ubu_codecov:
602608
<<: *base_ubuntu2004
@@ -619,6 +625,7 @@ jobs:
619625
name: "Coverage: All"
620626
command: codecov --flags all --gcov-root build
621627
- store_artifacts: *artifacts_test_results
628+
- gitter_notify_failure_unless_pr
622629

623630
# Builds in C++20 mode and uses debug build in order to speed up.
624631
# Do *NOT* store any artifacts or workspace as we don't run tests on this build.
@@ -639,6 +646,7 @@ jobs:
639646
- run: *setup_prerelease_commit_hash
640647
- run: *run_build_ossfuzz
641648
- persist_to_workspace: *artifacts_executables_ossfuzz
649+
- gitter_notify_failure_unless_pr
642650

643651
t_ubu_ossfuzz: &t_ubu_ossfuzz
644652
<<: *base_ubuntu1604_clang
@@ -756,6 +764,7 @@ jobs:
756764
paths:
757765
- soljson.js
758766
- version.txt
767+
- gitter_notify_failure_unless_pr
759768

760769
b_docs:
761770
<<: *base_ubuntu2004
@@ -850,19 +859,11 @@ jobs:
850859
<<: *base_ubuntu2004_clang
851860
environment:
852861
EVM: << pipeline.parameters.evm-version >>
853-
steps:
854-
- when:
855-
condition: true
856-
<<: *steps_soltest
857-
- gitter_notify_failure_unless_pr
862+
<<: *steps_soltest
858863

859864
t_ubu_ubsan_clang_cli:
860865
<<: *base_ubuntu2004_clang
861-
steps:
862-
- when:
863-
condition: true
864-
<<: *steps_cmdline_tests
865-
- gitter_notify_failure_unless_pr
866+
<<: *steps_cmdline_tests
866867

867868
t_ems_solcjs:
868869
<<: *base_ubuntu2004
@@ -918,9 +919,6 @@ jobs:
918919
nodejs_version:
919920
type: integer
920921
default: 14
921-
gitter_notify:
922-
type: boolean
923-
default: no
924922
docker:
925923
- image: circleci/node:<<parameters.nodejs_version>>
926924
environment:
@@ -939,11 +937,7 @@ jobs:
939937
name: External <<parameters.project>> tests
940938
command: |
941939
test/externalTests/<<parameters.project>>.sh /tmp/workspace/soljson.js
942-
- when:
943-
condition: <<parameters.gitter_notify>>
944-
steps:
945-
- gitter_notify_failure_unless_pr
946-
- gitter_notify_success_unless_pr
940+
- gitter_notify_failure_unless_pr
947941

948942
b_win: &b_win
949943
<<: *base_win_powershell
@@ -1258,6 +1252,8 @@ workflows:
12581252
- develop
12591253

12601254
jobs:
1255+
# NOTE: Any job added here should contain the gitter_notify_failure_unless_pr step
1256+
12611257
# OSSFUZZ builds and (regression) tests
12621258
- b_ubu_ossfuzz: *workflow_trigger_on_tags
12631259
- t_ubu_ossfuzz: *workflow_ubuntu1604_ossfuzz
@@ -1284,4 +1280,3 @@ workflows:
12841280
<<: *workflow_emscripten
12851281
name: t_ems_test_ext_colony
12861282
project: colony
1287-
gitter_notify: yes

0 commit comments

Comments
 (0)