Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

617 Fix expression support with native build #621

Merged
merged 2 commits into from
Apr 10, 2023

Conversation

apupier
Copy link
Member

@apupier apupier commented Apr 7, 2023

  • Fix expression support in native mode: the Expression related classes were missing from native build. Registered all of them for reflection. It might be possible to be more specific and register a single one. To be investigated and potentially improved in another iteration
  • Provide native tests for Integrations resource:

fixes #617
part of #437

@codecov
Copy link

codecov bot commented Apr 7, 2023

Codecov Report

Merging #621 (b06257b) into main (a5bdc81) will decrease coverage by 0.09%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##               main     #621      +/-   ##
============================================
- Coverage     78.56%   78.47%   -0.09%     
- Complexity      132      133       +1     
============================================
  Files            45       45              
  Lines          2342     2342              
  Branches        364      364              
============================================
- Hits           1840     1838       -2     
- Misses          339      341       +2     
  Partials        163      163              

see 2 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

Copy link
Contributor

@igarashitm igarashitm left a comment

Choose a reason for hiding this comment

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

Tested locally and verified the expression is preserved with native build 👍

- it allows to have a non-regression test for KaotoIO#617 issue with
expressions
- extracted a single test from IntegrationsResourceTest which cannot be
launch in Native mode because it is using @Inject to access internal
services directly. it allows to inherit the native test class from
IntegrationsResourceTest and play all of the existing tests in native

part of KaotoIO#617
part of KaotoIO#437

Signed-off-by: Aurélien Pupier <[email protected]>
the Expression related classes were missing from native build;
Registered all of them for reflection. It might be possible to be more
specific and register a single one. to be investigated and potentially
improved in another iteration

fixes KaotoIO#617

Signed-off-by: Aurélien Pupier <[email protected]>
@apupier apupier changed the title 617 investigation 617 Fix expression support with native build Apr 7, 2023
@sonarcloud
Copy link

sonarcloud bot commented Apr 7, 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 1 Code Smell

No Coverage information No Coverage information
1.1% 1.1% Duplication

@apupier apupier marked this pull request as ready for review April 7, 2023 12:03
@apupier apupier requested review from a team and igarashitm April 7, 2023 12:03
Copy link
Contributor

@igarashitm igarashitm left a comment

Choose a reason for hiding this comment

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

double checked 👍 +1 to merge this before 1.0. The risk is minimal, just added quarkus annotation and tests.


import io.quarkus.test.junit.QuarkusIntegrationTest;

@QuarkusIntegrationTest
Copy link
Member

Choose a reason for hiding this comment

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

Oh, so simple! I like it!

@Delawen Delawen merged commit 1aea59f into KaotoIO:main Apr 10, 2023
@apupier apupier deleted the 617-investigation branch April 17, 2023 05:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Native build backend wipes out the expression content in verbose dialect
3 participants