Skip to content

Commit

Permalink
Merge pull request #3530 from ethereum/allow-failures-in-ci
Browse files Browse the repository at this point in the history
Allow e2e failures in CI
  • Loading branch information
cgewecke authored May 22, 2020
2 parents 77d4314 + 0428689 commit 32c9805
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 17 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
e2e:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
testCmd:
[
Expand All @@ -60,7 +61,6 @@ jobs:

- run: bash ./scripts/install.sh
- run: bash ./scripts/ci.sh
continue-on-error: ${{ matrix.testCmd == 'e2e_ganache' || matrix.testCmd == 'e2e_mosaic' }}

- name: Send coverage reports to Coveralls
if: env.TEST == 'unit_and_e2e_clients'
Expand All @@ -79,4 +79,3 @@ jobs:
- uses: actions/checkout@v1
- run: bash ./scripts/install.sh
- run: bash ./scripts/ci.sh
continue-on-error: true
15 changes: 10 additions & 5 deletions scripts/e2e.ganache.core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,17 @@ echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"

npm run build

# NB: there's one failing ganache test, which checks
# whether the object returned by the server is an
# instanceof StateManager. Also fails locally & doesn't
# seem web3 related. Skipping it with grep / invert.
# There are two failing ganache tests:
# 1. "should return instance of StateManager on start":
# Checks whether the object returned by the server is an
# instanceof StateManager. Also fails locally & doesn't
# seem web3 related.
# 2. "should handle events properly via the data event handler":
# Upstream issue. Also fails locally & doesn't
# seem web3 related.
# Skipping them with grep / invert.
TEST_BUILD=node npx mocha \
--grep "instance of" \
--grep "should return instance of StateManager on start|should handle events properly via the data event handler" \
--invert \
--check-leaks \
--recursive \
Expand Down
10 changes: 0 additions & 10 deletions scripts/e2e.npm.publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,21 +45,11 @@ npm-auth-to-token \
-e test@test.com \
-r http://localhost:4873

# Prep branch for Lerna's git-checks
if [[ $GITHUB_REF = 'refs/pull/'* ]]; then
BRANCH=${GITHUB_HEAD_REF#refs/pull/}
else
BRANCH=${GITHUB_REF#refs/heads/}
fi

git checkout $BRANCH --

# Lerna version
lerna version minor \
--force-publish=* \
--no-git-tag-version \
--no-push \
--allow-branch $BRANCH \
--ignore-scripts \
--yes

Expand Down

0 comments on commit 32c9805

Please sign in to comment.