300 Commits

Author SHA1 Message Date
Danno Ferrin
ed9d64d9cb Version upgrades for 22Q1 (#3217)
* lots of errorprone fixes
* some license updates
* some mockito updates
* upgrade the rocksdb version
* Prometheus left at 0.9.0 as 0.10.0+ introduces OpenMetrics 
  related changes that break unit tests.

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
2021-12-24 16:02:07 -07:00
Frank Li
c70c6db76e (fix) exclude ATs from sonar cloud (#3149)
* exclude ATs from sonar cloud

Signed-off-by: Frank Li <b439988l@gmail.com>

* add debug line

Signed-off-by: Frank Li <b439988l@gmail.com>

* remove sonar property (should fail)

Signed-off-by: Frank Li <b439988l@gmail.com>

* try different class

Signed-off-by: Frank Li <b439988l@gmail.com>

* actual non covered code

Signed-off-by: Frank Li <b439988l@gmail.com>

* add sonar coverage flag

Signed-off-by: Frank Li <b439988l@gmail.com>

* delete debug entries

Signed-off-by: Frank Li <b439988l@gmail.com>

* trigger bad coverage

Signed-off-by: Frank Li <b439988l@gmail.com>

* try different file

Signed-off-by: Frank Li <b439988l@gmail.com>

* remove coverage trigger

Signed-off-by: Frank Li <b439988l@gmail.com>

Co-authored-by: Sally MacFarlane <sally.macfarlane@consensys.net>
2021-12-13 11:26:49 +10:00
Adrian Sutton
05e05aef3f Update log4j (#3151)
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2021-12-10 15:28:17 +10:00
fab-10
5221bd5a7d Use an improved version of the Gradle plugin used to check licenses (#3095)
Temporary use a build of this plugin that contains the proposed PR[1],
that improve the downloadLicenses task, reducing its execution time from
about 10 minutes to under 1 minute.
The build is temporary hosted in a custom repository, until a new upstream
version with the patch is released.

[1]https://github.com/hierynomus/license-gradle-plugin/pull/203

Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
2021-11-23 12:00:50 +10:00
Jiri Peinlich
ad57ee8fdc Updating the jacoco toolVersion (#3041)
Jacoco failed to instrument some tests using the old version of the tool
when build under jdk17

Signed-off-by: Jiri Peinlich <jiri.peinlich@gmail.com>

Co-authored-by: Sally MacFarlane <sally.macfarlane@consensys.net>
2021-11-12 14:05:37 +10:00
Justin Florentine
ec7fc4781a 2936 debug docker build (#2962)
* adds a new docker build focusing on providing tools for debugging
* updates the latest build to only include a jvm, not a full jdk as shipped for Java 17

Signed-off-by: Justin Florentine <justin+github@florentine.us>
2021-11-05 04:54:08 +13:00
Justin Florentine
1959043af8 exclude acceptance tests from coverage metrics (#2942)
Signed-off-by: Justin Florentine <justin+github@florentine.us>
2021-10-29 04:12:00 +10:00
Justin Florentine
d3c1110a4f Static Code analysis via SonarQube (#2853)
* adds static code analysis and publishes results to Hyperledger account at sonarcloud.

Signed-off-by: Justin Florentine <justin.florentine@consensys.net>
Signed-off-by: Justin Florentine <justin+github@florentine.us>
2021-10-20 11:12:19 +10:00
Diego López León
fdd935262b Add a bash/zsh autocomplete script to distributions (#538) (#2854)
Signed-off-by: Diego López León <dieguitoll@gmail.com>
2021-10-07 10:51:33 +10:00
taccatisid
ce28aae8b1 spike: add benchmark (#2716)
Signed-off-by: Taccat Isid <taccatisid@protonmail.com>

Co-authored-by: Sally MacFarlane <sally.macfarlane@consensys.net>
2021-09-27 09:49:34 +10:00
Danno Ferrin
9ae84cb143 Gradle 7.2 upgrade / Java 17 Build Support (#2761)
* Gradle 7.2 upgrade / Java 17 Build Support

* Upgrade to Gradle 7.2, which supports Java 17
* Regenerate gradlew script and wrapper (as recommended)
* Suppress the removal warning for `AccessController` for now
* Update the JMH version to get rid of Gradle deprecation warning
* Add spotless `targetExcludes` so it won't re-format submodules

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
2021-09-15 07:14:32 -06:00
Sally MacFarlane
ab512b65ed [MINOR] Fixed typos (#2698)
* typos

Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
2021-08-31 16:53:06 +12:00
Danno Ferrin
78c50e995c Less Spotless Gradle Warnings (#2614)
* Less Spotless Gradle Warnings

Spotless and Gradle 7.x does not play nicely with using a fileTree as a
target and should be using plain strings. This should get rid of the
`Execution optimizations have been disabled`... warnings.

* Move Generated Reference Tests into the `build` dir

Generated reference test are currently generated into `src`, which is in
violation of the standard maven layouts.  They should be in the `build`
directory as they are artifacts not maintained in source control.

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
2021-08-11 00:36:57 +02:00
Danno Ferrin
5e0301a749 Update Repo for main branch (#2608)
Switch from `master` to `main` for the default branch
* Update CircleCI configuration
* Update Gradle snapshot detection
* Update issue templates

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
2021-08-03 13:18:19 -06:00
Danno Ferrin
3eccc26742 Gradle 7.1.1 and Dependency Version Upgrades (#2596)
Upgrade Gradle to 7.1.1.
Add Gradle configs to allow Java 16 compilation.
Upgrade most dependencies to current versions.

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
2021-08-04 01:39:24 +10:00
Danno Ferrin
fd59570e2c Update spotless and google-java-format (#2593)
Update spotless to 5.14.2 and java-google-format to 1.10.0.
Both of these are needed to support Java 16 and Gradle 7.x.

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
2021-07-28 22:44:27 -06:00
Danno Ferrin
992c656387 Update ErrorProne (#2591)
Update ErrorProne to 2.7.1 (needed for Gradle 7.x upgrade).
All new rules are fairly benign and easy to fix.

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
2021-07-29 10:57:22 +10:00
Justin Florentine
6808445c19 2496 ping pong encoding error (#2512)
* change enr sequence field to be a long scalar instead of open ended byte array
* removed utility method for creating packets
* made ping/pong parsing backwards compatible with older besu clients
Signed-off-by: Justin Florentine <justin.florentine@consensys.net>
2021-07-14 08:04:07 +10:00
Ricardo Silva
1c1470bcaa fix: tags for Quorum Acceptance Tests (#2527)
Signed-off-by: Ricardo Silva <ricardo.silva@consensys.net>

Co-authored-by: mark-terry <36909937+mark-terry@users.noreply.github.com>
2021-07-12 00:13:28 +10:00
mark-terry
a606c3e07a Enabled the 'get-quorum-payload' GQ ATs. (#2526)
Signed-off-by: Mark Terry <mark.terry@consensys.net>
2021-07-09 20:26:15 +10:00
Ricardo Silva
fccd094522 build gradle: Update tags for Quorum Acceptance Tests (#2510)
Signed-off-by: Ricardo Silva <ricardo.silva@consensys.net>
Signed-off-by: Usman Saleem <usman@usmans.info>
2021-07-08 20:01:29 +10:00
mark-terry
7ed88b70f3 GraphQL schema + adapter updates to handle GoQuorum transaction fields (#2490)
* Added graphQL schema update and associated Adapter methods.

Signed-off-by: Mark Terry <mark.terry@consensys.net>
2021-07-01 17:18:38 +10:00
Stefan Pingel
f2b09be408 Enable quorum ATs (#2491)
Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
2021-07-01 10:31:20 +10:00
Stefan Pingel
5f2e79c8cb remove unnecessary CLI flag (#2478)
* remove unnecessary CLI flag

Signed-off-by: Stefan Pingel <stefan.pingel@consensys.net>
2021-06-29 09:48:59 +10:00
Ricardo Silva
a75301b6a9 ci/cd: Require Quorum Acceptance Tests to pass (#2361)
* ci/cd: Enable the Quorum Acceptance Tests to break the build if the job fails

Signed-off-by: Ricardo Silva <ricardo.silva@consensys.net>

* tidy: remove message about failures ignored
Signed-off-by: Ricardo Silva <ricardo.silva@consensys.net>

Co-authored-by: mark-terry <36909937+mark-terry@users.noreply.github.com>
Co-authored-by: Sally MacFarlane <sally.macfarlane@consensys.net>
2021-06-07 14:08:21 +10:00
Sally MacFarlane
bc172b285b ignore multiple private states tests (#2334)
Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
2021-05-27 10:22:35 +10:00
Sally MacFarlane
d50d728324 ignore spam test (#2333)
Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
2021-05-27 09:07:01 +12:00
Sally MacFarlane
cd88151d2c GoQuorum ATs: run the estimate gas test (#2294)
* run the estimate gas test
* Revert "Modify Gas estimation logic for GoQuorum mode (#2282)"

This reverts commit 3627662f82.

Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>

Co-authored-by: mark-terry <36909937+mark-terry@users.noreply.github.com>
2021-05-20 12:04:55 +10:00
Ricardo Silva
166f6d724e Added new job for Quorum Acceptance Tests (#2122)
* ci/cd: added new job for GoQ Acceptance Tests running against Besu in GoQuorum mode

Signed-off-by: Ricardo Silva <ricardo.silva@consensys.net>

* ci/cd: fixed missing workflow config

Signed-off-by: Ricardo Silva <ricardo.silva@consensys.net>

* fix: add missing setup_remote_docker

Signed-off-by: Ricardo Silva <ricardo.silva@consensys.net>

* gradle: moved configuration to run the GoQ AT to the gradle file and added capturer of artifacts for circleci

Signed-off-by: Ricardo Silva <ricardo.silva@consensys.net>

* tidy: remove unused executer

Signed-off-by: Ricardo Silva <ricardo.silva@consensys.net>

* fix: remove unused dependency

Signed-off-by: Ricardo Silva <ricardo.silva@consensys.net>

* refactor: moved tags to a separate variable

Signed-off-by: Ricardo Silva <ricardo.silva@consensys.net>

* fix: increase resource for at executor

Signed-off-by: Ricardo Silva <ricardo.silva@consensys.net>

* fix: ignore GoQ AT job to break pipeline

Signed-off-by: Ricardo Silva <ricardo.silva@consensys.net>

* feature: updated tags for the GoQ AT

Signed-off-by: Ricardo Silva <ricardo.silva@consensys.net>

* fix: formatting

Signed-off-by: Ricardo Silva <ricardo.silva@consensys.net>

* fix: remove istanbul tests

Signed-off-by: Ricardo Silva <ricardo.silva@consensys.net>

* doc: renaming to Quorum. remove todo.

Signed-off-by: Ricardo Silva <ricardo.silva@consensys.net>

* fix: ignore graphql tests

Signed-off-by: Ricardo Silva <ricardo.silva@consensys.net>

* feature: add RPC logs to acceptanceTestsQuorum
Signed-off-by: Ricardo Silva <ricardo.silva@consensys.net>

* fix: ignore eth-api-signed

Signed-off-by: Ricardo Silva <ricardo.silva@consensys.net>

* fix: ignore public estimate gas tests

Signed-off-by: Ricardo Silva <ricardo.silva@consensys.net>

* fix: remove randomness

Signed-off-by: Ricardo Silva <ricardo.silva@consensys.net>
2021-04-20 21:09:53 +10:00
Usman Saleem
76a5887e00 Update qbft reference test submodule with SPDX header (#2153)
* Update qbft reference test submodule with SPDX header
* exclude submodule qbft reference-test docker_interop directory from spotless check

Signed-off-by: Usman Saleem <usman@usmans.info>
2021-04-19 13:59:41 +10:00
garyschulte
27fd49ff56 bump jacoco to support java 15 & 16 jdk asm (#2119)
Signed-off-by: garyschulte <garyschulte@gmail.com>
2021-04-12 23:22:25 +10:00
Danno Ferrin
324415cbfe Complete Bintray Exodus (#1968)
* Remote bintray publish
* Remove references to bintray repos
* Update binary download locations.

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
2021-03-12 01:50:44 +10:00
matkt
5b27313172 change repository for launcher (#1943)
Use cloudsmith instead of bintray for the launcher

Signed-off-by: Karim TAAM <t2am.karim@gmail.com>
2021-02-26 09:58:10 +01:00
Adrian Sutton
f1c74ed240 Upgrade discovery to a version available from the new repository. (#1941)
Signed-off-by: Adrian Sutton <adrian.sutton@consensys.net>
2021-02-24 05:07:01 +01:00
Danno Ferrin
dede2c6d1e Artifactory Migration Snapshot Location (#1901)
Don't store snapshots in a different groupID. Needed for downstream
tooling.

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
2021-02-11 02:04:27 +00:00
Danno Ferrin
c63e9192f3 Revise Artifactory Name (#1888)
Revise the artifactory artifact-id so the download name is correct.

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
2021-02-08 16:45:35 -07:00
Danno Ferrin
c05fd11467 Add Artifactory Publishing (#1886)
To prepare for the Bintray shutdown add publication to the hyperledger's
artifactory instance to the build.

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
2021-02-08 10:55:01 -07:00
Saravana Perumal Shanmugam
d84cd7c01c Remove repo.spring.io maven repo dependency (#1827) (#1828)
According to spring's notification @ https://spring.io/blog/2020/10/29/notice-of-permissions-changes-to-repo-spring-io-fall-and-winter-2020, starting january 21, 2020 repo.spring.io doesnot allow anonymous download of 3rd-party Maven Central artifacts. They suggest all their releases are available at maven central.

Add reference to the splunk repo as mentioned in https://dev.splunk.com/enterprise/docs/devtools/java/logging-java/getstartedloggingjava/installloggingjava/

Signed-off-by: Saravana Perumal Shanmugam <perusworld@linux.com>
2021-01-25 14:23:09 -05:00
matkt
89fd7aee97 Add mainnet launcher (#1522)
Add a launcher to easily configure the Besu client on the mainnet.
Signed-off-by: Karim TAAM <t2am.karim@gmail.com>
2021-01-21 15:38:41 +01:00
Danno Ferrin
5b10ad4b61 Library Version Updates (#1766)
Update library versions to latest release versions except:
vertx
picocli
ethsigner
jackson
errorprone
jmh

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
2021-01-14 20:45:57 -07:00
Antoine Toulme
cd66968b6d Add tracing support for internals and JSON-RPC (#1557)
* Add tracing support for internals and JSON-RPC

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* Remove rocksdb tracing as it slows down execution too much

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* Add B3 headers extraction on JSON-RPC requests

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* Remove traces around trie tree as they slow down syncing significantly

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* Add tracing to fast sync pipeline

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* Add tracing for all pipelines

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* Address code review

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* Add acceptance tests and break out the shaded dependency

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* Fix tracer id

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* Revert changes to trie

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* Upgrade otel to latest, remove old tracing

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* Code review comments

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
2021-01-04 11:11:13 -08:00
Sally MacFarlane
14880623f1 comment out aws creds (#1625)
Until we get the Azure AWS creds right, disable those commands

Signed-off-by: Sally MacFarlane <sally.macfarlane@consensys.net>
2020-11-27 11:07:56 -07:00
Antoine Toulme
006e701047 Fix Windows bat file, add a CircleCI build step for it (#1608)
Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
2020-11-25 15:42:15 -08:00
Danno Ferrin
38b270e375 Remove duplicate files in zip distribution (#1565) (#1566)
The addition of the EvmTool resulted in duplication of some files in the
zip and tar.gz distributions.  Remove the build configurations that
caused that duplication.

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
2020-11-16 10:15:14 -07:00
Antoine Toulme
45fd9f861e Add OTLP metrics support (#1492)
* Add OTLP metrics support

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* Don't automatically push to grpc. Only allow if pushEnabled is set to true

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* Code review

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* Missed refactoring

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* Add missing header

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

*  Don't make otel depend on the push enabled flag

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* Expose JUL logs to log4j2

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* Code review fixes and make sure not to start push gateway if not set to prometheus

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* spotless

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* Fix unit test

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* code review feedback

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>

* Add changelog entry

Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
2020-11-12 13:22:22 -08:00
Danno Ferrin
491a1cef50 update besu-native libraries (#1499)
Update the besu-native libraries to 0.3.0 to gain access to faster BN128
and secp256k1 implementations.

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
2020-10-30 10:55:33 -06:00
Danno Ferrin
15d1789689 Make EvmTool CLI to the main distribution (#1465)
This adds EvmTool to the standard distributions.

In addition, add a property flag that disables the secpk256k1
auto-randomization for just the EvmTool to speed up invocation.
(fixes #1464)

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
2020-10-19 08:48:46 -06:00
Antoine Toulme
dbc3fee7bb Add tracing agent to the build and default parameters in Dockerfiles (#1410)
Signed-off-by: Antoine Toulme <antoine@lunar-ocean.com>
2020-10-13 16:07:22 -07:00
Danno Ferrin
c1f37f857b reduce reference tests scope (#1398)
Add some Quality of Life changes to reference tests
* ShanghaiLove tests tend to OOM in parallel execution.  Exclude them.
* LegacyTests, as generated code, are not subject to SPDX header checks.

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
2020-09-28 09:30:36 -06:00
Danno Ferrin
8067ff4f82 Multiple Docker Images with different JVMs (#1277)
Create different Docker images with different base JVMs.  Initially
OpenJDK 11.0.7, whatever OpenJDK latest is (14.0.1 at the moment), and
Graal 20.1.0 .

We still maintain a "Default" which will remain Java 11.0.x

Signed-off-by: Danno Ferrin <danno.ferrin@gmail.com>
2020-08-06 08:32:53 -06:00