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

Restructure Beacon Chain RPC Servers Into Subpackages #3975

Merged
merged 71 commits into from
Nov 12, 2019
Merged

Conversation

rauljordan
Copy link
Contributor

@rauljordan rauljordan commented Nov 11, 2019

Resolves #3973


Description

Write why you are making the changes in this pull request

This PR splits up our massive RPC server implementations into smaller subpackages with compartmentalized files and tests.

Change List

  • Move each server into its own package: i.e. instead of beacon_server.go have beacon/server.go
  • Split up particular groups of functionality into their own file, such as the attestation related RPC endpoints in the BeaconChainService into beacon/attestations.go
  • Split up the giant test file beacon_chain_server_test.go into individual test files for groups of related functionality

NOTE: No logic changed in this PR, only files moved around

terencechain and others added 30 commits October 29, 2019 08:44
* rm'ed in protobuf

* build proto

* build proto

* build proto

* fix core package

* Gazelle

* Fixed all the tests

* Fixed static test

* Comment out spec test for now

* One more skip

* fix-roundRobinSync (#3862)

* Starting but need new seed function

* Revert initial sync

* Updated Proposer Slashing

* Fixed all tests

* Lint

* Update inclusion reward

* Fill randao mixes with eth1 data hash

* Test

* Fixing test part1

* All tests passing

* One last test

* Updated config

* Build proto

* Proper skip message

* Conflict and fmt

* Removed crosslinks and shards. Built

* Format and gazelle

* Fixed all the block package tests

* Fixed all the helper tests

* All epoch package tests pass

* All core package tests pass

* Fixed operation tests

* Started fixing rpc test

* RPC tests passed!

* Fixed all init sync tests

* All tests pass

* Fixed blockchain tests

* Lint

* Lint

* Preston's feedback

* Starting

* Remove container

* Fixed block spec tests

* All passing except for block_processing test

* Failing block processing test

* Starting

* Add AggregateAndProof

* All mainnet test passes
* Starting

* Add AggregateAndProof
* rm'ed in protobuf

* build proto

* build proto

* build proto

* fix core package

* Gazelle

* Fixed all the tests

* Fixed static test

* Comment out spec test for now

* One more skip

* fix-roundRobinSync (#3862)

* Starting but need new seed function

* Revert initial sync

* Updated Proposer Slashing

* Fixed all tests

* Lint

* Update inclusion reward

* Fill randao mixes with eth1 data hash

* Test

* Fixing test part1

* All tests passing

* One last test

* Updated config

* Build proto

* Proper skip message

* Conflict and fmt

* Removed crosslinks and shards. Built

* Format and gazelle

* Fixed all the block package tests

* Fixed all the helper tests

* All epoch package tests pass

* All core package tests pass

* Fixed operation tests

* Started fixing rpc test

* RPC tests passed!

* Fixed all init sync tests

* All tests pass

* Fixed blockchain tests

* Lint

* Lint

* Preston's feedback

* Starting

* Remove container

* Fixed block spec tests

* All passing except for block_processing test

* Failing block processing test

* Starting

* Add AggregateAndProof

* All mainnet test passes

* Unskip block util tests
* Starting

* Add AggregateAndProof

* Unskip slot processing mainnet test
* Rm outdated interop tests

* Rm test runner

* Gazelle
* Updated committee cache

* Removed shuffled indices cache

* Started testing run time

* Lint

* Fixed test
@rauljordan rauljordan marked this pull request as ready for review November 11, 2019 23:10
@rauljordan rauljordan self-assigned this Nov 11, 2019
@rauljordan rauljordan changed the title Restructure Beacon Chain RPC Servers Into Subpackages WIP: Restructure Beacon Chain RPC Servers Into Subpackages Nov 11, 2019
@codecov
Copy link

codecov bot commented Nov 12, 2019

Codecov Report

Merging #3975 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #3975   +/-   ##
=======================================
  Coverage   20.13%   20.13%           
=======================================
  Files         166      166           
  Lines       10535    10535           
=======================================
  Hits         2121     2121           
  Misses       8114     8114           
  Partials      300      300

@rauljordan rauljordan changed the title WIP: Restructure Beacon Chain RPC Servers Into Subpackages Restructure Beacon Chain RPC Servers Into Subpackages Nov 12, 2019
Copy link
Contributor

@shayzluf shayzluf left a comment

Choose a reason for hiding this comment

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

lgtm
maybe beacon-chain/rpc/attester/attester_server.go could be changed to beacon-chain/rpc/attester/server.go since you created the directory structure

@rauljordan rauljordan merged commit 3332abb into master Nov 12, 2019
@rauljordan rauljordan deleted the clean-rpc branch November 12, 2019 17:01
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.

Tidy Up Beacon Chain RPC Package
6 participants