Skip to content

Commit b77d345

Browse files
committed
Refactor and add gitter notification for UBSan test CIs.
1 parent 0b9fc21 commit b77d345

File tree

1 file changed

+30
-11
lines changed

1 file changed

+30
-11
lines changed

.circleci/config.yml

Lines changed: 30 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ jobs:
434434
name: Python unit tests
435435
command: python.exe test/pyscriptTests.py
436436

437-
b_ubu_clang: &build_ubuntu2004_clang
437+
b_ubu_clang: &b_ubu_clang
438438
resource_class: xlarge
439439
docker:
440440
- image: << pipeline.parameters.ubuntu-2004-clang-docker-image >>
@@ -473,10 +473,11 @@ jobs:
473473
steps:
474474
- checkout
475475
- run: *run_build
476+
- run: *gitter_notify_failure
476477
- store_artifacts: *artifacts_solc
477478
- persist_to_workspace: *artifacts_executables
478479

479-
b_ubu: &build_ubuntu2004
480+
b_ubu: &b_ubu
480481
resource_class: xlarge
481482
docker:
482483
- image: << pipeline.parameters.ubuntu-2004-docker-image >>
@@ -489,14 +490,14 @@ jobs:
489490
- store_artifacts: *artifacts_tools
490491
- persist_to_workspace: *artifacts_executables
491492

492-
b_ubu_release: &build_ubuntu2004_release
493-
<<: *build_ubuntu2004
493+
b_ubu_release: &b_ubu_release
494+
<<: *b_ubu
494495
environment:
495496
FORCE_RELEASE: ON
496497
MAKEFLAGS: -j 10
497498

498499
b_ubu_static:
499-
<<: *build_ubuntu2004
500+
<<: *b_ubu
500501
environment:
501502
MAKEFLAGS: -j 10
502503
CMAKE_OPTIONS: -DCMAKE_BUILD_TYPE=Release -DUSE_Z3_DLOPEN=ON -DUSE_CVC4=OFF -DSOLC_STATIC_STDLIBS=ON
@@ -509,7 +510,7 @@ jobs:
509510
- store_artifacts: *artifacts_solc
510511

511512
b_ubu_codecov:
512-
<<: *build_ubuntu2004
513+
<<: *b_ubu
513514
environment:
514515
COVERAGE: ON
515516
CMAKE_BUILD_TYPE: Debug
@@ -543,7 +544,7 @@ jobs:
543544
# Builds in C++20 mode and uses debug build in order to speed up.
544545
# Do *NOT* store any artifacts or workspace as we don't run tests on this build.
545546
b_ubu_cxx20:
546-
<<: *build_ubuntu2004
547+
<<: *b_ubu
547548
environment:
548549
CMAKE_BUILD_TYPE: Debug
549550
CMAKE_OPTIONS: -DCMAKE_CXX_STANDARD=20 -DUSE_CVC4=OFF
@@ -552,7 +553,7 @@ jobs:
552553
- checkout
553554
- run: *run_build
554555

555-
b_ubu_ossfuzz: &build_ubuntu1604_clang
556+
b_ubu_ossfuzz: &b_ubu_ossfuzz
556557
docker:
557558
- image: << pipeline.parameters.ubuntu-1604-clang-ossfuzz-docker-image >>
558559
environment:
@@ -697,7 +698,7 @@ jobs:
697698

698699
# x64 ASAN build, for testing for memory related bugs
699700
b_ubu_asan: &b_ubu_asan
700-
<<: *build_ubuntu2004
701+
<<: *b_ubu
701702
environment:
702703
CMAKE_OPTIONS: -DSANITIZE=address
703704
MAKEFLAGS: -j 10
@@ -811,10 +812,28 @@ jobs:
811812
ASAN_OPTIONS: check_initialization_order=true:detect_stack_use_after_return=true:strict_init_order=true:strict_string_checks=true:detect_invalid_pointer_pairs=2
812813

813814
t_ubu_ubsan_clang:
814-
<<: *test_ubuntu2004_clang
815+
docker:
816+
- image: << pipeline.parameters.ubuntu-2004-clang-docker-image >>
817+
steps:
818+
- checkout
819+
- attach_workspace:
820+
at: build
821+
- run: *run_soltest
822+
- run: *gitter_notify_failure
823+
- store_test_results: *store_test_results
824+
- store_artifacts: *artifacts_test_results
815825

816826
t_ubu_ubsan_clang_cli:
817-
<<: *test_ubuntu2004_clang_cli
827+
docker:
828+
- image: << pipeline.parameters.ubuntu-2004-clang-docker-image >>
829+
steps:
830+
- checkout
831+
- attach_workspace:
832+
at: build
833+
- run: *run_cmdline_tests
834+
- run: *gitter_notify_failure
835+
- store_test_results: *store_test_results
836+
- store_artifacts: *artifacts_test_results
818837

819838
t_ems_solcjs:
820839
docker:

0 commit comments

Comments
 (0)