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

[Merged by Bors] - Optimistic sync spec tests (v1.2.0) #3564

Closed
wants to merge 6 commits into from

Conversation

michaelsproul
Copy link
Member

Issue Addressed

Implements new optimistic sync test format from ethereum/consensus-specs#2982.

Proposed Changes

  • Add parsing and runner support for the new test format.
  • Extend the mock EL with a set of canned responses keyed by block hash. Although this doubles up on some of the existing functionality I think it's really nice to use compared to the preloaded_responses or static responses. I think we could write novel new opt sync tests using these primtives much more easily than the previous ones. Forks are natively supported, and different responses to forkchoiceUpdated and newPayload are also straight-forward.

Additional Info

Blocked on merge of the spec PR and release of new test vectors.

@michaelsproul michaelsproul added test improvement Improve tests blocked waiting-on-release-candidate Issue waiting on spec stability. labels Sep 12, 2022
@michaelsproul michaelsproul changed the title Optimistic sync spec tests Optimistic sync spec tests (v1.2.0) Sep 30, 2022
@michaelsproul michaelsproul added ready-for-review The code is ready for review and removed blocked waiting-on-release-candidate Issue waiting on spec stability. labels Sep 30, 2022
@michaelsproul
Copy link
Member Author

Ready for review assuming this passes CI.

This will conflict slightly with #3235, so I'm happy if we merge that first.

@paulhauner paulhauner self-assigned this Oct 4, 2022
Copy link
Member

@paulhauner paulhauner left a comment

Choose a reason for hiding this comment

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

What a clean and easy impl, well done to @hwwhww for the design ❤️

I like the canned responses keyed by block hash, nice addition.

Looks good, happy to merge once our lord and savoir clippy has been appeased.

@paulhauner paulhauner added waiting-on-author The reviewer has suggested changes and awaits thier implementation. and removed ready-for-review The code is ready for review labels Oct 15, 2022
@michaelsproul michaelsproul added ready-for-merge This PR is ready to merge. and removed waiting-on-author The reviewer has suggested changes and awaits thier implementation. labels Oct 15, 2022
@michaelsproul
Copy link
Member Author

Thanks!

bors r+

bors bot pushed a commit that referenced this pull request Oct 15, 2022
## Issue Addressed

Implements new optimistic sync test format from ethereum/consensus-specs#2982.

## Proposed Changes

- Add parsing and runner support for the new test format.
- Extend the mock EL with a set of canned responses keyed by block hash. Although this doubles up on some of the existing functionality I think it's really nice to use compared to the `preloaded_responses` or static responses. I think we could write novel new opt sync tests using these primtives much more easily than the previous ones. Forks are natively supported, and different responses to `forkchoiceUpdated` and `newPayload` are also straight-forward.

## Additional Info

Blocked on merge of the spec PR and release of new test vectors.
@bors bors bot changed the title Optimistic sync spec tests (v1.2.0) [Merged by Bors] - Optimistic sync spec tests (v1.2.0) Oct 16, 2022
@bors bors bot closed this Oct 16, 2022
@michaelsproul michaelsproul deleted the opt-sync-tests branch October 16, 2022 01:05
macladson pushed a commit to macladson/lighthouse that referenced this pull request Jan 5, 2023
## Issue Addressed

Implements new optimistic sync test format from ethereum/consensus-specs#2982.

## Proposed Changes

- Add parsing and runner support for the new test format.
- Extend the mock EL with a set of canned responses keyed by block hash. Although this doubles up on some of the existing functionality I think it's really nice to use compared to the `preloaded_responses` or static responses. I think we could write novel new opt sync tests using these primtives much more easily than the previous ones. Forks are natively supported, and different responses to `forkchoiceUpdated` and `newPayload` are also straight-forward.

## Additional Info

Blocked on merge of the spec PR and release of new test vectors.
Woodpile37 pushed a commit to Woodpile37/lighthouse that referenced this pull request Jan 6, 2024
Implements new optimistic sync test format from ethereum/consensus-specs#2982.

- Add parsing and runner support for the new test format.
- Extend the mock EL with a set of canned responses keyed by block hash. Although this doubles up on some of the existing functionality I think it's really nice to use compared to the `preloaded_responses` or static responses. I think we could write novel new opt sync tests using these primtives much more easily than the previous ones. Forks are natively supported, and different responses to `forkchoiceUpdated` and `newPayload` are also straight-forward.

Blocked on merge of the spec PR and release of new test vectors.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge This PR is ready to merge. test improvement Improve tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants