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

Cleanup Module patching #8561

Merged
merged 5 commits into from Nov 1, 2023
Merged

Cleanup Module patching #8561

merged 5 commits into from Nov 1, 2023

Conversation

jjohannes
Copy link
Collaborator

Description:

  • Remove duplications and unused entires from com.hedera.hashgraph.jpms-modules.gradle.kts
  • Patch all Modules that end up in data/libs to be real Modules
  • Remove transitive dependencies that are unused to reduce what ends up in data/lib
  • Add some check code that makes sure everything in data/lib has a module-info.class. This can be extended later to check more precisely what we expect/allow in data/lib.

The patched modules might not yet be ready to really run on the module path. That is, they might miss certain "requires" at runtime and there could be issue with Jars containing native code. Hence this PR does not change how we start/package the application. However, in a follow up this can be addressed and then also jlink and jpackage could be used.

Related issue(s):

Notes for reviewer:

Checklist

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

@github-actions
Copy link

github-actions bot commented Sep 13, 2023

Node: E2E Test Results

    1 files      1 suites   21m 2s ⏱️
310 tests 310 ✔️ 0 💤 0
332 runs  332 ✔️ 0 💤 0

Results for commit 1cd1e36.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Sep 13, 2023

Node: Integration Test Results

280 tests   280 ✔️  32m 37s ⏱️
    5 suites      0 💤
    5 files        0

Results for commit 1cd1e36.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Sep 13, 2023

Node: Unit Test Results

    2 263 files      2 263 suites   1h 32m 12s ⏱️
118 261 tests 118 227 ✔️ 34 💤 0
126 520 runs  126 486 ✔️ 34 💤 0

Results for commit 1cd1e36.

♻️ This comment has been updated with latest results.

@codecov
Copy link

codecov bot commented Sep 13, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (develop@8b504d2). Click here to learn what that means.

Additional details and impacted files
@@            Coverage Diff             @@
##             develop    #8561   +/-   ##
==========================================
  Coverage           ?   65.25%           
  Complexity         ?    29680           
==========================================
  Files              ?     3262           
  Lines              ?   124594           
  Branches           ?    12922           
==========================================
  Hits               ?    81310           
  Misses             ?    40208           
  Partials           ?     3076           

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

@jjohannes jjohannes force-pushed the cleanup-patching branch 2 times, most recently from 55ac913 to d695cfa Compare September 13, 2023 18:19
@jjohannes jjohannes self-assigned this Sep 13, 2023
@sonarcloud
Copy link

sonarcloud bot commented Sep 13, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@github-actions
Copy link

github-actions bot commented Oct 19, 2023

Node: HAPI Test Results

1 242 tests   772 ✔️  1h 12m 31s ⏱️
   165 suites  470 💤
   165 files        0

Results for commit 1cd1e36.

♻️ This comment has been updated with latest results.

@sonarcloud
Copy link

sonarcloud bot commented Oct 20, 2023

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

idea Catch issues before they fail your Quality Gate with our IDE extension sonarlint SonarLint

Copy link
Contributor

@edward-swirldslabs edward-swirldslabs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approving the two files that are co-owned by hashgraph team.

@jjohannes jjohannes mentioned this pull request Oct 30, 2023
2 tasks
@jjohannes
Copy link
Collaborator Author

jjohannes commented Oct 30, 2023

Once #8455 is merged, I will rebase this again and address the conflicts and problem.

Signed-off-by: Jendrik Johannes <jendrik.johannes@gmail.com>
Signed-off-by: Jendrik Johannes <jendrik.johannes@gmail.com>
Signed-off-by: Jendrik Johannes <jendrik.johannes@gmail.com>
Signed-off-by: Jendrik Johannes <jendrik.johannes@gmail.com>
Signed-off-by: Jendrik Johannes <jendrik.johannes@gmail.com>
@jjohannes jjohannes merged commit d639f8f into develop Nov 1, 2023
12 of 13 checks passed
@jjohannes jjohannes deleted the cleanup-patching branch November 1, 2023 18:43
petreze pushed a commit that referenced this pull request Nov 2, 2023
Signed-off-by: Jendrik Johannes <jendrik.johannes@gmail.com>
Signed-off-by: Petar Tonev <petar.tonev@limechain.tech>
imalygin pushed a commit that referenced this pull request Nov 13, 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.

None yet

4 participants