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

build: patch everything we use to be a real Java Module #10056

Merged
merged 2 commits into from
Dec 4, 2023

Conversation

jjohannes
Copy link
Collaborator

@jjohannes jjohannes commented Nov 21, 2023

Description:

  • Following up to Cleanup Module patching #8561 – all Jars that are only used for testing, jmh, and annotation processing are now also patched to get a module-info.
  • The new failOnAutomaticModules.set(true) feature of extra-module-info ensures that no non-module Jars can be added (without corresponding patching) in the future.
  • Updates in the java-module-dependencies plugin allow us to remove some tweaks we had to do

Again, there are probably missing requires to core Java Modules in some of the patched Jars. This will be seen once we start using the Module Path at (test) runtime. This will be follow up work.

Notes for reviewer:

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

@jjohannes jjohannes self-assigned this Nov 21, 2023
Copy link

github-actions bot commented Nov 21, 2023

Node: Unit Test Results

    2 288 files  ±0      2 288 suites  ±0   39m 0s ⏱️ - 4m 9s
118 397 tests ±0  118 363 ✔️ ±0  34 💤 ±0  0 ±0 
126 769 runs  ±0  126 735 ✔️ ±0  34 💤 ±0  0 ±0 

Results for commit ec1e90a. ± Comparison against base commit c71508e.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 21, 2023

Node: E2E Test Results

    1 files  ±    0      1 suites  ±0   23m 12s ⏱️ + 23m 12s
311 tests +310  311 ✔️ +311  0 💤 ±0  0  - 1 
333 runs  +332  333 ✔️ +333  0 💤 ±0  0  - 1 

Results for commit ec1e90a. ± Comparison against base commit c71508e.

This pull request removes 1 and adds 311 tests. Note that renamed tests count towards both.
EndToEndTests ‑ initializationError
EndToEndTests ‑ ADDRESS_BOOK_CONTROLCanUpdateADDRESS_BOOK
EndToEndTests ‑ ADDRESS_BOOK_CONTROLCanUpdateNODE_DETAILS
EndToEndTests ‑ AccountsGetPayerRecordsIfSoConfigured
EndToEndTests ‑ Acct57CanMakeSmallChanges
EndToEndTests ‑ Acct57CantMakeLargeChanges
EndToEndTests ‑ AddingSignaturesToExecutedTxFails
EndToEndTests ‑ AddingSignaturesToExecutedTxFailsWithLongTermEnabled
EndToEndTests ‑ AddingSignaturesToNonExistingTxFails
EndToEndTests ‑ AddingSignaturesToNonExistingTxFailsWithLongTermEnabled
EndToEndTests ‑ AddressAliasIdFuzzing
…

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 21, 2023

Node: Integration Test Results

279 tests  ±0   279 ✔️ ±0   28m 34s ⏱️ +17s
    5 suites ±0       0 💤 ±0 
    5 files   ±0       0 ±0 

Results for commit ec1e90a. ± Comparison against base commit c71508e.

♻️ This comment has been updated with latest results.

Copy link

Node: HAPI Test Results

1 245 tests  ±0   913 ✔️ ±0   1h 30m 54s ⏱️ - 3m 51s
   166 suites ±0   332 💤 ±0 
   166 files   ±0       0 ±0 

Results for commit 6f2fc4e. ± Comparison against base commit fa6b01a.

Base automatically changed from module-patch-fixes to develop November 27, 2023 17:14
Copy link

github-actions bot commented Nov 27, 2023

Node: HAPI Test (Crypto) Results

211 tests  ±0   201 ✔️ ±0   18m 19s ⏱️ +56s
  22 suites ±0     10 💤 ±0 
  22 files   ±0       0 ±0 

Results for commit ec1e90a. ± Comparison against base commit c71508e.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 27, 2023

Node: HAPI Test (Token) Results

190 tests  ±0   188 ✔️ ±0   21m 29s ⏱️ + 3m 2s
  13 suites ±0       2 💤 ±0 
  13 files   ±0       0 ±0 

Results for commit ec1e90a. ± Comparison against base commit c71508e.

♻️ This comment has been updated with latest results.

Copy link

codecov bot commented Nov 27, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (c71508e) 63.11% compared to head (5c5626f) 63.13%.

❗ Current head 5c5626f differs from pull request most recent head ec1e90a. Consider uploading reports for the commit ec1e90a to get more accurate results

Additional details and impacted files
@@              Coverage Diff              @@
##             develop   #10056      +/-   ##
=============================================
+ Coverage      63.11%   63.13%   +0.02%     
+ Complexity     30722    30696      -26     
=============================================
  Files           3335     3327       -8     
  Lines         134140   133875     -265     
  Branches       13914    13875      -39     
=============================================
- Hits           84659    84520     -139     
+ Misses         46137    46018     -119     
+ Partials        3344     3337       -7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

github-actions bot commented Nov 27, 2023

Node: HAPI Test (Misc) Results

419 tests  ±0   313 ✔️ ±0   25m 42s ⏱️ + 2m 22s
  73 suites ±0   106 💤 ±0 
  73 files   ±0       0 ±0 

Results for commit ec1e90a. ± Comparison against base commit c71508e.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 27, 2023

Node: HAPI Test (Time Consuming) Results

21 tests  ±0     9 ✔️ ±0   26m 35s ⏱️ + 1m 9s
  2 suites ±0   12 💤 ±0 
  2 files   ±0     0 ±0 

Results for commit ec1e90a. ± Comparison against base commit c71508e.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 27, 2023

Node: HAPI Test (Smart Contract) Results

405 tests  ±0   325 ✔️ ±0   43m 40s ⏱️ + 1m 22s
  56 suites ±0     80 💤 ±0 
  56 files   ±0       0 ±0 

Results for commit ec1e90a. ± Comparison against base commit c71508e.

♻️ This comment has been updated with latest results.

@jjohannes jjohannes force-pushed the all-modules branch 2 times, most recently from 7ced075 to a39a415 Compare November 28, 2023 07:28
@jjohannes jjohannes marked this pull request as ready for review November 28, 2023 09:43
@jjohannes jjohannes requested review from a team as code owners November 28, 2023 09:43
Signed-off-by: Jendrik Johannes <jendrik.johannes@gmail.com>
@jjohannes jjohannes force-pushed the all-modules branch 2 times, most recently from ac25363 to 5914e8a Compare December 4, 2023 08:42
@jjohannes jjohannes changed the title Gradle: patch everything we use to be a real Java Module build: patch everything we use to be a real Java Module Dec 4, 2023
Signed-off-by: Jendrik Johannes <jendrik.johannes@gmail.com>
@nathanklick nathanklick merged commit ef5507c into develop Dec 4, 2023
21 of 22 checks passed
@nathanklick nathanklick deleted the all-modules branch December 4, 2023 15:17
mhess-swl pushed a commit that referenced this pull request Dec 4, 2023
Signed-off-by: Jendrik Johannes <jendrik.johannes@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants