lambdaclass / lambdaclass/lambda_ethereum_consensus

Make tests run without --no-start

Open
#1,036 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Elixir
Stars
109
Forks
41
PR merge metrics
No merged PRs in 30d

Description

Currently we have different configuration categories:

  • mode: db vs full. :db doesn't enable the metadata genserver, the beacon api or the beacon node, which contains the fork choice genserver, libp2p features, the beacon chain genserver, etc.
  • genesis_strategy: were to get the first state from: checkpoint sync, a .ssz file, or the db.

Unit tests are mostly functional, and run with --no-start, so they currently patch interactions with the beacon chain so that libp2p doesn't activate, sync with others in a public network, etc. However, the client is configurable enough for us to be able to run the actual node in the tests and avoid patching and mocking behavior. In that way we both should increase coverage and stop hiding errors in tests.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the test setup around --no-start and the mode and genesis_strategy configuration. Identify the tests currently patching beacon-chain interactions, then verify they run with the actual node and no longer hide startup or networking errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
elixir
Domain
testing
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.