Skip to content

Failed

fr.inria.spirals.repairnator.pipeline.TestPipeline.testPipelineGitRepositoryAndCommitIdWithFailure

Failing for the past 1 build (Since #30 )
Took 2 ms.

Error Message

Parameter 'gitRepositoryPullRequest' has no associated value.

Stacktrace

com.martiansoftware.jsap.UnspecifiedParameterException: Parameter 'gitRepositoryPullRequest' has no associated value.
	at fr.inria.spirals.repairnator.pipeline.TestPipeline.testPipelineGitRepositoryAndCommitIdWithFailure(TestPipeline.java:94)

Standard Output

[main] 00:06:05.071 INFO  f.i.s.r.pipeline.LauncherHelpers - PIPELINE VERSION: 3.3-SNAPSHOT-2022-01-18 23:18 
[main] 00:06:05.072 INFO  f.i.s.r.p.travis.TravisInitConfig - The following repair tools will be used: NPEFix 
[main] 00:06:05.072 INFO  f.i.s.r.p.t.TravisInitSerializerEngines - Initialize file serializer engines. 
[main] 00:06:05.072 INFO  f.i.s.r.p.t.TravisInitSerializerEngines - MongoDB won't be used for serialization. 
[main] 00:06:05.072 INFO  f.i.s.r.p.t.TravisInitNotifiers - The email notifier engine won't be used. 
[main] 00:06:05.322 INFO  fr.inria.jtravis.JTravis - GitHub ratelimit: Limit: 60 Remaining: 30 Reset hour: 00:15:53 
[main] 00:06:05.443 INFO  f.i.s.r.p.travis.TravisMainProcess - Start by getting the build (buildId: 220925392) with the following config: RepairnatorConfig{runId='1234', launcherMode=REPAIR, inputPath='null', outputPath='/tmp/junit10021174235601274632', mongodbHost='null', mongodbName='repairnator', smtpServer='null', smtpPort='25', smtpTLS='false', smtpUsername='null', smtpPassword='', notifyTo=[], notifyEndProcess=false, push=false, pushRemoteRepo='null', fork=false, lookFromDate=null, lookToDate=null, buildId=220925392, z3solverPath='/home/jenkins/agent/workspace/repairnator-ci_PR-1243/src/repairnator-pipeline/./z3_for_linux', workspacePath='/tmp/junit873920567910034110', githubToken='null', dockerImageName='null', skipDelete=false, createOutputDir=false, logDirectory='null', nbThreads=1, globalTimeout=0, whiteList=null, blackList=null, jobSleepTime=0, buildSleepTime=0, maxInspectedBuilds=0, duration=null, humanPatch=false, repository='null', clean=true, bearsMode=BOTH, bearsDelimiter = false, repairTools=NPEFix, githubUserName= repairnator, githubUserEmail=noreply@github.com, pipelineMode=null, listenerMode=NOOP, activeMQUrl=tcp://localhost:61616, activeMQSubmitQueueName=null, gitUrl=null, gitBranch=null, gitCommitHash=null, mavenHome=/usr/share/maven, localMavenRepository=/home/jenkins/.m2/repository, noTravisRepair=false, jTravisEndpoint=https://api.travis-ci.com, travisToken=, flacocoThreshold=0.1, flacocoTopK=5, flacocoResultsRepository=} 
[main] 00:06:05.574 INFO  f.i.s.r.p.i.ProjectInspector - ---------------------------------------------------------------------- 
[main] 00:06:05.574 INFO  f.i.s.r.p.i.ProjectInspector - PIPELINE STEPS 
[main] 00:06:05.574 INFO  f.i.s.r.p.i.ProjectInspector - ---------------------------------------------------------------------- 
[main] 00:06:05.574 INFO  f.i.s.r.p.i.ProjectInspector - CloneRepository 
[main] 00:06:05.574 INFO  f.i.s.r.p.i.ProjectInspector - CheckoutBuggyBuild 
[main] 00:06:05.574 INFO  f.i.s.r.p.i.ProjectInspector - BuildProject 
[main] 00:06:05.575 INFO  f.i.s.r.p.i.ProjectInspector - TestProject 
[main] 00:06:05.575 INFO  f.i.s.r.p.i.ProjectInspector - ComputeClasspath 
[main] 00:06:05.575 INFO  f.i.s.r.p.i.ProjectInspector - ComputeSourceDir 
[main] 00:06:05.575 INFO  f.i.s.r.p.i.ProjectInspector - ComputeTestDir 
[main] 00:06:05.575 INFO  f.i.s.r.p.i.ProjectInspector - GatherTestInformation 
[main] 00:06:05.575 INFO  f.i.s.r.p.i.ProjectInspector - InitRepoToPush 
[main] 00:06:05.575 INFO  f.i.s.r.p.i.ProjectInspector - NPEFix 
[main] 00:06:05.575 INFO  f.i.s.r.p.i.ProjectInspector - CommitPatch 
[main] 00:06:05.575 INFO  f.i.s.r.p.i.ProjectInspector - CheckoutPatchedBuild 
[main] 00:06:05.575 INFO  f.i.s.r.p.i.ProjectInspector - BuildProject 
[main] 00:06:05.575 INFO  f.i.s.r.p.i.ProjectInspector - TestProject 
[main] 00:06:05.575 INFO  f.i.s.r.p.i.ProjectInspector - GatherTestInformation 
[main] 00:06:05.575 INFO  f.i.s.r.p.i.ProjectInspector - CommitPatch 
[main] 00:06:05.575 INFO  f.i.s.r.p.i.ProjectInspector - ComputeSourceDir 
[main] 00:06:05.575 INFO  f.i.s.r.p.i.ProjectInspector - ComputeModules 
[main] 00:06:05.575 INFO  f.i.s.r.p.i.ProjectInspector - WritePropertyFile 
[main] 00:06:05.575 INFO  f.i.s.r.p.i.ProjectInspector - CommitProcessEnd 
[main] 00:06:05.575 INFO  f.i.s.r.p.i.ProjectInspector - PushProcessEnd 
[main] 00:06:12.536 INFO  f.i.s.r.process.git.GitHelper - Init git submodules. 
[Thread-289] 00:06:30.486 ERROR f.i.s.r.p.m.o.MavenFilterOutputHandler - [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project test-projects: There are test failures. 
[Thread-289] 00:06:30.486 ERROR f.i.s.r.p.m.o.MavenFilterOutputHandler - [ERROR]  
[Thread-289] 00:06:30.487 ERROR f.i.s.r.p.m.o.MavenFilterOutputHandler - [ERROR] Please refer to /tmp/junit873920567910034110/repairnator/failingProject/target/surefire-reports for the individual test results. 
[Thread-289] 00:06:30.487 ERROR f.i.s.r.p.m.o.MavenFilterOutputHandler - [ERROR] -> [Help 1] 
[Thread-289] 00:06:30.539 ERROR f.i.s.r.p.m.o.MavenFilterOutputHandler - [ERROR]  
[Thread-289] 00:06:30.540 ERROR f.i.s.r.p.m.o.MavenFilterOutputHandler - [ERROR] Re-run Maven using the -X switch to enable full debug logging. 
[Thread-289] 00:06:30.540 ERROR f.i.s.r.p.m.o.MavenFilterOutputHandler - [ERROR]  
[Thread-289] 00:06:30.540 ERROR f.i.s.r.p.m.o.MavenFilterOutputHandler - [ERROR] For more information about the errors and possible solutions, please read the following articles: 
[Thread-289] 00:06:30.541 ERROR f.i.s.r.p.m.o.MavenFilterOutputHandler - [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException 
[main] 00:06:38.584 INFO  f.i.s.r.p.s.paths.ComputeSourceDir - 1 source dir was found: 
[main] 00:06:38.584 INFO  f.i.s.r.p.s.paths.ComputeSourceDir - /tmp/junit873920567910034110/repairnator/failingProject/src/main/java 
[main] 00:06:38.589 INFO  f.i.s.r.p.step.paths.ComputeTestDir - 1 test dir was found: 
[main] 00:06:38.589 INFO  f.i.s.r.p.step.paths.ComputeTestDir - /tmp/junit873920567910034110/repairnator/failingProject/src/test/java 
[main] 00:06:38.661 INFO  f.i.s.r.p.s.g.GatherTestInformation - Get the following failing module path: /tmp/junit873920567910034110/repairnator/failingProject 
[main] 00:06:38.661 INFO  f.i.s.r.p.s.g.GatherTestInformation - Get the following failing module path: /tmp/junit873920567910034110/repairnator/failingProject 
[main] 00:06:38.664 INFO  f.i.s.r.p.s.g.GatherTestInformation - Get the following failing module path: /tmp/junit873920567910034110/repairnator/failingProject 
[main] 00:06:38.664 INFO  f.i.s.r.p.s.g.GatherTestInformation - Get the following failing module path: /tmp/junit873920567910034110/repairnator/failingProject 
[main] 00:06:38.672 INFO  f.i.s.r.p.s.g.GatherTestInformation - Get the following failing module path: /tmp/junit873920567910034110/repairnator/failingProject 
[main] 00:06:38.672 INFO  f.i.s.r.p.s.g.GatherTestInformation - Get the following failing module path: /tmp/junit873920567910034110/repairnator/failingProject 
[main] 00:06:38.675 INFO  f.i.s.r.p.s.g.GatherTestInformation - Get the following failing module path: /tmp/junit873920567910034110/repairnator/failingProject 
[main] 00:06:38.675 INFO  f.i.s.r.p.s.g.GatherTestInformation - Get the following failing module path: /tmp/junit873920567910034110/repairnator/failingProject 
[main] 00:06:38.675 INFO  f.i.s.r.p.s.g.GatherTestInformation - Get the following failing module path: /tmp/junit873920567910034110/repairnator/failingProject 
[main] 00:06:38.675 INFO  f.i.s.r.p.s.g.GatherTestInformation - Get the following failing module path: /tmp/junit873920567910034110/repairnator/failingProject 
[main] 00:06:38.677 INFO  f.i.s.r.p.s.g.GatherTestInformation - ---Test results--- 
[main] 00:06:38.678 INFO  f.i.s.r.p.s.g.GatherTestInformation -    Total tests: 98 
[main] 00:06:38.678 INFO  f.i.s.r.p.s.g.GatherTestInformation -    Tests run: 98 
[main] 00:06:38.678 INFO  f.i.s.r.p.s.g.GatherTestInformation -    Tests passing: 67 
[main] 00:06:38.678 INFO  f.i.s.r.p.s.g.GatherTestInformation -    Failures: 26 
[main] 00:06:38.678 INFO  f.i.s.r.p.s.g.GatherTestInformation -    Errors: 5 
[main] 00:06:38.678 INFO  f.i.s.r.p.s.g.GatherTestInformation -    Skipped: 0 
[main] 00:06:38.678 INFO  f.i.s.r.p.step.push.InitRepoToPush - Repairnator is configured NOT to push. Step bypassed. 
[main] 00:06:38.678 INFO  f.i.s.r.p.step.repair.NPERepair - NPE found, start NPEFix 
[main] 00:06:38.678 INFO  f.i.s.r.p.step.repair.NPERepair - Using scope class, 2 files/dirs will be used 
/tmp/junit873920567910034110/repairnator/failingProject/src/main/java/nopol_examples/nopol_example_12/NopolExample.java
/tmp/junit873920567910034110/repairnator/failingProject/src/main/java/nopol_examples/nopol_example_13/NopolExample.java
TernarySplitter  in 0ms
CheckNotNull  in 0ms
ForceNullInit in 0ms
AddImplicitCastChecker --> 0 in 1ms
BeforeDeref --> 3 (failed:0) in 2ms
target--> 3 (failed:0) in 3ms
TryRegister # Try: 0 in 0ms
Assign --> 1 (failed: 0) in 3ms
VarInit --> 2 in 1ms
MethodEncapsulation # Method: 81 in 12ms
ConstructorEncapsulation # Constructor: 0 in 0ms
VariableFor in 0ms
nopol_examples.nopol_example_12.NopolExampleTest#test_3
	1 Strat1A nopol_examples.nopol_example_12.NopolExample:6 Used list2
Status: Ok
nopol_examples.nopol_example_13.NopolExampleTest#test_1
	1 Strat2A nopol_examples.nopol_example_13.NopolExample:4 Used java.util.ArrayList()
Status: Ok
[main] 00:06:39.074 INFO  f.i.s.r.p.step.repair.NPERepair - Multirun 2/100 2% 
nopol_examples.nopol_example_12.NopolExampleTest#test_3
	1 Strat1B nopol_examples.nopol_example_12.NopolExample:6 Used list2
Status: Ok
nopol_examples.nopol_example_13.NopolExampleTest#test_1
	1 Strat2B nopol_examples.nopol_example_13.NopolExample:4 Used java.util.ArrayList()
Status: Ok
[main] 00:06:39.084 INFO  f.i.s.r.p.step.repair.NPERepair - Multirun 4/100 4% 
nopol_examples.nopol_example_12.NopolExampleTest#test_3
	1 Strat2A nopol_examples.nopol_example_12.NopolExample:6 Used java.util.ArrayList()
Status: Ok
nopol_examples.nopol_example_13.NopolExampleTest#test_1
	1 Strat3 nopol_examples.nopol_example_13.NopolExample:4 Used false
Status: Ko
[main] 00:06:39.094 INFO  f.i.s.r.p.step.repair.NPERepair - Multirun 6/100 6% 
nopol_examples.nopol_example_12.NopolExampleTest#test_3
	1 Strat2B nopol_examples.nopol_example_12.NopolExample:6 Used java.util.ArrayList()
Status: Ok
nopol_examples.nopol_example_13.NopolExampleTest#test_1
	1 Strat4 VAR nopol_examples.nopol_example_13.NopolExample:4 Used java.lang.Boolean.FALSE
Status: Ko
[main] 00:06:39.102 INFO  f.i.s.r.p.step.repair.NPERepair - Multirun 8/100 8% 
nopol_examples.nopol_example_12.NopolExampleTest#test_3
	1 Strat3 nopol_examples.nopol_example_12.NopolExample:6 Used false
Status: Ko
nopol_examples.nopol_example_13.NopolExampleTest#test_1
	1 Strat4 VAR nopol_examples.nopol_example_13.NopolExample:4 Used java.lang.Boolean.TRUE
Status: Ok
[main] 00:06:39.125 INFO  f.i.s.r.p.step.repair.NPERepair - Multirun 10/100 10% 
nopol_examples.nopol_example_12.NopolExampleTest#test_3
	1 Strat4 VAR nopol_examples.nopol_example_12.NopolExample:6 Used java.lang.Boolean.FALSE
Status: Ko
nopol_examples.nopol_example_13.NopolExampleTest#test_1
	1 Strat4 NEW nopol_examples.nopol_example_13.NopolExample:4 Used false
Status: Ko
[main] 00:06:39.134 INFO  f.i.s.r.p.step.repair.NPERepair - Multirun 12/100 12% 
nopol_examples.nopol_example_12.NopolExampleTest#test_3
	1 Strat4 VAR nopol_examples.nopol_example_12.NopolExample:6 Used java.lang.Boolean.TRUE
Status: Ok
nopol_examples.nopol_example_13.NopolExampleTest#test_1
	1 Strat4 NEW nopol_examples.nopol_example_13.NopolExample:4 Used true
Status: Ok
[main] 00:06:39.143 INFO  f.i.s.r.p.step.repair.NPERepair - Multirun 14/100 14% 
nopol_examples.nopol_example_12.NopolExampleTest#test_3
	1 Strat4 NEW nopol_examples.nopol_example_12.NopolExample:6 Used false
Status: Ko
[main] 00:06:39.152 INFO  f.i.s.r.p.step.repair.NPERepair - Multirun 16/100 16% 
nopol_examples.nopol_example_12.NopolExampleTest#test_3
	1 Strat4 NEW nopol_examples.nopol_example_12.NopolExample:6 Used true
Status: Ok
[main] 00:06:39.161 INFO  f.i.s.r.p.step.repair.NPERepair - Multirun 18/100 18% 
[main] 00:06:39.271 INFO  f.i.s.r.p.step.repair.NPERepair - --- a/src/main/java/nopol_examples/nopol_example_12/NopolExample.java
+++ b/src/main/java/nopol_examples/nopol_example_12/NopolExample.java
@@ -5,4 +5,9 @@
         int x = 3; // 3 should also be added to the list of constants
-        if (list.isEmpty())
+        if (list == null) {
+            if ( list2.isEmpty())
             return true;
+        } else {
+            if (list.isEmpty())
+            return true;
+        }
         foo(null);
 
[main] 00:06:39.271 INFO  f.i.s.r.p.step.repair.NPERepair - --- a/src/main/java/nopol_examples/nopol_example_13/NopolExample.java
+++ b/src/main/java/nopol_examples/nopol_example_13/NopolExample.java
@@ -3,4 +3,9 @@
     public boolean isEmpty(java.util.List list) {
-        if (list.isEmpty())
+        if (list == null) {
+            if ( new ArrayList().isEmpty())
             return true;
+        } else {
+            if (list.isEmpty())
+            return true;
+        }
         
 
[main] 00:06:39.271 INFO  f.i.s.r.p.step.repair.NPERepair - --- a/src/main/java/nopol_examples/nopol_example_12/NopolExample.java
+++ b/src/main/java/nopol_examples/nopol_example_12/NopolExample.java
@@ -5,2 +5,5 @@
         int x = 3; // 3 should also be added to the list of constants
+        if (list == null) {
+            list = list2;
+        }
         if (list.isEmpty())
 
[main] 00:06:39.272 INFO  f.i.s.r.p.step.repair.NPERepair - --- a/src/main/java/nopol_examples/nopol_example_13/NopolExample.java
+++ b/src/main/java/nopol_examples/nopol_example_13/NopolExample.java
@@ -3,2 +3,5 @@
     public boolean isEmpty(java.util.List list) {
+        if (list == null) {
+            list = new ArrayList();
+        }
         if (list.isEmpty())
 
[main] 00:06:39.272 INFO  f.i.s.r.p.step.repair.NPERepair - --- a/src/main/java/nopol_examples/nopol_example_12/NopolExample.java
+++ b/src/main/java/nopol_examples/nopol_example_12/NopolExample.java
@@ -5,4 +5,9 @@
         int x = 3; // 3 should also be added to the list of constants
-        if (list.isEmpty())
+        if (list == null) {
+            if ( new ArrayList().isEmpty())
             return true;
+        } else {
+            if (list.isEmpty())
+            return true;
+        }
         foo(null);
 
[main] 00:06:39.272 INFO  f.i.s.r.p.step.repair.NPERepair - --- a/src/main/java/nopol_examples/nopol_example_13/NopolExample.java
+++ b/src/main/java/nopol_examples/nopol_example_13/NopolExample.java
@@ -3,4 +3,6 @@
     public boolean isEmpty(java.util.List list) {
-        if (list.isEmpty())
+        if (list != null) {
+            if (list.isEmpty())
             return true;
+        }
         
 
[main] 00:06:39.272 INFO  f.i.s.r.p.step.repair.NPERepair - --- a/src/main/java/nopol_examples/nopol_example_12/NopolExample.java
+++ b/src/main/java/nopol_examples/nopol_example_12/NopolExample.java
@@ -5,2 +5,5 @@
         int x = 3; // 3 should also be added to the list of constants
+        if (list == null) {
+            list = new ArrayList();
+        }
         if (list.isEmpty())
 
[main] 00:06:39.272 INFO  f.i.s.r.p.step.repair.NPERepair - --- a/src/main/java/nopol_examples/nopol_example_13/NopolExample.java
+++ b/src/main/java/nopol_examples/nopol_example_13/NopolExample.java
@@ -3,2 +3,5 @@
     public boolean isEmpty(java.util.List list) {
+        if (list == null) {
+            return Boolean.FALSE;
+        }
         if (list.isEmpty())
 
[main] 00:06:39.272 INFO  f.i.s.r.p.step.repair.NPERepair - --- a/src/main/java/nopol_examples/nopol_example_12/NopolExample.java
+++ b/src/main/java/nopol_examples/nopol_example_12/NopolExample.java
@@ -5,4 +5,6 @@
         int x = 3; // 3 should also be added to the list of constants
-        if (list.isEmpty())
+        if (list != null) {
+            if (list.isEmpty())
             return true;
+        }
         foo(null);
 
[main] 00:06:39.272 INFO  f.i.s.r.p.step.repair.NPERepair - --- a/src/main/java/nopol_examples/nopol_example_13/NopolExample.java
+++ b/src/main/java/nopol_examples/nopol_example_13/NopolExample.java
@@ -3,2 +3,5 @@
     public boolean isEmpty(java.util.List list) {
+        if (list == null) {
+            return Boolean.TRUE;
+        }
         if (list.isEmpty())
 
[main] 00:06:39.272 INFO  f.i.s.r.p.step.repair.NPERepair - --- a/src/main/java/nopol_examples/nopol_example_12/NopolExample.java
+++ b/src/main/java/nopol_examples/nopol_example_12/NopolExample.java
@@ -5,2 +5,5 @@
         int x = 3; // 3 should also be added to the list of constants
+        if (list == null) {
+            return Boolean.FALSE;
+        }
         if (list.isEmpty())
 
[main] 00:06:39.272 INFO  f.i.s.r.p.step.repair.NPERepair - --- a/src/main/java/nopol_examples/nopol_example_13/NopolExample.java
+++ b/src/main/java/nopol_examples/nopol_example_13/NopolExample.java
@@ -3,2 +3,5 @@
     public boolean isEmpty(java.util.List list) {
+        if (list == null) {
+            return false;
+        }
         if (list.isEmpty())
 
[main] 00:06:39.272 INFO  f.i.s.r.p.step.repair.NPERepair - --- a/src/main/java/nopol_examples/nopol_example_12/NopolExample.java
+++ b/src/main/java/nopol_examples/nopol_example_12/NopolExample.java
@@ -5,2 +5,5 @@
         int x = 3; // 3 should also be added to the list of constants
+        if (list == null) {
+            return Boolean.TRUE;
+        }
         if (list.isEmpty())
 
[main] 00:06:39.272 INFO  f.i.s.r.p.step.repair.NPERepair - --- a/src/main/java/nopol_examples/nopol_example_13/NopolExample.java
+++ b/src/main/java/nopol_examples/nopol_example_13/NopolExample.java
@@ -3,2 +3,5 @@
     public boolean isEmpty(java.util.List list) {
+        if (list == null) {
+            return true;
+        }
         if (list.isEmpty())
 
[main] 00:06:39.273 INFO  f.i.s.r.p.step.repair.NPERepair - --- a/src/main/java/nopol_examples/nopol_example_12/NopolExample.java
+++ b/src/main/java/nopol_examples/nopol_example_12/NopolExample.java
@@ -5,2 +5,5 @@
         int x = 3; // 3 should also be added to the list of constants
+        if (list == null) {
+            return false;
+        }
         if (list.isEmpty())
 
[main] 00:06:39.273 INFO  f.i.s.r.p.step.repair.NPERepair - --- a/src/main/java/nopol_examples/nopol_example_12/NopolExample.java
+++ b/src/main/java/nopol_examples/nopol_example_12/NopolExample.java
@@ -5,2 +5,5 @@
         int x = 3; // 3 should also be added to the list of constants
+        if (list == null) {
+            return true;
+        }
         if (list.isEmpty())
 
[main] 00:06:39.283 INFO  f.i.s.r.p.step.repair.NPERepair - The repository won't be forked. 
[main] 00:06:39.283 WARN  f.i.s.r.p.s.r.n.NopolSingleTestRepair - Skipping repair step NopolSingleTest 
[main] 00:06:39.283 INFO  f.i.s.r.p.step.push.CommitPatch - Repairnator is configured NOT to push. Step bypassed. 
[main] 00:06:39.284 ERROR f.i.s.r.p.s.c.CheckoutPatchedBuild - There is no patched build retrieved. This will stop now. 
[main] 00:06:39.284 INFO  f.i.s.r.p.travis.TravisMainProcess - Inspector is finished. The process will exit now.