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

build: backport changes for v1.30.0-rc2 #12598

Merged
merged 19 commits into from
Oct 14, 2024
Merged

Conversation

rjan90
Copy link
Contributor

@rjan90 rjan90 commented Oct 14, 2024

Related Issues

#12480

Proposed Changes

Backports the list outlined in the rc2-section in 🪢 Dependencies for releases in this issue: #12480

Edit: All backport label items in the rc2-section pushed in this PR.

Checklist

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

BigLep and others added 14 commits October 14, 2024 15:11
---------

Co-authored-by: Rod Vagg <rod@vagg.org>
Co-authored-by: Mikers <snissn@gmail.com>
This was left undone as part of the original fix for unique event indexes and
shows up as a bug (e.g. "duplicate logIndex" for ETH APIs) where backfilling
is involved.

Ref: #11952
Ref: #12549
…ts check (#12572)

fix(migrations): update actor code IDs to Version15 for NV24 invariants check
chore: set calibration epoch and F3-activation
…12574)

Default `address.CurrentNetwork` was changed in an upstream dependency.
Update the build constants for non-mainnet to explicitly set it to
`Testnet`.

Add tests to assert it.
* fix(f3): fix hot loop in F3 participation
* fix(f3): Correct lease expiration log message
* feat(f3): log not-before and not-after for new leases
* test(f3): make the f3-enabled test wait for at one lease to expire

---------

Signed-off-by: Jakub Sztandera <oss@kubuxu.com>
Co-authored-by: Steven Allen <steven@stebalien.com>
1. Change Restarting -> Renewing. Restarting sounds like something is
going wrong.
2. Fix spelling of rechecking.
Otherwise, we can get into a situation where everyone is waiting for the
next round to participate, but we'll never get there because not enough
participants acted in the current round.
Default address.CurrentNetwork was changed to mainnet. As a result if
`LOTUS_USE_TEST_ADDRESSES` is set we need to explicitly use testnet
address.
Apply suggestions from code review

Co-authored-by: Rod Vagg <rod@vagg.org>
* subscribe-type calls always wants future reverts but only historical reverts
  when a tipset is specified
* get-type calls only want reverts when a tipset is specified

Add a new Fill() method to avoid the unnecessary install + remove step for get-
type calls.

Closes: #12584
@rjan90 rjan90 added the skip/changelog This change does not require CHANGELOG.md update label Oct 14, 2024
Copy link
Contributor

@aarshkshah1992 aarshkshah1992 left a comment

Choose a reason for hiding this comment

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

ETH RPC changes lgtm but we should get another pair of 👀 on the F3 changes here as well.

In _theory_ a lotus node can return no manifest from `F3Manifest`. I
don't think that happens in practice but we should handle the case and
start over at the top (try to get another lease). If we really have no
manifest, lotus will tell us that F3 isn't ready yet and we'll backoff
for a bit.
1. Instead of hard-coding the renewal to be within 2 instances of the
end of the lease, specify the renewal to be within 1/2th of the end of
the lease, rounded up (towards the end of the lease).
2. Instead of hard-coding the lease check interval to be
10s (problematic for tests where the block time is 100ms), set it to be
the minimum amount of time we expect to have to wait for the remaining
instances to complete.
…2589)

1. Move it next to all the F3 code.
2. Make it look more like a "service" so I won't have to duplicate the
start/stop code in the itests.
3. Rename participator to participant. Not perfect, but it's a word.
4. Make all the constants public.
5. Only depend on the parts of the API we need (will help with unit testing).
…12592)

Otherwise, the node's `stop` function returns an error and the
splitstore and window post dispute tests randomly fail.
…tion (#12595)

Regression introduced by refactoring in
#12384 where the NV16 special
case was missed and the full sector weight calculation was applied. The lack of
this special case essentially reverts FIP-0034 for this API, but not for actors
which would have a different PCD calculation.
@rjan90
Copy link
Contributor Author

rjan90 commented Oct 14, 2024

All backport label items in the rc2-section has been pushed in this PR. Will merge once CI is happy

@rjan90
Copy link
Contributor Author

rjan90 commented Oct 14, 2024

Test / Test (itest-f3) (pull_request) Failing after 4m

I will bypass this failing f3-test, given that we know this has been unreliable.

@rjan90 rjan90 merged commit 64fcbb7 into release/v1.30.0 Oct 14, 2024
86 of 87 checks passed
@rjan90 rjan90 deleted the phi/backport-v1300-rc2 branch October 14, 2024 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip/changelog This change does not require CHANGELOG.md update
Projects
Status: ☑️ Done (Archive)
Development

Successfully merging this pull request may close these issues.

7 participants