jeudi 3 décembre 2020

What can be the reason(s) for a "Testless build" in BAMBOO of a newly created and locally working branch?

I am not really experienced with Bamboo and there is a failure I am not understanding: I am getting a testless build for an uploaded branch.

This branch contains two newly created files in my project (XYZpage.java and XYZtest.java).

The created code runs perfectly locally but once I push it in my build server I get an error e.g. a "testless build".

I tried to create again the branch and upload it again in my server but I got the same error. The server has been checked it seems there is nothing strange happening. [I have been googeling a lot as well].

The error shown in my build log looks as follows:

[ERROR] COMPILATION ERROR : 
08-Nov-2020 22:55:30    [INFO] -------------------------------------------------------------
08-Nov-2020 22:55:30    [ERROR] /home/bamboo/bamboo-home/xml-data/build-dir/XYZ/src/test/java/XYZ/XYZ/XYZ/XYZTest.java:[78,12] error: cannot find symbol
08-Nov-2020 22:55:30    [INFO] 1 error
08-Nov-2020 22:55:30    [INFO] -------------------------------------------------------------
08-Nov-2020 22:55:30    [INFO] ------------------------------------------------------------------------
08-Nov-2020 22:55:30    [INFO] BUILD FAILURE
08-Nov-2020 22:55:30    [INFO] ------------------------------------------------------------------------
08-Nov-2020 22:55:30    [INFO] Total time:  3.832 s
08-Nov-2020 22:55:30    [INFO] Finished at: 2020-11-08T22:55:30+01:00
08-Nov-2020 22:55:30    [INFO] ------------------------------------------------------------------------
08-Nov-2020 22:55:30    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (default-testCompile) on project XYZ: Compilation failure
08-Nov-2020 22:55:30    [ERROR] /home/bamboo/bamboo-home/xml-data/build-dir/XYZ/test/java/XYZ/XYZ/XYZ/XYZTest.java:[78,12] error: cannot find symbol
08-Nov-2020 22:55:30    [ERROR] -> [Help 1]
08-Nov-2020 22:55:30    [ERROR] 
08-Nov-2020 22:55:30    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
08-Nov-2020 22:55:30    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
08-Nov-2020 22:55:30    [ERROR] 
08-Nov-2020 22:55:30    [ERROR] For more information about the errors and possible solutions, please read the following articles:
08-Nov-2020 22:55:30    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
08-Nov-2020 22:55:30    Failing task since return code of [/usr/bin/mvn --batch-mode -Djava.io.tmpdir=/opt/bamboo/temp/XYZ clean test] was 1 while expected 0
08-Nov-2020 22:55:30    Parsing test results under /home/bamboo/bamboo-home/xml-data/build-dir/XYZ...
08-Nov-2020 22:55:30    Finished task 'XYZ Test' with result: Failed
08-Nov-2020 22:55:30    Starting task 'Clean Chrome Test Environment' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'

This error messaging seems to indicate a compiling error and also an error from the file XYZTest.java:[78,12] error: cannot find symbol.

The file XYZTest.java has been checked but does not seem wrong and is, as already mentioned, working locally.

Another Information that might help is: I have 4 build tests that are failing on purpose in Bamboo since these are reminding that the tested website is having a couple of bugs that still need to be solved.

Is there a specific reason or error I am not seeing? Is it only a conflict or a bug from Bamboo (maybe due to the 4 failing tests or because I have to upgrade some plugins)? ...

In other words, What can be the reason(s) for such an error?

I thank you in advance for your support!

Aucun commentaire:

Enregistrer un commentaire