-
Notifications
You must be signed in to change notification settings - Fork 20.4k
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
cmd/devp2p/internal/ethtest: skip large tx test on github build #28794
Conversation
cmd/devp2p/internal/ethtest/suite.go
Outdated
if bits.UintSize > 32 { | ||
tests = append(tests, utesting.Test{Name: "TestLargeTxRequest", Fn: s.TestLargeTxRequest}) | ||
} | ||
return tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer if we skip the test in the actual Go unit test that runs this instead of excluding it from the list here. The tests are executed here:
result := utesting.RunTests([]utesting.Test{{Name: test.Name, Fn: test.Fn}}, os.Stdout) |
So please add a condition there, like
if bits.UintSize == 32 && test.Name == "TestLargeTxRequest" {
t.Skip()
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would prefer to use different semantics. Instead of
"Are we running on 32-bit? If so, skip", the logic should be
"Are we running with the tag short
? If so, skip".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I.e
if testing.Short() && test.Name == "TestLargeTxRequest"{
t.Skip("skipped in short-mode")
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please take another look. I refactored so skipping is based both on short
tag or 386 arch. This is similar to how we decide on skipping the state tests:
go-ethereum/tests/init_test.go
Lines 144 to 149 in ae4ea04
if testing.Short() { | |
return "skipped in -short mode", false | |
} | |
if isWin32 { | |
return "skipped on 32bit windows", false | |
} |
Imo use only short. Everything else is wrong :)
|
Done |
Waiting for builds |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…reum#28794) This test was failling consistently on the github 32-bit build probably due to slow IO. Skipping it for that green check.
This test was failling consistently on the github 32-bit build probably due to slow IO. Skipping it for that green check.