mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
CI: Add gitter failure notifications to all jobs
This commit is contained in:
parent
75fd7fa93e
commit
205e05b8f1
@ -189,6 +189,7 @@ defaults:
|
|||||||
- run: *run_soltest
|
- run: *run_soltest
|
||||||
- store_test_results: *store_test_results
|
- store_test_results: *store_test_results
|
||||||
- store_artifacts: *artifacts_test_results
|
- store_artifacts: *artifacts_test_results
|
||||||
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
- steps_soltest_all: &steps_soltest_all
|
- steps_soltest_all: &steps_soltest_all
|
||||||
steps:
|
steps:
|
||||||
@ -198,6 +199,7 @@ defaults:
|
|||||||
- run: *run_soltest_all
|
- run: *run_soltest_all
|
||||||
- store_test_results: *store_test_results
|
- store_test_results: *store_test_results
|
||||||
- store_artifacts: *artifacts_test_results
|
- store_artifacts: *artifacts_test_results
|
||||||
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
- steps_cmdline_tests: &steps_cmdline_tests
|
- steps_cmdline_tests: &steps_cmdline_tests
|
||||||
steps:
|
steps:
|
||||||
@ -207,6 +209,7 @@ defaults:
|
|||||||
- run: *run_cmdline_tests
|
- run: *run_cmdline_tests
|
||||||
- store_test_results: *store_test_results
|
- store_test_results: *store_test_results
|
||||||
- store_artifacts: *artifacts_test_results
|
- store_artifacts: *artifacts_test_results
|
||||||
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
# Base Image Templates
|
# Base Image Templates
|
||||||
@ -396,6 +399,7 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Check spelling
|
name: Check spelling
|
||||||
command: ~/.local/bin/codespell -S "*.enc,.git,Dockerfile*" -I ./scripts/codespell_whitelist.txt
|
command: ~/.local/bin/codespell -S "*.enc,.git,Dockerfile*" -I ./scripts/codespell_whitelist.txt
|
||||||
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
chk_docs_examples:
|
chk_docs_examples:
|
||||||
<<: *base_node_latest
|
<<: *base_node_latest
|
||||||
@ -409,6 +413,7 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Test Docs examples
|
name: Test Docs examples
|
||||||
command: ./test/docsCodeStyle.sh
|
command: ./test/docsCodeStyle.sh
|
||||||
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
chk_coding_style:
|
chk_coding_style:
|
||||||
<<: *base_buildpack_focal
|
<<: *base_buildpack_focal
|
||||||
@ -426,6 +431,7 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Check for broken symlinks
|
name: Check for broken symlinks
|
||||||
command: ./scripts/check_symlinks.sh
|
command: ./scripts/check_symlinks.sh
|
||||||
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
chk_errorcodes:
|
chk_errorcodes:
|
||||||
<<: *base_python
|
<<: *base_python
|
||||||
@ -434,6 +440,7 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Check for error codes
|
name: Check for error codes
|
||||||
command: ./scripts/error_codes.py --check
|
command: ./scripts/error_codes.py --check
|
||||||
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
chk_pylint:
|
chk_pylint:
|
||||||
<<: *base_buildpack_focal
|
<<: *base_buildpack_focal
|
||||||
@ -449,6 +456,7 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Linting Python Scripts
|
name: Linting Python Scripts
|
||||||
command: ./scripts/pylint_all.py
|
command: ./scripts/pylint_all.py
|
||||||
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
chk_antlr_grammar:
|
chk_antlr_grammar:
|
||||||
<<: *base_buildpack_focal
|
<<: *base_buildpack_focal
|
||||||
@ -460,6 +468,7 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Run tests
|
name: Run tests
|
||||||
command: ./scripts/test_antlr_grammar.sh
|
command: ./scripts/test_antlr_grammar.sh
|
||||||
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
chk_buglist:
|
chk_buglist:
|
||||||
<<: *base_node_latest
|
<<: *base_node_latest
|
||||||
@ -474,6 +483,7 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Test buglist
|
name: Test buglist
|
||||||
command: ./test/buglistTests.js
|
command: ./test/buglistTests.js
|
||||||
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
chk_proofs:
|
chk_proofs:
|
||||||
<<: *base_buildpack_latest
|
<<: *base_buildpack_latest
|
||||||
@ -486,12 +496,14 @@ jobs:
|
|||||||
apt-get -qy install python3-pip
|
apt-get -qy install python3-pip
|
||||||
pip3 install --user z3-solver
|
pip3 install --user z3-solver
|
||||||
- run: *run_proofs
|
- run: *run_proofs
|
||||||
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
chk_docs_pragma_min_version:
|
chk_docs_pragma_min_version:
|
||||||
<<: *base_ubuntu2004
|
<<: *base_ubuntu2004
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run: *run_docs_pragma_min_version
|
- run: *run_docs_pragma_min_version
|
||||||
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
t_ubu_pyscripts:
|
t_ubu_pyscripts:
|
||||||
<<: *base_ubuntu2004
|
<<: *base_ubuntu2004
|
||||||
@ -500,6 +512,7 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Python unit tests
|
name: Python unit tests
|
||||||
command: python3 test/pyscriptTests.py
|
command: python3 test/pyscriptTests.py
|
||||||
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
t_win_pyscripts:
|
t_win_pyscripts:
|
||||||
<<: *base_win_powershell
|
<<: *base_win_powershell
|
||||||
@ -509,6 +522,7 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Python unit tests
|
name: Python unit tests
|
||||||
command: python.exe test/pyscriptTests.py
|
command: python.exe test/pyscriptTests.py
|
||||||
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
b_ubu: &b_ubu
|
b_ubu: &b_ubu
|
||||||
<<: *base_ubuntu2004_xlarge
|
<<: *base_ubuntu2004_xlarge
|
||||||
@ -519,6 +533,7 @@ jobs:
|
|||||||
- store_artifacts: *artifact_solidity_upgrade
|
- store_artifacts: *artifact_solidity_upgrade
|
||||||
- store_artifacts: *artifact_yul_phaser
|
- store_artifacts: *artifact_yul_phaser
|
||||||
- persist_to_workspace: *artifacts_executables
|
- persist_to_workspace: *artifacts_executables
|
||||||
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
# x64 ASAN build, for testing for memory related bugs
|
# x64 ASAN build, for testing for memory related bugs
|
||||||
b_ubu_asan: &b_ubu_asan
|
b_ubu_asan: &b_ubu_asan
|
||||||
@ -532,6 +547,7 @@ jobs:
|
|||||||
- run: *run_build
|
- run: *run_build
|
||||||
- store_artifacts: *artifacts_solc
|
- store_artifacts: *artifacts_solc
|
||||||
- persist_to_workspace: *artifacts_executables
|
- persist_to_workspace: *artifacts_executables
|
||||||
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
b_ubu_clang: &b_ubu_clang
|
b_ubu_clang: &b_ubu_clang
|
||||||
<<: *base_ubuntu2004_clang_xlarge
|
<<: *base_ubuntu2004_clang_xlarge
|
||||||
@ -540,6 +556,7 @@ jobs:
|
|||||||
- run: *run_build
|
- run: *run_build
|
||||||
- store_artifacts: *artifacts_solc
|
- store_artifacts: *artifacts_solc
|
||||||
- persist_to_workspace: *artifacts_executables
|
- persist_to_workspace: *artifacts_executables
|
||||||
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
b_ubu_asan_clang: &b_ubu_asan_clang
|
b_ubu_asan_clang: &b_ubu_asan_clang
|
||||||
<<: *base_ubuntu2004_clang
|
<<: *base_ubuntu2004_clang
|
||||||
@ -553,6 +570,7 @@ jobs:
|
|||||||
- run: *run_build
|
- run: *run_build
|
||||||
- store_artifacts: *artifacts_solc
|
- store_artifacts: *artifacts_solc
|
||||||
- persist_to_workspace: *artifacts_executables
|
- persist_to_workspace: *artifacts_executables
|
||||||
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
b_ubu_ubsan_clang: &b_ubu_ubsan_clang
|
b_ubu_ubsan_clang: &b_ubu_ubsan_clang
|
||||||
<<: *base_ubuntu2004_clang
|
<<: *base_ubuntu2004_clang
|
||||||
@ -586,6 +604,7 @@ jobs:
|
|||||||
name: strip binary
|
name: strip binary
|
||||||
command: strip build/solc/solc
|
command: strip build/solc/solc
|
||||||
- store_artifacts: *artifacts_solc
|
- store_artifacts: *artifacts_solc
|
||||||
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
b_ubu_codecov:
|
b_ubu_codecov:
|
||||||
<<: *base_ubuntu2004_xlarge
|
<<: *base_ubuntu2004_xlarge
|
||||||
@ -597,6 +616,7 @@ jobs:
|
|||||||
- checkout
|
- checkout
|
||||||
- run: *run_build
|
- run: *run_build
|
||||||
- persist_to_workspace: *artifacts_executables
|
- persist_to_workspace: *artifacts_executables
|
||||||
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
t_ubu_codecov:
|
t_ubu_codecov:
|
||||||
<<: *base_ubuntu2004
|
<<: *base_ubuntu2004
|
||||||
@ -619,6 +639,7 @@ jobs:
|
|||||||
name: "Coverage: All"
|
name: "Coverage: All"
|
||||||
command: codecov --flags all --gcov-root build
|
command: codecov --flags all --gcov-root build
|
||||||
- store_artifacts: *artifacts_test_results
|
- store_artifacts: *artifacts_test_results
|
||||||
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
# Builds in C++20 mode and uses debug build in order to speed up.
|
# Builds in C++20 mode and uses debug build in order to speed up.
|
||||||
# Do *NOT* store any artifacts or workspace as we don't run tests on this build.
|
# Do *NOT* store any artifacts or workspace as we don't run tests on this build.
|
||||||
@ -631,6 +652,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- run: *run_build
|
- run: *run_build
|
||||||
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
b_ubu_ossfuzz: &b_ubu_ossfuzz
|
b_ubu_ossfuzz: &b_ubu_ossfuzz
|
||||||
<<: *base_ubuntu1604_clang
|
<<: *base_ubuntu1604_clang
|
||||||
@ -639,6 +661,7 @@ jobs:
|
|||||||
- run: *setup_prerelease_commit_hash
|
- run: *setup_prerelease_commit_hash
|
||||||
- run: *run_build_ossfuzz
|
- run: *run_build_ossfuzz
|
||||||
- persist_to_workspace: *artifacts_executables_ossfuzz
|
- persist_to_workspace: *artifacts_executables_ossfuzz
|
||||||
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
t_ubu_ossfuzz: &t_ubu_ossfuzz
|
t_ubu_ossfuzz: &t_ubu_ossfuzz
|
||||||
<<: *base_ubuntu1604_clang
|
<<: *base_ubuntu1604_clang
|
||||||
@ -671,6 +694,7 @@ jobs:
|
|||||||
- run: *run_build
|
- run: *run_build
|
||||||
- store_artifacts: *artifacts_solc
|
- store_artifacts: *artifacts_solc
|
||||||
- persist_to_workspace: *artifacts_executables
|
- persist_to_workspace: *artifacts_executables
|
||||||
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
b_osx:
|
b_osx:
|
||||||
<<: *base_osx
|
<<: *base_osx
|
||||||
@ -707,6 +731,7 @@ jobs:
|
|||||||
- build/solc/solc
|
- build/solc/solc
|
||||||
- build/test/soltest
|
- build/test/soltest
|
||||||
- build/test/tools/solfuzzer
|
- build/test/tools/solfuzzer
|
||||||
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
t_osx_soltest:
|
t_osx_soltest:
|
||||||
<<: *base_osx
|
<<: *base_osx
|
||||||
@ -724,6 +749,7 @@ jobs:
|
|||||||
- run: *run_soltest
|
- run: *run_soltest
|
||||||
- store_test_results: *store_test_results
|
- store_test_results: *store_test_results
|
||||||
- store_artifacts: *artifacts_test_results
|
- store_artifacts: *artifacts_test_results
|
||||||
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
t_osx_cli:
|
t_osx_cli:
|
||||||
<<: *base_osx
|
<<: *base_osx
|
||||||
@ -736,6 +762,7 @@ jobs:
|
|||||||
at: .
|
at: .
|
||||||
- run: *run_cmdline_tests
|
- run: *run_cmdline_tests
|
||||||
- store_artifacts: *artifacts_test_results
|
- store_artifacts: *artifacts_test_results
|
||||||
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
b_ems:
|
b_ems:
|
||||||
<<: *base_ems_xlarge
|
<<: *base_ems_xlarge
|
||||||
@ -756,6 +783,7 @@ jobs:
|
|||||||
paths:
|
paths:
|
||||||
- soljson.js
|
- soljson.js
|
||||||
- version.txt
|
- version.txt
|
||||||
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
b_docs:
|
b_docs:
|
||||||
<<: *base_ubuntu2004
|
<<: *base_ubuntu2004
|
||||||
@ -768,6 +796,7 @@ jobs:
|
|||||||
- store_artifacts:
|
- store_artifacts:
|
||||||
path: docs/_build/html/
|
path: docs/_build/html/
|
||||||
destination: docs-html
|
destination: docs-html
|
||||||
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
t_ubu_soltest_all: &t_ubu_soltest_all
|
t_ubu_soltest_all: &t_ubu_soltest_all
|
||||||
<<: *base_ubuntu2004
|
<<: *base_ubuntu2004
|
||||||
@ -850,19 +879,11 @@ jobs:
|
|||||||
<<: *base_ubuntu2004_clang
|
<<: *base_ubuntu2004_clang
|
||||||
environment:
|
environment:
|
||||||
EVM: << pipeline.parameters.evm-version >>
|
EVM: << pipeline.parameters.evm-version >>
|
||||||
steps:
|
<<: *steps_soltest
|
||||||
- when:
|
|
||||||
condition: true
|
|
||||||
<<: *steps_soltest
|
|
||||||
- gitter_notify_failure_unless_pr
|
|
||||||
|
|
||||||
t_ubu_ubsan_clang_cli:
|
t_ubu_ubsan_clang_cli:
|
||||||
<<: *base_ubuntu2004_clang
|
<<: *base_ubuntu2004_clang
|
||||||
steps:
|
<<: *steps_cmdline_tests
|
||||||
- when:
|
|
||||||
condition: true
|
|
||||||
<<: *steps_cmdline_tests
|
|
||||||
- gitter_notify_failure_unless_pr
|
|
||||||
|
|
||||||
t_ems_solcjs:
|
t_ems_solcjs:
|
||||||
<<: *base_ubuntu2004
|
<<: *base_ubuntu2004
|
||||||
@ -882,6 +903,7 @@ jobs:
|
|||||||
node --version
|
node --version
|
||||||
npm --version
|
npm --version
|
||||||
test/externalTests/solc-js/solc-js.sh /tmp/workspace/soljson.js $(cat /tmp/workspace/version.txt)
|
test/externalTests/solc-js/solc-js.sh /tmp/workspace/soljson.js $(cat /tmp/workspace/version.txt)
|
||||||
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
t_ems_ext_hardhat:
|
t_ems_ext_hardhat:
|
||||||
<<: *base_node_latest
|
<<: *base_node_latest
|
||||||
@ -907,6 +929,7 @@ jobs:
|
|||||||
# NOTE: This is expected to work without running `yarn build` first.
|
# NOTE: This is expected to work without running `yarn build` first.
|
||||||
cd hardhat/packages/hardhat-core
|
cd hardhat/packages/hardhat-core
|
||||||
yarn test
|
yarn test
|
||||||
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
t_ems_ext:
|
t_ems_ext:
|
||||||
parameters:
|
parameters:
|
||||||
@ -918,9 +941,6 @@ jobs:
|
|||||||
nodejs_version:
|
nodejs_version:
|
||||||
type: integer
|
type: integer
|
||||||
default: 14
|
default: 14
|
||||||
gitter_notify:
|
|
||||||
type: boolean
|
|
||||||
default: no
|
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/node:<<parameters.nodejs_version>>
|
- image: circleci/node:<<parameters.nodejs_version>>
|
||||||
environment:
|
environment:
|
||||||
@ -939,11 +959,7 @@ jobs:
|
|||||||
name: External <<parameters.project>> tests
|
name: External <<parameters.project>> tests
|
||||||
command: |
|
command: |
|
||||||
test/externalTests/<<parameters.project>>.sh /tmp/workspace/soljson.js
|
test/externalTests/<<parameters.project>>.sh /tmp/workspace/soljson.js
|
||||||
- when:
|
- gitter_notify_failure_unless_pr
|
||||||
condition: <<parameters.gitter_notify>>
|
|
||||||
steps:
|
|
||||||
- gitter_notify_failure_unless_pr
|
|
||||||
- gitter_notify_success_unless_pr
|
|
||||||
|
|
||||||
b_win: &b_win
|
b_win: &b_win
|
||||||
<<: *base_win_powershell
|
<<: *base_win_powershell
|
||||||
@ -974,6 +990,7 @@ jobs:
|
|||||||
paths:
|
paths:
|
||||||
- .\solc\*\solc.exe
|
- .\solc\*\solc.exe
|
||||||
- .\test\*\soltest.exe
|
- .\test\*\soltest.exe
|
||||||
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
b_win_release:
|
b_win_release:
|
||||||
<<: *b_win
|
<<: *b_win
|
||||||
@ -996,6 +1013,7 @@ jobs:
|
|||||||
command: .circleci/soltest.ps1
|
command: .circleci/soltest.ps1
|
||||||
- store_test_results: *store_test_results
|
- store_test_results: *store_test_results
|
||||||
- store_artifacts: *artifacts_test_results
|
- store_artifacts: *artifacts_test_results
|
||||||
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
t_win_release_soltest:
|
t_win_release_soltest:
|
||||||
<<: *t_win_soltest
|
<<: *t_win_soltest
|
||||||
@ -1019,6 +1037,7 @@ jobs:
|
|||||||
paths:
|
paths:
|
||||||
- bytecode-report-ubuntu-json.txt
|
- bytecode-report-ubuntu-json.txt
|
||||||
- bytecode-report-ubuntu-cli.txt
|
- bytecode-report-ubuntu-cli.txt
|
||||||
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
b_bytecode_osx:
|
b_bytecode_osx:
|
||||||
<<: *base_osx
|
<<: *base_osx
|
||||||
@ -1039,6 +1058,7 @@ jobs:
|
|||||||
paths:
|
paths:
|
||||||
- bytecode-report-osx-json.txt
|
- bytecode-report-osx-json.txt
|
||||||
- bytecode-report-osx-cli.txt
|
- bytecode-report-osx-cli.txt
|
||||||
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
b_bytecode_win:
|
b_bytecode_win:
|
||||||
<<: *base_win_cmd
|
<<: *base_win_cmd
|
||||||
@ -1062,6 +1082,7 @@ jobs:
|
|||||||
paths:
|
paths:
|
||||||
- bytecode-report-windows-json.txt
|
- bytecode-report-windows-json.txt
|
||||||
- bytecode-report-windows-cli.txt
|
- bytecode-report-windows-cli.txt
|
||||||
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
b_bytecode_ems:
|
b_bytecode_ems:
|
||||||
<<: *base_node_latest
|
<<: *base_node_latest
|
||||||
@ -1078,6 +1099,7 @@ jobs:
|
|||||||
root: .
|
root: .
|
||||||
paths:
|
paths:
|
||||||
- bytecode-report-emscripten.txt
|
- bytecode-report-emscripten.txt
|
||||||
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
t_bytecode_compare:
|
t_bytecode_compare:
|
||||||
<<: *base_ubuntu2004
|
<<: *base_ubuntu2004
|
||||||
@ -1114,6 +1136,7 @@ jobs:
|
|||||||
# NOTE: store_artifacts does not support the 'when' attribute.
|
# NOTE: store_artifacts does not support the 'when' attribute.
|
||||||
# Fortunately when the artifact does not exist it just says "No artifact files found" and ignores it.
|
# Fortunately when the artifact does not exist it just says "No artifact files found" and ignores it.
|
||||||
path: all-bytecode-reports.zip
|
path: all-bytecode-reports.zip
|
||||||
|
- gitter_notify_failure_unless_pr
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
@ -1284,4 +1307,3 @@ workflows:
|
|||||||
<<: *workflow_emscripten
|
<<: *workflow_emscripten
|
||||||
name: t_ems_test_ext_colony
|
name: t_ems_test_ext_colony
|
||||||
project: colony
|
project: colony
|
||||||
gitter_notify: yes
|
|
||||||
|
Loading…
Reference in New Issue
Block a user