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

Take Download out of Sealer time #11182

Merged
merged 1 commit into from
Aug 25, 2023
Merged

Take Download out of Sealer time #11182

merged 1 commit into from
Aug 25, 2023

Conversation

snadrus
Copy link
Collaborator

@snadrus snadrus commented Aug 18, 2023

Downloading a 1GB file during a unit test is bad enough, but doing it in serial with a 600mb file followed by a lot of work is too much.

A patch sent to Orjan downloads those in parallel.

This takes the download out of the 30s timer and into a 1m30m (all test targets) window.
This will buy more time for the test to complete no matter what the delay is (if the problem is a timeout).

IF this fixes CI, we should discuss why we are having repeated, enormous downloads from filecoin websites as part of unit testing.

@snadrus snadrus requested a review from a team as a code owner August 18, 2023 03:38
@snadrus snadrus requested a review from rjan90 August 18, 2023 03:38
@@ -412,6 +412,16 @@ func TestSealPoStNoCommit(t *testing.T) {
fmt.Printf("EPoSt: %s\n", epost.Sub(precommit).String())
}

func TestMain(m *testing.M) {
//setup()
// Here it no-longer is bound to 30s but has 1m30s for the whole suite.
Copy link
Contributor

Choose a reason for hiding this comment

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

What 30s timer? Is there some test time limit I'm not aware of? Where is that defined?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Go tests fail after 30 seconds by default. When implementing TestMain, you get 1m30s for the whole setup + test, and the 30s test-body window still applies.

@magik6k magik6k merged commit bce5535 into master Aug 25, 2023
@magik6k magik6k deleted the TestSealerDLBefore branch August 25, 2023 08:27
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.

2 participants