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

[1.8.x]Update README.md and Ballerina.toml files #1550

Closed
wants to merge 1 commit into from

Conversation

lnash94
Copy link
Member

@lnash94 lnash94 commented Oct 2, 2023

Purpose

  • Update README.md file with Java 17 support
  • Update Ballerina.toml with graalVm support

Comment on lines 12 to 13
[platform.java17]
graalvmCompatible = true
Copy link
Contributor

Choose a reason for hiding this comment

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

How did we verify that the module is graalVM compatible? Have we configured a graalVM workflow to run module test using the native executable?

Copy link
Contributor

Choose a reason for hiding this comment

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

Since we only have ballerina code here, we can confirm its compatible right?

Copy link
Contributor

Choose a reason for hiding this comment

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

My mistake. We do have java dependencies in the module.

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah we do use our core modules in here. so might need to come up with atleast a basic test suite to run on graalVM before marking as graalVM-compatible.

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm curious about adding tests to verify GraalVM compatibility, especially since we have CLI and OpenAPI validator functionality that operates during compilation. I'll look into incorporating tests to ensure compatibility with GraalVM.
Appreciate it if anyone has any references or insights related to GraalVM compatibility testing, please feel free to share them :)

Copy link
Contributor

Choose a reason for hiding this comment

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

Looping in @TharmiganK

Copy link
Contributor

Choose a reason for hiding this comment

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

This is tool right? Since we are not executing the bal tools as GraalVM native images it is not required to be GraalVM compatible

Copy link
Contributor

Choose a reason for hiding this comment

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

@TharmiganK this is not the tool. We do have this ballerina/openapi library module to provide some annotation related to our openAPI validation support. So I think we should consider marking it as graalvm compatible (or not).

Copy link
Contributor

Choose a reason for hiding this comment

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

I see
Are these annotations only relevant when we call OAS generation?

If we do not have any runtime use cases we can mark it as GraalVM compatible to avoid the warnings when building (bal build/test --native or bal pack)

Copy link
Contributor

@TharmiganK TharmiganK Nov 1, 2023

Choose a reason for hiding this comment

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

Btw why do we have a java dependency in the Ballerina.toml? I dont see any external calls to java

[[platform.java17.dependency]]

Isn't this for the compiler plugin? I saw the same jar in the CompilerPlugin.toml :

path = "../openapi-validator/build/libs/[email protected]@.jar"

I think just removing it from the Ballerina.toml should work


>**Info:** You can also use [Oracle JDK](https://www.oracle.com/java/technologies/javase-downloads.html). Set the JAVA_HOME environment variable to the pathname of the directory into which you installed JDK.
* [Oracle](https://www.oracle.com/java/technologies/downloads/)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it okay to suggest oracle distributions in our README files (as it can be misleading for our own internal users within WSO2)? @keizer619 WDYT?

Copy link
Member

Choose a reason for hiding this comment

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

Yes Lets suggest Open JDK

@sonarqubecloud
Copy link

sonarqubecloud bot commented Oct 2, 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

@codecov
Copy link

codecov bot commented Oct 2, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 81.43%. Comparing base (e0cb2e9) to head (854eb27).
Report is 73 commits behind head on 1.8.x.

Additional details and impacted files
@@             Coverage Diff              @@
##              1.8.x    #1550      +/-   ##
============================================
+ Coverage     79.63%   81.43%   +1.80%     
- Complexity     1767     1964     +197     
============================================
  Files           124      124              
  Lines         10082    11184    +1102     
  Branches       1670     2110     +440     
============================================
+ Hits           8029     9108    +1079     
- Misses         1471     1479       +8     
- Partials        582      597      +15     

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

@github-actions
Copy link

This PR has been open for more than 15 days with no activity. This will be closed in 3 days unless the stale label is removed or commented.

@github-actions github-actions bot added the Stale label Oct 18, 2023
@lnash94 lnash94 removed the Stale label Oct 20, 2023
Copy link

This PR has been open for more than 15 days with no activity. This will be closed in 3 days unless the stale label is removed or commented.

@github-actions github-actions bot added the Stale label Nov 16, 2023
Copy link

Closed PR due to inactivity for more than 18 days.

@github-actions github-actions bot closed this Nov 20, 2023
@lnash94 lnash94 reopened this Dec 4, 2023
Copy link

sonarqubecloud bot commented Dec 4, 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

Copy link

github-actions bot commented Dec 7, 2023

Closed PR due to inactivity for more than 18 days.

@github-actions github-actions bot closed this Dec 7, 2023
@lnash94 lnash94 reopened this Jan 17, 2024
@lnash94 lnash94 removed the Stale label Jan 17, 2024
Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link

github-actions bot commented Feb 1, 2024

This PR has been open for more than 15 days with no activity. This will be closed in 3 days unless the stale label is removed or commented.

@github-actions github-actions bot added the Stale label Feb 1, 2024
@lnash94 lnash94 removed the Stale label Feb 2, 2024
Copy link

This PR has been open for more than 15 days with no activity. This will be closed in 3 days unless the stale label is removed or commented.

@github-actions github-actions bot added the Stale label Feb 17, 2024
@lnash94 lnash94 removed the Stale label Feb 19, 2024
Copy link

github-actions bot commented Mar 5, 2024

This PR has been open for more than 15 days with no activity. This will be closed in 3 days unless the stale label is removed or commented.

@github-actions github-actions bot added the Stale label Mar 5, 2024
@lnash94 lnash94 removed the Stale label Mar 6, 2024
Copy link

This PR has been open for more than 15 days with no activity. This will be closed in 3 days unless the stale label is removed or commented.

@github-actions github-actions bot added the Stale label Mar 21, 2024
@lnash94 lnash94 removed the Stale label Mar 22, 2024
Copy link

github-actions bot commented Apr 6, 2024

This PR has been open for more than 15 days with no activity. This will be closed in 3 days unless the stale label is removed or commented.

@github-actions github-actions bot added the Stale label Apr 6, 2024
@lnash94 lnash94 removed the Stale label Apr 7, 2024
Copy link

This PR has been open for more than 15 days with no activity. This will be closed in 3 days unless the stale label is removed or commented.

@github-actions github-actions bot added the Stale label Apr 22, 2024
@lnash94 lnash94 removed the Stale label Apr 23, 2024
Copy link

github-actions bot commented May 8, 2024

This PR has been open for more than 15 days with no activity. This will be closed in 3 days unless the stale label is removed or commented.

@github-actions github-actions bot added the Stale label May 8, 2024
@lnash94 lnash94 removed the Stale label May 9, 2024
Copy link

This PR has been open for more than 15 days with no activity. This will be closed in 3 days unless the stale label is removed or commented.

@github-actions github-actions bot added the Stale label May 24, 2024
@lnash94 lnash94 removed the Stale label May 28, 2024
@lnash94
Copy link
Member Author

lnash94 commented May 29, 2024

Close this PR since we checking the update of gralvm compatibility and resend the needful

@lnash94 lnash94 closed this May 29, 2024
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.

5 participants