Skip to content

bump: bump celestia app to v9#4964

Closed
vgonkivs wants to merge 1 commit intofeature/fibrefrom
bump_app_to_v9
Closed

bump: bump celestia app to v9#4964
vgonkivs wants to merge 1 commit intofeature/fibrefrom
bump_app_to_v9

Conversation

@vgonkivs
Copy link
Copy Markdown
Member

@vgonkivs vgonkivs commented Apr 23, 2026

@vgonkivs vgonkivs requested a review from a team as a code owner April 23, 2026 15:19
@vgonkivs vgonkivs requested review from mcrakhman and removed request for a team April 23, 2026 15:19
@vgonkivs vgonkivs closed this Apr 23, 2026
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

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

Devin Review found 1 potential issue.

View 3 additional findings in Devin Review.

Open in Devin Review

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔴 Hardcoded test expectations not updated after celestia-app major version bump

The test TestValidate in header/headertest/validate_test.go hardcodes that app version 9 should fail validation with "has version 9, this node supports up to version 8". The validation logic at header/header.go:116 checks eh.Version.App > appconsts.Version. If appconsts.Version changed from 8 to 9 with the celestia-app/v9 upgrade (as is typical — the Go module major version tracks the app protocol version in celestia), then version 9 is now valid and the test will fail: the test expects an error but Validate() returns nil. By contrast, core/header_test.go:63 uses appconsts.Version + 1 dynamically and would auto-adapt. The fix should add a test case for version 10 as the new failing version, make version 9 pass, and update the error string to reference version 9.

(Refers to lines 56-59)

Prompt for agents
In header/headertest/validate_test.go, the TestValidate function hardcodes that app version 9 should fail with error 'supports up to version 8'. After the celestia-app/v8 to v9 upgrade, if appconsts.Version is now 9, then: (1) the test case for version 9 should expect no error (wantErr: ''), (2) a new test case for version 10 should be added that expects the failure with error message 'has version 10, this node supports up to version 9'. Alternatively, make the test dynamic like core/header_test.go:61-67 does, using appconsts.Version+1 instead of hardcoded values.
Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

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.

1 participant