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

chore: basic CI #9

Merged
merged 6 commits into from
Sep 10, 2024
Merged

chore: basic CI #9

merged 6 commits into from
Sep 10, 2024

Conversation

ARR4N
Copy link
Collaborator

@ARR4N ARR4N commented Sep 10, 2024

Why this should be merged

Move fast but don't break things.

How this works

Action to run go test -short after filtering for flaky upstream tests. I've opened #10 to investigate these. I've also updated the libevm branch protection to require that the job passes.

How this was tested

Through the horrible experience that is testing and re-testing Github Actions 🤦

@ARR4N ARR4N marked this pull request as ready for review September 10, 2024 18:59
@ARR4N ARR4N requested review from a team, darioush, ceyonur and michaelkaplan13 and removed request for a team September 10, 2024 19:42
@@ -108,7 +108,8 @@ func (*Extras[C, R]) getter() (g ExtraPayloadGetter[C, R]) { return }

// mustBeStruct panics if `T` isn't a struct.
func mustBeStruct[T any]() {
if k := reflect.TypeFor[T]().Kind(); k != reflect.Struct {
var x T
if k := reflect.TypeOf(x).Kind(); k != reflect.Struct {
Copy link
Collaborator

Choose a reason for hiding this comment

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

For my own understanding, why is TypeOf preferred to TypeFor here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

TypeFor was only introduced in 1.22 and because we're on an old geth upstream it's on an older Go version.

@ARR4N ARR4N merged commit b6f3eb9 into libevm Sep 10, 2024
1 check passed
@ARR4N ARR4N deleted the arr4n/ci-basic branch September 10, 2024 19:52
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