265 Commits
Author SHA1 Message Date
maruandGitHub a663e0cda5 Switch from go install to go run to avoid cluttering shared bin path (#1510) 2025-03-26 15:22:33 +00:00
Quentin Mc Gaw 497f43672c Merge branch 'master' into libevm 2025-03-21 10:27:18 +01:00
maruandGitHub 07eef3a780 [docker] Fix multi-arch builds for unmerged avalanchego versions (#1474) 2025-03-10 18:09:17 +00:00
maruandGitHub 2a8bec7a80 Simplify avalanchego version maintenance (#1469) 2025-03-10 09:31:21 +00:00
Ceyhun OnurandGitHub 083e51fce9 fix multiarch docker binary build (#1461) 2025-03-04 23:26:34 +03:00
Ceyhun OnurandGitHub f1e3aed4e7 chore(ci): use go.mod version and remove unused lint.sh (#1456) 2025-03-03 19:44:12 +03:00
b5698242c8 chore: Bump avalanchego to master (#1443)
Co-authored-by: Martin HS <[email protected]>
Co-authored-by: Marius van der Wijden <[email protected]>
Co-authored-by: Quentin McGaw <[email protected]>
Co-authored-by: Richard Pringle <[email protected]>
Co-authored-by: Ceyhun Onur <[email protected]>
Co-authored-by: Tsachi Herman <[email protected]>
2025-02-24 06:41:24 -08:00
Ceyhun OnurandGitHub 21182dae3e bump avalanchego to v1.12.2 (#1436)
* bump avalanchego to v1.12.2

* remove unneeded var

* fix antithesis images

* add cross-compile setup to dockerfile

* use build_env.sh in Dockerfile

* export variables

* remove build_env.sh from Dockerfile

* remove comment

* revert
2025-01-30 00:39:20 +03:00
337a89abb5 sync coreth changes up to 3148809 (#1434)
* move config package (coreth c167754ba)

* refactor: Split config package so it doesn't import core, core/vm (#734)

Co-authored-by: Quentin McGaw <[email protected]>

* bump avalanchego (same as coreth's 4765329f)

* Apply upstream fixes (up to d3cc618) (#766)

Co-authored-by: maskpp <[email protected]>
Co-authored-by: Aaron Chen <[email protected]>
Co-authored-by: Shiming Zhang <[email protected]>
Co-authored-by: Felix Lange <[email protected]>
Co-authored-by: Nathan <[email protected]>
Co-authored-by: Eric <[email protected]>

* fix panic if config duration is set to 0 (#765)

* fix mocks

* antithesis script patch: change dir for avalanchego build (for go.mod)

---------

Co-authored-by: Quentin McGaw <[email protected]>
Co-authored-by: maskpp <[email protected]>
Co-authored-by: Aaron Chen <[email protected]>
Co-authored-by: Shiming Zhang <[email protected]>
Co-authored-by: Felix Lange <[email protected]>
Co-authored-by: Nathan <[email protected]>
Co-authored-by: Eric <[email protected]>
2025-01-29 18:14:55 +03:00
Darioush JalaliandGitHub 513c6fa7ab libevm phase 2: Use libevm statedb from upstream (#1421)
Co-authored-by: Arran Schlosberg <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
Co-authored-by: Michael Kaplan <[email protected]>
Co-authored-by: Ceyhun Onur <[email protected]>
Co-authored-by: Richard Pringle <[email protected]>
Co-authored-by: Quentin McGaw <[email protected]>
Co-authored-by: Meaghan FitzGerald <[email protected]>
Co-authored-by: Quentin McGaw <[email protected]>
Co-authored-by: mountcount <[email protected]>
Co-authored-by: chuangjinglu <[email protected]>
Co-authored-by: guqicun <[email protected]>
Co-authored-by: Dmytrol <[email protected]>
fix problematic const name and some typos in comment (#1400)
fix some function names in interface comment (#1397)
close database on shutdown (#1403)
fix some function names in comment (#1405)
Fix Typos in Documentation (#1404)
fix test generator (#724)
2025-01-13 07:45:49 -08:00
Quentin McGawandGitHub 5983bc9577 chore(all): simplify mocks generation (#1413)
- Localized mockgen commands in the package where they are needed
- Generate mocks from your IDE directly
- Platform independent way of generating mocks
- Check automatically mocks are kept up to date with their matching interfaces
- Check automatically mocks all have a matching source controlled generation command
- Remove license headers for generated mocks
- Generating mocks section added in contributing document
- Use same mockgen version as specified in go.mod
2025-01-07 13:21:54 +01:00
a298553a2e add multiatch docker build to support arm (#1417)
* add multiatch docker build to support arm

* fix build img id

* Update .github/workflows/publish_docker.yml

Co-authored-by: Quentin McGaw <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* Update .github/workflows/publish_docker.yml

Co-authored-by: Quentin McGaw <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* fix vm id

* remove debug echo

* revert format change

---------

Signed-off-by: Ceyhun Onur <[email protected]>
Co-authored-by: Quentin McGaw <[email protected]>
2025-01-06 19:12:05 +03:00
02588fd2f1 bump avalanchego to master (updates x/crypto) (#1410)
* bump avalanchego to master (updates x/crypto)

* fix

* Encapsulate Signer (#693)

* Remove the bls dependency
---------
Co-authored-by: Darioush Jalali <[email protected]>

* bump to v1.12.1

---------

Co-authored-by: Richard Pringle <[email protected]>
2024-12-18 14:40:44 +00:00
Darioush JalaliandGitHub 223e08b1a9 mark flaky: TestTimedUnlock (#1411) 2024-12-18 06:22:48 -08:00
e3a01fb149 use libevm: params, core/vm, eth/tracers/* + some of core/types (#1380)
* format: as coreth

* use libevm: params, core/vm, eth/tracers/* + some of core/types (#662)

Co-authored-by: Arran Schlosberg <[email protected]>

* format: as subnet-evm

* fix coreth formatting

* fix mocks

* fix contract deployer allowlist

* nits

* nits

* nit

* fix test import loop

* fix imports

* nits

* fix

* add TODO

---------

Co-authored-by: Arran Schlosberg <[email protected]>
2024-12-12 10:04:35 -08:00
Ceyhun OnurandGitHub 6a67aa9986 close database on shutdown (#1403)
* bump avago to v1.12.0

* close database on shutdown

* update release notes

* rename verdb

* close only if standalone db

* bump avago branch version

* bump avago
2024-12-10 20:20:57 +03:00
Ceyhun OnurandGitHub d0dcdd55c4 bump avago to v1.12.0 (#1402) 2024-12-05 19:50:27 +03:00
Ceyhun OnurandGitHub 0cfca7f87b bump avago to v1.11.13 (#1391) 2024-11-19 14:36:45 +00:00
Ceyhun OnurandGitHub 513e24c51e bump avago to v1.11.13-rc.1 (#1389)
* fix start timestamp

* add client

* rename sov to l1validator

* bump avago to v1.11.13-rc.1

* update compatibility
2024-11-16 01:22:56 +03:00
43fe68684d Refactor uptime tracking (#1388)
Co-authored-by: Darioush Jalali <[email protected]>
Co-authored-by: Michael Kaplan <[email protected]>
2024-11-15 19:01:56 +00:00
c0a9ad0fcd Uptime tracking (#1263)
* add validator state

* add pausable uptime manager

* remove stuttering name

* rename state listener

* add uptime tracking to VM

* remove unused param

* add wg for update validators

* update state before network shutdown

* restart bootstrapping status in test

* add get validator to state

* rename uptime to validator

* fix mock state

* tests

* Update plugin/evm/validators/state.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* use update enum

* Update plugin/evm/validators/state.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* Update plugin/evm/validators/state.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* respond to comments

* update avalanchego dep branch

* reviews

* reword errs

* fix test changes

* fix upgrades after deactivating latest in context

* use test branch from avalanchego

* use branch commit for ava version

* update e2e ava version

* update avago dep

* remove extra line...

* export struct

* reviews

* conflict fix

* custom err msg

* add listener mock

* bump avago test branch

* remove config

* remove api changes

* use non-version db for validatorsDB

* remove errs from resume and pause

* check after stopping

* use expectedTime in tests

* reviews

* fix len

* remove log

* use interfaces from pkgs

* improve comments

* new fields and refactorings

* fix linter

* clarify comments

* update comment

* bump to poc branch

* reviews

* update comment

* update to avago master

---------

Signed-off-by: Ceyhun Onur <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
2024-11-13 22:27:03 +03:00
7f9518dfe5 move interfaces to separate pkgs (#1379)
* add validator state

* add pausable uptime manager

* remove stuttering name

* rename state listener

* Update plugin/evm/validators/state.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* use update enum

* Update plugin/evm/validators/state.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* Update plugin/evm/validators/state.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* respond to comments

* update avalanchego dep branch

* reviews

* reword errs

* fix test changes

* fix upgrades after deactivating latest in context

* use branch commit for ava version

* reviews

* add listener mock

* remove errs from resume and pause

* check after stopping

* use expectedTime in tests

* reviews

* move interfaces to separate pkgs

* regen mock

---------

Signed-off-by: Ceyhun Onur <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
2024-11-05 22:17:08 +00:00
4e3537fdaf Validator state (#1371)
* add validator state

* remove stuttering name

* Update plugin/evm/validators/state.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* use update enum

* Update plugin/evm/validators/state.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* Update plugin/evm/validators/state.go

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* respond to comments

* update avalanchego dep branch

* fix test changes

* fix upgrades after deactivating latest in context

* use branch commit for ava version

* add listener mock

---------

Signed-off-by: Ceyhun Onur <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
2024-10-30 19:05:35 +03:00
Ceyhun OnurandGitHub e8709ba854 bump versions (#1370) 2024-10-22 06:42:39 -07:00
Darioush JalaliandGitHub 49929df487 fix chainID in TestWaitDeployedCornerCases (#1364) 2024-10-17 16:52:58 +00:00
Ceyhun OnurandGitHub 1ca6396bb5 uptime: update avalanchego dep branch (#1348)
* update avalanchego dep branch

* fix upgrades after deactivating latest in context

* use branch commit for ava version

* bump avago

* bump go

* restore format changes

---------

Signed-off-by: Ceyhun Onur <[email protected]>
2024-10-07 17:44:14 +00:00
Darioush JalaliandGitHub 45da69b2aa fix ci: linux ci doesn't have dos2unix (#1352)
* fix ci: linux ci doesn't have dos2unix

* remove dupe
2024-09-27 11:10:51 -07:00
Darioush JalaliandGitHub 75f3492e76 windows ci: remove cr before comparing to known_flakes.txt (#1319)
* windows ci: remove cr before comparing to known_flakes.txt

* try

* try

* try
2024-09-23 11:27:38 -07:00
marunandGitHub ffe4249178 [testing] Fix image build validation for unmerged avalanchego commit (#1349)
* [testing] Enable image build testing for unmerged avalanchego version

* fixup: Correct CI failures
2024-09-20 18:53:45 +00:00
Darioush JalaliandGitHub 0bffe25fdd update known_flakes.txt (#1332) 2024-09-05 11:53:47 +00:00
Ceyhun OnurandGitHub 66f180e50e Bump avago rc (#1330)
* bump avago to rc

* go mod tidy

* update versions
2024-09-04 12:08:47 +03:00
Darioush JalaliandGitHub feed42f7bf Bump avago master (#1316)
* bump avalanchego to master

* go mod tidy
2024-08-29 09:21:56 -07:00
marunandGitHub 4bd95875b7 [ci] Validate image build (#1318)
A recent failure of post-merge image build suggested the need for a
pre-merge sanity check to avoid unintentionally merging changes that
break the image build.
2024-08-28 14:32:58 -07:00
Darioush JalaliandGitHub 069c6a2edf build_docker_image.sh: use AVALANCHEGO_NODE_IMAGE (#1313)
* build_docker_image.sh: use AVALANCHEGO_NODE_IMAGE

* fix
2024-08-27 21:39:43 +03:00
Darioush JalaliandGitHub 820d559d4e Add observed flakes (#1312)
* add TestResyncNewRootAfterDeletes as a known flake

* add other failures

* remove T8n for now
2024-08-27 09:01:23 -07:00
Darioush JalaliandGitHub 6d6b72d3bf ci: fix NO_RACE + CI re-run on timeouts or fails of known flakes (#1304)
* fix script

* fix

* suggested for ci: re-run tests if failures are flakes (#1305)

* suggested ci improvement: re-run tests if failures are flakes

* remove flake indicators

* bash

* add more flakes

* fix bash

* fix

* add flake

* sort
2024-08-26 08:19:49 -07:00
marunandGitHub 5a06f5a7a7 [tmpnet] Update to use new monitoring urls (*-poc) (#1298)
* [tmpnet] Update to use new monitoring urls (*-poc)

* fixup: Updated to use required action version
2024-08-22 12:29:46 -07:00
Darioush JalaliandGitHub 986d2faa91 add NO_RACE so uts can run faster locally (#1294)
* add NO_RACE so uts can run faster locally

* oops
2024-08-21 09:44:02 -07:00
marunandGitHub 65a42aa98a [antithesis] Add initial test setup (#1166)
* [antithesis] Propose initial test setup

* fixup: Simplify generation of docker compose artifacts

* fixup: Ensure images will be pushed

* fixup: Update to use refactored antithesis tooling from avalanchego

* fixup: Update workload to use tmpnet

* fixup: Add workload sanity check to CI job

* fixup: Resolved workload errors

* fixup: Generate deterministic keys

* fixup: Fix invocation of gen_antithesis_compose_config

* fixup: Update to use StoppedTimer

* fixup: Respond to review feedback

* fixup: Move embedded comment out of trigger action

* fixup: Get image build test passing

* fixup: Update how runtime plugin dir is provided

* fixup: Update avalanchego version
2024-08-21 18:13:41 +03:00
Darioush JalaliandGitHub 365a680a4c remove cross-chain handlers (#1286)
* remove cross-chain handlers

* fix version

* bump avalanchego

* update versions.sh
2024-08-15 12:18:23 -07:00
Ceyhun OnurandGitHub d6500d6d84 remove test tags (#1282) 2024-08-14 06:34:01 -07:00
63c86cb152 Allow VM_ID as input to docker publish job (#1278)
* rename e upgrade to etna

* docker stuff

* fix

* fix

* fix

* move to workflow_dispatch

---------

Co-authored-by: Ceyhun Onur <[email protected]>
2024-08-13 08:28:54 -07:00
Darioush JalaliandGitHub 43e1ca5bb7 fix docker build (#1277) 2024-08-12 23:18:38 +03:00
6a8e82fad4 Bump avalanchego to master (#1268)
* Bump avalanchego to master

* Update avalanchego x (#1275)

* remove test tags

* use avago default

* revert ws diffs

* remove ginkgo test tags

---------

Co-authored-by: Ceyhun Onur <[email protected]>
2024-08-12 15:59:42 +00:00
Ceyhun OnurandGitHub b1c32065b6 use default path to build, remove symlinking (#1256) 2024-07-29 16:17:49 +00:00
marunandGitHub 32de46199d Revert build script change to allow specifying the full binary path (#1252) 2024-07-26 19:44:22 +00:00
dff8c47675 Update to use default plugin dir ($HOME/.avalanchego/plugins) (#1245)
* Update to use default plugin dir ($HOME/.avalanchego/plugins)

This has been the default for avalanchego since v1.9.6.

* fixup: Update dockerfile to copy the original rather than the symlink

* remove plugin paths

Signed-off-by: Ceyhun Onur <[email protected]>

---------

Signed-off-by: Ceyhun Onur <[email protected]>
Co-authored-by: Ceyhun Onur <[email protected]>
2024-07-26 10:07:54 -07:00
5fed36811e Update avago 1.11.10 rc0 (#1241)
* Update to latest p2p API (#594)

* sdk app errors

Signed-off-by: Joshua Kim <[email protected]>

* nit

Signed-off-by: Joshua Kim <[email protected]>

* nit

Signed-off-by: Joshua Kim <[email protected]>

* nit

Signed-off-by: Joshua Kim <[email protected]>

* nit

Signed-off-by: Joshua Kim <[email protected]>

* nit

Signed-off-by: Joshua Kim <[email protected]>

* nit

Signed-off-by: Joshua Kim <[email protected]>

* nit

Signed-off-by: Joshua Kim <[email protected]>

* nti

Signed-off-by: Joshua Kim <[email protected]>

* nit

Signed-off-by: Joshua Kim <[email protected]>

* nit

Signed-off-by: Joshua Kim <[email protected]>

* nit

Signed-off-by: Joshua Kim <[email protected]>

* nti

Signed-off-by: Joshua Kim <[email protected]>

---------

Signed-off-by: Joshua Kim <[email protected]>

* update go mod

* Remove block.Status (#593)

* Remove block.Status

* nit

* nit

* nit

* update coreth indirect dep

* fix linter

* use rc.0 tag for e2e tests

* eupgrade: base definitions (#603)

* eupgrade: base definitions

* updates

* nit: consistently use EUpgrade for replace later

* update test configs

* refactor json genesis specs in vm_test.go

* Update params/config.go

Signed-off-by: Darioush Jalali <[email protected]>

---------

Signed-off-by: Darioush Jalali <[email protected]>

* Update avalanchego v1.11.10 prerelease (#607)

* update avago 668b452

* update avago

* update with test build tags

* update golangci

* update avalanchego

---------

Signed-off-by: Ceyhun Onur <[email protected]>
Co-authored-by: Ceyhun Onur <[email protected]>

* update to latest avago

* add test build tags to allowlist pkg

* add test tags

* add test tags to bind cmd

* add gingko test tags

* revert cosmetic changes

* fix test chain config timestamps

---------

Signed-off-by: Joshua Kim <[email protected]>
Signed-off-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>
Co-authored-by: Joshua Kim <[email protected]>
Co-authored-by: Stephen Buttolph <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
2024-07-26 19:41:18 +03:00
marunandGitHub b7d42444a4 [ci] Add actionlint job (#1235) 2024-07-15 18:36:16 +03:00
73bff721bb Subnet evm 0.6.7 (#1229)
* Fix VM.GetBlockIDAtHeight (#595)

* Fix and optimize GetBlockIDAtHeight

* Add test

---------

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

* bump subnet-evm & avago

* update coreth tip

* bump mingo version

* Update scripts/versions.sh

Co-authored-by: Darioush Jalali <[email protected]>
Signed-off-by: Ceyhun Onur <[email protected]>

* go mod tidy

---------

Signed-off-by: Ceyhun Onur <[email protected]>
Co-authored-by: Stephen Buttolph <[email protected]>
Co-authored-by: Darioush Jalali <[email protected]>
2024-07-11 12:44:37 +03:00