-
Notifications
You must be signed in to change notification settings - Fork 8
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
[CI] Add consensus breaking warning #884
Draft
okdas
wants to merge
9
commits into
main
Choose a base branch
from
add-consensuswarn
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
af9c406
add consensus warning
b2d164e
add abci roots
okdas 5afb0a6
add roots
okdas b1d743a
no begin/end block anymore
okdas 9ea529a
lets see if this triggers consensuswarn
okdas 9c3e66a
test this
okdas 4f25b49
try our app?
okdas fdab0c7
try runtime
okdas ee2dff4
does this even work?
okdas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
name: "Consensus Warn" | ||
|
||
permissions: read-all | ||
|
||
on: | ||
pull_request: | ||
|
||
jobs: | ||
main: | ||
permissions: | ||
pull-requests: write # For reading the PR and posting comment | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: orijtech/consensuswarn@main | ||
with: | ||
# Available BaseApp roots: | ||
# - `go doc github.com/cosmos/cosmos-sdk/baseapp.BaseApp` | ||
# - `go doc github.com/cosmos/cosmos-sdk/runtime.App` | ||
# | ||
# TODO_IN_THIS_PR: test. Does this even work with an app that uses `depinject`? | ||
# TODO_CONSIDER: CURRENTLY MAY BE TOO VERBOSE. Consider removing functions that cause excessive noise or false positives. | ||
# | ||
# Critical consensus-related functions to monitor: | ||
# | ||
# PrepareProposal: | ||
# Prepares a block proposal by selecting transactions to include in the block. | ||
# A change here could affect what transactions are included in a block. | ||
# | ||
# ProcessProposal: | ||
# Validates block proposals against consensus rules. | ||
# Changes in this function could lead to consensus validation issues. | ||
# | ||
# FinalizeBlock: | ||
# Finalizes the block by applying the transactions. | ||
# This function is critical in ensuring that the block reaches consensus. | ||
# | ||
# Commit: | ||
# Commits the application state after the block has been processed. | ||
# Any changes here could impact state transitions and consensus. | ||
# | ||
# BeginBlock: | ||
# Executes logic at the start of a new block. | ||
# Changes here can influence the block initialization and its validity. | ||
# | ||
# EndBlock: | ||
# Executes logic at the end of the block before committing. | ||
# Can be crucial for final state updates that ensure consensus. | ||
# | ||
# VerifyVoteExtension: | ||
# Verifies extended votes in the consensus process (Tendermint). | ||
# Any changes could directly impact vote verification in consensus. | ||
# | ||
# ExtendVote: | ||
# Adds vote extensions in the consensus process (Tendermint). | ||
# Modifies how votes are extended, critical in consensus mechanics. | ||
# | ||
# Less-critical but related functions to monitor: | ||
# | ||
# CheckTx: | ||
# Validates transactions in the mempool. While not part of the core consensus, | ||
# changes here can affect what gets included in blocks, which indirectly impacts consensus. | ||
# | ||
# InitChain: | ||
# Called during chain initialization. Important for network upgrades or starting a new chain. | ||
# | ||
# StoreConsensusParams: | ||
# Stores consensus parameters in the chain state. | ||
# Changes here could affect how consensus parameters are handled or updated. | ||
# | ||
# SimDeliver: | ||
# Simulates transaction delivery for gas estimation and simulation. Not directly involved in consensus, | ||
# but changes here could affect how transactions are simulated and processed before being included in a block. | ||
# | ||
# SimTxFinalizeBlock: | ||
# Simulates a finalized block for testing and debugging purposes. | ||
# Less critical, but could be monitored for changes that may affect testing and simulation behavior. | ||
roots: github.com/cosmos/cosmos-sdk/baseapp.BaseApp.PrepareProposal,github.com/cosmos/cosmos-sdk/baseapp.BaseApp.ProcessProposal,github.com/cosmos/cosmos-sdk/baseapp.BaseApp.FinalizeBlock,github.com/cosmos/cosmos-sdk/baseapp.BaseApp.Commit,github.com/cosmos/cosmos-sdk/baseapp.BaseApp.VerifyVoteExtension,github.com/cosmos/cosmos-sdk/baseapp.BaseApp.ExtendVote,github.com/cosmos/cosmos-sdk/baseapp.BaseApp.CheckTx,github.com/cosmos/cosmos-sdk/baseapp.BaseApp.InitChain,github.com/cosmos/cosmos-sdk/baseapp.BaseApp.StoreConsensusParams,github.com/cosmos/cosmos-sdk/baseapp.BaseApp.SimDeliver,github.com/cosmos/cosmos-sdk/baseapp.BaseApp.SimTxFinalizeBlock,github.com/cosmos/cosmos-sdk/runtime.App.BeginBlocker,github.com/cosmos/cosmos-sdk/runtime.App.EndBlocker,github.com/cosmos/cosmos-sdk/runtime.App.PreBlocker,github.com/cosmos/cosmos-sdk/runtime.App.Precommiter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As we know from the recent release, this changes gas calculation for example.