Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,14 @@ private void process(Plugin plugin) {

if (plugin.hasErrors()) {
LOG.warn(
"Skipping plugin {} due to verification errors after modernization. Check logs for more details.",
"Plugin {} failed verification after modernization. Check logs for more details.",
plugin.getName());
return;
if (!config.isDryRun()) {
return;
}
// In dry-run mode we are only previewing changes, so clear the error and
// continue so the diff is still displayed to the user.
plugin.withoutErrors();
}

// Recollect metadata after modernization
Expand Down Expand Up @@ -419,12 +424,10 @@ private void process(Plugin plugin) {
plugin.addError("Unexpected processing error. Check the logs at " + plugin.getLogFile(), e);
}
} finally {
if (!config.isSkipMetadata() && !earlySkip) {
if (!config.isSkipMetadata() && !earlySkip && !config.isDryRun()) {
try {
// collect the modernization metadata and push it to metadata repository if valid
collectModernizationMetadata(plugin);
validateModernizationMetadata(plugin);
// Only proceed with metadata operations if modernization metadata was successfully created
if (plugin.getModernizationMetadata() != null) {
plugin.fetchMetadata(ghService);
plugin.forkMetadata(ghService);
Expand Down Expand Up @@ -599,10 +602,8 @@ private JDK verifyPlugin(Plugin plugin) {
plugin.format(mavenInvoker);
plugin.verify(mavenInvoker);
if (plugin.hasErrors()) {
LOG.info("Plugin {} failed to verify with JDK {}", plugin.getName(), jdk.getMajor());
plugin.withoutErrors();
LOG.warn("Plugin {} failed to verify with JDK {}", plugin.getName(), jdk.getMajor());
}
plugin.withoutErrors();

return jdk;
}
Expand Down
Loading