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: Add integration test for ICS epochs #3031

Merged
merged 10 commits into from
Apr 8, 2024
Merged

Conversation

sainoe
Copy link
Contributor

@sainoe sainoe commented Mar 28, 2024

Description

Partially closes: #3010


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.

I have...

  • Included the correct type prefix in the PR title
  • Added ! to the type prefix if API, client, or state breaking change (i.e., requires minor or major version bump)
  • Targeted the correct branch (see PR Targeting)
  • Provided a link to the relevant issue or specification
  • Followed the guidelines for building SDK modules
  • Included the necessary unit and integration tests
  • Added a changelog entry in .changelog (for details, see contributing guidelines)
  • Included comments for documenting Go code
  • Updated the relevant documentation or specification
  • Reviewed "Files changed" and left comments if necessary
  • Confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed ! in the type prefix if API or client breaking change
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic
  • reviewed API design and naming
  • reviewed documentation is accurate
  • reviewed tests and test coverage

@sainoe sainoe marked this pull request as ready for review April 3, 2024 09:43
Copy link
Contributor

@MSalopek MSalopek left a comment

Choose a reason for hiding this comment

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

Can you please rename tests/ics to tests/integration.

PRs that will get in at a later time already have the rename.

  • fix lint and broken tests (possible timeout issue)

You can skip refactoring upgrade tests.

@MSalopek MSalopek self-requested a review April 3, 2024 14:13
Copy link
Contributor

@MSalopek MSalopek left a comment

Choose a reason for hiding this comment

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

toolchain go1.22.0 breaks parts of the CI.

delegateFn(provCtx)
// Second VSCPacket should only be created at the end of the current epoch
require.Empty(t, getVSCPacketsFn())
require.Empty(t, getVSCPacketsFn())
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we have two Empty calls here?

return providerKeeper.GetPendingVSCPackets(provCtx, ccvSuite.GetCCVPath().EndpointA.Chain.ChainID)
}

nextEpochs := func(ctx sdk.Context) sdk.Context {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: nextEpochs to nextEpoch because it seems to just "move" the system by one epoch.

ctx = ccvSuite.GetProviderChain().GetContext()
}
}
fmt.Println(app.StakingKeeper.GetLastTotalPower(provCtx))
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need the fmt.Printlns here and below?

@sainoe sainoe merged commit ab1f37d into main Apr 8, 2024
16 of 17 checks passed
@sainoe sainoe deleted the sainoe/epochs-intg-tests branch April 8, 2024 06:42
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.

Add ICS epochs on Gaia
3 participants