Commit graph

137 commits

Author SHA1 Message Date
marcello33
a323b5bc3e
sonarqube integration (#658)
* dev: add: sonarqube integration into security-ci

* dev: add: exclude java files from sonarqube analysis
2023-01-11 17:33:53 +01:00
marcello33
5ae1b16970
dev: chg: update PR template to include nodes audience check (#641)
* dev: chg: update PR template to include nodes audience check

* dev: chg: better description

* dev: chg: add entry to changes too
2023-01-09 09:37:49 +01:00
marcello33
50a778207e
dev: add: pos-944: snyk and govuln integration (#578)
* dev: add: pos-944 security ci and readme

* dev: add: pos-944 remove linters as this is included already in build ci

* dev: chg: pos-947 dependencies upgrade to solve snyk security issues

* dev: chg: update security-ci

* dev: chg: remove linter to allow replacements for security issues

* dev: add: pos-944 verify path when updating metrics from config

* dev: add: pos-944 fix linter

* dev: add: pos-944 add .snyk policy file / fix snyk code vulnerabilities

* dev: fix: pos-944 import common package / gitignore snyk dccache file

* dev: fix: pos-944 verify canonical path for crashers

* dev: fix: pos-944 linter

* dev: add: pos-976 add govuln check

* dev: add: pos-976 test upload with permissions

* dev: add: pos-976 remove duplicated upload

* dev: add: pos-976 report upload

* dev: add: pos-976 remove upload

* dev: fix: pos-944 fix govuln action

* dev: fix: pos-944 move govulncheck to security-ci

* dev: fix: pos-944 bump golvun action and golang versions

* dev: fix: pos-944 remove persmissions and fix conflicts

* dev: chg: restore err msg

* dev: chg: remove duplicated function

* dev: chg: sort import

* dev: chg: fix linter

* dev: add: use common VerifyCrasher function to avoid duplications / replace deprecated ioutils.ReadFile

* dev: fix: typo
2022-12-06 10:53:55 +01:00
Raneet Debnath
9155cfc68b CI: cleanup 2022-11-25 17:37:31 +05:30
Raneet Debnath
c686660fe5 CI: try using checked out bor path 2022-11-25 14:05:58 +05:30
Raneet Debnath
ca5fbadd70 CI: test: use bor in matic-cli 2022-11-25 12:19:20 +05:30
Raneet Debnath
be0a2ad79f CI: test launch devnet without hardcoded sleep time (pos-534) 2022-11-25 11:24:56 +05:30
Raneet Debnath
b2a453b115 chg: increase timeout 2022-11-18 14:04:34 +05:30
Raneet Debnath
dfa051483f Merge branch 'develop' of https://github.com/maticnetwork/bor into raneet10/pos-535 2022-11-17 18:23:16 +05:30
Raneet Debnath
1b8ef5059f cleanup 2022-11-17 18:20:53 +05:30
Raneet Debnath
e004e5f298 init: pos-535 smoke test 2022-11-17 11:11:42 +05:30
Arpit Temani
2b84185173 change ci params 2022-11-15 22:06:12 +05:30
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