Commit graph

125 commits

Author SHA1 Message Date
Arpit Temani
ab6925d7a8 fix matic cli config 2022-11-15 14:27:27 +05:30
Arpit Temani
769e2bb805 change matic-cli config 2022-11-15 13:38:16 +05:30
Arpit Temani
3896c5b319 ci changes 2022-11-15 13:01:16 +05:30
Arpit Temani
b7a282792c merge develop 2022-11-13 19:05:26 +05:30
marcello33
c954606250
dev: fix: ci (#559)
* dev: fix: ci

* dev: fix: add default block configs

* dev: fix: add sprintSize

* dev: fix: revert

* dev: fix: go-versions
2022-10-20 10:20:45 +02:00
Arpit Temani
743871ffd5 fix CI 2022-10-19 23:19:39 +05:30
marcello33
bf39845222
Testing Toolkit v1 PR Template (#536)
* dev: add: pull request template
2022-10-12 15:11:38 +02:00
Arpit Temani
2a6ea470a0
Mining Analysis (#429)
* base setup for miner opentel

* version change

* modify ctx passing

* add attributes

* update fill txs span attributes

* fix: use common attributes for remote and local txs

* pass context in seal

* fix

* fix

* add traces to finalize and assemble

* fix

* use task ctx in result loop

* only start parent span if no error

* send nil tracer from Finalize

* clean up

* add sub function timings in span attribute

* modify span attributes

* set time attribute to milliseconds

* linters fix

* fix linters for consensus

* add nolint to worker

* fix testcase

* Added fillTransactions subTraces

* add traces in intermediate root hash function

* add traces in WriteBlockAndSetHead function, fix linters

* fix: linting errors

* fix: test cases

* fix: go.mod

* fix: testcase

* extract tracing package

* linters fix

* debug

* Revert "debug"

This reverts commit 2d68b7c7b1105080563a4e1a6949dabc10acaff8.

* fix: panic in NewTransactionsByPriceAndNonce iteration

* change heimdall version to develop

* miner/worker: fix duplicate call to tx ordering

* miner/worker: refactor tracing

* consensus/bor: use tracing package

* tracing: add more abstraction for spans

* tracing: set all attributes at once

* remove nested tracing from blockchain.WriteBlockAndSetHead function

* remove nested tracing from statedb.IntermediateRoot function

* handle end span in bor.Seal function

* fix: typo

* minor fixes

* fix: linters

* fix: remove nolint

* go mod tidy

Co-authored-by: Manav Darji <manavdarji.india@gmail.com>
Co-authored-by: Shivam Sharma <shivam691999@gmail.com>
Co-authored-by: Evgeny Danienko <6655321@bk.ru>
2022-09-30 13:40:18 +05:30
Jerry
041f60b756 Change heimdall branch to develop in CI 2022-09-27 22:54:17 -07:00
Arpit Temani
f6875757bf merge develop 2022-09-27 15:04:08 +05:30
Arpit Temani
9662dc7d6e fix heimdall version 2022-09-22 19:13:17 +05:30
Arpit Temani
d71c6be482 change matic-cli version 2022-09-22 17:36:37 +05:30
Arpit Temani
e45b1d46fc
Merge pull request #522 from maticnetwork/arpit/disable-macos
disable macos tests
2022-09-22 14:29:07 +05:30
Arpit Temani
f51eae03ac disable macos tests 2022-09-22 13:22:20 +05:30
Jerry
15f64ee58f Remove orphaned containers when shutdown devnet
This will potentially resolve "ERROR: network docker_default has active endpoints" problem
2022-09-06 19:17:04 +04:00
Evgeny Danilenko
e699254142
Use atomic pointer in go 1.19 (#446)
* use atomic pointer

* golang version

* golang version

* go1.19

* linters

* Bump golangci-lint

* linters

* linters

* linters after merge

* generic logger

* generic logger

* logger

* logger

* linters

* bump toml

* linters1

* linters

* linters

* linter

* linter

* linters

* linters

* linters
2022-08-09 22:11:09 +03:00
Jerry
4089c24ae2 Remove 'edit' from github CI workflow 2022-07-21 09:30:34 -07:00
Manav Darji
b382111b87
github: add new issue templates (#455)
* add: new issue templates

* github: add version commands and file paths
2022-07-18 20:09:15 +05:30
Jerry
1daa659aa5 Merge remote-tracking branch 'upstream/develop' into develop 2022-06-22 00:08:02 -07:00
Krishna Upadhyaya
3bb14803e2
Merge pull request #437 from maticnetwork/krishna/reproducible-build-test
Added reproducible build test to CI
2022-06-21 18:26:05 +05:30
Krishna Upadhyaya
fbaeaa2247 Added reproducible build test to CI 2022-06-21 16:42:56 +05:30
Jerry
9592534a69 Integration tests 2022-06-20 11:25:39 -07:00
Evgeny Danilenko
342bf3089e
Merge develop branch into v0.3.0-dev (#430)
* merge geth v1.10.15

* fix: Removed FastSync from cli server

* fix: TestHeadersRLPStorage

* Added t.skip(ETH2 in bor)

* fix: flow in create consensus engine

* bumped version

* Fix typo

* increase block time

* remove file

* bumped version

* merge gethv1.10.17

* bumped version

* fix failing tests

* Bump Go version to v1.18 (#368)

* Bump Go version to v1.18.1

* Build using netgo tag

This will create a static build using Go native networking stack.

Checked and it works stable for all archs and distros.

* Fix meta

* initial implementation for common ancestor approach

* extract whitelist interface

* fix types

* fix tests and format

* add unit tests for IsValidChain function

* more tests

* wip

* test ErrCheckpointMismatch

* minor fixes

* fix test

* dont panic

* fmt

* Limit state sync by gas

* Added logging for state-sync total gas usage

* Added number of event-records in log

* Minor Changes

* Minor Fix

* Adding individual gasUsed

* Minor Fix

* fix: return value for no remote block

* handle all errors

* modularise fake chain validator in downloader

* add more tests

* fix tests

* Modifying miner.recommit flag and its adjustment function. (#370)

* changed min/max/current recommit values

* Remove Hardcoded min/max

* Code Sanitization

* Skipping tests for constant recommit interval

* Adding default miner.recommit value

* Minor Change

* Increased default value of rpc.txfeecap to 5

* add debug rpc endpoints for checkpoint whitelist service

* minor fixes and enhancements

* avoid capping warnings for gas set by internal system transactions

* use typed mocks

* fix

* fix

* fix

* fix close

* fix

* Create stale.yml

* Fix bor consensus checkpoint bug

Co-authored-by: Arpit Temani <temaniarpit27@gmail.com>
Co-authored-by: Shivam Sharma <shivam691999@gmail.com>
Co-authored-by: Manav Darji <manavdarji.india@gmail.com>
Co-authored-by: Sandeep Sreenath <sandeep.sreenath@gmail.com>
Co-authored-by: Victor Castell <victor@victorcastell.com>
Co-authored-by: Ferran <ferranbt@protonmail.com>
Co-authored-by: Krishna Upadhyaya <krishnau1604@gmail.com>
Co-authored-by: Karlo <karlonovak@gmail.com>
Co-authored-by: Sandeep Sreenath <ssandeep@users.noreply.github.com>
Co-authored-by: Jerry <jerrycgh@gmail.com>
2022-06-15 09:02:01 +03:00
Sandeep Sreenath
c3a0c20303
Create stale.yml 2022-06-08 15:09:42 +05:30
Jerry
12ab0f0240 Lint consensus/bor module
Cleanup, lint, and enable linters for consenssus/bor module.

Disabled linter "gomnd" and "tagliatelle" because they are not
easy to fix and the return on the time investment is very low.
Disabled linter "prealloc" because it is not easy to guess and pre-allocate the
slice accurately in many cases.
2022-05-23 19:46:59 -07:00
Evgeny Danilenko
87a2e5224f
Merge pull request #395 from maticnetwork/testing-flags
Restores linters and separate kinds of tests
2022-05-23 19:42:18 +03:00
Evgeny Danienko
2930d04428 misspell 2022-05-17 19:28:08 +03:00
Evgeny Danienko
3aaf6bc13e cherry-pick from Jerry's Chen branch 2022-05-17 19:25:59 +03:00
Evgeny Danienko
91559f3955 run on forked branches 2022-05-16 10:47:33 +03:00
Evgeny Danienko
30dd11a183 run on forked branches 2022-05-16 10:35:57 +03:00
Evgeny Danienko
52647fcd88 run on forked branches 2022-05-16 10:12:09 +03:00
Evgeny Danienko
e787097874 restore codecov 2022-05-13 18:41:27 +03:00
Evgeny Danienko
5a3eb08a57 where to run3 2022-05-13 09:38:43 +03:00
Evgeny Danienko
a8a9229c34 where to run2 2022-05-13 09:37:23 +03:00
Evgeny Danienko
276e82b16c where to run1 2022-05-13 09:36:40 +03:00
Evgeny Danienko
3268c143cd where to run 2022-05-13 09:36:02 +03:00
Evgeny Danienko
485762a28d where to run 2022-05-13 09:35:31 +03:00
Evgeny Danienko
81ede2f6d2 where to run 2022-05-13 09:25:37 +03:00
Evgeny Danienko
a57d21166a leaks 2022-05-12 18:27:03 +03:00
Evgeny Danienko
594c9ab23f vs master 2022-05-12 18:04:04 +03:00
Evgeny Danienko
2bac6ce45f remove shuffle for e2e 2022-05-11 17:09:36 +03:00
Evgeny Danienko
7c6357ecf6 group concurrency 2022-05-11 16:18:56 +03:00
Evgeny Danienko
6a598b4e93 revert 2022-05-11 15:27:18 +03:00
Evgeny Danienko
cd4b40fffd test without linters 2022-05-11 15:26:55 +03:00
Evgeny Danienko
834c7741b4 only new issues 2022-05-11 15:21:21 +03:00
Evgeny Danienko
15900477fb linters 2022-05-11 14:05:02 +03:00
Evgeny Danienko
63cd7a3273 move integration ci 2022-05-11 10:33:44 +03:00
Evgeny Danienko
5192fd7d8d split units and integration. step 1 2022-05-11 10:26:10 +03:00
Evgeny Danienko
eb76df22af better ci 2022-05-11 10:00:31 +03:00
Victor Castell
0232c6a266 Do not build classic docker image 2022-05-09 17:05:24 +02:00