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

fix: TestMaxBlockSize flake #3089

Closed
wants to merge 5 commits into from

Conversation

rootulp
Copy link
Collaborator

@rootulp rootulp commented Feb 7, 2024

Closes #3086 by reverting #3075
Re-opens #3066

The test passes but the app version in test node differs from the one in
the block height.

```
app version 0 block header 0
app version 0 block header 2
app version 0 block header 0
app version 0 block header 2
```
@rootulp rootulp self-assigned this Feb 7, 2024
@rootulp rootulp changed the title debug: logs on app version fix: TestMaxBlockSize flake Feb 7, 2024
@rootulp rootulp marked this pull request as ready for review February 8, 2024 20:31
@celestiaorg celestiaorg deleted a comment from coderabbitai bot Feb 8, 2024
@rootulp
Copy link
Collaborator Author

rootulp commented Feb 8, 2024

None of these CodeRabbit comments are helpful b/c go mod tidy results in no changes.

@cmwaters
Copy link
Contributor

cmwaters commented Feb 9, 2024

So was app version returning 0 or 2?

@@ -19,6 +19,6 @@ func (app *App) GovSquareSizeUpperBound(ctx sdk.Context) int {
}

gmax := int(app.BlobKeeper.GovMaxSquareSize(ctx))
hardMax := appconsts.SquareSizeUpperBound(app.AppVersion(ctx))
hardMax := appconsts.SquareSizeUpperBound(ctx.BlockHeader().Version.App)
Copy link
Contributor

Choose a reason for hiding this comment

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

Actually I don't get how this fixes it? The above fix using appVersion should work.

AppVersion calls the consensus parameters which includes the correct app version (the one we should rely on) because we don't always have a header in the context to compare with

@rootulp
Copy link
Collaborator Author

rootulp commented Feb 12, 2024

Closing this for now. We're hoping that the flake resolves after we bump to a celestia-core release with celestiaorg/celestia-core#1202 and another fix for versions (@cmwaters will create an issue for).

@rootulp rootulp closed this Feb 12, 2024
@rootulp rootulp deleted the rp/fix-max-block-size branch February 12, 2024 16:52
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.

TestMaxBlockSize flake
2 participants