Merge feature branch for auto-generation of Liberty features GA update#511
Merge feature branch for auto-generation of Liberty features GA update#511
Conversation
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>
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>
Updated user facing output
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Signed-off-by: Paul Gooderham <turkeyonmarblerye@gmail.com>
Use the binary scanner API with a Map
Merge main 0421
| 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]"; |
There was a problem hiding this comment.
are we going to use a fixed version always?
There was a problem hiding this comment.
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, |
There was a problem hiding this comment.
I can see that runBinaryScanner and rerunBinaryScanner handle the same binary scanner exceptions completely differently
is this intentional ?
example
PROVIDED_FEATURE_EXCEPTION
runBinaryScanner approach:
- Throws NoRecommendationException if no alternatives found
- Throws RecommendationSetException if alternatives exist
rerunBinaryScanner approach:
Logs debug message: "RuntimeException from re-run of binary scanner"
Returns null
There was a problem hiding this comment.
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.
No description provided.