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

Test TestForkPreMigration hangs if LOTUS_DISABLE_PRE_MIGRATIONS=1 is set in the environment #11824

Closed
5 of 11 tasks
ribasushi opened this issue Apr 4, 2024 · 1 comment · Fixed by #11838
Closed
5 of 11 tasks
Labels
kind/bug Kind: Bug

Comments

@ribasushi
Copy link
Collaborator

Checklist

  • This is not a security-related bug/issue. If it is, please follow please follow the security policy.
  • I have searched on the issue tracker and the lotus forum, and there is no existing related issue or discussion.
  • I am running the Latest release, the most recent RC(release canadiate) for the upcoming release or the dev branch(master), or have an issue updating to any of these.
  • I did not make any code changes to lotus.

Lotus component

  • lotus daemon - chain sync
  • lotus fvm/fevm - Lotus FVM and FEVM interactions
  • lotus miner/worker - sealing
  • lotus miner - proving(WindowPoSt/WinningPoSt)
  • lotus JSON-RPC API
  • lotus message management (mpool)
  • Other

Lotus Version

v1.26.1

Repro Steps

Run

LOTUS_DISABLE_PRE_MIGRATIONS=1 go test -v -count=1 -timeout=30s ./chain/stmgr/forks_test.go

Describe the Bug

It is not uncommon to have LOTUS_DISABLE_PRE_MIGRATIONS=1 set on archival nodes. Its interaction with the above test was unexpected.

Logging Information

N/A
@ribasushi ribasushi added the kind/bug Kind: Bug label Apr 4, 2024
@rjan90
Copy link
Contributor

rjan90 commented Apr 5, 2024

Can confirm that the test fails when having the LOTUS_DISABLE_PRE_MIGRATIONS=1 env set, and passing when its not set.

While I´m not deep into this part of the codebase, it seems that TestForkPreMigration indirectly relies on the runPreMigration function through its use of the StateManager.

The simple solution here might just be directly unsetting the environment variable for the duration of this TestForkPreMigration test, to ensure that the test is run, even though the machine might have LOTUS_DISABLE_PRE_MIGRATIONS=1 set.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Kind: Bug
Projects
Status: ☑️ Done (Archive)
Development

Successfully merging a pull request may close this issue.

2 participants