Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java17 #4532

Closed
wants to merge 201 commits into from
Closed

Java17 #4532

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
201 commits
Select commit Hold shift + click to select a range
498c39f
Bonsai snapshot worldstate (#4409)
garyschulte Oct 13, 2022
7fa4641
Java 17 migration
shemnon Jun 9, 2022
2e14f68
tweak docker files and tests
shemnon Jun 9, 2022
4b8df3b
javadoc
shemnon Jun 9, 2022
58631ac
update changed error
shemnon Jun 10, 2022
f25ae44
fixes
shemnon Jun 20, 2022
27826e2
tweak lgtm and arm64
shemnon Jun 20, 2022
bbeb6b5
undo cimg on arm64
shemnon Jun 20, 2022
7f30f60
spotless and codeql for access issues
shemnon Jun 20, 2022
f0019ac
add api opening to invocation
shemnon Jun 20, 2022
ee7b34a
syntax
shemnon Jun 20, 2022
f09919e
remove openjdk-latest docker image
shemnon Jun 20, 2022
61cc078
missed some openjdk-latest
shemnon Jun 20, 2022
604e88e
spotless
jflo Oct 13, 2022
9b4bad3
using wrong image
jflo Oct 13, 2022
3eb68bc
Try to build better block proposals until timeout or GetPayload is ca…
fab-10 Oct 14, 2022
cac83b3
EVM Performance, arrays and old tracing (#4533)
shemnon Oct 14, 2022
f35eb08
BlockCreator returns BlockCreationResult transaction selection result…
jpnovais Oct 14, 2022
36b61b7
add Ameziane as a maintainer (#4526)
garyschulte Oct 18, 2022
77596b2
add maintainer (#4479)
macfarla Oct 19, 2022
15a9cc2
move to emeritus (#4480)
macfarla Oct 19, 2022
e8e6a36
check for self in one more spot (#4521)
macfarla Oct 19, 2022
c8caed6
Upgrade Apache Commons Text to 1.10.0 (#4542)
daniellehrner Oct 19, 2022
faa9951
Reduce the number of runtime exceptions (SecurityModuleException) (#4…
ahamlat Oct 19, 2022
58afc36
Upgrade RocksDB version from 6.29.5 to 7.6.0. (#4517)
ahamlat Oct 19, 2022
8e4960c
P2P: Connect to maintained connections at startup (#4543)
macfarla Oct 19, 2022
bc4e3ad
Migrate deprecated features in picocli to v4.0 (#4456)
gfukushima Oct 19, 2022
1199b49
Migrate EVM execution loop into a switch (#4540)
shemnon Oct 19, 2022
1fc702c
Add more details to rpc http/ws apis error message (#4538)
gfukushima Oct 19, 2022
337b537
Refactored spy stubbing. (#4544)
mark-terry Oct 19, 2022
2233c95
release 22.10.0-RC2 (#4547)
garyschulte Oct 19, 2022
391b814
prepare for 22.10.0 (#4548)
garyschulte Oct 19, 2022
276fa48
Upgrade jackson-databind to 2.13.4.2 and other jackson deps to 2.13.4…
lucassaldanha Oct 21, 2022
82cf9d5
DRY-up *PendingTransactionSorter tests (#4557)
fab-10 Oct 26, 2022
5f6b49e
Corrected eth_getLogs default fromBlock value. (#4513)
mark-terry Oct 26, 2022
d8033ef
Revert changelog subtraction. (#4560)
mark-terry Oct 26, 2022
606922b
Adjust tracing calls (#4561)
shemnon Oct 28, 2022
ba42686
Migrate storage APIs to Bytes32 (#4562)
shemnon Oct 28, 2022
350d9ac
4512 invalid badblock (#4554)
jflo Oct 29, 2022
f04207f
Fix for NoSuchElementException when sending local transactions (#4569)
fab-10 Oct 29, 2022
b68059a
Increase same account percentage in transaction pool for `retesteth` …
diega Oct 30, 2022
9d00a34
Remove Bytes32.ZERO (#4578)
shemnon Oct 31, 2022
3069070
use same executor as main
jflo Oct 31, 2022
99a1ce1
restored j17 install on ubuntu executors
jflo Oct 31, 2022
fba7508
installing jdk instead of jre, gradle detects java version through javac
jflo Oct 31, 2022
95d8dd3
explicitly install jre before jdk to make sure javac is installed
jflo Oct 31, 2022
d3add5f
puts java installations in auto mode
jflo Oct 31, 2022
6123b4d
adds java17 install step to buildArm64Docker since it uses gradle to …
jflo Oct 31, 2022
81b9d09
updates windows orb version to latest stable
jflo Oct 31, 2022
caea4f9
adds debug out to failing test
jflo Nov 1, 2022
93d2956
allow setting docker variables through gradle arguments (#4559)
jpnovais Nov 1, 2022
a45edd6
Rollback #4578 and #44562 (#4583)
shemnon Nov 1, 2022
c6d9203
Snapsync persist state (#4381)
matkt Nov 1, 2022
0b4a767
Bring standard tracer closer to EIP standards (#4586)
shemnon Nov 1, 2022
8808f06
Snapshot based non-persisting MutableWorldState usage (#4531)
garyschulte Nov 1, 2022
bcdc690
latent review feedback from pr 4531 (#4589)
garyschulte Nov 2, 2022
9b275db
Add port conflict exception (#4565)
gfukushima Nov 2, 2022
ca4de3c
TxPool code refactor to improve readability (#4566)
fab-10 Nov 2, 2022
74beb9b
Create a specific calculateRootHash method for BonsaiInMemoryWorldSta…
ahamlat Nov 2, 2022
118516a
Preparing for next release (#4595)
fab-10 Nov 2, 2022
9398168
DRY-up *PendingTransactionSorter (#4567)
fab-10 Nov 3, 2022
62bb946
wrap sender account in SimpleAccount to prevent holding references to…
garyschulte Nov 6, 2022
cf3abea
Remove 'publicKey' and 'raw' from Transaction RPC API response. (#4575)
mark-terry Nov 7, 2022
c88f610
Add Shandong network and fork (#4599)
shemnon Nov 7, 2022
ee34ee2
Explain and improve price validation for London transactions during s…
fab-10 Nov 8, 2022
65ed623
Warm Coinbase (EIP-3651) (#4620)
shemnon Nov 8, 2022
d4b0fbf
Make Json RPC TLS Test Java 17 friendly (#4622)
shemnon Nov 8, 2022
265912b
:recycle: Refactor EthProtocol to externalise EthVersion into its ow…
Gabriel-Trintinalia Nov 10, 2022
c25dfe9
Replace quadruplicated anonymous implementation of SubProtocol with …
Gabriel-Trintinalia Nov 10, 2022
4c9dc32
Enable reference tests for the merge (#4608)
shemnon Nov 10, 2022
e64ef52
stopgap to mitigate off-heap memory leak until refactor in #4641 (#4645)
garyschulte Nov 10, 2022
0e12e2a
Refactor transaction pool tests (#4632)
fab-10 Nov 10, 2022
2f36cf9
Optimize performance of WorldStateUpdater commit method (#4635)
ahamlat Nov 10, 2022
91d7d2a
Fix circleCI snapshot segfaults (#4659)
garyschulte Nov 11, 2022
47f6870
Implementation of PUSH0 (#4660)
lukelee-sl Nov 12, 2022
8e2e642
Upgrade RocksDB from version 7.6.0 to 7.7.3 (#4649)
ahamlat Nov 12, 2022
6833fac
Remove SHL, SHR and SAR from default EVM (#4633)
diega Nov 12, 2022
9e4e67d
Add new RPC endpoints debug_setHead & debug_replayBlock (#4580)
daniellehrner Nov 12, 2022
e7db3aa
Adding option to debug the potential problems with closing Transactio…
gezero Nov 12, 2022
40574ff
Remove misleading fastSyncEnabled variable (#4668)
Gabriel-Trintinalia Nov 13, 2022
6ac8b7c
Otel take 2 (#4075)
atoulme Nov 14, 2022
566a6e7
Ignore .idea directory in spotless checks (#4657)
daniellehrner Nov 14, 2022
f63df68
remove peer bonded observer, as it only ever called connect on the rl…
pinges Nov 15, 2022
065073d
Fix for block unavailability during SnapshotTrieLog caching (#4666)
garyschulte Nov 15, 2022
c90fee7
docker upload task - check for alpha and RC (#4675)
macfarla Nov 15, 2022
f37d1a0
Backward sync log UX improvements (#4655)
fab-10 Nov 15, 2022
33ddc52
Update artifact checksums after rebuilding the release (#4679)
fab-10 Nov 15, 2022
97fc787
Backward sync: use retry switching peer when fetching data from peers…
fab-10 Nov 15, 2022
3b59f5e
make snapshots the default behavior, invert the default for --Xbonsai…
garyschulte Nov 15, 2022
0ec13be
Adjust Shandong genesis after Nov 5th restart (#4680)
diega Nov 15, 2022
31769a5
Bonsai Fix for MainnetBlockValidator (#4648)
garyschulte Nov 15, 2022
9d27470
"Small" Ethereum Object Format (EIP-3540 + EIP-3670) (#4644)
shemnon Nov 16, 2022
e93a8b0
Implement eth/67 sub protocol (EIP-4938) (#4646)
Gabriel-Trintinalia Nov 17, 2022
cd98c47
use fork id to filter out non matching peers (#4459)
pinges Nov 17, 2022
f7ed8fa
Enable dependency checksum verification (#4251)
diega Nov 17, 2022
53793b5
Skip Javadocs and sources checksum (#4694)
diega Nov 17, 2022
f785c34
Add checksum from junit-bom-5.9.0.module (#4706)
fab-10 Nov 18, 2022
724eebb
Remove log statements that are keeping references to objects for too …
fab-10 Nov 18, 2022
8d25e63
retry block processing (#4600)
macfarla Nov 18, 2022
d58edf0
Revert "make snapshots the default behavior" (#4708)
garyschulte Nov 18, 2022
6ae12f7
Update tessera image version to latest (#4702)
Gabriel-Trintinalia Nov 21, 2022
f740249
reduce no output timeout (#4676)
macfarla Nov 21, 2022
df98f03
Add type field to eth_getTransactionReceipt (#4713)
Gabriel-Trintinalia Nov 21, 2022
5f181a6
Use snapshots for in-memory copies of layered worldstate (#4700)
garyschulte Nov 21, 2022
eccdf13
Enable RocksDB bloomFilters (#4682)
ahamlat Nov 22, 2022
59bbac1
Prints configuration overview (#4451)
daniellehrner Nov 22, 2022
1b5e454
don't re-disable the OpenTelemetry global if it has already been set/…
garyschulte Nov 22, 2022
6a9acb5
Calculate Transaction Size (#4724)
Gabriel-Trintinalia Nov 23, 2022
cb413aa
Treat nonces as quantities (#4722)
shemnon Nov 23, 2022
be000ed
Update Shandong bootnodes (#4728)
diega Nov 24, 2022
298b4ec
[2702] Add check for required option on cli (#4717)
wcgcyx Nov 24, 2022
830ba69
Restore updating chain head and finalized block during backward sync …
fab-10 Nov 24, 2022
6b58c20
Do not send new payloads to backward sync if initial sync is in progr…
fab-10 Nov 25, 2022
2f4ae9b
Fix attempt to send unsupported message (13) via cap eth/67 (#4732)
Gabriel-Trintinalia Nov 26, 2022
2ffb4a6
fix typo in error message. (#4736)
massun-onibakuchi Nov 27, 2022
d3413d4
Removing deprecated method (#4741)
gfukushima Nov 28, 2022
11a63e7
update tuweni (#4749)
macfarla Nov 29, 2022
d50d644
Mul speedup (#4756)
shemnon Nov 30, 2022
4f6fd26
Possible optimization (#4701)
Gabriel-Trintinalia Dec 1, 2022
2b853cb
Transaction pool price validation improvements and fixes (#4598)
fab-10 Dec 1, 2022
e5334a1
Preload state trie node (#4737)
matkt Dec 1, 2022
08a9489
[Shandong] EIP-3860 support (#4726)
diega Dec 1, 2022
b0ee568
22.10.1 release (#4761)
garyschulte Dec 1, 2022
4eadfa3
Prepare for version 22.10.2-SNAPSHOT (#4762)
garyschulte Dec 1, 2022
2fa6193
Add log to show when we've found a peer on a matching chain id (#4751)
siladu Dec 2, 2022
18affc6
Print the rpc params as serialized json to make it easier to copy-pas…
siladu Dec 2, 2022
614d8d6
Use value comparisons instead of reference comparisons in some places…
jtraglia Dec 2, 2022
b34df30
Set PUSH0 as valid opcode for EOF1 validation (#4733)
diega Dec 2, 2022
d7ec22d
Ensure that Snashot worldstates remain open for async operations (#4767)
ahamlat Dec 2, 2022
8d81e9e
prep changelog for 22.10.2 (#4769)
garyschulte Dec 2, 2022
3346019
subscribe prior to getting stateTrieNode in cacheStorageNodes (#4771)
garyschulte Dec 3, 2022
98534d9
22.10.2 release (#4772)
garyschulte Dec 3, 2022
3c82fc8
Prepare for version 22.10.3-SNAPSHOT (#4773)
garyschulte Dec 3, 2022
491fd41
Added max range CLI option for eth_getLogs. (#4597)
mark-terry Dec 5, 2022
bc40946
Changed chain download error log level from error to debug. (#4775)
mark-terry Dec 5, 2022
e360cb9
Fix storage key format for eth_getProof (#4564)
Gabriel-Trintinalia Dec 6, 2022
72ee653
Implement eth/68 (EIP-5793) (#4730)
Gabriel-Trintinalia Dec 6, 2022
188b120
Moved besu docs devs to emeritus (#4782)
macfarla Dec 6, 2022
a7fd971
Speedup modexp (#4780)
shemnon Dec 7, 2022
b15cb66
Add Gabriel Fukushima as a maintainer (#4750)
jframe Dec 7, 2022
091288e
Hidden option to enforce maximum or minimum eth capability (#4752)
Gabriel-Trintinalia Dec 9, 2022
f781b45
gradle modifications to support java 19 (#4797)
lukelee-sl Dec 9, 2022
e49ff34
Set default curve in EVMTool (#4790)
shemnon Dec 9, 2022
48a7ecd
Docker release builds to no longer add latest tag (#4791)
jframe Dec 9, 2022
e1af0b6
Release 22.10.3 (#4799)
jframe Dec 9, 2022
0400684
Prepare for version 22.10.4-SNAPSHOT (#4800)
jframe Dec 9, 2022
ce16f7e
add bandersnatch point (#4647)
atoulme Dec 11, 2022
df19b35
Runner test refactor (#4798)
macfarla Dec 11, 2022
24a0104
Fix typo (#4803)
Gabriel-Trintinalia Dec 11, 2022
6432394
Update Element.java (#4804)
kevaundray Dec 11, 2022
2b4f020
Add chain data pruning experimental feature (#4686)
wcgcyx Dec 12, 2022
a0f0084
Add accessList field to Transaction Call Object (#4802)
Gabriel-Trintinalia Dec 13, 2022
8382743
update spotless action to jdk 17
jflo Dec 13, 2022
64814c8
Docker release task for latest tags (#4810)
jframe Dec 14, 2022
9ad7d70
Fix docker release workflow login (#4826)
jframe Dec 14, 2022
c5129f3
Add download sha sums for 22.10.3 release (#4827)
jframe Dec 15, 2022
6be8790
Support timestamp forks and implement shanghaiTime (#4743)
gezero Dec 16, 2022
be8f54e
Use blocking executor in test (#4832)
wcgcyx Dec 16, 2022
e1e45a0
Memoize transaction size and hash at the same time (#4812)
fab-10 Dec 16, 2022
f965809
Add EIP-4200: EOF - Static relative jumps (#4760)
diega Dec 19, 2022
57370fd
Deprecation notice for GoQuorum-compatible privacy and IBFT 1.0 (#4839)
macfarla Dec 19, 2022
1eb332e
Fix some flaky tests (#4843)
macfarla Dec 20, 2022
4ccb27f
EIP-4750 EOF Functions (#4781)
shemnon Dec 20, 2022
102bcdc
Delete unused classes (#4846)
siladu Dec 20, 2022
1560029
EIP-5450 - EOF Stack Validation (#4805)
shemnon Dec 20, 2022
9aa23bc
DCO check on main (#4847)
macfarla Dec 21, 2022
4c15f25
Use safe block as pivot block suring snapsync (#4819)
matkt Dec 21, 2022
1e467b8
PoS checkpoint sync (#4844)
gfukushima Dec 21, 2022
c305ad3
Ignore extra RocksDB column families for experimental features (#4842)
wcgcyx Dec 21, 2022
a6fdcfe
EIP-6122 Timestamp based fork IDs (#4841)
jframe Dec 21, 2022
51fe6c1
Initial implementation of EngineGetPayloadV2 (#4833)
Gabriel-Trintinalia Dec 21, 2022
33fda2f
rollback dco on push (#4855)
macfarla Dec 21, 2022
7dffe8e
EOF Code Validation CLI (#4845)
shemnon Dec 21, 2022
a5ee152
Move EVM operation Tests (#4858)
shemnon Dec 22, 2022
654301d
[Shandong] Fix EOFv1 validation (#4711)
diega Dec 22, 2022
3b41d5c
Bugfix snapshot transaction segfaults after storage truncation (#4786)
garyschulte Dec 22, 2022
ecee686
Add post-run allocation output to EVMTool (#4709)
shemnon Dec 23, 2022
d270702
Optimize Sstore operation execution time (#4836)
ahamlat Dec 23, 2022
7033ba0
Bugfix potential chain head and worldstate inconsistency (#4862)
garyschulte Dec 23, 2022
1792da6
EOF updates (#4859)
shemnon Dec 23, 2022
7094f04
prep for 23.1.0-beta (#4863)
garyschulte Dec 23, 2022
45dc376
23.1.0-BETA release (#4864)
garyschulte Dec 23, 2022
f9d6f77
Prepare for version 23.1.1-SNAPSHOT (#4865)
garyschulte Dec 23, 2022
ea54728
Do not apply final arguments ErrorProne to generated code (#4866)
shemnon Dec 29, 2022
1f7a43f
Enable EOF in Shanghai (#4868)
shemnon Dec 30, 2022
8441f0c
Remove Deprecated Networks (#4869)
shemnon Jan 2, 2023
0bfc714
Re-enable integration tests (#4871)
shemnon Jan 3, 2023
bf887ab
Allow -Pdocker-platform during distDocker (#4828)
gezero Jan 4, 2023
b3e3fbb
Create skeleton structure for Engine API V2 methods (#4876)
siladu Jan 4, 2023
4b48392
Deprecation warning for Goquorum privacy mode (#4879)
macfarla Jan 4, 2023
b6890ae
Add `FutureEips` and `ExperimentalEips` forks and networks (#4873)
shemnon Jan 5, 2023
d054d84
Move EOF to Cancun (#4884)
shemnon Jan 5, 2023
1f0b5b6
Update changelog (#4887)
wcgcyx Jan 6, 2023
f4784a2
Peering - disconnect worst peer (#4888)
macfarla Jan 7, 2023
515d433
Withdrawals type (#4892)
jframe Jan 9, 2023
55c007a
EOF Fuzzing Fixes (#4872)
shemnon Jan 9, 2023
6a91eb5
Remove qbft reference tests (#4893)
jframe Jan 9, 2023
9b15fdb
RPC methods that lookup block by hash will now return error if no blo…
macfarla Jan 9, 2023
84fce4e
For TimestampSchedule (Shanghai) remove evmBuilder override but leave…
siladu Jan 10, 2023
18ac440
Support Shanghai in Reference Tests (#4900)
shemnon Jan 10, 2023
4c727a9
merge conflicts
macfarla Jan 10, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 25 additions & 18 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
---
version: 2.1
orbs:
win: circleci/windows@2.2.0
win: circleci/windows@5.0.0

executors:
besu_executor_small:
docker:
- image: cimg/openjdk:11.0
- image: cimg/openjdk:17.0
resource_class: small
working_directory: ~/project
environment:
GRADLE_OPTS: -Dorg.gradle.daemon=false -Dorg.gradle.parallel=true -Dorg.gradle.workers.max=2

besu_executor_med: # 2cpu, 4G ram
docker:
- image: cimg/openjdk:11.0
- image: cimg/openjdk:17.0
resource_class: medium
working_directory: ~/project
environment:
Expand All @@ -32,7 +32,7 @@ executors:

besu_executor_xl: # 8cpu, 16G ram
docker:
- image: cimg/openjdk:11.0
- image: cimg/openjdk:17.0
resource_class: xlarge
working_directory: ~/project
environment:
Expand Down Expand Up @@ -193,6 +193,11 @@ jobs:
- prepare
- attach_workspace:
at: ~/project
- run:
name: Java_17
command: |
sudo apt install openjdk-17-jre-headless openjdk-17-jdk-headless
sudo update-java-alternatives -a
- run:
name: IntegrationTests
command: |
Expand Down Expand Up @@ -228,6 +233,11 @@ jobs:
- prepare
- attach_workspace:
at: ~/project
- run:
name: Java_17
command: |
sudo apt install openjdk-17-jre-headless openjdk-17-jdk-headless
sudo update-java-alternatives -a
- run:
name: AcceptanceTests
no_output_timeout: 30m
Expand All @@ -251,17 +261,13 @@ jobs:
at: ~/project
- setup_remote_docker
- run:
name: hadoLint_openjdk_11
command: |
docker run --rm -i hadolint/hadolint < docker/openjdk-11/Dockerfile
- run:
name: hadoLint_openjdk_11_debug
name: hadoLint_openjdk_17
command: |
docker run --rm -i hadolint/hadolint < docker/openjdk-11-debug/Dockerfile
docker run --rm -i hadolint/hadolint < docker/openjdk-17/Dockerfile
- run:
name: hadoLint_openjdk_latest
name: hadoLint_openjdk_17_debug
command: |
docker run --rm -i hadolint/hadolint < docker/openjdk-latest/Dockerfile
docker run --rm -i hadolint/hadolint < docker/openjdk-17-debug/Dockerfile
- run:
name: hadoLint_graalvm
command: |
Expand All @@ -284,17 +290,18 @@ jobs:
- attach_workspace:
at: ~/project
- run:
name: hadoLint_openjdk_11
command: |
docker run --rm -i hadolint/hadolint < docker/openjdk-11/Dockerfile
- run:
name: hadoLint_openjdk_latest
name: hadoLint_openjdk_17
command: |
docker run --rm -i hadolint/hadolint < docker/openjdk-latest/Dockerfile
docker run --rm -i hadolint/hadolint < docker/openjdk-17/Dockerfile
- run:
name: hadoLint_graalvm
command: |
docker run --rm -i hadolint/hadolint < docker/graalvm/Dockerfile
- run:
name: Java_17
command: |
sudo apt install openjdk-17-jre-headless openjdk-17-jdk-headless
sudo update-java-alternatives -a
- run:
name: build image
command: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
uses: actions/setup-java@v2
with:
distribution: adopt
java-version: 11
java-version: 17
cache: gradle
- name: spotless
run: ./gradlew --no-daemon --parallel clean spotlessCheck
8 changes: 7 additions & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3

- name: Use Java 17
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '17'

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
Expand All @@ -54,7 +60,7 @@ jobs:
# Autobuild failed (OOM)
# Hence, supply memory args for gradle build
- run: |
JAVA_OPTS="-Xmx1000M" ./gradlew --no-scan compileJava
JAVA_OPTS="-Xmx1000M --add-opens jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED --add-opens jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED --add-opens jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED --add-opens jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED --add-opens jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED --add-opens jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED --add-opens jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED --add-opens jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED" ./gradlew --no-scan compileJava

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
2 changes: 1 addition & 1 deletion .lgtm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ extraction:
java:
index:
java_version: "17"
build_command: JAVA_OPTS="-Xmx1000M" ./gradlew -Dorg.gradle.java.home=/usr/lib/jvm/java-11-openjdk-amd64 --no-scan compileJava
build_command: JAVA_OPTS="-Xmx1000M" ./gradlew -Dorg.gradle.java.home=/usr/lib/jvm/java-18-openjdk-amd64 --no-scan compileJava
3 changes: 3 additions & 0 deletions acceptance-tests/tests/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ dependencies {
testImplementation 'org.web3j:abi'
testImplementation 'org.web3j:besu'
testImplementation 'org.web3j:core'
constraints {
implementation('jnr-posix:3.1.15') { because '3.0.47 from web3j has issues' }
}

testRuntimeOnly 'org.junit.vintage:junit-vintage-engine'
}
Expand Down
6 changes: 6 additions & 0 deletions besu/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,12 @@ dependencies {
testImplementation 'org.mockito:mockito-core'
testImplementation 'org.testcontainers:testcontainers'
testImplementation 'tech.pegasys.discovery:discovery'
constraints {
implementation('com.github.jnr:jnr-posix') {
version { require '3.1.15' }
because '3.0.47 from web3j has issues'
}
}

testRuntimeOnly 'org.junit.vintage:junit-vintage-engine'
}
19 changes: 10 additions & 9 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ plugins {
id 'maven-publish'
}

if (!JavaVersion.current().java11Compatible) {
throw new GradleException("Java 11 or later is required to build Besu.\n" +
if (!JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_17)) {
throw new GradleException("Java 17 or later is required to build Besu.\n" +
" Detected version ${JavaVersion.current()}")
}

Expand Down Expand Up @@ -99,8 +99,8 @@ allprojects {
from javadoc.outputDirectory
}

sourceCompatibility = 11
targetCompatibility = 11
sourceCompatibility = 17
targetCompatibility = 17

repositories {
maven {
Expand Down Expand Up @@ -261,8 +261,10 @@ allprojects {
}

javadoc {
options.addStringOption('Xdoclint:all', '-quiet')
options.addStringOption('Xwerror', '-html5')
options.addStringOption('Xdoclint:all,-missing')
options.addStringOption('quiet')
options.addStringOption('Xwerror')
options.addStringOption('html5')
options.encoding = 'UTF-8'
}

Expand Down Expand Up @@ -610,10 +612,9 @@ def dockerOrgName = project.hasProperty('dockerOrgName') ? project.getProperty("
def dockerArtifactName = project.hasProperty("dockerArtifactName") ? project.getProperty("dockerArtifactName") : "besu"
def dockerImageName = "${dockerOrgName}/${dockerArtifactName}"
def dockerVariants = project.hasProperty("dockerVariants") ? project.getProperty("dockerVariants").split(",") : [
"openjdk-11",
"openjdk-11-debug",
"openjdk-17",
"openjdk-17-debug",
"graalvm",
"openjdk-latest"
]

// rename the top level dir from besu-<version> to besu and this makes it really
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM ubuntu:20.04

ARG VERSION="dev"
RUN apt-get update && \
apt-get install --no-install-recommends -q --assume-yes curl=7* wget=1.20* jq=1.6* net-tools=1.60* openjdk-11-jdk-headless=11* libjemalloc-dev=5.* && \
apt-get install --no-install-recommends -q --assume-yes curl=7* wget=1.20* jq=1.6* net-tools=1.60* openjdk-17-jdk-headless=17* libjemalloc-dev=5.* && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
adduser --disabled-password --gecos "" --home /opt/besu besu && \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM ubuntu:20.04
ARG VERSION="dev"

RUN apt-get update && \
apt-get install --no-install-recommends -q --assume-yes openjdk-11-jre-headless=11* libjemalloc-dev=5.* && \
apt-get install --no-install-recommends -q --assume-yes openjdk-17-jre-headless=17* libjemalloc-dev=5.* && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
adduser --disabled-password --gecos "" --home /opt/besu besu && \
Expand Down
4 changes: 2 additions & 2 deletions docker/openjdk-latest/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

FROM ubuntu:20.04
FROM ubuntu:22.04
ARG VERSION="dev"

RUN apt-get update && \
apt-get install --no-install-recommends -q --assume-yes openjdk-17-jre-headless=17* libjemalloc-dev=5.* && \
apt-get install --no-install-recommends -q --assume-yes openjdk-18-jre-headless=18* libjemalloc-dev=5.* && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
adduser --disabled-password --gecos "" --home /opt/besu besu && \
Expand Down
4 changes: 2 additions & 2 deletions errorprone-checks/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ configurations.maybeCreate("epJavac")
apply plugin: 'java'
apply plugin: 'net.ltgt.errorprone'

sourceCompatibility = 11
targetCompatibility = 11
sourceCompatibility = 17
targetCompatibility = 17

dependencies {
api 'org.slf4j:slf4j-api'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ void exceptionRaisedWhenInvalidKeystoreFileIsSpecified() throws IOException {
Assertions.fail("service.start should have failed");
})
.withCauseInstanceOf(JsonRpcServiceException.class)
.withMessageContaining("Short read of DER length");
.withMessageContaining("Tag number over 30 is not supported");
}

@Test
Expand Down
6 changes: 6 additions & 0 deletions ethereum/p2p/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ dependencies {
annotationProcessor "org.immutables:value"
implementation "org.immutables:value-annotations"
implementation 'tech.pegasys.discovery:discovery'
constraints {
implementation('com.github.jnr:jnr-posix') {
version { require '3.1.15' }
because '3.0.47 from web3j has issues'
}
}

// test dependencies.
testImplementation project(path: ':ethereum:core', configuration: 'testArtifacts')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
* <p>When necessary, it updates the underlying {@link PeerTable}, particularly with additions which
* may succeed or not depending on the contents of the target bucket for the peer.
*
* <h3>Peer state machine</h3>
* <h2>Peer state machine</h2>
*
* <pre>{@code
* +--------------------+
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public Optional<DiscoveryPeer> get(final PeerId peer) {
* Attempts to add the provided peer to the peer table, and returns an {@link AddResult}
* signalling one of three outcomes.
*
* <h3>Possible outcomes:</h3>
* <h4>Possible outcomes:</h4>
*
* <ul>
* <li>the operation succeeded and the peer was added to the corresponding k-bucket.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* <p>This message must be sent by the party that initiates the RLPX connection, as the first
* message in the handshake protocol.
*
* <h3>Message structure</h3>
* <h2>Message structure</h2>
*
* The following describes the message structure:
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* <p>This message must be sent by the party who responded to the RLPX connection, in response to
* the initiator message.
*
* <h3>Message structure</h3>
* <h2>Message structure</h2>
*
* The following describes the message structure:
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,14 +273,17 @@ private void testConnection(
client.getChannelFuture().channel().writeAndFlush(Unpooled.copyInt(0));
final boolean allMessagesServerExchanged = serverLatch.await(10, TimeUnit.SECONDS);
final boolean allMessagesClientExchanged = clientLatch.await(10, TimeUnit.SECONDS);
assertThat(allMessagesClientExchanged && allMessagesServerExchanged).isTrue();
LOG.info(serverLatch.toString());
LOG.info(client.toString());
assertThat(allMessagesClientExchanged).isTrue();
assertThat(allMessagesServerExchanged).isTrue();
} else {
try {
client.getChannelFuture().channel().writeAndFlush(Unpooled.copyInt(0)).sync();
serverLatch.await(2, TimeUnit.SECONDS);
assertThat(client.getChannelFuture().channel().isActive()).isFalse();
} catch (final Exception e) {
// NOOP
LOG.error("unexpected exception", e);
}
}
}
Expand Down
11 changes: 10 additions & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
version=23.1.0-RC1-SNAPSHOT

# Workaround for Java 16 and spotless bug 834 https://github.com/diffplug/spotless/issues/834
org.gradle.jvmargs=--add-opens jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \
--add-exports jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED \
--add-exports jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED \
--add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED \
--add-exports jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED \
--add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED \
--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED \
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED \
-Xmx1g
org.gradle.welcome=never
org.gradle.jvmargs=-Xmx1g