Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add eth2 github action #3892

Merged
merged 35 commits into from
Feb 1, 2021
Merged

Add eth2 github action #3892

merged 35 commits into from
Feb 1, 2021

Conversation

spacesailor24
Copy link
Contributor

@spacesailor24 spacesailor24 commented Jan 29, 2021

Description

Adds Github action that runs tests for ETH2 packages: web3-eth2-core and web3-eth2-beaconchain

Includes changes from #3890 so that ETH2 tests are passing

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • I have selected the correct base branch.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.
  • Any dependent changes have been merged and published in downstream modules.
  • I ran npm run dtslint with success and extended the tests and types if necessary.
  • I ran npm run test:unit with success.
  • I ran npm run test:cov and my test cases cover all the lines and branches of the added code.
  • I ran npm run build and tested dist/web3.min.js in a browser.
  • I have tested my code on the live network.
  • I have checked the Deploy Preview and it looks correct.
  • I have updated the CHANGELOG.md file in the root folder.

@coveralls
Copy link

coveralls commented Jan 29, 2021

Pull Request Test Coverage Report for Build 521583702

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 226 unchanged lines in 7 files lost coverage.
  • Overall coverage increased (+2.5%) to 76.273%

Files with Coverage Reduction New Missed Lines %
packages/web3-core-requestmanager/src/jsonrpc.js 1 70.0%
packages/web3-core-helpers/src/formatters.js 8 82.27%
packages/web3-utils/src/utils.js 27 10.74%
packages/web3-core-helpers/src/errors.js 29 1.56%
packages/web3-utils/src/soliditySha3.js 34 3.92%
packages/web3-utils/src/index.js 42 32.12%
packages/web3-eth-accounts/src/index.js 85 33.06%
Totals Coverage Status
Change from base Build 519283962: 2.5%
Covered Lines: 3172
Relevant Lines: 3944

💛 - Coveralls

@@ -10,18 +10,27 @@
"types": "types.ts",
"scripts": {
"test": "jest",
"tsc": "babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps inline"
"tsc": "babel src --out-dir lib --extensions \".ts,.tsx\" --source-maps inline",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be renamed ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would like it to be, but some of our CI scripts use lerna exec tsc. Perhaps we can open a separate PR to update the scripts/npm commands to compile instead of tsc?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah that makes sense!

@@ -135,7 +135,7 @@ it('getValidatorBalances', async () => {
expect(response[0]).toMatchObject(expectedResponse)
})

it('getEpochCommittees', async () => {
xit('getEpochCommittees', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry this got posted, but it was still pending

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Related issue

@@ -135,7 +135,7 @@ it('getValidatorBalances', async () => {
expect(response[0]).toMatchObject(expectedResponse)
})

it('getEpochCommittees', async () => {
xit('getEpochCommittees', async () => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Temp fix, getting a 400 because route is wrong, but I don't understand why I would've made the route what it is, if it wasn't supposed to be - need to further investigate and changes should probably be in a separate PR

@spacesailor24 spacesailor24 merged commit 1a252a9 into 1.x Feb 1, 2021
@spacesailor24 spacesailor24 deleted the wyatt/eth2-github-action branch February 1, 2021 20:17
@spacesailor24 spacesailor24 restored the wyatt/eth2-github-action branch February 1, 2021 20:19
spacesailor24 added a commit that referenced this pull request Feb 1, 2021
spacesailor24 added a commit that referenced this pull request Feb 1, 2021
This was referenced Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants