57 Commits
Author SHA1 Message Date
zeekay 65408996d7 Update import path 2024-01-03 09:50:41 +01:00
zeekay e09f9ae0e1 Update executable to luxd 2024-01-03 09:49:05 +01:00
zeekay f8dd36a8be Update SubnetEVM 2024-01-03 09:44:09 +01:00
aaronbuchwaldandGitHub 67cf00f67b cmd/simulator: refactor simulator to support warp load test (#1009)
* cmd/simulator: refactor simulator to support warp load test

* Fix metrics server blocking incorrectly

* Apply suggestions from code review

Signed-off-by: aaronbuchwald <[email protected]>

* Address comments

---------

Signed-off-by: aaronbuchwald <[email protected]>
2023-11-29 09:32:42 -05:00
AnushaandGitHub 2af62555ea Add metrics to simulator (#706)
* add tps

* get block build metrics

* Add issuance time, confirmed time, issued-> acceptance time, verify time

* Log times at end of batch

* cleaner

* address comments

* remove unused code block

* avoids taking len of channel

* nits

* pass in stringID

* move to loader

* remove unused field

* revert file back

* cleaner

* lint

* make it work for ws or for rpc

* protect

* endpoint

* no return on defer

* sep to a funciton

* have blockchainidstr passed in

* typo

* pass in metrics through config

* address comments

* address more comments and edit err policy of metrics functions

* add more logging to load_test

* typo

* better check

* fix endpoints

* typo:

* individual

* histogram

* address feedback:

* remove metrics from default

* address comments

* simplify time metrics

* better explanation

* address comments

* address comments

* cleanup

* more cleanup

* rename vars for clarity

* ws

* cleanup

* address comments

* ws

* expose metrics add flag

* fix blocking issue of http server and gracefully stop it

* cleanup

* use constant

* add issuance to confirmation metrics

* ws

* simplify metrics server

* Bump avalanchego to v1.10.5 and bump Subnet-EVM for v0.5.3 release (#757)

* Bump avalanchego to v1.10.5 and bump Subnet-EVM for v0.5.3 release

* bump anr version to v1.7.1

* handle control c

* print out output

* clean up

* clean up

* remove go routines to close client

* address comments

* memory leak

* fix

* print
2023-07-31 17:49:50 -04:00
Darioush JalaliandGitHub f7b22cc068 Minor simulator fixes (#703) 2023-06-28 08:57:31 -07:00
679c77d57a Turn list of txs into tx sequence (#683)
* Turn list of txs into tx sequence

* Add agent comments

* Remove unused code and address comments

* add some more comments

* address more comments'

* lint

* Remove :::warning

---------

Co-authored-by: Anusha <[email protected]>
2023-06-27 18:06:52 -04:00
aaronbuchwaldandGitHub f7336796cb Simulator improvements (#619)
* Refactor load simulator

* Cleanup

* simulator: support http as well as websocket endpoints

* simulator: move help err handling

* simulator: Fix distribute funds bug

* simulator: add metrics at the end of simulator run

* Support no timeout

* Address review comments

* Remove unused struct

* Update cmd/simulator/config/flags.go

* Update cmd/simulator/load/funder.go

* Remove . from simulator flags

* Add comment to scripts/run_simulator.sh

* Address PR comments
2023-04-22 01:44:44 -04:00
Patrick O'GradyandGitHub 11b74dc142 Set minimum golang version to go1.19.6 (#551) 2023-03-01 09:53:24 -08:00
aaronbuchwaldandGitHub b7c125dfe7 Bump minimum golang version to v1.20.1 (#548)
* Bump minimum golang version to 1.20.1

* Remove debug flag from gh action release
2023-02-27 18:47:20 -08:00
aaronbuchwaldandGitHub 8c08ebc052 Refactor e2e tests (#425)
* Simplify e2e tests

* Add TODOs

* WIP

* Replace GetSubnetIDF

* Bump avalanchego to v1.9.6-rc.0

* Working on tests

* Light client mode to unlock dynamic state sync

* revert version to pass ci (?)

* fix simulator go.mod

* Set env variable using os setenv

* Needed renames to run all solidity precompile tests

* Cleanup

* E2E test GH Action

* Remove simualtor from GH Actions

* Re-add simulator to GH Actions

* nits

* Modify run script to support running a network and running simulator

* Fix GH Actions file

* Bump avalanchego to v1.9.6-rc.2

* go mod tidy

* Fix run script

* Reduce ctx timeout for starting new subnet to 15s

* Set data dir from github action

* Update run script

* Create separate load test for ginkgo

* Refactor scripts

* Fix up env variables in run single node script

* WIP

* Add install_cli.sh script

* Create 1 script to start a non-staking network of nodes in a subshell

* Fix run script to run 5 node non-staking network and add simple load script

* Fix load test

* go mod update to ago v1.9.7

* Fix allowed geth imports for simulator

* Populate constants to fix blst warning

* load constants in run ginkgo

* Update run simulator name check

* Update data dir

* Add plugin dir env variable

* Update github action and env var used in install avago script

* Filter out both precompile and load test from unit test script

* Add comment about skipping load test in unit test script

* Fix lint geth allowed pkgs

* Address nits

* Remove unused DATA_DIRs var from run script

* Add TODO to update run script to allow running N nodes instead of just one

* Update READMEs

* Break down simulator

* Cleanup

* Update cmd/simulator/README.md

* Update cmd/simulator/README.md

* Update cmd/simulator/README.md

* Update contract-examples/README.md

* Address review comments

* Address PR comments
2023-01-26 16:23:32 -05:00
aaronbuchwaldandGitHub b5faa4f15b Bump avalanchego dep to v1.9.7 and start v0.4.9 release cycle (#433)
* Bump avalanchego dep to v1.9.7 and start v0.4.9 release cycle

* Update compatibility.json and README
2023-01-23 13:44:45 -05:00
aaronbuchwaldandGitHub a4ad7cdeca Bump to v0.4.8 and bump AvalancheGo dependency to v1.9.6 (#429)
* Bump avlanachego dep to v1.9.6 and bump version to v0.4.8 for release

* Fix simulator go mod
2023-01-11 17:45:22 -05:00
Darioush JalaliandGitHub 4d3ad1828a Light client mode to unlock dynamic state sync (#424)
* Light client mode to unlock dynamic state sync

* revert version to pass ci (?)

* fix simulator go.mod
2023-01-10 11:08:35 -05:00
aaronbuchwaldandGitHub 93258aa300 Bump avalanchego to v1.9.5 (#415)
* Bump avalanchego to v1.9.5-rc.0

* go mod tidy simulator

* Bump avalanchego v1.9.5-rc.1

* Bump avalanchego

* bump avalanchego and bump sevm version

* go mod tidy simulator

* Add rpcchainvm protocol version to compatibility.json
2022-12-22 14:12:10 -05:00
aaronbuchwaldandGitHub 21a14d2d90 Bump avalanchego to v1.9.4 (#402)
* Bump avalanchego to v1.9.4

* Bump subnet-evm version in scripts/versions.sh
2022-12-07 14:17:25 -07:00
715ca80766 use generic set (#391)
* use generic set

* bump version

* nit

* update inner go mod

* Bump rpcchainvm version in compatibility.json

Co-authored-by: aaronbuchwald <[email protected]>
Co-authored-by: Stephen <[email protected]>
2022-12-06 18:09:37 -07:00
minghinmatthewlamandGitHub 5ecbb913c2 Plumbing snow.Context for precompiles (#381)
* passing in snow context

* adding call and moving contractRef

* test with avalanche context

* fix import format

* dependency updates

* put snow ctx into avalanche ctx

* move back contract ref

* remove getaddress

* update go mod

* fix imports

* remove extra line

* fix pr comments

* remove call additions
2022-11-29 18:43:23 -05:00
a7afbfc2c4 Bump avalanchego v1.9.3 and Coreth Migration through v0.11.3 (#369)
* Migrate coreth to v0.11.3 wip

* WIP

* WIP

* migrate eth/gasprice

* update block building

* Add skip upgrade check to config

* Finish up changes

* Add ctx to tests

* Remove ported timer

* mod tidy for cmd/simulator

* Remove dead testcode

* Fix typo

* Fixes

* Fixes

* sync auto-formatted changes (#371)

* sync auto-formatted changes

* add coreth version txt

* add latest coreth version

* Update plugin/evm/block_builder.go

Co-authored-by: Darioush Jalali <[email protected]>

* Update plugin/evm/vm.go

Co-authored-by: Darioush Jalali <[email protected]>

Co-authored-by: Ceyhun Onur <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
2022-11-29 09:39:18 -05:00
209036a807 [e2e cleanups 1] Fix e2e tests with ginkgo label selector, remove unused npx tests (#344)
* *: fix e2e tests with ginkgo label selector, remove unused npx tests

Signed-off-by: Gyuho Lee <[email protected]>

* run.sh: remove --contracts-foundry-dir=./contracts-foundry

Signed-off-by: Gyuho Lee <[email protected]>

* *: add back solidity-with-npx tests

Signed-off-by: Gyuho Lee <[email protected]>

* *: remove avalanche-network-runner dependency

Signed-off-by: Gyuho Lee <[email protected]>

* Update scripts/run.sh

Co-authored-by: aaronbuchwald <[email protected]>

* run.sh: document "ping"

Signed-off-by: Gyuho Lee <[email protected]>

* regenerate go module

Signed-off-by: Gyuho Lee <[email protected]>

* README: fix run.sh docs

Signed-off-by: Gyuho Lee <[email protected]>

* fix run ginkgo

Signed-off-by: Gyuho Lee <[email protected]>

* e2e: fix

Signed-off-by: Gyuho Lee <[email protected]>

* e2e: update label

Signed-off-by: Gyuho Lee <[email protected]>

* e2e: use avalanchego env

Signed-off-by: Gyuho Lee <[email protected]>

* fix exec paths

Signed-off-by: Gyuho Lee <[email protected]>

* AVALANCHEGO_PATH to parser/main.go

Signed-off-by: Gyuho Lee <[email protected]>

* env

Signed-off-by: Gyuho Lee <[email protected]>

* hardcode endpoints

Signed-off-by: Gyuho Lee <[email protected]>

* Change genesis file to enable precompiles

* Added precompile to genesis and default gas on hardhat config

* Clean up run script

* More E2E tests are passing

* Fix Fee Manager Test - 1 more passes

* Comment out incorrect test

* Fix Minter tests

* Handle promises properly

* Cleanup

* Fix Deployer tests

* Clean up test suite :)

* clean up and revert

* Update suites from proper branch

* stop subnet after each test - experiment

* Final clean up

* Remove small .only

* Test new changes

* Stop network from starting before suite

* Remove set env

* Remove unneeded code from parse
r

* dont run main from parser

* Enable other precompiles in other genesises

* Fix simulator tests and e2e :)

* Fix simulator

* remove precompile enablement

* Revert suites and runner to original shape

* Remove old code from parser

* Remove default auto from hardhat config

* Revert all changes to tests and genesis files

* Add Tiny err message fix

* Cleanup

* Cleanup and clarity

* Cleaner return

* Cleaner

* Add comment explaining why we set path

* refactor before suite

* delete parser/main as it is unneccessary

* remove actual file

* fix lint

* remove parser directory

* change go version

* change node v

* revert ci changes

* Fix hardhat url in ci

* Add print

* wrong file name

* Address Aaron's comments part 1

* Set skip netowrk shutdown to false by default

Signed-off-by: Gyuho Lee <[email protected]>
Co-authored-by: aaronbuchwald <[email protected]>
Co-authored-by: Anusha Chillara <[email protected]>
Co-authored-by: Anusha <[email protected]>
2022-11-15 20:00:51 -05:00
4ca0cbfdb9 Added compatibility tracking (#334)
* Added compatibility tracking

* Added version moved test

* Cleaned up test

* Bump avalanchego version and nits

* go mod tidy cmd/simulator

* Mark trie clean jouranl test as flaky

* Bump avalanchego to v1.9.2

* Bump anr version in scripts/versions.sh

* Bump anr version in go.mod

* go mod tidy cmd/simulator

Co-authored-by: Aaron Buchwald <[email protected]>
2022-11-04 18:55:18 -04:00
158e8882bd Bump avalanchego v1.9.1 (#324)
* changes to requester

* fix compilation

* whoopse

* whoopse again

* Bump avalanchego dependency to v1.9.1

* Migrate OpenTelemetry changes

* go mod tidy cmd/simulator

Co-authored-by: Anusha Chillara <[email protected]>
Co-authored-by: Stephen <[email protected]>
2022-10-28 19:30:48 -04:00
aaronbuchwaldandGitHub 4c535bb152 Save cache periodically test (#319)
* Remove minimum trie clean rejournal time

* Add unit test for trie clean re-journaling

* Add trie clean journal and rejournal to vm.go

* Address comments WIP

* Use fsnotify watcher instead of timeout for trie clean cache write test

* go mod tidy cmd/simulator
2022-10-27 12:36:04 -04:00
Darioush JalaliandGitHub 6a62574349 expose stats from fastcache (#313) 2022-10-25 08:50:18 -07:00
e73bd9993e use anr pid in e2e test yaml (#292)
* use anr pid in e2e test yaml

* fix parser

* fix naming in simulator to not be confused as ANR output

* rename to SaveClusterInfo

Co-authored-by: aaronbuchwald <[email protected]>
2022-10-12 10:49:42 -05:00
aaronbuchwaldandGitHub 2f3ff1c0c8 Update avalanchego v1.9.0 (#293)
* Bump avalanchego to v1.9.0

* go

* Update go.mod
2022-10-06 16:30:31 -04:00
felipemaderoandGitHub 4ff12f4922 bump to avago 1.8.6 (#279)
* bump avago + anr

* add cross compilation

* mod tidy

* CGO_CFLAGS instead of CGO_FLAGS

* strange "" stuff in goreleaser

* add comment for CGO_FLAGS setting. move seting to constants

* fix path var

* fix unit test script

* bump avago version in versions.sh

* add checksum check for SDK archive

* fix checksum
2022-10-05 15:56:07 -04:00
12ddc72239 Update AvalancheGo Compatibility (#267)
* Update AvalancheGo Compatibility

* bump versions

* simulator go.mod

* Fix ago compat versions

Co-authored-by: Darioush Jalali <[email protected]>
Co-authored-by: Aaron Buchwald <[email protected]>
2022-09-22 18:44:19 +09:00
holisticodeandGitHub 165002b154 Revert PR 249 (#252)
* revert PR 249

* fix yaml indentation

* adjust e2e versions

* update simulator go.mod
2022-09-20 01:25:29 +09:00
b0e42eaa10 bump: [email protected] (#249)
* [email protected]

Signed-off-by: Sam Batschelet <[email protected]>

* *: react to bump

Signed-off-by: Sam Batschelet <[email protected]>

* bump: [email protected]

Signed-off-by: Sam Batschelet <[email protected]>

* Remove network runner dep

* remove needs from goreleaser

* Update subnet evm version to v0.3.0

Signed-off-by: Sam Batschelet <[email protected]>
Co-authored-by: Aaron Buchwald <[email protected]>
2022-09-05 03:01:44 -04:00
Darioush JalaliandGitHub e54238e908 geth import allowlist (#243)
* geth import allowlist

* attempt 2

* add permission / minimize diff

* fix allowlist: should pass

* add || true

* changes from review comments

* remove rawdb

* remove rawdb

* remove abi and params
2022-09-01 10:26:17 -04:00
Gyuho LeeandGitHub 98bdd260a9 *: add simulator e2e tests (#172)
* *: add simulator e2e tests

Signed-off-by: Gyuho Lee <[email protected]>

* lint-test: use Go 1.18

Signed-off-by: Gyuho Lee <[email protected]>

* cmd/simulator: use local subnet-evm version

Signed-off-by: Gyuho Lee <[email protected]>

* run.sh: remove go mod command

Signed-off-by: Gyuho Lee <[email protected]>

* cmd/simulator: use os.ReadFile

Signed-off-by: Gyuho Lee <[email protected]>

* *: update run.sh + e2e_test.go with latest network runner

Signed-off-by: Gyuho Lee <[email protected]>

* *: remove "mode"

Signed-off-by: Gyuho Lee <[email protected]>

* run.sh: fix genesis for e2e tests

Signed-off-by: Gyuho Lee <[email protected]>

* run.sh: fix "fi"

Signed-off-by: Gyuho Lee <[email protected]>

* test: skip shutdown for e2e

Signed-off-by: Gyuho Lee <[email protected]>

* run.sh: skip genesis when disabled nr

Signed-off-by: Gyuho Lee <[email protected]>

* e2e: skip

Signed-off-by: Gyuho Lee <[email protected]>

* run.sh: update

Signed-off-by: Gyuho Lee <[email protected]>

* run.sh: fix RUN_SIMULATOR

Signed-off-by: Gyuho Lee <[email protected]>

* run.sh: fix

Signed-off-by: Gyuho Lee <[email protected]>

* run.sh: fix

Signed-off-by: Gyuho Lee <[email protected]>

* test: skip shutdown when simular is enabled

Signed-off-by: Gyuho Lee <[email protected]>

* *: use avalanchego 1.7.17 for tests

Signed-off-by: Gyuho Lee <[email protected]>

* tests/e2e: remove "--enable-solidity-tests"

Signed-off-by: Gyuho Lee <[email protected]>

* run.sh: debug

Signed-off-by: Gyuho Lee <[email protected]>

* run.sh: fix

Signed-off-by: Gyuho Lee <[email protected]>

* run.sh: remove "set -x" debug mode

Signed-off-by: Gyuho Lee <[email protected]>

* go mod tidy

Signed-off-by: Gyuho Lee <[email protected]>

Signed-off-by: Gyuho Lee <[email protected]>
2022-08-24 21:01:58 -04:00
aaronbuchwaldandGitHub 4fc2e0ffe4 Bump go version to 1.18 (#184)
* Bump go version to 1.18

* Set golangci lint version to v1.47

* Fix typo

* Update github action versions
2022-08-08 12:29:32 -04:00
Patrick O'GradyandGitHub fed525f572 [email protected] (#162) 2022-07-23 09:47:53 -07:00
Patrick O'GradyandGitHub 616fe271f8 Update AvalancheGo (#157)
* update simulator

* update AvalancheGo

* update all versions

* remove flaky tests

* more badges
2022-07-21 17:29:34 -07:00
Patrick O'GradyandGitHub 5afa4a9092 final cleanup (#150) 2022-07-13 15:04:26 -04:00
Patrick O'GradyandGitHub 09f5497526 [email protected] (#134) 2022-06-14 10:19:32 -07:00
Patrick O'Grady ac885ddcec update simulator 2022-04-13 15:28:00 -07:00
Patrick O'Grady aa495c559c update all versions 2022-04-13 15:27:59 -07:00
aaronbuchwaldandGitHub e88e729636 Bump avalanchego v1.7.9 (#67)
* Bump avalanchego to v1.7.9 and start v0.2.1 release cycle

* Fix ulimit call

* Update go.mod for simulator

* Bump to v1.7.10-rc.0
2022-03-31 17:39:10 +02:00
Patrick O'Grady 9b95587448 typo 2022-03-14 10:58:17 -07:00
Patrick O'Grady 160692ab9e better logging 2022-03-14 10:56:07 -07:00
Patrick O'Grady 1e19e4e288 remove comments 2022-03-14 10:38:47 -07:00
Patrick O'Grady 5f152e89e4 nits 2022-03-14 09:18:40 -07:00
Patrick O'Grady 132457d414 add ewoq key 2022-03-14 09:02:36 -07:00
Patrick O'Grady 708cec4777 update spacing 2022-03-14 08:21:02 -07:00
Patrick O'Grady 623459bcf0 nits 2022-03-14 08:20:27 -07:00
Patrick O'Grady bb8b182802 add license 2022-03-14 07:39:39 -07:00
Patrick O'Grady b43ac39408 comments 2022-03-14 07:36:56 -07:00
Patrick O'Grady 268b85ccb7 key refactor 2022-03-14 07:32:40 -07:00