Commit graph

87 commits

Author SHA1 Message Date
marcello33
808259b4dc
mardizzone/hotfix-snyk: remove vcs build when running snyk (#745) 2023-02-17 13:08:10 +01:00
marcello33
ad936ed3fc
dev: chg: POS-215 move sonarqube to own ci (#733) 2023-02-09 10:04:29 +01:00
Raneet Debnath
af5d882473 trigger ci 2023-01-16 12:12:09 +05:30
Raneet Debnath
213d0cd56d CI: use matic-cli master branch 2023-01-16 09:11:02 +05:30
SHIVAM SHARMA
9aeaf03f05
Merge branch 'qa' and 'master' into develop (#663)
* Adding in Mumbai/Mainnet precursor deb packaging for tests to use during upgrade(iterations to come)

* Added changes per discussion in PR, more changes may be necessary

* Adding prerelease true

* Disabling goreleaser

* Removing README swap file

* change bor_dir and add bor user for v0.3.0 release

* rollback bor user and use root

* metrics: handle equal to separated config flag (#596)

* metrics: handle  based config path

* internal/cli/server: add more context to logs

* use space separated flag and value in bor.service

* fixed static-nodes related buf (os independent) (#598)

* fixed static-nodes related buf (os independent)

* taking static-nodes as input if default not present

* Update default flags (#600)

* internal/cli/server: use geth's default for txpool.pricelimit and add comments

* builder/files: update config.toml for mainnet

* packaging/templates: update defaults for mainnet and mumbai

* internal/cli/server: skip overriding cache

* packaging/templates: update cache value for mainnet

* packaging/templates: update gcmode for archive mumbai node

* metrics: handle nil telemetry config (#601)

* resolve merge conflicts

* update go version in release.yml

* update goversion in makefile

* update Docker login for goreleaser-cross v1.19

* Cleanup for the packager to use git tag in the package profile naming. Added conditional check for directory structure, this is in prep for v0.3.1, as this will create a failure on upgrade path in package due to file exist

* added a toml configuration file with comments describing each flag (#607)

* added a toml configuration file with comments describing each flag

* internal/cli/server: update flag description

* docs/cli: update example config and description of flags

* docs: update new-cli docs

Co-authored-by: Manav Darji <manavdarji.india@gmail.com>

* Adding of 0.3.0 package changes, control file updates, postinst changes, and packager update

* added ancient datadir flag and toml field, need to decide on default value and update the conversion script

* updated toml files with ancient field

* Add support for new flags in new config.toml, which were present in old config.toml (#612)

* added HTTPTimeouts, and TrieTimeout flag in new tol, from old toml

* added RAW fields for these time.Duration flags

* updated the conversion script to support these extra 4 flags

* removed hcl and json config tests as we are only supporting toml config files

* updated toml files with cache.timeout field

* updated toml files with jsonrpc.timeouts field

* tests/bor: expect a call for latest checkpoint

* tests/bor: expect a call for latest checkpoint

* packaging/templates: update cache values for archive nodes

Co-authored-by: Manav Darji <manavdarji.india@gmail.com>

* remove unwanted code

* Fix docker publish authentication issue

In gorelease-cross 1.19+, dockerhub authentication will require docker
logion action followed by mounting docker config file. See
https://github.com/goreleaser/goreleaser-cross#github-actions.

* Revert "update Docker login for goreleaser-cross v1.19"

This reverts commit 4d19cf5342.

* Bump version to stable

* Revert "Merge pull request #435 from maticnetwork/POS-553"

This reverts commit 657d262def, reversing
changes made to 88dbfa1c13.

* revert change for release for go1.19

* Add default values to CLI helper and docs

This commit adds default values to CLI helper and docs. When the default value of a string flag, slice string flag, or map string flag is empty, its helper message won't show any default value.

* Add a summary of new CLI in docs

* Updating packager as binutils changed version so that apt-get installs current versions

* Add state pruning to new CLI

* Minor wording fix in prune state description

* Bumping control file versions

* Mainnet Delhi fork

* Set version to stable

* change delhi hardfork block number

* handle future chain import and skip peer drop (#650)

* handle future chain import and skip peer drop

* add block import metric

* params: bump version to v0.3.3-stable

* Bump bor version in control files for v0.3.3 mainnet release

Co-authored-by: Daniel Jones <djones@polygon.technology>
Co-authored-by: Will Button <wbutton@polygon.technology>
Co-authored-by: Will Button <will@willbutton.com>
Co-authored-by: Manav Darji <manavdarji.india@gmail.com>
Co-authored-by: Daniel Jones <105369507+djpolygon@users.noreply.github.com>
Co-authored-by: Pratik Patil <pratikspatil024@gmail.com>
Co-authored-by: Arpit Temani <temaniarpit27@gmail.com>
Co-authored-by: Jerry <jerrycgh@gmail.com>
2023-01-13 14:47:14 +05:30
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
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
3896c5b319 ci changes 2022-11-15 13:01:16 +05:30
Arpit Temani
743871ffd5 fix CI 2022-10-19 23:19:39 +05:30
Arpit Temani
f6875757bf merge develop 2022-09-27 15:04:08 +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
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