-
Notifications
You must be signed in to change notification settings - Fork 2
Vote #204. Nest + LOL stables factories #668
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
Merged
Merged
Changes from 15 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
470b0b9
feat: add nest vote and tests
katamarinaki fd13e34
fix(Tests): move validators to corresponding utils paths
phonktown a9f719c
feat(Tests): tag acceptance checks with vote item numbers and order t…
phonktown c27febd
fix(Tests): remove unused import
phonktown bd8974a
feat(Nest): add happy path regression test
phonktown f1f3c2e
feat: replace staking module share limits factory
skhomuti a8ef3d6
feat(Nest): adjust happy-path test
phonktown e97a2d8
feat(Vote): add lol stables factories + tests
phonktown ace2b55
fix(Tests): move scenario tests to the main vote test file
phonktown d5c15d9
feat(Vote): adjust descriptions
phonktown e1524bb
fix(Tests): fix CI tests
phonktown 4d9d360
feat(Tests): update comment
phonktown 5c14985
Merge pull request #659 from lidofinance/feat/nest-vote
iamnp 23d4488
fix(ci): remove unsupported vote_prev_block input
skhomuti 9dc1479
Merge pull request #669 from lidofinance/fix/remove-unsupported-vote-…
iamnp 7f0ac81
fix(Stonks): split stonks test into 2 parts
phonktown b0a0266
fix(CI): fix core tests CI
phonktown 8d54da8
fix(Interface): update interface
phonktown 60683b5
feat(Tests): adjust vote tests
phonktown ced54b8
feat(Vote): upload IPFS + adjust descriptions
phonktown c79452e
fix(Makefile): fix stonks tests grep
phonktown 1640c61
feat(Tests): pick an unclaimed source operator for consolidation pair
phonktown c2ed5e8
Merge pull request #670 from lidofinance/fix/stonks-test
iamnp ca290c7
feat(Tests): adjust tests
phonktown e8e1b17
Merge pull request #671 from lidofinance/feat/vote-204-tests
phonktown eaa450a
feat(Vote): update IPFS
phonktown 2d9f94e
Merge pull request #672 from lidofinance/feat/vote-204-ipfs
iamnp ad68fbe
feat(Vote): update IPFS
phonktown 5a8454e
Merge pull request #673 from lidofinance/feat/vote-204-ipfs
iamnp d00e51a
feat(Vote): update IPFS
phonktown 36a1a6a
Merge pull request #674 from lidofinance/feat/vote-204-ipfs
iamnp 5b02e00
feat(Vote): move script to archive
phonktown 1b0a416
feat(Tests): skip nest test
phonktown 45d5cf8
feat(Makefile): balance tests
phonktown 468d003
Merge pull request #676 from lidofinance/feat/vote-204-archive
iamnp 3ef19ca
feat(Tests): archive tests after vote 204
phonktown 282e3e7
Merge pull request #677 from lidofinance/feat/vote-204-archive-test
iamnp 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 hidden or 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
This file contains hidden or 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,73 @@ | ||
| name: Stonks integration tests | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - feat/next-vote | ||
| workflow_dispatch: | ||
|
|
||
| env: | ||
| # Stonks branch carrying the NEST V2 integration tests. | ||
| # TODO: switch to `main/master` once the tests land there. | ||
| STONKS_REF: feature/dao-898-nest-v2-develop-the-protocol | ||
|
|
||
| jobs: | ||
| run-tests: | ||
| name: Stonks integration tests in docker | ||
| runs-on: [ubuntu-latest] | ||
| timeout-minutes: 120 | ||
| env: | ||
| NODE_OPTIONS: --max_old_space_size=7200 | ||
|
|
||
| # Fork node on localhost:8545, same scripts image core_tests uses (has brownie + node/npm). | ||
| services: | ||
| tests-runner: | ||
| image: ghcr.io/lidofinance/scripts:v21 | ||
| ports: | ||
| - 8545:8545 | ||
| volumes: | ||
| - ${{ github.workspace }}:/root/scripts | ||
| options: >- | ||
| --name=tests-runner | ||
|
|
||
| steps: | ||
| - name: Checkout scripts | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Checkout stonks (${{ env.STONKS_REF }}) | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| repository: lidofinance/stonks | ||
| ref: ${{ env.STONKS_REF }} | ||
| path: stonks | ||
| persist-credentials: false | ||
|
|
||
| - name: Run init script | ||
| run: docker exec tests-runner bash -c 'PYTHONPATH=$PWD make init-scripts' | ||
|
|
||
| - name: Run node | ||
| run: docker exec -e ETH_RPC_URL -e NODE_OPTIONS --detach tests-runner bash -c 'NODE_PORT=8545 make node' | ||
| env: | ||
| ETH_RPC_URL: ${{ secrets.ETH_RPC_URL }} | ||
|
|
||
| - name: Check that the fork is ready | ||
| shell: bash | ||
| run: | | ||
| echo "Waiting for fork node on 127.0.0.1:8545..." | ||
| sleep 10 | ||
| for i in {1..30}; do | ||
| if (echo > /dev/tcp/127.0.0.1/8545) >/dev/null 2>&1; then | ||
| echo "Fork is ready ✅" | ||
| exit 0 | ||
| fi | ||
| echo "Not ready yet... ($i/30)" | ||
| sleep 1 | ||
| done | ||
| echo "❌ Fork was not ready after 30 seconds" >&2 | ||
| exit 1 | ||
|
|
||
| - name: Enact vote and run stonks integration tests | ||
| run: docker exec -e ETH_RPC_URL -e ETHERSCAN_TOKEN -e NODE_OPTIONS tests-runner bash -c 'make test-stonks-integration STONKS_DIR=stonks' | ||
| env: | ||
| ETH_RPC_URL: ${{ secrets.ETH_RPC_URL }} | ||
| ETHERSCAN_TOKEN: ${{ secrets.ETHERSCAN_TOKEN }} | ||
This file contains hidden or 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
This file contains hidden or 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.
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.
Uh oh!
There was an error while loading. Please reload this page.