Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update failure types in the pipeline #138

Merged
merged 2 commits into from
Oct 13, 2023
Merged
Show file tree
Hide file tree
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 @@ -22,5 +22,5 @@
"preCommitReproductionCommand" : "docker run ghcr.io/chains-project/breaking-updates:0b776fa1446ee6c34e234e0a3c6103d84274e395-pre",
"breakingUpdateReproductionCommand" : "docker run ghcr.io/chains-project/breaking-updates:0b776fa1446ee6c34e234e0a3c6103d84274e395-breaking",
"javaVersionUsedForReproduction" : "11",
"failureCategory" : "JENKINS_PLUGIN_FAILURE"
"failureCategory" : "ENFORCER_FAILURE"
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
"preCommitReproductionCommand" : "docker run ghcr.io/chains-project/breaking-updates:3d92498bff0636c4e6e0cfd24b86874de402a827-pre",
"breakingUpdateReproductionCommand" : "docker run ghcr.io/chains-project/breaking-updates:3d92498bff0636c4e6e0cfd24b86874de402a827-breaking",
"javaVersionUsedForReproduction" : "11",
"failureCategory" : "JENKINS_PLUGIN_FAILURE"
"failureCategory" : "ENFORCER_FAILURE"
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
"preCommitReproductionCommand" : "docker run ghcr.io/chains-project/breaking-updates:b8b67194a0df3fc948d270c46cb7d4d44d20f7ae-pre",
"breakingUpdateReproductionCommand" : "docker run ghcr.io/chains-project/breaking-updates:b8b67194a0df3fc948d270c46cb7d4d44d20f7ae-breaking",
"javaVersionUsedForReproduction" : "11",
"failureCategory" : "MAVEN_ENFORCER_FAILURE"
"failureCategory" : "ENFORCER_FAILURE"
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
"preCommitReproductionCommand" : "docker run ghcr.io/chains-project/breaking-updates:cae7de4d1bf0ecb21460c6531ea646de0f7c41c9-pre",
"breakingUpdateReproductionCommand" : "docker run ghcr.io/chains-project/breaking-updates:cae7de4d1bf0ecb21460c6531ea646de0f7c41c9-breaking",
"javaVersionUsedForReproduction" : "11",
"failureCategory" : "MAVEN_ENFORCER_FAILURE"
"failureCategory" : "ENFORCER_FAILURE"
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
"preCommitReproductionCommand" : "docker run ghcr.io/chains-project/breaking-updates:d0515316429cac969e560d5428540db93ecb89e8-pre",
"breakingUpdateReproductionCommand" : "docker run ghcr.io/chains-project/breaking-updates:d0515316429cac969e560d5428540db93ecb89e8-breaking",
"javaVersionUsedForReproduction" : "11",
"failureCategory" : "MAVEN_ENFORCER_FAILURE"
"failureCategory" : "ENFORCER_FAILURE"
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
"preCommitReproductionCommand" : "docker run ghcr.io/chains-project/breaking-updates:d37836e601fceb54972203e03e56474379e20e74-pre",
"breakingUpdateReproductionCommand" : "docker run ghcr.io/chains-project/breaking-updates:d37836e601fceb54972203e03e56474379e20e74-breaking",
"javaVersionUsedForReproduction" : "11",
"failureCategory" : "MAVEN_ENFORCER_FAILURE"
"failureCategory" : "ENFORCER_FAILURE"
}
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,7 @@
"enum": [
"DEPENDENCY_RESOLUTION_FAILURE",
"DEPENDENCY_LOCK_FAILURE",
"MAVEN_ENFORCER_FAILURE",
"ENFORCER_FAILURE",
"JENKINS_PLUGIN_FAILURE",
"JAXB_FAILURE",
"SCM_CHECKOUT_FAILURE",
"CHECKSTYLE_FAILURE",
"COMPILATION_FAILURE",
"TEST_FAILURE",
"UNKNOWN_FAILURE"
Expand Down
21 changes: 2 additions & 19 deletions src/main/java/miner/ReproducibleBreakingUpdate.java
Original file line number Diff line number Diff line change
Expand Up @@ -114,27 +114,10 @@ public enum FailureCategory {
*/
DEPENDENCY_LOCK_FAILURE,
/**
* There were Jenkins plugin failures after updating the dependency because the updated dependency
* requires a higher version of parent POM.
*/
JENKINS_PLUGIN_FAILURE,
/**
* There were JAXB plugin failures after updating the dependency.
*/
JAXB_FAILURE,
/**
* There were SCM plugin failures at checkout step after updating the dependency.
*/
SCM_CHECKOUT_FAILURE,
/**
* There were Checkstyle plugin failures after updating the dependency.
*/
CHECKSTYLE_FAILURE,
/**
* The compilation failed due to failing maven enforcer rules after updating the dependency,
* The compilation failed due to failing enforcer rules after updating the dependency,
* but in the previous commit there were no failures.
*/
MAVEN_ENFORCER_FAILURE,
ENFORCER_FAILURE,
/**
* The compilation failed after updating the dependency, but succeeded for the previous commit.
*/
Expand Down
13 changes: 3 additions & 10 deletions src/main/java/reproducer/ResultManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,9 @@ public class ResultManager {
FAILURE_PATTERNS.put(Pattern.compile("(?i)(\\[ERROR] Tests run:|There are test failures|There were test failures|" +
"Failed to execute goal org\\.apache\\.maven\\.plugins:maven-surefire-plugin)"),
FailureCategory.TEST_FAILURE);
FAILURE_PATTERNS.put(Pattern.compile("(?i)(Failed to execute goal org\\.jenkins-ci\\.tools:maven-hpi-plugin)"),
FailureCategory.JENKINS_PLUGIN_FAILURE);
FAILURE_PATTERNS.put(Pattern.compile("(?i)(Failed to execute goal org\\.jvnet\\.jaxb2\\.maven2:maven-jaxb2-plugin)"),
FailureCategory.JAXB_FAILURE);
FAILURE_PATTERNS.put(Pattern.compile("(?i)(Failed to execute goal org\\.apache\\.maven\\.plugins:maven-scm-plugin:.*?:checkout)"),
FailureCategory.SCM_CHECKOUT_FAILURE);
FAILURE_PATTERNS.put(Pattern.compile("(?i)(Failed to execute goal org\\.apache\\.maven\\.plugins:maven-checkstyle-plugin:.*?:check)"),
FailureCategory.CHECKSTYLE_FAILURE);
FAILURE_PATTERNS.put(Pattern.compile("(?i)(Failed to execute goal org\\.apache\\.maven\\.plugins:maven-enforcer-plugin)"),
FailureCategory.MAVEN_ENFORCER_FAILURE);
FAILURE_PATTERNS.put(Pattern.compile("(?i)(Failed to execute goal org\\.apache\\.maven\\.plugins:maven-enforcer-plugin|" +
"Failed to execute goal org\\.jenkins-ci\\.tools:maven-hpi-plugin)"),
FailureCategory.ENFORCER_FAILURE);
FAILURE_PATTERNS.put(Pattern.compile("(?i)(Could not resolve dependencies|\\[ERROR] Some problems were encountered while processing the POMs|" +
"\\[ERROR] .*?The following artifacts could not be resolved)"),
FailureCategory.DEPENDENCY_RESOLUTION_FAILURE);
Expand Down