ballerina-platform / ballerina-library

The Ballerina Library
https://ballerina.io/learn/api-docs/ballerina/
Apache License 2.0
136 stars 64 forks source link

Incorporate GraalVM native-image test build to Std Libs daily build #3316

Closed TharmiganK closed 1 year ago

TharmiganK commented 2 years ago

Description:

$Subject

TharmiganK commented 2 years ago

Follow the following steps to add Build with bal test native workflow to the standard library repos :

  1. Delete the testerina-migration branch since the testerina changes are now merged with master
  2. Update the ballerinaGradlePluginVersion in gradle.properties to 1.0.0
  3. If your repo has a separate sub-project to run ballerina tests/ ballerina example tests, then these changes should be done to the build.gradle file in the sub-project.
  4. Add the Build with bal test native workflow to your repo and change the additional arguments to skip any native java tests and compiler plugin tests associated with your module. If you don't need to skip any tasks you can just remove the inputs : additional_ubuntu_build_flags and additional_windows_build_flags since they are optional
  5. Add a status badge to the module repository's README file. Add the module name in the below example and add it to the README file.
    [![GraalVM Check](https://github.com/ballerina-platform/<module-name>/actions/workflows/build-with-bal-test-native.yml/badge.svg)](https://github.com/ballerina-platform/<module-name>/actions/workflows/build-with-bal-test-native.yml)
  6. Update the order of the status badges :
    1. Build
      1. CodeCov
      2. Trivy
      3. GraalVM Check
      4. Last Commit
      5. GitHub Issues
TharmiganK commented 2 years ago

Task Status t:

niveathika commented 1 year ago

We are unable to add this check to the DB modules, due to trx test cases.

These are consuming more than 7GB of memory.

niveathika commented 1 year ago

As per this discussion, we have decided to go ahead with adding the workflow with daily build disabled, https://github.com/ballerina-platform/module-ballerina-sql/pull/593#issuecomment-1333980539

TharmiganK commented 1 year ago

Closing this issue here as all the std libs has deployed the workflows. The failures are tracked via https://github.com/ballerina-platform/ballerina-standard-library/issues/3755