Spectests: Use a flat structure for faster test ingestion (#15313)

* Flatten spectests directory: Move all spectests to a single directory per network.

Commands ran:
```
cd testing/spectest/
```

Then for each network, I ran the following command twice.

```
find . -type f -name '*_test.go' -exec bash -c '
  for file; do
    dir=$(dirname "$file")
    base=$(basename "$file" _test.go)
    new_name="./${dir#./}__${base}_test.go"
    git mv "$file" "$new_name"
  done
' bash {} +
```

Then updated the packages with a command like

```
sed -i 's/package [a-zA-Z0-9_]\+/package mainnet/g' *.go
```

Updated commit from 5edadd7b to address @Kasey's feedback.

* Fix panic when checking types. String is not compatible with DeepEqual.

* Docs: add commentary on the filename convention

* Add a section about nightly tests to the spectest readme. Ref https://github.com/OffchainLabs/prysm/pull/15312

* Set shard_count to optimal value... one!

* Changelog fragment

* use latest unclog release

* Update spectest build instructions after #9122

---------

Co-authored-by: Kasey Kirkham <kasey@users.noreply.github.com>
This commit is contained in:
Preston Van Loon
2025-05-29 09:17:34 -05:00
committed by GitHub
parent 3a3bd3902c
commit 9b626864f0
601 changed files with 1044 additions and 3034 deletions

View File

@@ -18,7 +18,7 @@ jobs:
uses: dsaltares/fetch-gh-release-asset@aa2ab1243d6e0d5b405b973c89fa4d06a2d0fff7 # 1.1.2
with:
repo: OffchainLabs/unclog
version: "tags/v0.1.3"
version: "tags/v0.1.5"
file: "unclog"
- name: Get new changelog files

View File

@@ -0,0 +1,3 @@
### Ignored
- Changed spectest tests to a single directory per config (mainnet, general, minimal). This has a significant reduction in runtime due to runfile tree generation only happening 3 times rather than dozens of times.

View File

@@ -2,15 +2,29 @@
Spec testing vectors: https://github.com/ethereum/consensus-spec-tests
To run all `mainnet` spec tests:
To run all spectests:
```bash
bazel test //... --test_tag_filters=spectest
```
Minimal tests require `--define ssz=minimal` setting and are not triggered
automatically when `//...` is selected. One can run minimal tests manually, though:
## Adding new tests
New tests must adhere to the following filename convention:
```bash
bazel query 'tests(attr("tags", "minimal, spectest", //...))' | xargs bazel test --define ssz=minimal
```
{mainnet/minimal/general}/$fork__$package__$test_test.go
```
An example test is the phase0 epoch processing test for effective balance updates. This test has a spectest path of `{mainnet, minimal}/phase0/epoch_processing/effective_balance_updates/pyspec_tests`.
There are tests for mainnet and minimal config, so for each config we will add a file by the name of `phase0__epoch_processing__effective_balance_updates_test.go` since the fork is `phase0`, the package is `epoch_processing`, and the test is `effective_balance_updates`.
## Running nightly spectests
Since [PR 15312](https://github.com/OffchainLabs/prysm/pull/15312), Prysm has support to download "nightly" spectests from github via a starlark rule configuration by environment variable.
Set `--repo_env=CONSENSUS_SPEC_TESTS_VERSION=nightly` when running spectest to download the "nightly" spectests.
Note: A GITHUB_TOKEN environment variable is required to be set. The github token must be a [fine grained token](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens#creating-a-fine-grained-personal-access-token).
```
bazel test //... --test_tag_filters=spectest --repo_env=CONSENSUS_SPEC_TESTS_VERSION=nightly
```

View File

@@ -2,11 +2,8 @@ load("@prysm//tools/go:def.bzl", "go_test")
go_test(
name = "go_default_test",
size = "small",
srcs = ["verify_blob_kzg_proof_batch_test.go"],
data = [
"@consensus_spec_tests//:test_data",
],
srcs = ["deneb__kzg__verify_blob_kzg_proof_batch_test.go"],
data = ["@consensus_spec_tests//:test_data"],
tags = ["spectest"],
deps = [
"//beacon-chain/blockchain/kzg:go_default_library",

View File

@@ -0,0 +1,283 @@
load("@prysm//tools/go:def.bzl", "go_test")
go_test(
name = "go_default_test",
srcs = [
"altair__epoch_processing__effective_balance_updates_test.go",
"altair__epoch_processing__eth1_data_reset_test.go",
"altair__epoch_processing__historical_roots_update_test.go",
"altair__epoch_processing__inactivity_updates_test.go",
"altair__epoch_processing__justification_and_finalization_test.go",
"altair__epoch_processing__participation_flag_updates_test.go",
"altair__epoch_processing__randao_mixes_reset_test.go",
"altair__epoch_processing__registry_updates_test.go",
"altair__epoch_processing__rewards_and_penalties_test.go",
"altair__epoch_processing__slashings_reset_test.go",
"altair__epoch_processing__slashings_test.go",
"altair__finality__finality_test.go",
"altair__fork_helper__upgrade_to_altair_test.go",
"altair__fork_transition__transition_test.go",
"altair__forkchoice__forkchoice_test.go",
"altair__light_client__single_merkle_proof_test.go",
"altair__operations__attestation_test.go",
"altair__operations__attester_slashing_test.go",
"altair__operations__block_header_test.go",
"altair__operations__deposit_test.go",
"altair__operations__proposer_slashing_test.go",
"altair__operations__sync_committee_test.go",
"altair__operations__voluntary_exit_test.go",
"altair__random__random_test.go",
"altair__rewards__rewards_test.go",
"altair__sanity__blocks_test.go",
"altair__sanity__slots_test.go",
"altair__ssz_static__ssz_static_test.go",
"bellatrix__epoch_processing__effective_balance_updates_test.go",
"bellatrix__epoch_processing__eth1_data_reset_test.go",
"bellatrix__epoch_processing__historical_roots_update_test.go",
"bellatrix__epoch_processing__inactivity_updates_test.go",
"bellatrix__epoch_processing__justification_and_finalization_test.go",
"bellatrix__epoch_processing__participation_flag_updates_test.go",
"bellatrix__epoch_processing__randao_mixes_reset_test.go",
"bellatrix__epoch_processing__registry_updates_test.go",
"bellatrix__epoch_processing__rewards_and_penalties_test.go",
"bellatrix__epoch_processing__slashings_reset_test.go",
"bellatrix__epoch_processing__slashings_test.go",
"bellatrix__finality__finality_test.go",
"bellatrix__fork_helper__upgrade_to_altair_test.go",
"bellatrix__fork_transition__transition_test.go",
"bellatrix__forkchoice__forkchoice_test.go",
"bellatrix__light_client__single_merkle_proof_test.go",
"bellatrix__operations__attestation_test.go",
"bellatrix__operations__attester_slashing_test.go",
"bellatrix__operations__block_header_test.go",
"bellatrix__operations__deposit_test.go",
"bellatrix__operations__execution_payload_test.go",
"bellatrix__operations__proposer_slashing_test.go",
"bellatrix__operations__sync_committee_test.go",
"bellatrix__operations__voluntary_exit_test.go",
"bellatrix__random__random_test.go",
"bellatrix__rewards__rewards_test.go",
"bellatrix__sanity__blocks_test.go",
"bellatrix__sanity__slots_test.go",
"bellatrix__ssz_static__ssz_static_test.go",
"capella__epoch_processing__effective_balance_updates_test.go",
"capella__epoch_processing__eth1_data_reset_test.go",
"capella__epoch_processing__historical_summaries_update_test.go",
"capella__epoch_processing__inactivity_updates_test.go",
"capella__epoch_processing__justification_and_finalization_test.go",
"capella__epoch_processing__participation_flag_updates_test.go",
"capella__epoch_processing__randao_mixes_reset_test.go",
"capella__epoch_processing__registry_updates_test.go",
"capella__epoch_processing__rewards_and_penalties_test.go",
"capella__epoch_processing__slashings_reset_test.go",
"capella__epoch_processing__slashings_test.go",
"capella__finality__finality_test.go",
"capella__fork_helper__upgrade_to_capella_test.go",
"capella__fork_transition__transition_test.go",
"capella__forkchoice__forkchoice_test.go",
"capella__light_client__single_merkle_proof_test.go",
"capella__operations__attestation_test.go",
"capella__operations__attester_slashing_test.go",
"capella__operations__block_header_test.go",
"capella__operations__bls_to_execution_change_test.go",
"capella__operations__deposit_test.go",
"capella__operations__execution_payload_test.go",
"capella__operations__proposer_slashing_test.go",
"capella__operations__sync_committee_test.go",
"capella__operations__voluntary_exit_test.go",
"capella__operations__withdrawals_test.go",
"capella__random__random_test.go",
"capella__rewards__rewards_test.go",
"capella__sanity__blocks_test.go",
"capella__sanity__slots_test.go",
"capella__ssz_static__ssz_static_test.go",
"deneb__epoch_processing__effective_balance_updates_test.go",
"deneb__epoch_processing__eth1_data_reset_test.go",
"deneb__epoch_processing__historical_summaries_update_test.go",
"deneb__epoch_processing__inactivity_updates_test.go",
"deneb__epoch_processing__justification_and_finalization_test.go",
"deneb__epoch_processing__participation_flag_updates_test.go",
"deneb__epoch_processing__randao_mixes_reset_test.go",
"deneb__epoch_processing__registry_updates_test.go",
"deneb__epoch_processing__rewards_and_penalties_test.go",
"deneb__epoch_processing__slashings_reset_test.go",
"deneb__epoch_processing__slashings_test.go",
"deneb__finality__finality_test.go",
"deneb__fork_helper__upgrade_to_deneb_test.go",
"deneb__fork_transition__transition_test.go",
"deneb__forkchoice__forkchoice_test.go",
"deneb__light_client__single_merkle_proof_test.go",
"deneb__merkle_proof__merkle_proof_test.go",
"deneb__operations__attestation_test.go",
"deneb__operations__attester_slashing_test.go",
"deneb__operations__block_header_test.go",
"deneb__operations__bls_to_execution_change_test.go",
"deneb__operations__deposit_test.go",
"deneb__operations__execution_payload_test.go",
"deneb__operations__proposer_slashing_test.go",
"deneb__operations__sync_committee_test.go",
"deneb__operations__voluntary_exit_test.go",
"deneb__operations__withdrawals_test.go",
"deneb__random__random_test.go",
"deneb__rewards__rewards_test.go",
"deneb__sanity__blocks_test.go",
"deneb__sanity__slots_test.go",
"deneb__ssz_static__ssz_static_test.go",
"electra__epoch_processing__effective_balance_updates_test.go",
"electra__epoch_processing__eth1_data_reset_test.go",
"electra__epoch_processing__historical_summaries_update_test.go",
"electra__epoch_processing__inactivity_updates_test.go",
"electra__epoch_processing__justification_and_finalization_test.go",
"electra__epoch_processing__participation_flag_updates_test.go",
"electra__epoch_processing__pending_consolidations_test.go",
"electra__epoch_processing__pending_deposits_updates_test.go",
"electra__epoch_processing__randao_mixes_reset_test.go",
"electra__epoch_processing__registry_updates_test.go",
"electra__epoch_processing__rewards_and_penalties_test.go",
"electra__epoch_processing__slashings_reset_test.go",
"electra__epoch_processing__slashings_test.go",
"electra__finality__finality_test.go",
"electra__fork_helper__upgrade_to_electra_test.go",
"electra__fork_transition__transition_test.go",
"electra__forkchoice__forkchoice_test.go",
"electra__light_client__single_merkle_proof_test.go",
"electra__merkle_proof__merkle_proof_test.go",
"electra__operations__attestation_test.go",
"electra__operations__attester_slashing_test.go",
"electra__operations__block_header_test.go",
"electra__operations__bls_to_execution_change_test.go",
"electra__operations__consolidation_test.go",
"electra__operations__deposit_requests_test.go",
"electra__operations__deposit_test.go",
"electra__operations__execution_layer_withdrawals_test.go",
"electra__operations__execution_payload_test.go",
"electra__operations__proposer_slashing_test.go",
"electra__operations__sync_committee_test.go",
"electra__operations__voluntary_exit_test.go",
"electra__operations__withdrawals_test.go",
"electra__random__random_test.go",
"electra__rewards__rewards_test.go",
"electra__sanity__blocks_test.go",
"electra__sanity__slots_test.go",
"electra__ssz_static__ssz_static_test.go",
"fulu__epoch_processing__effective_balance_updates_test.go",
"fulu__epoch_processing__eth1_data_reset_test.go",
"fulu__epoch_processing__historical_summaries_update_test.go",
"fulu__epoch_processing__inactivity_updates_test.go",
"fulu__epoch_processing__justification_and_finalization_test.go",
"fulu__epoch_processing__participation_flag_updates_test.go",
"fulu__epoch_processing__pending_consolidations_test.go",
"fulu__epoch_processing__pending_deposits_updates_test.go",
"fulu__epoch_processing__randao_mixes_reset_test.go",
"fulu__epoch_processing__registry_updates_test.go",
"fulu__epoch_processing__rewards_and_penalties_test.go",
"fulu__epoch_processing__slashings_reset_test.go",
"fulu__epoch_processing__slashings_test.go",
"fulu__finality__finality_test.go",
"fulu__fork__upgrade_to_fulu_test.go",
"fulu__forkchoice__forkchoice_test.go",
"fulu__merkle_proof__merkle_proof_test.go",
"fulu__networking__custody_groups_test.go",
"fulu__operations__attestation_test.go",
"fulu__operations__attester_slashing_test.go",
"fulu__operations__block_header_test.go",
"fulu__operations__bls_to_execution_change_test.go",
"fulu__operations__consolidation_test.go",
"fulu__operations__deposit_requests_test.go",
"fulu__operations__deposit_test.go",
"fulu__operations__execution_layer_withdrawals_test.go",
"fulu__operations__execution_payload_test.go",
"fulu__operations__proposer_slashing_test.go",
"fulu__operations__sync_committee_test.go",
"fulu__operations__voluntary_exit_test.go",
"fulu__operations__withdrawals_test.go",
"fulu__random__random_test.go",
"fulu__rewards__rewards_test.go",
"fulu__sanity__blocks_test.go",
"fulu__sanity__slots_test.go",
"fulu__ssz_static__ssz_static_test.go",
"phase0__epoch_processing__effective_balance_updates_test.go",
"phase0__epoch_processing__epoch_processing_test.go",
"phase0__epoch_processing__eth1_data_reset_test.go",
"phase0__epoch_processing__historical_roots_update_test.go",
"phase0__epoch_processing__justification_and_finalization_test.go",
"phase0__epoch_processing__participation_record_updates_test.go",
"phase0__epoch_processing__randao_mixes_reset_test.go",
"phase0__epoch_processing__registry_updates_test.go",
"phase0__epoch_processing__rewards_and_penalties_test.go",
"phase0__epoch_processing__slashings_reset_test.go",
"phase0__epoch_processing__slashings_test.go",
"phase0__finality__finality_test.go",
"phase0__operations__attestation_test.go",
"phase0__operations__attester_slashing_test.go",
"phase0__operations__block_header_test.go",
"phase0__operations__deposit_test.go",
"phase0__operations__proposer_slashing_test.go",
"phase0__operations__voluntary_exit_test.go",
"phase0__random__random_test.go",
"phase0__rewards__rewards_test.go",
"phase0__sanity__blocks_test.go",
"phase0__sanity__slots_test.go",
"phase0__ssz_static__ssz_static_test.go",
],
data = ["@consensus_spec_tests//:test_data"],
tags = ["spectest"],
deps = [
"//config/params:go_default_library",
"//runtime/version:go_default_library",
"//testing/spectest/shared/altair/epoch_processing:go_default_library",
"//testing/spectest/shared/altair/finality:go_default_library",
"//testing/spectest/shared/altair/fork:go_default_library",
"//testing/spectest/shared/altair/operations:go_default_library",
"//testing/spectest/shared/altair/rewards:go_default_library",
"//testing/spectest/shared/altair/sanity:go_default_library",
"//testing/spectest/shared/altair/ssz_static:go_default_library",
"//testing/spectest/shared/bellatrix/epoch_processing:go_default_library",
"//testing/spectest/shared/bellatrix/finality:go_default_library",
"//testing/spectest/shared/bellatrix/fork:go_default_library",
"//testing/spectest/shared/bellatrix/operations:go_default_library",
"//testing/spectest/shared/bellatrix/rewards:go_default_library",
"//testing/spectest/shared/bellatrix/sanity:go_default_library",
"//testing/spectest/shared/bellatrix/ssz_static:go_default_library",
"//testing/spectest/shared/capella/epoch_processing:go_default_library",
"//testing/spectest/shared/capella/finality:go_default_library",
"//testing/spectest/shared/capella/fork:go_default_library",
"//testing/spectest/shared/capella/operations:go_default_library",
"//testing/spectest/shared/capella/rewards:go_default_library",
"//testing/spectest/shared/capella/sanity:go_default_library",
"//testing/spectest/shared/capella/ssz_static:go_default_library",
"//testing/spectest/shared/common/forkchoice:go_default_library",
"//testing/spectest/shared/common/light_client:go_default_library",
"//testing/spectest/shared/deneb/epoch_processing:go_default_library",
"//testing/spectest/shared/deneb/finality:go_default_library",
"//testing/spectest/shared/deneb/fork:go_default_library",
"//testing/spectest/shared/deneb/merkle_proof:go_default_library",
"//testing/spectest/shared/deneb/operations:go_default_library",
"//testing/spectest/shared/deneb/rewards:go_default_library",
"//testing/spectest/shared/deneb/sanity:go_default_library",
"//testing/spectest/shared/deneb/ssz_static:go_default_library",
"//testing/spectest/shared/electra/epoch_processing:go_default_library",
"//testing/spectest/shared/electra/finality:go_default_library",
"//testing/spectest/shared/electra/fork:go_default_library",
"//testing/spectest/shared/electra/merkle_proof:go_default_library",
"//testing/spectest/shared/electra/operations:go_default_library",
"//testing/spectest/shared/electra/rewards:go_default_library",
"//testing/spectest/shared/electra/sanity:go_default_library",
"//testing/spectest/shared/electra/ssz_static:go_default_library",
"//testing/spectest/shared/fulu/epoch_processing:go_default_library",
"//testing/spectest/shared/fulu/finality:go_default_library",
"//testing/spectest/shared/fulu/fork:go_default_library",
"//testing/spectest/shared/fulu/merkle_proof:go_default_library",
"//testing/spectest/shared/fulu/networking:go_default_library",
"//testing/spectest/shared/fulu/operations:go_default_library",
"//testing/spectest/shared/fulu/rewards:go_default_library",
"//testing/spectest/shared/fulu/sanity:go_default_library",
"//testing/spectest/shared/fulu/ssz_static:go_default_library",
"//testing/spectest/shared/phase0/epoch_processing:go_default_library",
"//testing/spectest/shared/phase0/finality:go_default_library",
"//testing/spectest/shared/phase0/operations:go_default_library",
"//testing/spectest/shared/phase0/rewards:go_default_library",
"//testing/spectest/shared/phase0/sanity:go_default_library",
"//testing/spectest/shared/phase0/ssz_static:go_default_library",
],
)

View File

@@ -1,25 +0,0 @@
load("@prysm//tools/go:def.bzl", "go_test")
go_test(
name = "go_default_test",
size = "small",
srcs = [
"effective_balance_updates_test.go",
"eth1_data_reset_test.go",
"historical_roots_update_test.go",
"inactivity_updates_test.go",
"justification_and_finalization_test.go",
"participation_flag_updates_test.go",
"randao_mixes_reset_test.go",
"registry_updates_test.go",
"rewards_and_penalties_test.go",
"slashings_reset_test.go",
"slashings_test.go",
],
data = glob(["*.yaml"]) + [
"@consensus_spec_tests//:test_data",
],
shard_count = 4,
tags = ["spectest"],
deps = ["//testing/spectest/shared/altair/epoch_processing:go_default_library"],
)

View File

@@ -1,14 +0,0 @@
load("@prysm//tools/go:def.bzl", "go_test")
go_test(
name = "go_default_test",
size = "medium",
timeout = "short",
srcs = ["finality_test.go"],
data = glob(["*.yaml"]) + [
"@consensus_spec_tests//:test_data",
],
shard_count = 4,
tags = ["spectest"],
deps = ["//testing/spectest/shared/altair/finality:go_default_library"],
)

View File

@@ -1,13 +0,0 @@
load("@prysm//tools/go:def.bzl", "go_test")
go_test(
name = "go_default_test",
size = "small",
srcs = ["upgrade_to_altair_test.go"],
data = glob(["*.yaml"]) + [
"@consensus_spec_tests//:test_data",
],
shard_count = 4,
tags = ["spectest"],
deps = ["//testing/spectest/shared/altair/fork:go_default_library"],
)

View File

@@ -1,12 +0,0 @@
load("@prysm//tools/go:def.bzl", "go_test")
go_test(
name = "go_default_test",
timeout = "short",
srcs = ["transition_test.go"],
data = glob(["*.yaml"]) + [
"@consensus_spec_tests//:test_data",
],
tags = ["spectest"],
deps = ["//testing/spectest/shared/altair/fork:go_default_library"],
)

View File

@@ -1,16 +0,0 @@
load("@prysm//tools/go:def.bzl", "go_test")
go_test(
name = "go_default_test",
size = "enormous",
timeout = "short",
srcs = ["forkchoice_test.go"],
data = glob(["*.yaml"]) + [
"@consensus_spec_tests//:test_data",
],
tags = ["spectest"],
deps = [
"//runtime/version:go_default_library",
"//testing/spectest/shared/common/forkchoice:go_default_library",
],
)

View File

@@ -1,15 +0,0 @@
load("@prysm//tools/go:def.bzl", "go_test")
go_test(
name = "go_default_test",
size = "small",
srcs = ["single_merkle_proof_test.go"],
data = glob(["*.yaml"]) + [
"@consensus_spec_tests//:test_data",
],
tags = ["spectest"],
deps = [
"//runtime/version:go_default_library",
"//testing/spectest/shared/common/light_client:go_default_library",
],
)

View File

@@ -1,21 +0,0 @@
load("@prysm//tools/go:def.bzl", "go_test")
go_test(
name = "go_default_test",
size = "small",
srcs = [
"attestation_test.go",
"attester_slashing_test.go",
"block_header_test.go",
"deposit_test.go",
"proposer_slashing_test.go",
"sync_committee_test.go",
"voluntary_exit_test.go",
],
data = glob(["*.yaml"]) + [
"@consensus_spec_tests//:test_data",
],
shard_count = 4,
tags = ["spectest"],
deps = ["//testing/spectest/shared/altair/operations:go_default_library"],
)

View File

@@ -1,13 +0,0 @@
load("@prysm//tools/go:def.bzl", "go_test")
go_test(
name = "go_default_test",
size = "medium",
timeout = "short",
srcs = ["random_test.go"],
data = glob(["*.yaml"]) + [
"@consensus_spec_tests//:test_data",
],
tags = ["spectest"],
deps = ["//testing/spectest/shared/altair/sanity:go_default_library"],
)

View File

@@ -1,12 +0,0 @@
load("@prysm//tools/go:def.bzl", "go_test")
go_test(
name = "go_default_test",
size = "small",
srcs = ["rewards_test.go"],
data = glob(["*.yaml"]) + [
"@consensus_spec_tests//:test_data",
],
tags = ["spectest"],
deps = ["//testing/spectest/shared/altair/rewards:go_default_library"],
)

View File

@@ -1,16 +0,0 @@
load("@prysm//tools/go:def.bzl", "go_test")
go_test(
name = "go_default_test",
size = "medium",
timeout = "short",
srcs = [
"blocks_test.go",
"slots_test.go",
],
data = glob(["*.yaml"]) + [
"@consensus_spec_tests//:test_data",
],
tags = ["spectest"],
deps = ["//testing/spectest/shared/altair/sanity:go_default_library"],
)

View File

@@ -1,12 +0,0 @@
load("@prysm//tools/go:def.bzl", "go_test")
go_test(
name = "go_default_test",
size = "small",
srcs = ["ssz_static_test.go"],
data = glob(["*.yaml"]) + [
"@consensus_spec_tests//:test_data",
],
tags = ["spectest"],
deps = ["//testing/spectest/shared/altair/ssz_static:go_default_library"],
)

View File

@@ -1,4 +1,4 @@
package finality
package mainnet
import (
"testing"

View File

@@ -1,4 +1,4 @@
package operations
package mainnet
import (
"testing"

View File

@@ -1,4 +1,4 @@
package random
package mainnet
import (
"testing"

View File

@@ -1,4 +1,4 @@
package rewards
package mainnet
import (
"testing"

View File

@@ -1,4 +1,4 @@
package sanity
package mainnet
import (
"testing"

View File

@@ -1,4 +1,4 @@
package sanity
package mainnet
import (
"testing"

View File

@@ -1,25 +0,0 @@
load("@prysm//tools/go:def.bzl", "go_test")
go_test(
name = "go_default_test",
size = "small",
srcs = [
"effective_balance_updates_test.go",
"eth1_data_reset_test.go",
"historical_roots_update_test.go",
"inactivity_updates_test.go",
"justification_and_finalization_test.go",
"participation_flag_updates_test.go",
"randao_mixes_reset_test.go",
"registry_updates_test.go",
"rewards_and_penalties_test.go",
"slashings_reset_test.go",
"slashings_test.go",
],
data = glob(["*.yaml"]) + [
"@consensus_spec_tests//:test_data",
],
shard_count = 4,
tags = ["spectest"],
deps = ["//testing/spectest/shared/bellatrix/epoch_processing:go_default_library"],
)

View File

@@ -1,14 +0,0 @@
load("@prysm//tools/go:def.bzl", "go_test")
go_test(
name = "go_default_test",
size = "medium",
timeout = "short",
srcs = ["finality_test.go"],
data = glob(["*.yaml"]) + [
"@consensus_spec_tests//:test_data",
],
shard_count = 4,
tags = ["spectest"],
deps = ["//testing/spectest/shared/bellatrix/finality:go_default_library"],
)

View File

@@ -1,13 +0,0 @@
load("@prysm//tools/go:def.bzl", "go_test")
go_test(
name = "go_default_test",
size = "small",
srcs = ["upgrade_to_altair_test.go"],
data = glob(["*.yaml"]) + [
"@consensus_spec_tests//:test_data",
],
shard_count = 4,
tags = ["spectest"],
deps = ["//testing/spectest/shared/bellatrix/fork:go_default_library"],
)

View File

@@ -1,12 +0,0 @@
load("@prysm//tools/go:def.bzl", "go_test")
go_test(
name = "go_default_test",
size = "small",
srcs = ["transition_test.go"],
data = glob(["*.yaml"]) + [
"@consensus_spec_tests//:test_data",
],
tags = ["spectest"],
deps = ["//testing/spectest/shared/bellatrix/fork:go_default_library"],
)

View File

@@ -1,16 +0,0 @@
load("@prysm//tools/go:def.bzl", "go_test")
go_test(
name = "go_default_test",
size = "enormous",
timeout = "short",
srcs = ["forkchoice_test.go"],
data = glob(["*.yaml"]) + [
"@consensus_spec_tests//:test_data",
],
tags = ["spectest"],
deps = [
"//runtime/version:go_default_library",
"//testing/spectest/shared/common/forkchoice:go_default_library",
],
)

View File

@@ -1,15 +0,0 @@
load("@prysm//tools/go:def.bzl", "go_test")
go_test(
name = "go_default_test",
size = "small",
srcs = ["single_merkle_proof_test.go"],
data = glob(["*.yaml"]) + [
"@consensus_spec_tests//:test_data",
],
tags = ["spectest"],
deps = [
"//runtime/version:go_default_library",
"//testing/spectest/shared/common/light_client:go_default_library",
],
)

View File

@@ -1,22 +0,0 @@
load("@prysm//tools/go:def.bzl", "go_test")
go_test(
name = "go_default_test",
size = "small",
srcs = [
"attestation_test.go",
"attester_slashing_test.go",
"block_header_test.go",
"deposit_test.go",
"execution_payload_test.go",
"proposer_slashing_test.go",
"sync_committee_test.go",
"voluntary_exit_test.go",
],
data = glob(["*.yaml"]) + [
"@consensus_spec_tests//:test_data",
],
shard_count = 4,
tags = ["spectest"],
deps = ["//testing/spectest/shared/bellatrix/operations:go_default_library"],
)

View File

@@ -1,13 +0,0 @@
load("@prysm//tools/go:def.bzl", "go_test")
go_test(
name = "go_default_test",
size = "medium",
timeout = "short",
srcs = ["random_test.go"],
data = glob(["*.yaml"]) + [
"@consensus_spec_tests//:test_data",
],
tags = ["spectest"],
deps = ["//testing/spectest/shared/bellatrix/sanity:go_default_library"],
)

View File

@@ -1,12 +0,0 @@
load("@prysm//tools/go:def.bzl", "go_test")
go_test(
name = "go_default_test",
size = "small",
srcs = ["rewards_test.go"],
data = glob(["*.yaml"]) + [
"@consensus_spec_tests//:test_data",
],
tags = ["spectest"],
deps = ["//testing/spectest/shared/bellatrix/rewards:go_default_library"],
)

View File

@@ -1,16 +0,0 @@
load("@prysm//tools/go:def.bzl", "go_test")
go_test(
name = "go_default_test",
size = "medium",
timeout = "short",
srcs = [
"blocks_test.go",
"slots_test.go",
],
data = glob(["*.yaml"]) + [
"@consensus_spec_tests//:test_data",
],
tags = ["spectest"],
deps = ["//testing/spectest/shared/bellatrix/sanity:go_default_library"],
)

View File

@@ -1,12 +0,0 @@
load("@prysm//tools/go:def.bzl", "go_test")
go_test(
name = "go_default_test",
size = "small",
srcs = ["ssz_static_test.go"],
data = glob(["*.yaml"]) + [
"@consensus_spec_tests//:test_data",
],
tags = ["spectest"],
deps = ["//testing/spectest/shared/bellatrix/ssz_static:go_default_library"],
)

View File

@@ -1,4 +1,4 @@
package random
package mainnet
import (
"testing"

View File

@@ -1,4 +1,4 @@
package rewards
package mainnet
import (
"testing"

View File

@@ -1,4 +1,4 @@
package sanity
package mainnet
import (
"testing"

View File

@@ -1,4 +1,4 @@
package sanity
package mainnet
import (
"testing"

View File

@@ -1,25 +0,0 @@
load("@prysm//tools/go:def.bzl", "go_test")
go_test(
name = "go_default_test",
size = "small",
srcs = [
"effective_balance_updates_test.go",
"eth1_data_reset_test.go",
"historical_summaries_update_test.go",
"inactivity_updates_test.go",
"justification_and_finalization_test.go",
"participation_flag_updates_test.go",
"randao_mixes_reset_test.go",
"registry_updates_test.go",
"rewards_and_penalties_test.go",
"slashings_reset_test.go",
"slashings_test.go",
],
data = [
"@consensus_spec_tests//:test_data",
],
shard_count = 4,
tags = ["spectest"],
deps = ["//testing/spectest/shared/capella/epoch_processing:go_default_library"],
)

View File

@@ -1,14 +0,0 @@
load("@prysm//tools/go:def.bzl", "go_test")
go_test(
name = "go_default_test",
size = "medium",
timeout = "short",
srcs = ["finality_test.go"],
data = [
"@consensus_spec_tests//:test_data",
],
shard_count = 1,
tags = ["spectest"],
deps = ["//testing/spectest/shared/capella/finality:go_default_library"],
)

View File

@@ -1,13 +0,0 @@
load("@prysm//tools/go:def.bzl", "go_test")
go_test(
name = "go_default_test",
size = "small",
srcs = ["upgrade_to_capella_test.go"],
data = [
"@consensus_spec_tests//:test_data",
],
shard_count = 1,
tags = ["spectest"],
deps = ["//testing/spectest/shared/capella/fork:go_default_library"],
)

View File

@@ -1,12 +0,0 @@
load("@prysm//tools/go:def.bzl", "go_test")
go_test(
name = "go_default_test",
size = "small",
srcs = ["transition_test.go"],
data = [
"@consensus_spec_tests//:test_data",
],
tags = ["spectest"],
deps = ["//testing/spectest/shared/capella/fork:go_default_library"],
)

View File

@@ -1,16 +0,0 @@
load("@prysm//tools/go:def.bzl", "go_test")
go_test(
name = "go_default_test",
size = "enormous",
timeout = "short",
srcs = ["forkchoice_test.go"],
data = [
"@consensus_spec_tests//:test_data",
],
tags = ["spectest"],
deps = [
"//runtime/version:go_default_library",
"//testing/spectest/shared/common/forkchoice:go_default_library",
],
)

View File

@@ -1,15 +0,0 @@
load("@prysm//tools/go:def.bzl", "go_test")
go_test(
name = "go_default_test",
size = "small",
srcs = ["single_merkle_proof_test.go"],
data = glob(["*.yaml"]) + [
"@consensus_spec_tests//:test_data",
],
tags = ["spectest"],
deps = [
"//runtime/version:go_default_library",
"//testing/spectest/shared/common/light_client:go_default_library",
],
)

View File

@@ -1,24 +0,0 @@
load("@prysm//tools/go:def.bzl", "go_test")
go_test(
name = "go_default_test",
size = "small",
srcs = [
"attestation_test.go",
"attester_slashing_test.go",
"block_header_test.go",
"bls_to_execution_change_test.go",
"deposit_test.go",
"execution_payload_test.go",
"proposer_slashing_test.go",
"sync_committee_test.go",
"voluntary_exit_test.go",
"withdrawals_test.go",
],
data = [
"@consensus_spec_tests//:test_data",
],
shard_count = 4,
tags = ["spectest"],
deps = ["//testing/spectest/shared/capella/operations:go_default_library"],
)

View File

@@ -1,13 +0,0 @@
load("@prysm//tools/go:def.bzl", "go_test")
go_test(
name = "go_default_test",
size = "medium",
timeout = "short",
srcs = ["random_test.go"],
data = glob(["*.yaml"]) + [
"@consensus_spec_tests//:test_data",
],
tags = ["spectest"],
deps = ["//testing/spectest/shared/capella/sanity:go_default_library"],
)

View File

@@ -1,12 +0,0 @@
load("@prysm//tools/go:def.bzl", "go_test")
go_test(
name = "go_default_test",
size = "small",
srcs = ["rewards_test.go"],
data = [
"@consensus_spec_tests//:test_data",
],
tags = ["spectest"],
deps = ["//testing/spectest/shared/capella/rewards:go_default_library"],
)

View File

@@ -1,16 +0,0 @@
load("@prysm//tools/go:def.bzl", "go_test")
go_test(
name = "go_default_test",
size = "medium",
timeout = "short",
srcs = [
"blocks_test.go",
"slots_test.go",
],
data = [
"@consensus_spec_tests//:test_data",
],
tags = ["spectest"],
deps = ["//testing/spectest/shared/capella/sanity:go_default_library"],
)

View File

@@ -1,12 +0,0 @@
load("@prysm//tools/go:def.bzl", "go_test")
go_test(
name = "go_default_test",
size = "small",
srcs = ["ssz_static_test.go"],
data = [
"@consensus_spec_tests//:test_data",
],
tags = ["spectest"],
deps = ["//testing/spectest/shared/capella/ssz_static:go_default_library"],
)

Some files were not shown because too many files have changed in this diff Show More