Skip to content

Commit 205e05b

Browse files
committed
CI: Add gitter failure notifications to all jobs
1 parent 75fd7fa commit 205e05b

File tree

1 file changed

+41
-19
lines changed

1 file changed

+41
-19
lines changed

.circleci/config.yml

Lines changed: 41 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
@@ -396,6 +399,7 @@ jobs:
396399
- run:
397400
name: Check spelling
398401
command: ~/.local/bin/codespell -S "*.enc,.git,Dockerfile*" -I ./scripts/codespell_whitelist.txt
402+
- gitter_notify_failure_unless_pr
399403

400404
chk_docs_examples:
401405
<<: *base_node_latest
@@ -409,6 +413,7 @@ jobs:
409413
- run:
410414
name: Test Docs examples
411415
command: ./test/docsCodeStyle.sh
416+
- gitter_notify_failure_unless_pr
412417

413418
chk_coding_style:
414419
<<: *base_buildpack_focal
@@ -426,6 +431,7 @@ jobs:
426431
- run:
427432
name: Check for broken symlinks
428433
command: ./scripts/check_symlinks.sh
434+
- gitter_notify_failure_unless_pr
429435

430436
chk_errorcodes:
431437
<<: *base_python
@@ -434,6 +440,7 @@ jobs:
434440
- run:
435441
name: Check for error codes
436442
command: ./scripts/error_codes.py --check
443+
- gitter_notify_failure_unless_pr
437444

438445
chk_pylint:
439446
<<: *base_buildpack_focal
@@ -449,6 +456,7 @@ jobs:
449456
- run:
450457
name: Linting Python Scripts
451458
command: ./scripts/pylint_all.py
459+
- gitter_notify_failure_unless_pr
452460

453461
chk_antlr_grammar:
454462
<<: *base_buildpack_focal
@@ -460,6 +468,7 @@ jobs:
460468
- run:
461469
name: Run tests
462470
command: ./scripts/test_antlr_grammar.sh
471+
- gitter_notify_failure_unless_pr
463472

464473
chk_buglist:
465474
<<: *base_node_latest
@@ -474,6 +483,7 @@ jobs:
474483
- run:
475484
name: Test buglist
476485
command: ./test/buglistTests.js
486+
- gitter_notify_failure_unless_pr
477487

478488
chk_proofs:
479489
<<: *base_buildpack_latest
@@ -486,12 +496,14 @@ jobs:
486496
apt-get -qy install python3-pip
487497
pip3 install --user z3-solver
488498
- run: *run_proofs
499+
- gitter_notify_failure_unless_pr
489500

490501
chk_docs_pragma_min_version:
491502
<<: *base_ubuntu2004
492503
steps:
493504
- checkout
494505
- run: *run_docs_pragma_min_version
506+
- gitter_notify_failure_unless_pr
495507

496508
t_ubu_pyscripts:
497509
<<: *base_ubuntu2004
@@ -500,6 +512,7 @@ jobs:
500512
- run:
501513
name: Python unit tests
502514
command: python3 test/pyscriptTests.py
515+
- gitter_notify_failure_unless_pr
503516

504517
t_win_pyscripts:
505518
<<: *base_win_powershell
@@ -509,6 +522,7 @@ jobs:
509522
- run:
510523
name: Python unit tests
511524
command: python.exe test/pyscriptTests.py
525+
- gitter_notify_failure_unless_pr
512526

513527
b_ubu: &b_ubu
514528
<<: *base_ubuntu2004_xlarge
@@ -519,6 +533,7 @@ jobs:
519533
- store_artifacts: *artifact_solidity_upgrade
520534
- store_artifacts: *artifact_yul_phaser
521535
- persist_to_workspace: *artifacts_executables
536+
- gitter_notify_failure_unless_pr
522537

523538
# x64 ASAN build, for testing for memory related bugs
524539
b_ubu_asan: &b_ubu_asan
@@ -532,6 +547,7 @@ jobs:
532547
- run: *run_build
533548
- store_artifacts: *artifacts_solc
534549
- persist_to_workspace: *artifacts_executables
550+
- gitter_notify_failure_unless_pr
535551

536552
b_ubu_clang: &b_ubu_clang
537553
<<: *base_ubuntu2004_clang_xlarge
@@ -540,6 +556,7 @@ jobs:
540556
- run: *run_build
541557
- store_artifacts: *artifacts_solc
542558
- persist_to_workspace: *artifacts_executables
559+
- gitter_notify_failure_unless_pr
543560

544561
b_ubu_asan_clang: &b_ubu_asan_clang
545562
<<: *base_ubuntu2004_clang
@@ -553,6 +570,7 @@ jobs:
553570
- run: *run_build
554571
- store_artifacts: *artifacts_solc
555572
- persist_to_workspace: *artifacts_executables
573+
- gitter_notify_failure_unless_pr
556574

557575
b_ubu_ubsan_clang: &b_ubu_ubsan_clang
558576
<<: *base_ubuntu2004_clang
@@ -586,6 +604,7 @@ jobs:
586604
name: strip binary
587605
command: strip build/solc/solc
588606
- store_artifacts: *artifacts_solc
607+
- gitter_notify_failure_unless_pr
589608

590609
b_ubu_codecov:
591610
<<: *base_ubuntu2004_xlarge
@@ -597,6 +616,7 @@ jobs:
597616
- checkout
598617
- run: *run_build
599618
- persist_to_workspace: *artifacts_executables
619+
- gitter_notify_failure_unless_pr
600620

601621
t_ubu_codecov:
602622
<<: *base_ubuntu2004
@@ -619,6 +639,7 @@ jobs:
619639
name: "Coverage: All"
620640
command: codecov --flags all --gcov-root build
621641
- store_artifacts: *artifacts_test_results
642+
- gitter_notify_failure_unless_pr
622643

623644
# Builds in C++20 mode and uses debug build in order to speed up.
624645
# Do *NOT* store any artifacts or workspace as we don't run tests on this build.
@@ -631,6 +652,7 @@ jobs:
631652
steps:
632653
- checkout
633654
- run: *run_build
655+
- gitter_notify_failure_unless_pr
634656

635657
b_ubu_ossfuzz: &b_ubu_ossfuzz
636658
<<: *base_ubuntu1604_clang
@@ -639,6 +661,7 @@ jobs:
639661
- run: *setup_prerelease_commit_hash
640662
- run: *run_build_ossfuzz
641663
- persist_to_workspace: *artifacts_executables_ossfuzz
664+
- gitter_notify_failure_unless_pr
642665

643666
t_ubu_ossfuzz: &t_ubu_ossfuzz
644667
<<: *base_ubuntu1604_clang
@@ -671,6 +694,7 @@ jobs:
671694
- run: *run_build
672695
- store_artifacts: *artifacts_solc
673696
- persist_to_workspace: *artifacts_executables
697+
- gitter_notify_failure_unless_pr
674698

675699
b_osx:
676700
<<: *base_osx
@@ -707,6 +731,7 @@ jobs:
707731
- build/solc/solc
708732
- build/test/soltest
709733
- build/test/tools/solfuzzer
734+
- gitter_notify_failure_unless_pr
710735

711736
t_osx_soltest:
712737
<<: *base_osx
@@ -724,6 +749,7 @@ jobs:
724749
- run: *run_soltest
725750
- store_test_results: *store_test_results
726751
- store_artifacts: *artifacts_test_results
752+
- gitter_notify_failure_unless_pr
727753

728754
t_osx_cli:
729755
<<: *base_osx
@@ -736,6 +762,7 @@ jobs:
736762
at: .
737763
- run: *run_cmdline_tests
738764
- store_artifacts: *artifacts_test_results
765+
- gitter_notify_failure_unless_pr
739766

740767
b_ems:
741768
<<: *base_ems_xlarge
@@ -756,6 +783,7 @@ jobs:
756783
paths:
757784
- soljson.js
758785
- version.txt
786+
- gitter_notify_failure_unless_pr
759787

760788
b_docs:
761789
<<: *base_ubuntu2004
@@ -768,6 +796,7 @@ jobs:
768796
- store_artifacts:
769797
path: docs/_build/html/
770798
destination: docs-html
799+
- gitter_notify_failure_unless_pr
771800

772801
t_ubu_soltest_all: &t_ubu_soltest_all
773802
<<: *base_ubuntu2004
@@ -850,19 +879,11 @@ jobs:
850879
<<: *base_ubuntu2004_clang
851880
environment:
852881
EVM: << pipeline.parameters.evm-version >>
853-
steps:
854-
- when:
855-
condition: true
856-
<<: *steps_soltest
857-
- gitter_notify_failure_unless_pr
882+
<<: *steps_soltest
858883

859884
t_ubu_ubsan_clang_cli:
860885
<<: *base_ubuntu2004_clang
861-
steps:
862-
- when:
863-
condition: true
864-
<<: *steps_cmdline_tests
865-
- gitter_notify_failure_unless_pr
886+
<<: *steps_cmdline_tests
866887

867888
t_ems_solcjs:
868889
<<: *base_ubuntu2004
@@ -882,6 +903,7 @@ jobs:
882903
node --version
883904
npm --version
884905
test/externalTests/solc-js/solc-js.sh /tmp/workspace/soljson.js $(cat /tmp/workspace/version.txt)
906+
- gitter_notify_failure_unless_pr
885907

886908
t_ems_ext_hardhat:
887909
<<: *base_node_latest
@@ -907,6 +929,7 @@ jobs:
907929
# NOTE: This is expected to work without running `yarn build` first.
908930
cd hardhat/packages/hardhat-core
909931
yarn test
932+
- gitter_notify_failure_unless_pr
910933

911934
t_ems_ext:
912935
parameters:
@@ -918,9 +941,6 @@ jobs:
918941
nodejs_version:
919942
type: integer
920943
default: 14
921-
gitter_notify:
922-
type: boolean
923-
default: no
924944
docker:
925945
- image: circleci/node:<<parameters.nodejs_version>>
926946
environment:
@@ -939,11 +959,7 @@ jobs:
939959
name: External <<parameters.project>> tests
940960
command: |
941961
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
962+
- gitter_notify_failure_unless_pr
947963

948964
b_win: &b_win
949965
<<: *base_win_powershell
@@ -974,6 +990,7 @@ jobs:
974990
paths:
975991
- .\solc\*\solc.exe
976992
- .\test\*\soltest.exe
993+
- gitter_notify_failure_unless_pr
977994

978995
b_win_release:
979996
<<: *b_win
@@ -996,6 +1013,7 @@ jobs:
9961013
command: .circleci/soltest.ps1
9971014
- store_test_results: *store_test_results
9981015
- store_artifacts: *artifacts_test_results
1016+
- gitter_notify_failure_unless_pr
9991017

10001018
t_win_release_soltest:
10011019
<<: *t_win_soltest
@@ -1019,6 +1037,7 @@ jobs:
10191037
paths:
10201038
- bytecode-report-ubuntu-json.txt
10211039
- bytecode-report-ubuntu-cli.txt
1040+
- gitter_notify_failure_unless_pr
10221041

10231042
b_bytecode_osx:
10241043
<<: *base_osx
@@ -1039,6 +1058,7 @@ jobs:
10391058
paths:
10401059
- bytecode-report-osx-json.txt
10411060
- bytecode-report-osx-cli.txt
1061+
- gitter_notify_failure_unless_pr
10421062

10431063
b_bytecode_win:
10441064
<<: *base_win_cmd
@@ -1062,6 +1082,7 @@ jobs:
10621082
paths:
10631083
- bytecode-report-windows-json.txt
10641084
- bytecode-report-windows-cli.txt
1085+
- gitter_notify_failure_unless_pr
10651086

10661087
b_bytecode_ems:
10671088
<<: *base_node_latest
@@ -1078,6 +1099,7 @@ jobs:
10781099
root: .
10791100
paths:
10801101
- bytecode-report-emscripten.txt
1102+
- gitter_notify_failure_unless_pr
10811103

10821104
t_bytecode_compare:
10831105
<<: *base_ubuntu2004
@@ -1114,6 +1136,7 @@ jobs:
11141136
# NOTE: store_artifacts does not support the 'when' attribute.
11151137
# Fortunately when the artifact does not exist it just says "No artifact files found" and ignores it.
11161138
path: all-bytecode-reports.zip
1139+
- gitter_notify_failure_unless_pr
11171140

11181141
workflows:
11191142
version: 2
@@ -1284,4 +1307,3 @@ workflows:
12841307
<<: *workflow_emscripten
12851308
name: t_ems_test_ext_colony
12861309
project: colony
1287-
gitter_notify: yes

0 commit comments

Comments
 (0)