quattor / maven-tools

Maven-based Build Tools
www.quattor.org
Apache License 2.0
4 stars 13 forks source link

Unit test errors during release:perform #45

Closed jouvin closed 9 years ago

jouvin commented 9 years ago

I tried to release version 1.41 of maven tools. release:prepare ran successfully but unfortunately I got unit test errors for build-scrips during release:perform. Not sure why because the test have been run successfully during release:prepare... Probably something different in the environment of release:perform. Any hint appreciated... I'll probably not be able to work on this before middle of the afternoon...

    [INFO] ------------------------------------------------------------------------
    [INFO] Building build-scripts 1.41
    [INFO] ------------------------------------------------------------------------
    [INFO] 
    [INFO] --- maven-enforcer-plugin:1.0:enforce (enforce-maven) @ build-scripts ---
    [INFO] 
    [INFO] --- exec-maven-plugin:1.2:exec (prove) @ build-scripts ---
    src/test/perl/component.t ................... ok
    src/test/perl/object-gather_pan.t ........... ok
    src/test/perl/object-new.t .................. ok
    src/test/perl/panc.t ........................ ok
    src/test/perl/pod-syntax.t .................. ok
    # Unable to compile profile profilecache_broken.pan. Minimal panc version is 10.2. Pan compiler called with: panc --formats json --output-dir /exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/target/test/profiles --include-path .:/exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/target/pan:/exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/target/9vhg9o973e profilecache_broken.pan from directory /exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/src/test/resources with output
    # parse error [/exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/src/test/resources/profilecache_broken.pan:1.1-1.1]
    # 
    # Encountered: Woohoo
    # Was expecting one of:
    #     "unique" ...
    #     "object" ...
    #     "template" ...
    #     "structure" ...
    #     "declaration" ...
    #     
    # 
    src/test/perl/profilecache.t ................ ok
    # ERROR: no more guesses for template-library-core path: tlc 
    # INFO No template-library-core path found (set QUATTOR_TEST_TEMPLATE_LIBRARY_CORE?)
    src/test/perl/quattor.t ..................... ok
    src/test/perl/quattor_mock.t ................ ok
    src/test/perl/regexptest-flags.t ............ ok
    src/test/perl/regexptest-tests.t ............ ok
    src/test/perl/regexptest.t .................. ok
    # ERROR: no more guesses for template-library-core path: tlc 
    # ERROR: No template-library-core path found (set QUATTOR_TEST_TEMPLATE_LIBRARY_CORE?)

    #   Failed test 'No template-library-core path found (set QUATTOR_TEST_TEMPLATE_LIBRARY_CORE?)'
    #   at /exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/src/main/perl/Test/Quattor/Object.pm line 143.
    Use of uninitialized value $dirs[1] in join or string at /exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/src/main/perl/Test/Quattor/Panc.pm line 99.
    # ERROR: no more guesses for template-library-core path: tlc 
    # INFO No template-library-core path found (set QUATTOR_TEST_TEMPLATE_LIBRARY_CORE?)
    # INFO BEGIN test for Base test
    # INFO END test for Base test
    # Looks like you failed 1 test of 44.
    src/test/perl/textrender-component.t ........ 
    Dubious, test returned 1 (wstat 256, 0x100)
    Failed 1/44 subtests 
    src/test/perl/textrender-gather_pan.t ....... ok
    src/test/perl/textrender-gather_tt.t ........ ok
    # INFO TT gather and verification test disabled
    # ERROR: no more guesses for template-library-core path: tlc 
    # ERROR: No template-library-core path found (set QUATTOR_TEST_TEMPLATE_LIBRARY_CORE?)

    #   Failed test 'No template-library-core path found (set QUATTOR_TEST_TEMPLATE_LIBRARY_CORE?)'
    #   at /exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/src/main/perl/Test/Quattor/Object.pm line 143.
    Use of uninitialized value $dirs[1] in join or string at /exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/src/main/perl/Test/Quattor/Panc.pm line 99.
    # ERROR: no more guesses for template-library-core path: tlc 
    # INFO No template-library-core path found (set QUATTOR_TEST_TEMPLATE_LIBRARY_CORE?)
    Unable to compile profile /exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/src/test/resources/metaconfig/nottservice/tests/profiles/config.pan. Minimal panc version is 10.2. Pan compiler called with: panc --formats json --output-dir /exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/target/test/profiles --include-path /exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/target/pan:/exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/src/test/resources/metaconfig/nottservice/tests/profiles:. /exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/src/test/resources/metaconfig/nottservice/tests/profiles/config.pan from directory /exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/src/test/resources/metaconfig/nottservice/tests/profiles with output
    evaluation error [/exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/target/pan/metaconfig/nottservice/schema.pan:3.1-3.20]
    cannot locate template named 'pan/types'
    >>> call stack trace 
    >>> [/exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/target/pan/metaconfig/nottservice/schema.pan:3.1-3.20]
    >>> [/exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/target/pan/metaconfig/nottservice/config.pan:3.1-3.40]
    >>> [/exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/src/test/resources/metaconfig/nottservice/tests/profiles/config.pan:3.1-3.40]
    >>> ====================

     at /exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/src/main/perl/Test/Quattor/ProfileCache.pm line 208
    # Tests were run but no plan was declared and done_testing() was not seen.
    src/test/perl/textrender-metaconfig-nott.t .. 
    Dubious, test returned 1 (wstat 256, 0x100)
    Failed 1/26 subtests 
    # ERROR: no more guesses for template-library-core path: tlc 
    # ERROR: No template-library-core path found (set QUATTOR_TEST_TEMPLATE_LIBRARY_CORE?)

    #   Failed test 'No template-library-core path found (set QUATTOR_TEST_TEMPLATE_LIBRARY_CORE?)'
    #   at /exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/src/main/perl/Test/Quattor/Object.pm line 143.
    Use of uninitialized value $dirs[1] in join or string at /exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/src/main/perl/Test/Quattor/Panc.pm line 99.
    # ERROR: no more guesses for template-library-core path: tlc 
    # INFO No template-library-core path found (set QUATTOR_TEST_TEMPLATE_LIBRARY_CORE?)
    # INFO BEGIN test for Nopan
    # INFO END test for Nopan
    # ERROR: no more guesses for template-library-core path: tlc 
    # INFO No template-library-core path found (set QUATTOR_TEST_TEMPLATE_LIBRARY_CORE?)
    Unable to compile profile /exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/src/test/resources/metaconfig/testservice/1.0/tests/profiles/simple.pan. Minimal panc version is 10.2. Pan compiler called with: panc --formats json --output-dir /exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/target/test/profiles --include-path /exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/target/pan:/exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/src/test/resources/metaconfig/testservice/1.0/tests/profiles:. /exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/src/test/resources/metaconfig/testservice/1.0/tests/profiles/simple.pan from directory /exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/src/test/resources/metaconfig/testservice/1.0/tests/profiles with output
    evaluation error [/exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/target/pan/metaconfig/testservice/schema.pan:3.1-3.20]
    cannot locate template named 'pan/types'
    >>> call stack trace 
    >>> [/exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/target/pan/metaconfig/testservice/schema.pan:3.1-3.20]
    >>> [/exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/target/pan/metaconfig/testservice/config.pan:3.1-3.40]
    >>> [/exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/src/test/resources/metaconfig/testservice/1.0/tests/profiles/simple.pan:3.1-3.40]
    >>> ====================

     at /exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/src/main/perl/Test/Quattor/ProfileCache.pm line 208
    # Tests were run but no plan was declared and done_testing() was not seen.
    src/test/perl/textrender-metaconfig.t ....... 
    Dubious, test returned 1 (wstat 256, 0x100)
    Failed 1/42 subtests 
    # ERROR: no more guesses for template-library-core path: tlc 
    # INFO No template-library-core path found (set QUATTOR_TEST_TEMPLATE_LIBRARY_CORE?)
    src/test/perl/textrender-regexptest.t ....... ok
    # Start actual Suite tests v2.0
    # ERROR: no more guesses for template-library-core path: tlc 
    # ERROR: No template-library-core path found (set QUATTOR_TEST_TEMPLATE_LIBRARY_CORE?)

    #   Failed test 'No template-library-core path found (set QUATTOR_TEST_TEMPLATE_LIBRARY_CORE?)'
    #   at /exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/src/main/perl/Test/Quattor/Object.pm line 143.
    Use of uninitialized value $dirs[1] in join or string at /exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/src/main/perl/Test/Quattor/Panc.pm line 99.
    # ERROR: no more guesses for template-library-core path: tlc 
    # INFO No template-library-core path found (set QUATTOR_TEST_TEMPLATE_LIBRARY_CORE?)
    # INFO BEGIN test for Ordered test v2.0
    # INFO END test for Ordered test v2.0
    # Looks like you failed 1 test of 65.
    src/test/perl/textrender-suite-2.0.t ........ 
    Dubious, test returned 1 (wstat 256, 0x100)
    Failed 1/65 subtests 
    # Start actual Suite tests
    # ERROR: no more guesses for template-library-core path: tlc 
    # ERROR: No template-library-core path found (set QUATTOR_TEST_TEMPLATE_LIBRARY_CORE?)

    #   Failed test 'No template-library-core path found (set QUATTOR_TEST_TEMPLATE_LIBRARY_CORE?)'
    #   at /exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/src/main/perl/Test/Quattor/Object.pm line 143.
    Use of uninitialized value $dirs[1] in join or string at /exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/src/main/perl/Test/Quattor/Panc.pm line 99.
    # ERROR: no more guesses for template-library-core path: tlc 
    # INFO No template-library-core path found (set QUATTOR_TEST_TEMPLATE_LIBRARY_CORE?)
    # INFO BEGIN test for Nopan
    # INFO END test for Nopan
    # ERROR: no more guesses for template-library-core path: tlc 
    # INFO No template-library-core path found (set QUATTOR_TEST_TEMPLATE_LIBRARY_CORE?)
    Unable to compile profile /exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/src/test/resources/metaconfig/testservice/1.0/tests/profiles/simple.pan. Minimal panc version is 10.2. Pan compiler called with: panc --formats json --output-dir /exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/target/test/profiles --include-path /exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/target/textrender/namespace/2UjKCZbVWh:/exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/src/test/resources/metaconfig/testservice/1.0/tests/profiles:.:/exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/target/pan /exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/src/test/resources/metaconfig/testservice/1.0/tests/profiles/simple.pan from directory /exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/src/test/resources/metaconfig/testservice/1.0/tests/profiles with output
    evaluation error [/exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/target/textrender/namespace/2UjKCZbVWh/metaconfig/testservice/schema.pan:3.1-3.20]
    cannot locate template named 'pan/types'
    >>> call stack trace 
    >>> [/exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/target/textrender/namespace/2UjKCZbVWh/metaconfig/testservice/schema.pan:3.1-3.20]
    >>> [/exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/target/textrender/namespace/2UjKCZbVWh/metaconfig/testservice/config.pan:3.1-3.40]
    >>> [/exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/src/test/resources/metaconfig/testservice/1.0/tests/profiles/simple.pan:3.1-3.40]
    >>> ====================

     at /exp/si/jouvin/GitRepositories/Quattor/maven-tools/target/checkout/build-scripts/src/main/perl/Test/Quattor/ProfileCache.pm line 208
    # Tests were run but no plan was declared and done_testing() was not seen.
    src/test/perl/textrender-suite.t ............ 
    Dubious, test returned 1 (wstat 256, 0x100)
    Failed 1/41 subtests 

    Test Summary Report
    -------------------
    src/test/perl/textrender-component.t      (Wstat: 256 Tests: 44 Failed: 1)
      Failed test:  19
      Non-zero exit status: 1
    src/test/perl/textrender-metaconfig-nott.t (Wstat: 256 Tests: 26 Failed: 1)
      Failed test:  15
      Non-zero exit status: 1
      Parse errors: No plan found in TAP output
    src/test/perl/textrender-metaconfig.t     (Wstat: 256 Tests: 42 Failed: 1)
      Failed test:  17
      Non-zero exit status: 1
      Parse errors: No plan found in TAP output
    src/test/perl/textrender-suite-2.0.t      (Wstat: 256 Tests: 65 Failed: 1)
      Failed test:  14
      Non-zero exit status: 1
    src/test/perl/textrender-suite.t          (Wstat: 256 Tests: 41 Failed: 1)
      Failed test:  14
      Non-zero exit status: 1
      Parse errors: No plan found in TAP output
    Files=19, Tests=385, 36 wallclock secs ( 0.16 usr  0.05 sys + 58.52 cusr  2.80 csys = 61.53 CPU)
    Result: FAIL
    [INFO] ------------------------------------------------------------------------
    [INFO] Reactor Summary:
    [INFO] 
    [INFO] quattor maven build tools ......................... SUCCESS [1:31.282s]
    [INFO] assemblies ........................................ SUCCESS [10.824s]
    [INFO] build-scripts ..................................... FAILURE [36.245s]
    [INFO] build-profile ..................................... SKIPPED
    [INFO] quattor cfg. module archetype ..................... SKIPPED
    [INFO] quattor build maven plugin ........................ SKIPPED
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 2:20.059s
    [INFO] Finished at: Fri Mar 13 08:28:03 CET 2015
    [INFO] Final Memory: 20M/430M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2:exec (prove) on project build-scripts: Command execution failed. Process exited with an error: 1(Exit value: 1) -> [Help 1]
    [ERROR] 
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR] 
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
    [ERROR] 
    [ERROR] After correcting the problems, you can resume the build with the command
    [ERROR]   mvn <goals> -rf :build-scripts
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] quattor maven build tools ......................... FAILURE [2:26.908s]
[INFO] assemblies ........................................ SKIPPED
[INFO] build-scripts ..................................... SKIPPED
[INFO] build-profile ..................................... SKIPPED
[INFO] quattor cfg. module archetype ..................... SKIPPED
[INFO] quattor build maven plugin ........................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2:29.128s
[INFO] Finished at: Fri Mar 13 08:28:04 CET 2015
[INFO] Final Memory: 12M/304M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.1:perform (default-cli) on project maven: Maven execution failed, exit code: '1' -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
stdweird commented 9 years ago

@jouvin i thought the message was clear enough?

# ERROR: no more guesses for template-library-core path: tlc 
# INFO No template-library-core path found (set QUATTOR_TEST_TEMPLATE_LIBRARY_CORE?)
jouvin commented 9 years ago

What should I have done that was not necessary in the previous step?

stdweird commented 9 years ago

@jouvin if the variable is not set, it searches for a number of default locations based on working directory. maybe the working dir is different?

stdweird commented 9 years ago

@jouvin @jrha had the same issue, see e.g. https://github.com/quattor/release/issues/76

jouvin commented 9 years ago

I'll check after my meeting. Certainly worth an addition in the doc!

jrha commented 9 years ago

I certainly have no issues using the updated env.sh generated by build_all_repos.sh. @jouvin are you happy now?

jouvin commented 9 years ago

Yes, sorry I forgot to update the issue. I added the documentation about the need to define this variable in BUILD_INFO (https://github.com/quattor/maven-tools/pull/46).

jrha commented 9 years ago

Cool, thanks.