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

Remove generating observability-symbols.jar #42002

Conversation

NipunaMadhushan
Copy link
Contributor

Purpose

Remove generating <module-name>-observability-symbols.jar when observability is enabled since the jar is not used anymore and OOM issues occur as well.

Fixes #42001

Approach

Describe how you are implementing the solutions along with the design details.

Samples

Provide high-level details about the samples related to this feature.

Remarks

List any other known issues, related PRs, TODO items, or any other notes related to the PR.

Check List

  • Read the Contributing Guide
  • Updated Change Log
  • Checked Tooling Support (#)
  • Added necessary tests
    • Unit Tests
    • Spec Conformance Tests
    • Integration Tests
    • Ballerina By Example Tests
  • Increased Test Coverage
  • Added necessary documentation
    • API documentation
    • Module documentation in Module.md files
    • Ballerina By Examples

Copy link

codecov bot commented Jan 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d1fbfb9) 76.62% compared to head (16c1967) 76.67%.
Report is 340 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master   #42002      +/-   ##
============================================
+ Coverage     76.62%   76.67%   +0.04%     
- Complexity    52803    53003     +200     
============================================
  Files          2880     2881       +1     
  Lines        199139   199870     +731     
  Branches      25882    26016     +134     
============================================
+ Hits         152590   153243     +653     
- Misses        38116    38165      +49     
- Partials       8433     8462      +29     

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

Copy link

github-actions bot commented Feb 2, 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.

@@ -133,12 +131,6 @@ private JBallerinaBackend(PackageCompilation packageCompilation, JvmTarget jdkVe
this.compilerContext = projectEnvContext.getService(CompilerContext.class);
this.interopValidator = InteropValidator.getInstance(compilerContext);
this.jvmCodeGenerator = CodeGenerator.getInstance(compilerContext);
// TODO: Move to a compiler extension once Compiler revamp is complete
if (packageContext.compilationOptions().observabilityIncluded()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need observabilityIncluded method in packageContext compiler options? Can we remove that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@warunalakshitha We need it to enable tracing and metrics.

Copy link
Member

@MaryamZi MaryamZi left a comment

Choose a reason for hiding this comment

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

Changes related to compiler classes LGTM.

@NipunaMadhushan NipunaMadhushan merged commit 187079a into ballerina-platform:master Feb 29, 2024
18 checks passed
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.

[Task]: Remove generating observability-symbols.jar when observability is enabled
5 participants