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

Fix dead code elimination removing fpLoadInstructions from test modules #43559

Conversation

Thushara-Piyasekara
Copy link
Contributor

Purpose

$title

Fixes #43552

Approach

The reason for the NPE is due to a bug in dead code elimination removing used fpLoadInstructions from test modules. This was due to implementation depending on pkgId.isTestPkg to detect testablePkg analysis.

The expected behavior should be not removing any nodes from testablePkgs.

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

@Thushara-Piyasekara Thushara-Piyasekara changed the title Fix dead code elimination removing fpLoadInstructions from test modules Fix dead code elimination removing fpLoadInstructions from test modules Nov 8, 2024
…timization-reports/optimized-test-run-with-empty-build-pkg-test/dead_code_elimination_report.json
…ng/testerina/test/OptimizedTestRunWithEmptyBuildPkgTest.java
…sed-tests/optimized-test-run-with-empty-build-pkg-test/tests/tests_test.bal
@gimantha gimantha merged commit f5a6f0c into ballerina-platform:feature-codegen-optimizer Nov 8, 2024
2 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.

2 participants