Skip to content

Merge feature branch for auto-generation of Liberty features GA update#511

Open
TrevCraw wants to merge 55 commits intomainfrom
generate-features-update
Open

Merge feature branch for auto-generation of Liberty features GA update#511
TrevCraw wants to merge 55 commits intomainfrom
generate-features-update

Conversation

@TrevCraw
Copy link
Copy Markdown
Contributor

No description provided.

turkeylurkey and others added 30 commits April 8, 2025 11:56
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Specify version 24.0.0.2 for binary scanner
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
….java

Co-authored-by: Trevor Crawford <TrevCraw@users.noreply.github.com>
Add generateToSrc option to dev mode
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
… processing by the file watcher

Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Handle generateToSrc option in dev mode
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Rename generate features fields
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
turkeylurkey and others added 25 commits February 3, 2026 17:53
Copy config and changed file to temp dir for feature generation
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Pass the generateToSrc option when generating features
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Merge main into the latest generate features branch
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
…twice

Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Make optimizeGenerateFeatures() available to ci.maven and ci.gradle
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Support a new API in the binary scanner
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Use the binary scanner API with a Map
public static final String BINARY_SCANNER_MAVEN_ARTIFACT_ID = "binary-app-scanner";
public static final String BINARY_SCANNER_MAVEN_TYPE = "jar";
public static final String BINARY_SCANNER_MAVEN_VERSION = "[25.0.0.2,)";
public static final String BINARY_SCANNER_MAVEN_VERSION = "[25.0.0.2.2]";
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

are we going to use a fixed version always?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

per release, yes it will be a fixed version

public Set<String> reRunBinaryScanner(Set<String> allClassesDirectories, String logLocation, String targetJavaEE, String targetMicroProfile)
throws PluginExecutionException {
Set<String> featureList = null;
public Set<String> reRunBinaryScanner(Set<String> allClassesDirectories, String logLocation, String targetJavaEE, String targetMicroProfile,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I can see that runBinaryScanner and rerunBinaryScanner handle the same binary scanner exceptions completely differently
is this intentional ?

example
PROVIDED_FEATURE_EXCEPTION
runBinaryScanner approach:

  1. Throws NoRecommendationException if no alternatives found
  2. Throws RecommendationSetException if alternatives exist

rerunBinaryScanner approach:

Logs debug message: "RuntimeException from re-run of binary scanner"
Returns null

Copy link
Copy Markdown
Contributor Author

@TrevCraw TrevCraw Apr 23, 2026

Choose a reason for hiding this comment

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

Yes, this is intentional. The contexts to call runBinaryScanner and rerunBinaryScanner are different. We only call rerunBinaryScanner when there was an error from the binary scanner with the initial runBinaryScanner call. The second call to binary scanner in rerunBinaryScanner is intended to get a pure binary scanner recommended feature list for the application (i.e., analyze the whole application and ignore user-specified features). Because the contexts are different, the exceptions from the binary scanner are handled differently.

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.

3 participants