Skip to content

Commit

Permalink
Merge remote-tracking branch 'pokt/issues/517/refactor/app-module' in…
Browse files Browse the repository at this point in the history
…to issues/517/refactor/session-module

* pokt/issues/517/refactor/app-module:
  [Code Health] test: add makefile target for E2E param update tests (#558)
  [Relayminer] Query for on-chain session param `num_blocks_per_session` (#538)
  chore: udpate comments
  refactor: rename methods which use default shared params with suffix `WithDefaultParams`
  [Relay Mining] Relay Mining math helpers (#549)
  [Relay Mining] Scaffold the RelayMiningDifficulty type (#548)
  • Loading branch information
bryanchriswhite committed May 29, 2024
2 parents c623557 + 15658c8 commit 24e7d11
Show file tree
Hide file tree
Showing 46 changed files with 5,889 additions and 200 deletions.
15 changes: 15 additions & 0 deletions .prompts/test_suggestions.prompt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
temperature: 0.5
maxTokens: 4096
---
<system>
You are a principal software engineer.
</system>

{{{ input }}}

You have been provided two files:
1. A source code file
2. A unit test file

Please provide a list of unit test names/descriptions that you believe
are still missing. Do not actually implement them.
17 changes: 17 additions & 0 deletions .prompts/unit_tests.prompt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
temperature: 0.5
maxTokens: 4096
---
<system>
You are a principal software engineer.
</system>

{{{ input }}}

Write unit tests for the code selected., following each of these instructions:
- Follow the best and latests practices of golang
- Where appropriate use `github.com/stretchr/testify/require`
- If necessary, create a tests struct to iterate over: `tests := []struct {
- Include at least 2 edge cases and 5 core cases
- The tests should be complete and sophisticated
- Give the tests just as chat output, don't edit any file
- Just give the code, no need for an explanation
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,10 @@ test_e2e_session: test_e2e_env ## Run only the E2E suite that exercises the sess
test_e2e_settlement: test_e2e_env ## Run only the E2E suite that exercises the session & tokenomics settlement
go test -v ./e2e/tests/... -tags=e2e,test --features-path=0_settlement.feature

.PHONY: test_e2e_params
test_e2e_params: test_e2e_env ## Run only the E2E suite that exercises parameter updates for all modules
go test -v ./e2e/tests/... -tags=e2e,test --features-path=update_params.feature

.PHONY: test_load_relays_stress
test_load_relays_stress: ## Run the stress test for E2E relays on non-ephemeral chains
go test -v -count=1 ./load-testing/tests/... \
Expand Down
215 changes: 187 additions & 28 deletions api/poktroll/tokenomics/genesis.pulsar.go

Large diffs are not rendered by default.

Loading

0 comments on commit 24e7d11

Please sign in to comment.