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

[Relay Mining] Emit events and refactor test helpers #610

Merged
merged 69 commits into from
Jun 20, 2024

Conversation

Olshansk
Copy link
Member

@Olshansk Olshansk commented Jun 15, 2024

Summary

  • Event - Emitting an event when the relay mining difficulty is updated
  • Flaky - Added some flaky comments/pointers in different places
  • Refactor - the event filtering function into a shared location
  • Utils - Updated testing to support a signed mined relay

Issue

Type of change

Select one or more:

  • New feature, functionality or library
  • Bug fix
  • Code health or cleanup
  • Documentation
  • Other (specify)

Testing

  • Unit Tests: make go_develop_and_test
  • LocalNet E2E Tests: make test_e2e
  • DevNet E2E Tests: Add the devnet-test-e2e label to the PR.

Sanity Checklist

  • I have tested my changes using the available tooling
  • I have commented my code
  • I have performed a self-review of my own code; both comments & source code
  • I create and reference any new tickets, if applicable
  • I have left TODOs throughout the codebase, if applicable

@Olshansk Olshansk force-pushed the issues/542/relay_mining_events branch from b1a66ea to f6c7e3f Compare June 19, 2024 23:05
@Olshansk
Copy link
Member Author

@bryanchriswhite @red-0ne LOVE the comments on this! Ready for another review but also beginning to look much better after all your suggestions 🚀

@Olshansk Olshansk mentioned this pull request Jun 20, 2024
5 tasks
Copy link
Contributor

@bryanchriswhite bryanchriswhite left a comment

Choose a reason for hiding this comment

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

Just a few more comments, nothing blocking. Great stuff! 🙌

x/tokenomics/keeper/update_relay_mining_difficulty.go Outdated Show resolved Hide resolved
testutil/integration/app.go Outdated Show resolved Hide resolved
testutil/testrelayer/relays.go Show resolved Hide resolved
Copy link
Contributor

@bryanchriswhite bryanchriswhite left a comment

Choose a reason for hiding this comment

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

Apologies for the re-request but I noticed one blocking issue.

x/tokenomics/keeper/keeper_settle_pending_claims_test.go Outdated Show resolved Hide resolved
x/tokenomics/keeper/keeper_settle_pending_claims_test.go Outdated Show resolved Hide resolved
x/tokenomics/keeper/keeper_settle_pending_claims_test.go Outdated Show resolved Hide resolved
Copy link

The CI will now also run the e2e tests on devnet, which increases the time it takes to complete all CI checks.

You may need to run make trigger_ci to submit an empty commit that'll trigger the tests.

GCP workloads (requires changing the namespace to 610)
Grafana network dashboard for devnet-issue-{issue-id}

@github-actions github-actions bot added devnet push-image CI related - pushes images to ghcr.io labels Jun 20, 2024
Copy link
Contributor

@bryanchriswhite bryanchriswhite left a comment

Choose a reason for hiding this comment

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

👌

@Olshansk Olshansk merged commit 7146146 into main Jun 20, 2024
10 checks passed
bryanchriswhite added a commit that referenced this pull request Jun 26, 2024
…02/refactor/relayminer

* pokt/issues/402/feat/rng:
  [Code Health] refactor: tx hash encoding (#617)
  [Docs] Relay session & claim/proof diagrams (#478)
  Empty commit
  [Code Health] refactor: block query client interface (#616)
  [TODO] chore: cleanup done TODOs (#627)
  [TODOs] chore: cleanup validate session ID TODOs (#608)
  [LocalNet] Switch to CosmosSDK defaults (#609)
  [Relay Mining] Emit events and refactor test helpers (#610)
  [Docs] Minor improvements to `adding_params.md` (#623)
  [Telemetry] chore: add probabilistic proof telemetry (#605)
bryanchriswhite added a commit that referenced this pull request Jun 27, 2024
…aim-proof-distribution

* issues/402/refactor/relayminer: (21 commits)
  fix: unflake and speed up tests
  chore: speed up & improve tests
  chore: update comments
  chore: simplify
  [E2E] Add logging output from the init-container step (#635)
  fix: failing test
  Empty commit
  [Code Health] refactor: random number generation (#618)
  chore: review improvements
  chore: review improvments
  [Code Health] refactor: tx hash encoding (#617)
  [Docs] Relay session & claim/proof diagrams (#478)
  Empty commit
  [Code Health] refactor: block query client interface (#616)
  chore: review feedback improvements
  [TODO] chore: cleanup done TODOs (#627)
  [TODOs] chore: cleanup validate session ID TODOs (#608)
  [LocalNet] Switch to CosmosSDK defaults (#609)
  [Relay Mining] Emit events and refactor test helpers (#610)
  [Docs] Minor improvements to `adding_params.md` (#623)
  ...
okdas added a commit that referenced this pull request Nov 14, 2024
- `Event` - Emitting an event when the relay mining difficulty is updated
- `Flaky` - Added some flaky comments/pointers in different places
- `Refactor` -  the event filtering function into a shared location
- `Utils` - Updated testing to support a signed mined relay

Co-authored-by: Bryan White <[email protected]>
Co-authored-by: Dima K <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
devnet devnet-test-e2e on-chain On-chain business logic protocol General core protocol related changes push-image CI related - pushes images to ghcr.io
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

4 participants