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

feat: deflake sector_import_simple #10858

Merged
merged 1 commit into from
May 12, 2023
Merged

Conversation

arajasek
Copy link
Contributor

Related Issues

This test has been observed to flake, eg. here, due to missed PoSts.

Proposed Changes

Use 2 miners instead of one for this test. We made the identical change to sector_import_full_test.go in #10764, and it hasn't flaked once since then (afaic tell).

Additional Info

Checklist

Before you mark the PR ready for review, please make sure that:

  • Commits have a clear commit message.
  • PR title is in the form of of <PR type>: <area>: <change being made>
    • example: fix: mempool: Introduce a cache for valid signatures
    • PR type: fix, feat, build, chore, ci, docs, perf, refactor, revert, style, test
    • area, e.g. api, chain, state, market, mempool, multisig, networking, paych, proving, sealing, wallet, deps
  • New features have usage guidelines and / or documentation updates in
  • Tests exist for new functionality or change in behavior
  • CI is green

@arajasek arajasek requested a review from a team as a code owner May 11, 2023 19:09
client, miner, ens := kit.EnsembleMinimal(t, kit.ThroughRPC())
// We use two miners so that in case the actively tested miner misses PoSt, we still have a blockchain
client, miner, _, ens := kit.EnsembleOneTwo(t, kit.ThroughRPC())

ens.InterconnectAll().BeginMining(blockTime)
Copy link
Contributor

Choose a reason for hiding this comment

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

Actually in this case BeginMiningMustPoSt should help. What I think may be happening here is that we are trying to produce the post snark, but that is blocked while the sector is Committing - in which case EnsembleOneTwo may still not be robust enough, because Committing even for 2k sectors takes a few seconds, and takes the global gpu lock, which will prevent any post from being created

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We've had pretty good luck since we turned the other test to use 2 miners. I'm gonna merge this for now, but will definitely try MustPosting if the issue recurs.

@arajasek arajasek merged commit 2bbc098 into master May 12, 2023
@arajasek arajasek deleted the asr/deflake-sector-import branch May 12, 2023 15:09
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