Skip to content

Conversation

@holiman
Copy link
Contributor

@holiman holiman commented Jul 6, 2023

Example failure on CI: https://ci.appveyor.com/project/ethereum/go-ethereum/builds/47472592/job/sef9xwbf62hggx6t#L792

Back before this commit: https://github.com/ethereum/go-ethereum/pull/27178/files#diff-0f667480e9ac227fc480354104860f0b690105077fde5d35e0903b6e4ba88857L137 , we spun up a number of ethash verifiers to verify headers. So we also had tests to ensure that we were indeed able to abort verification even if we had multiple workers running.

With PR #27178, we removed the parallelism in verification, and these tests are now failing, since we now just sequentially fire away the results as fast as possible on one routine.

This PR removes the (sometimes failing) tests

@holiman
Copy link
Contributor Author

holiman commented Jul 6, 2023

There were a couple of tests that kept failing on CI, that failure can be replicated by doing this locally:

--- a/core/txpool/legacypool/legacypool.go
+++ b/core/txpool/legacypool/legacypool.go
@@ -1172,6 +1172,7 @@ func (pool *LegacyPool) runReorg(done chan struct{}, reset *txpoolResetRequest,
                reorgDurationTimer.Update(time.Since(t0))
        }(time.Now())
        defer close(done)
+       time.Sleep(1000 * time.Millisecond)
 

This PR now contains some fixes needed to avoid those errors. Alas, even with these fixes, some tests fail with that ^ hack, due to how events are emanated, and how evictionInterval works (some tests just wait a few evictionInterval and hopes that the eviction has been performed.

@holiman holiman merged commit c866dfd into ethereum:master Jul 6, 2023
@holiman holiman added this to the 1.12.1 milestone Jul 6, 2023
@holiman holiman deleted the rm_oldtests branch October 11, 2023 07:27
devopsbo3 pushed a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
Back before ethereum#27178 , we spun up a number of ethash verifiers to verify headers. So we also had tests to ensure that we were indeed able to abort verification even if we had multiple workers running.

With PR ethereum#27178, we removed the parallelism in verification, and these tests are now failing, since we now just sequentially fire away the results as fast as possible on one routine.

This change removes the (sometimes failing) tests
devopsbo3 added a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
devopsbo3 added a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
gzliudan added a commit to gzliudan/XDPoSChain that referenced this pull request Sep 15, 2025
gzliudan added a commit to XinFinOrg/XDPoSChain that referenced this pull request Sep 17, 2025
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