Skip to content

Conversation

@ThomasKrieger
Copy link
Contributor

This PR

Renamed the VmLensTest to VmLensCT and changed the VMLens plugin config to include only tests with postfix CT.

Related Issues

Fixes #1611

Notes

The VMLens test no takes something around 4s.

Follow-up Tasks

Please let me know if you prefer a special profile, or if the time is now o.k.

@ThomasKrieger ThomasKrieger requested review from a team as code owners September 23, 2025 09:05
@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @ThomasKrieger, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request refines the VMLens test setup by renaming a key test class and updating the Maven build configuration. These changes streamline the execution of VMLens tests, significantly reducing their runtime, and ensure that the VMLens plugin targets the correct set of tests.

Highlights

  • VMLens Test Renaming: The VmLensTest class has been renamed to VmLensCT to align with new testing conventions.
  • Maven Plugin Configuration: The vmlens-maven-plugin has been re-enabled and configured to specifically include tests ending with CT.java, ensuring only relevant tests are executed by the plugin.
  • Dependency Update: The com.vmlens:api dependency has been updated from version 1.2.13 to 1.2.14.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the vmlens test setup to improve performance by isolating the concurrency tests. The main changes include renaming the test class to VmLensCT and configuring the vmlens-maven-plugin to selectively run only tests with the CT suffix. This is a good approach to speed up the build. The changes are logical and well-implemented. I have one minor suggestion regarding XML formatting in pom.xml to improve code consistency and maintainability.

Comment on lines +362 to +364
<includes>
<include>**/*CT.java</include>
</includes>
Copy link
Contributor

Choose a reason for hiding this comment

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

medium

The indentation for the new <includes> block seems to be inconsistent, likely due to a mix of tabs and spaces. For better readability and maintainability, it's good practice to use consistent indentation. Adopting the 4-space indentation used elsewhere in this file would improve consistency.

Suggested change
<includes>
<include>**/*CT.java</include>
</includes>
<includes>
<include>**/*CT.java</include>
</includes>

@ThomasKrieger ThomasKrieger changed the title Fix/improve vmlens handling Fix: improve vmlens handling Sep 23, 2025
@ThomasKrieger ThomasKrieger changed the title Fix: improve vmlens handling fix: improve vmlens handling Sep 23, 2025
@codecov
Copy link

codecov bot commented Sep 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.41%. Comparing base (55c344a) to head (dfc5f9f).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1628      +/-   ##
============================================
+ Coverage     92.06%   93.41%   +1.35%     
- Complexity      488      491       +3     
============================================
  Files            46       46              
  Lines          1184     1184              
  Branches        105      105              
============================================
+ Hits           1090     1106      +16     
+ Misses           62       48      -14     
+ Partials         32       30       -2     
Flag Coverage Δ
unittests 93.41% <ø> (+1.35%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@chrfwow
Copy link
Contributor

chrfwow commented Sep 23, 2025

@ThomasKrieger the DCO check fails because the commits on this PR are not signed. Please sign them off and force push them, the check should succceed then

@ThomasKrieger ThomasKrieger force-pushed the fix/improve-vmlens-handling branch from 57bbb37 to 0dd2c7f Compare September 24, 2025 06:45
VMLens test run now takes 4s and there is no risk of hanging tests.

The hanging tests was during executing ArchUnitTests with VMLens.

Renamed  VmLensTest to VmLensCT and added a filter in the VMlens plugin.

increased timeout for gherkin tests to 30s from 10s

Signed-off-by: ThomasKrieger <[email protected]>
@ThomasKrieger ThomasKrieger force-pushed the fix/improve-vmlens-handling branch from 0dd2c7f to 0c64c82 Compare September 24, 2025 06:48
and removed Awaitility.await() since it is
not needed anymore since we wait during the setting of the states

Signed-off-by: ThomasKrieger <[email protected]>
Copy link
Member

@aepfli aepfli left a comment

Choose a reason for hiding this comment

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

Thank you! especially the neat way of waiting for the provider state - really cool

Copy link
Contributor

@chrfwow chrfwow left a comment

Choose a reason for hiding this comment

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

Very good work! Thanks for the contribution

case ERROR:
mockProvider.emitProviderReady(details);
mockProvider.emitProviderError(details);
mockProvider.emitProviderReady(details).await();
Copy link
Contributor

Choose a reason for hiding this comment

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

nice

@chrfwow chrfwow enabled auto-merge (squash) September 25, 2025 06:36
@sonarqubecloud
Copy link

@chrfwow chrfwow merged commit fb3144a into open-feature:main Sep 25, 2025
13 checks passed
@aepfli aepfli mentioned this pull request Sep 25, 2025
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.

improve vmlens handling and execution

3 participants