Skip to content

test: add governance e2e#626

Open
ByteYue wants to merge 6 commits intomainfrom
test/delta-governance-e2e
Open

test: add governance e2e#626
ByteYue wants to merge 6 commits intomainfrom
test/delta-governance-e2e

Conversation

@ByteYue
Copy link
Copy Markdown
Contributor

@ByteYue ByteYue commented Mar 24, 2026

Description

Issue Number: closes #xxx

How Has This Been Tested?

Key Areas to Review

Type of Change

  • New feature
  • Bug fix
  • Breaking change
  • Performance improvement
  • Refactoring
  • Dependency update
  • Documentation update
  • Tests

Which Components or Systems Does This Change Impact?

  • Validator Node
  • Consensus
  • EVM Runtime
  • Gravity SDK Core
  • CLI Tools
  • E2E Tests
  • Documentation
  • Other (specify)

Checklist

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@ByteYue ByteYue force-pushed the test/delta-governance-e2e branch from fcf1dd3 to 113820e Compare March 24, 2026 15:00
keanji-x
keanji-x previously approved these changes Mar 25, 2026
keanji-x
keanji-x previously approved these changes Mar 26, 2026
keanji-x
keanji-x previously approved these changes Mar 26, 2026
keanji-x
keanji-x previously approved these changes Mar 26, 2026
nekomoto911 and others added 5 commits March 26, 2026 22:50
- Update greth rev to include GovernanceConfig storage overrides
- Add hardfork_test infrastructure (from main branch)
- Change genesis validator address to faucet for voter key access
- Add deltaBlock injection in hooks.py
- New test_delta_governance.py: full governance lifecycle
  (owner verify → addExecutor → createProposal → vote → resolve → execute)
…dforks

reth's spec.rs reads from config.extra_fields (serde flatten), which
only captures top-level unknown keys. The nested gravityHardforks object
was invisible to the parser, so deltaBlock was never activated.
…jection

The faucet merge step in genesis.sh copies the merged template back into
the submodule's genesis-tool/config/genesis_template.json, leaving
uncommitted changes. When a subsequent test suite (e.g. hardfork_test)
tries to 'git checkout gravity-testnet-v1.0.0', git refuses because of
the dirty file.

Add a git-checkout restore after genesis generation completes to keep
the submodule clean between suite runs.
The new deploy.sh from #628 requires 'source' to be a TOML table
(e.g. { project_path = "../" }), not a plain string. Also removed
the obsolete [build] section.
nekomoto911
nekomoto911 previously approved these changes Mar 26, 2026
@ByteYue
Copy link
Copy Markdown
Contributor Author

ByteYue commented Mar 26, 2026

@khalidbalosh211-ux Are you blind? You're not welcome here.

keanji-x
keanji-x previously approved these changes Mar 27, 2026
@ByteYue ByteYue force-pushed the test/delta-governance-e2e branch 3 times, most recently from 9c2fe8f to 503d8aa Compare March 27, 2026 05:42
keanji-x
keanji-x previously approved these changes Mar 27, 2026
- Fix deltaBlock default 0→50 in hooks.py (genesis block doesn't go
  through apply_post_execution_changes, so deltaBlock=0 never triggers)
- Set gammaBlock default 500→0 (gamma activated at genesis, not tested
  as a transition)
- Remove test_gamma.py and test_hardfork.py (gamma-specific tests)
- Update test_hardfork_bridge.py to verify delta hardfork
  (Governance.owner) instead of gamma (contract upgrades)
- Keep all shared infrastructure: conftest, hardfork_utils,
  hardfork_framework, system_contracts, genesis/cluster config
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.

4 participants