You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Gary Gregory <ga...@gmail.com> on 2018/05/26 14:46:00 UTC

[release-plugin] Unit test failures

Hi Rob and All,

When I run 'mvn clean install site -Danimal.sniffer.skip', I get unit test
failures:

[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running
org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentMojoTest
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further
details.
[WARNING] commons.distSvnStagingUrl is not set, the commons-release-plugin
will not run.
[INFO] Detaching Assemblies
[ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
3.886 s <<< FAILURE! - in
org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentMojoTest
[ERROR]
testSuccess(org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentMojoTest)
Time elapsed: 0.052 s  <<< ERROR!
org.apache.maven.plugin.MojoExecutionException: Could not find artifact
signature for: mockAttachedTar-null type: tar.gz
        at
org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentMojoTest.testSuccess(CommonsDistributionDetachmentMojoTest.java:67)
Caused by: java.io.FileNotFoundException:
src\test\resources\mojos\detach-distributions\target\mockAttachedTar-src.tar.gz
(The system cannot find the file specified)
        at
org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentMojoTest.testSuccess(CommonsDistributionDetachmentMojoTest.java:67)

[INFO] Running
org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojoTest
[INFO] This module is marked as a non distribution or assembly module, and
the plugin will not run.
[INFO] Detaching Assemblies
[ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
0.017 s <<< FAILURE! - in
org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojoTest
[ERROR]
testSuccess(org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojoTest)
Time elapsed: 0.005 s  <<< ERROR!
org.apache.maven.plugin.MojoExecutionException: Could not find artifact
signature for: mockAttachedTar-null type: tar.gz
        at
org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojoTest.testSuccess(CommonsDistributionStagingMojoTest.java:74)
Caused by: java.io.FileNotFoundException:
src\test\resources\mojos\detach-distributions\target\mockAttachedTar-src.tar.gz
(The system cannot find the file specified)
        at
org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojoTest.testSuccess(CommonsDistributionStagingMojoTest.java:74)

[INFO] Running
org.apache.commons.release.plugin.mojos.CommonsSiteCompressionMojoTest
[ERROR] "mvn site" was not run before this goal, or a siteDirectory did not
exist.
[INFO] Current project contains no distributions. Not executing.
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
0.014 s - in
org.apache.commons.release.plugin.mojos.CommonsSiteCompressionMojoTest
[INFO] Running
org.apache.commons.release.plugin.velocity.HeaderHtmlVelocityDelegateTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
0.009 s - in
org.apache.commons.release.plugin.velocity.HeaderHtmlVelocityDelegateTest
[INFO] Running
org.apache.commons.release.plugin.velocity.ReadmeHtmlVelocityDelegateTest
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
0.004 s - in
org.apache.commons.release.plugin.velocity.ReadmeHtmlVelocityDelegateTest
[INFO]
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR]   CommonsDistributionDetachmentMojoTest.testSuccess:67 »
MojoExecution Could not...
[ERROR]   CommonsDistributionStagingMojoTest.testSuccess:74 » MojoExecution
Could not fi...
[INFO]
[ERROR] Tests run: 9, Failures: 0, Errors: 2, Skipped: 0
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 19.574 s
[INFO] Finished at: 2018-05-26T08:35:04-06:00
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:2.21.0:test (default-test)
on project commons-release-plugin: There are test failures.

Any ideas on how to fix that?

Gary

Re: [release-plugin] Unit test failures

Posted by Gary Gregory <ga...@gmail.com>.
On Tue, May 29, 2018 at 8:20 AM, Rob Tompkins <ch...@gmail.com> wrote:

>
>
> > On May 29, 2018, at 10:16 AM, Gary Gregory <ga...@gmail.com>
> wrote:
> >
> >> On Tue, May 29, 2018 at 7:01 AM, Rob Tompkins <ch...@gmail.com>
> wrote:
> >>
> >> @Gary - let me know how things run now.
> >>
> >
> > The build passes now with 'mvn clean install site -Danimal.sniffer.skip'
> >
>
> Do you have an opinion on the symbolic links in the distributions svn
> repos?
>

I would keep it simple. For me, saving a few bytes is not worth the added
complication.

Gary


> -Rob
>
> > Thank you,
> > Gary
> >
> >
> >>
> >>>> On May 29, 2018, at 6:01 AM, sebb <se...@gmail.com> wrote:
> >>>>
> >>>> On 29 May 2018 at 02:58, Rob Tompkins <ch...@gmail.com> wrote:
> >>>> It looks like this has to do with java setting up symbolic links on a
> >> windows machine. Clearly this is something that we’ll want to overcome,
> but
> >> I’m not certain how to accommodate this. It seems that:
> >>>>
> >>>> Files.createSymbolicLink
> >>>>
> >>>> may not work on Windows. It looks like Apache Storm may have seen this
> >> before with https://issues.apache.org/jira/browse/STORM-1193.
> >>>>
> >>>> Curious if anyone else on the list might have any suggestions here?
> >> Also, I’ll try to dig around in the maven codebases to see if they use
> it
> >> anywhere.
> >>>
> >>> Why should the Commons code set up links at all?
> >>>
> >>>> -Rob
> >>>>
> >>>>> On May 28, 2018, at 1:07 PM, Gary Gregory <ga...@gmail.com>
> >> wrote:
> >>>>>
> >>>>> I pulled the latest and I get:
> >>>>>
> >>>>> [INFO] Preparing to stage distributions
> >>>>> [INFO] Checking out dist from: scm:svn:
> >>>>> https://dist.apache.org/repos/dist/dev/commons/release-plugin
> >>>>> Executing: cmd.exe /X /C "svn --non-interactive checkout
> >>>>> https://dist.apache.org/repos/dist/dev/commons/release-plugin
> >>>>> C:\vcs\git\apache\commons\commons-release-plugin\target\
> >> testing-commons-release-plugin\scm"
> >>>>> Working directory:
> >>>>> C:\vcs\git\apache\commons\commons-release-plugin\target\
> >> testing-commons-release-plugin
> >>>>> [INFO] Copying RELEASE-NOTES.txt to working directory.
> >>>>> [ERROR] Could not build HEADER and README html files
> >>>>> java.nio.file.FileSystemException:
> >>>>> C:\vcs\git\apache\commons\commons-release-plugin\target\
> >> testing-commons-release-plugin\scm\source\HEADER.html:
> >>>>> A required privilege is not held by the client.
> >>>>>
> >>>>>      at
> >>>>> sun.nio.fs.WindowsException.translateToIOException(
> >> WindowsException.java:86)
> >>>>>      at
> >>>>> sun.nio.fs.WindowsException.rethrowAsIOException(
> >> WindowsException.java:97)
> >>>>>      at
> >>>>> sun.nio.fs.WindowsException.rethrowAsIOException(
> >> WindowsException.java:102)
> >>>>>      at
> >>>>> sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(
> >> WindowsFileSystemProvider.java:585)
> >>>>>      at java.nio.file.Files.createSymbolicLink(Files.java:1043)
> >>>>>      at
> >>>>> org.apache.commons.release.plugin.mojos.
> CommonsDistributionStagingMojo
> >> .buildSymbolicLinks(CommonsDistributionStagingMojo.java:342)
> >>>>>      at
> >>>>> org.apache.commons.release.plugin.mojos.
> CommonsDistributionStagingMojo
> >> .buildReadmeAndHeaderHtmlFiles(CommonsDistributionStagingMojo.java:319)
> >>>>>      at
> >>>>> org.apache.commons.release.plugin.mojos.
> CommonsDistributionStagingMojo
> >> .copyDistributionsIntoScmDirectoryStructure(
> CommonsDistributionStagingMojo
> >> .java:274)
> >>>>>      at
> >>>>> org.apache.commons.release.plugin.mojos.
> CommonsDistributionStagingMojo
> >> .execute(CommonsDistributionStagingMojo.java:164)
> >>>>>      at
> >>>>> org.apache.commons.release.plugin.mojos.
> CommonsDistributionStagingMojo
> >> Test.testSuccess(CommonsDistributionStagingMojoTest.java:77)
> >>>>>      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>>>      at
> >>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> >> NativeMethodAccessorImpl.java:62)
> >>>>>      at
> >>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> >> DelegatingMethodAccessorImpl.java:43)
> >>>>>      at java.lang.reflect.Method.invoke(Method.java:498)
> >>>>>      at
> >>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(
> >> FrameworkMethod.java:50)
> >>>>>      at
> >>>>> org.junit.internal.runners.model.ReflectiveCallable.run(
> >> ReflectiveCallable.java:12)
> >>>>>      at
> >>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(
> >> FrameworkMethod.java:47)
> >>>>>      at
> >>>>> org.junit.internal.runners.statements.InvokeMethod.
> >> evaluate(InvokeMethod.java:17)
> >>>>>      at
> >>>>> org.junit.internal.runners.statements.RunBefores.
> >> evaluate(RunBefores.java:26)
> >>>>>      at
> >>>>> org.apache.maven.plugin.testing.MojoRule$2.evaluate(
> MojoRule.java:308)
> >>>>>      at org.junit.rules.RunRules.evaluate(RunRules.java:20)
> >>>>>      at org.junit.runners.ParentRunner.runLeaf(
> ParentRunner.java:325)
> >>>>>      at
> >>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(
> >> BlockJUnit4ClassRunner.java:78)
> >>>>>      at
> >>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(
> >> BlockJUnit4ClassRunner.java:57)
> >>>>>      at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
> >>>>>      at org.junit.runners.ParentRunner$1.schedule(
> >> ParentRunner.java:71)
> >>>>>      at org.junit.runners.ParentRunner.runChildren(
> >> ParentRunner.java:288)
> >>>>>      at org.junit.runners.ParentRunner.access$000(
> >> ParentRunner.java:58)
> >>>>>      at org.junit.runners.ParentRunner$2.evaluate(
> >> ParentRunner.java:268)
> >>>>>      at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
> >>>>>      at
> >>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(
> >> JUnit4Provider.java:365)
> >>>>>      at
> >>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(
> >> JUnit4Provider.java:273)
> >>>>>      at
> >>>>> org.apache.maven.surefire.junit4.JUnit4Provider.
> >> executeTestSet(JUnit4Provider.java:238)
> >>>>>      at
> >>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(
> >> JUnit4Provider.java:159)
> >>>>>      at
> >>>>> org.apache.maven.surefire.booter.ForkedBooter.
> >> invokeProviderInSameClassLoader(ForkedBooter.java:379)
> >>>>>      at
> >>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(
> >> ForkedBooter.java:340)
> >>>>>      at
> >>>>> org.apache.maven.surefire.booter.ForkedBooter.execute(
> >> ForkedBooter.java:125)
> >>>>>      at
> >>>>> org.apache.maven.surefire.booter.ForkedBooter.main(
> >> ForkedBooter.java:413)
> >>>>> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time
> elapsed:
> >>>>> 2.067 s <<< FAILURE! - in
> >>>>> org.apache.commons.release.plugin.mojos.
> CommonsDistributionStagingMojo
> >> Test
> >>>>> [ERROR]
> >>>>> testSuccess(org.apache.commons.release.plugin.mojos.
> >> CommonsDistributionStagingMojoTest)
> >>>>> Time elapsed: 1.998 s  <<< ERROR!
> >>>>> org.apache.maven.plugin.MojoExecutionException: Could not build
> >> HEADER and
> >>>>> README html files
> >>>>>      at
> >>>>> org.apache.commons.release.plugin.mojos.
> CommonsDistributionStagingMojo
> >> Test.testSuccess(CommonsDistributionStagingMojoTest.java:77)
> >>>>> Caused by: java.nio.file.FileSystemException:
> >>>>> C:\vcs\git\apache\commons\commons-release-plugin\target\
> >> testing-commons-release-plugin\scm\source\HEADER.html:
> >>>>> A required privilege is not held by the client.
> >>>>>
> >>>>>      at
> >>>>> org.apache.commons.release.plugin.mojos.
> CommonsDistributionStagingMojo
> >> Test.testSuccess(CommonsDistributionStagingMojoTest.java:77)
> >>>>>
> >>>>> I wonder if this is more than a Windows vs. Linux thing?
> >>>>>
> >>>>> Gary
> >>>>>
> >>>>>> On Mon, May 28, 2018 at 10:30 AM, Rob Tompkins <ch...@gmail.com>
> >> wrote:
> >>>>>>
> >>>>>> Git stores linux file permissions, and all the files were 644 (the
> >>>>>> default), I updated them to 755. Try it now and let me know.
> >>>>>>
> >>>>>> -Rob
> >>>>>>
> >>>>>>> On May 28, 2018, at 11:26 AM, Gary Gregory <garydgregory@gmail.com
> >
> >>>>>> wrote:
> >>>>>>>
> >>>>>>> Hi Rob,
> >>>>>>>
> >>>>>>> I get a different error now running 'mvn clean install site
> >>>>>>> -Danimal.sniffer.skip':
> >>>>>>>
> >>>>>>> [INFO] Checking out dist from: scm:svn:https://dist.apache.
> >>>>>>> org/repos/dist/dev/commons/release-plugin
> >>>>>>> Executing: cmd.exe /X /C "svn --non-interactive checkout
> >>>>>>> https://dist.apache.org/repos/dist/dev/commons/release-plugin
> >>>>>>> C:\vcs\git\apache\commons\commons-release-plugin\target\
> >>>>>>> testing-commons-release-plugin\scm"
> >>>>>>> Working directory: C:\vcs\git\apache\commons\
> >>>>>> commons-release-plugin\target\
> >>>>>>> testing-commons-release-plugin
> >>>>>>> [INFO] Copying RELEASE-NOTES.txt to working directory.
> >>>>>>> [ERROR] Could not build HEADER and README html files
> >>>>>>> java.nio.file.FileSystemException: C:\vcs\git\apache\commons\
> >>>>>>> commons-release-plugin\target\testing-commons-release-
> >>>>>> plugin\scm\source\HEADER.html:
> >>>>>>> A required privilege is not held by the client.
> >>>>>>>
> >>>>>>>     at sun.nio.fs.WindowsException.translateToIOException(
> >>>>>>> WindowsException.java:86)
> >>>>>>>     at sun.nio.fs.WindowsException.rethrowAsIOException(
> >>>>>>> WindowsException.java:97)
> >>>>>>>     at sun.nio.fs.WindowsException.rethrowAsIOException(
> >>>>>>> WindowsException.java:102)
> >>>>>>>     at sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(
> >>>>>>> WindowsFileSystemProvider.java:585)
> >>>>>>>     at java.nio.file.Files.createSymbolicLink(Files.java:1043)
> >>>>>>>     at org.apache.commons.release.plugin.mojos.
> >>>>>>> CommonsDistributionStagingMojo.buildSymbolicLinks(
> >>>>>>> CommonsDistributionStagingMojo.java:342)
> >>>>>>>     at org.apache.commons.release.plugin.mojos.
> >>>>>>> CommonsDistributionStagingMojo.buildReadmeAndHeaderHtmlFiles(
> >>>>>>> CommonsDistributionStagingMojo.java:319)
> >>>>>>>     at org.apache.commons.release.plugin.mojos.
> >>>>>>> CommonsDistributionStagingMojo.copyDistributionsIntoScmDirect
> >>>>>> oryStructure(
> >>>>>>> CommonsDistributionStagingMojo.java:274)
> >>>>>>>     at org.apache.commons.release.plugin.mojos.
> >>>>>>> CommonsDistributionStagingMojo.execute(
> >> CommonsDistributionStagingMojo
> >>>>>>> .java:164)
> >>>>>>>     at org.apache.commons.release.plugin.mojos.
> >>>>>>> CommonsDistributionStagingMojoTest.testSuccess(
> >>>>>>> CommonsDistributionStagingMojoTest.java:77)
> >>>>>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>>>>>     at sun.reflect.NativeMethodAccessorImpl.invoke(
> >>>>>>> NativeMethodAccessorImpl.java:62)
> >>>>>>>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> >>>>>>> DelegatingMethodAccessorImpl.java:43)
> >>>>>>>     at java.lang.reflect.Method.invoke(Method.java:498)
> >>>>>>>     at org.junit.runners.model.FrameworkMethod$1.
> runReflectiveCall(
> >>>>>>> FrameworkMethod.java:50)
> >>>>>>>     at org.junit.internal.runners.model.ReflectiveCallable.run(
> >>>>>>> ReflectiveCallable.java:12)
> >>>>>>>     at org.junit.runners.model.FrameworkMethod.invokeExplosively(
> >>>>>>> FrameworkMethod.java:47)
> >>>>>>>     at org.junit.internal.runners.statements.InvokeMethod.
> >>>>>>> evaluate(InvokeMethod.java:17)
> >>>>>>>     at org.junit.internal.runners.statements.RunBefores.
> >>>>>>> evaluate(RunBefores.java:26)
> >>>>>>>     at org.apache.maven.plugin.testing.MojoRule$2.evaluate(
> >>>>>>> MojoRule.java:308)
> >>>>>>>     at org.junit.rules.RunRules.evaluate(RunRules.java:20)
> >>>>>>>     at org.junit.runners.ParentRunner.runLeaf(
> >> ParentRunner.java:325)
> >>>>>>>     at org.junit.runners.BlockJUnit4ClassRunner.runChild(
> >>>>>>> BlockJUnit4ClassRunner.java:78)
> >>>>>>>     at org.junit.runners.BlockJUnit4ClassRunner.runChild(
> >>>>>>> BlockJUnit4ClassRunner.java:57)
> >>>>>>>     at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
> >>>>>>>     at org.junit.runners.ParentRunner$1.schedule(
> >>>>>> ParentRunner.java:71)
> >>>>>>>     at org.junit.runners.ParentRunner.runChildren(
> >>>>>> ParentRunner.java:288)
> >>>>>>>     at org.junit.runners.ParentRunner.access$000(
> >>>>>> ParentRunner.java:58)
> >>>>>>>     at org.junit.runners.ParentRunner$2.evaluate(
> >>>>>> ParentRunner.java:268)
> >>>>>>>     at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
> >>>>>>>     at org.apache.maven.surefire.junit4.JUnit4Provider.execute(
> >>>>>>> JUnit4Provider.java:365)
> >>>>>>>     at org.apache.maven.surefire.junit4.JUnit4Provider.
> >>>>>> executeWithRerun(
> >>>>>>> JUnit4Provider.java:273)
> >>>>>>>     at org.apache.maven.surefire.junit4.JUnit4Provider.
> >>>>>>> executeTestSet(JUnit4Provider.java:238)
> >>>>>>>     at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(
> >>>>>>> JUnit4Provider.java:159)
> >>>>>>>     at org.apache.maven.surefire.booter.ForkedBooter.
> >>>>>>> invokeProviderInSameClassLoader(ForkedBooter.java:379)
> >>>>>>>     at org.apache.maven.surefire.booter.ForkedBooter.
> >>>>>> runSuitesInProcess(
> >>>>>>> ForkedBooter.java:340)
> >>>>>>>     at org.apache.maven.surefire.booter.ForkedBooter.execute(
> >>>>>>> ForkedBooter.java:125)
> >>>>>>>     at org.apache.maven.surefire.booter.ForkedBooter.main(
> >>>>>>> ForkedBooter.java:413)
> >>>>>>> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time
> >> elapsed:
> >>>>>>> 2.273 s <<< FAILURE! - in org.apache.commons.release.plugin.mojos.
> >>>>>>> CommonsDistributionStagingMojoTest
> >>>>>>> [ERROR] testSuccess(org.apache.commons.release.plugin.mojos.
> >>>>>>> CommonsDistributionStagingMojoTest) Time elapsed: 2.117 s  <<<
> >> ERROR!
> >>>>>>> org.apache.maven.plugin.MojoExecutionException: Could not build
> >> HEADER
> >>>>>> and
> >>>>>>> README html files
> >>>>>>>     at org.apache.commons.release.plugin.mojos.
> >>>>>>> CommonsDistributionStagingMojoTest.testSuccess(
> >>>>>>> CommonsDistributionStagingMojoTest.java:77)
> >>>>>>> Caused by: java.nio.file.FileSystemException:
> >>>>>>> C:\vcs\git\apache\commons\commons-release-plugin\target\
> >>>>>>> testing-commons-release-plugin\scm\source\HEADER.html: A required
> >>>>>> privilege
> >>>>>>> is not held by the client.
> >>>>>>>
> >>>>>>>     at org.apache.commons.release.plugin.mojos.
> >>>>>>> CommonsDistributionStagingMojoTest.testSuccess(
> >>>>>>> CommonsDistributionStagingMojoTest.java:77)
> >>>>>>>
> >>>>>>> Using:
> >>>>>>>
> >>>>>>> Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297;
> >>>>>>> 2018-02-24T12:49:05-07:00)
> >>>>>>> Maven home: C:\Java\apache-maven-3.5.3\bin\..
> >>>>>>> Java version: 1.8.0_172, vendor: Oracle Corporation
> >>>>>>> Java home: C:\Program Files\Java\jdk1.8.0_172\jre
> >>>>>>> Default locale: en_US, platform encoding: Cp1252
> >>>>>>> OS name: "windows 10", version: "10.0", arch: "amd64", family:
> >> "windows"
> >>>>>>>
> >>>>>>> Gary
> >>>>>>>
> >>>>>>>
> >>>>>>> On Mon, May 28, 2018 at 7:21 AM, Rob Tompkins <ch...@gmail.com>
> >>>>>> wrote:
> >>>>>>>
> >>>>>>>> Curious looks like my test tars/zips didn’t get committed.
> >>>>>>>>
> >>>>>>>> Let me do that.
> >>>>>>>>
> >>>>>>>>> On May 26, 2018, at 10:46 AM, Gary Gregory <
> garydgregory@gmail.com
> >>>
> >>>>>>>> wrote:
> >>>>>>>>>
> >>>>>>>>> Hi Rob and All,
> >>>>>>>>>
> >>>>>>>>> When I run 'mvn clean install site -Danimal.sniffer.skip', I get
> >> unit
> >>>>>>>> test
> >>>>>>>>> failures:
> >>>>>>>>>
> >>>>>>>>> [INFO] -------------------------------------------------------
> >>>>>>>>> [INFO]  T E S T S
> >>>>>>>>> [INFO] -------------------------------------------------------
> >>>>>>>>> [INFO] Running
> >>>>>>>>> org.apache.commons.release.plugin.mojos.
> >> CommonsDistributionDetachmentM
> >>>>>>>> ojoTest
> >>>>>>>>> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
> >>>>>>>>> SLF4J: Defaulting to no-operation (NOP) logger implementation
> >>>>>>>>> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder
> for
> >>>>>>>> further
> >>>>>>>>> details.
> >>>>>>>>> [WARNING] commons.distSvnStagingUrl is not set, the
> >>>>>>>> commons-release-plugin
> >>>>>>>>> will not run.
> >>>>>>>>> [INFO] Detaching Assemblies
> >>>>>>>>> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time
> >> elapsed:
> >>>>>>>>> 3.886 s <<< FAILURE! - in
> >>>>>>>>> org.apache.commons.release.plugin.mojos.
> >> CommonsDistributionDetachmentM
> >>>>>>>> ojoTest
> >>>>>>>>> [ERROR]
> >>>>>>>>> testSuccess(org.apache.commons.release.plugin.mojos.
> >>>>>>>> CommonsDistributionDetachmentMojoTest)
> >>>>>>>>> Time elapsed: 0.052 s  <<< ERROR!
> >>>>>>>>> org.apache.maven.plugin.MojoExecutionException: Could not find
> >>>>>> artifact
> >>>>>>>>> signature for: mockAttachedTar-null type: tar.gz
> >>>>>>>>>    at
> >>>>>>>>> org.apache.commons.release.plugin.mojos.
> >> CommonsDistributionDetachmentM
> >>>>>>>> ojoTest.testSuccess(CommonsDistributionDetachmentM
> ojoTest.java:67)
> >>>>>>>>> Caused by: java.io.FileNotFoundException:
> >>>>>>>>> src\test\resources\mojos\detach-distributions\target\
> >>>>>>>> mockAttachedTar-src.tar.gz
> >>>>>>>>> (The system cannot find the file specified)
> >>>>>>>>>    at
> >>>>>>>>> org.apache.commons.release.plugin.mojos.
> >> CommonsDistributionDetachmentM
> >>>>>>>> ojoTest.testSuccess(CommonsDistributionDetachmentM
> ojoTest.java:67)
> >>>>>>>>>
> >>>>>>>>> [INFO] Running
> >>>>>>>>> org.apache.commons.release.plugin.mojos.
> >> CommonsDistributionStagingMojo
> >>>>>>>> Test
> >>>>>>>>> [INFO] This module is marked as a non distribution or assembly
> >> module,
> >>>>>>>> and
> >>>>>>>>> the plugin will not run.
> >>>>>>>>> [INFO] Detaching Assemblies
> >>>>>>>>> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time
> >> elapsed:
> >>>>>>>>> 0.017 s <<< FAILURE! - in
> >>>>>>>>> org.apache.commons.release.plugin.mojos.
> >> CommonsDistributionStagingMojo
> >>>>>>>> Test
> >>>>>>>>> [ERROR]
> >>>>>>>>> testSuccess(org.apache.commons.release.plugin.mojos.
> >>>>>>>> CommonsDistributionStagingMojoTest)
> >>>>>>>>> Time elapsed: 0.005 s  <<< ERROR!
> >>>>>>>>> org.apache.maven.plugin.MojoExecutionException: Could not find
> >>>>>> artifact
> >>>>>>>>> signature for: mockAttachedTar-null type: tar.gz
> >>>>>>>>>    at
> >>>>>>>>> org.apache.commons.release.plugin.mojos.
> >> CommonsDistributionStagingMojo
> >>>>>>>> Test.testSuccess(CommonsDistributionStagingMojoTest.java:74)
> >>>>>>>>> Caused by: java.io.FileNotFoundException:
> >>>>>>>>> src\test\resources\mojos\detach-distributions\target\
> >>>>>>>> mockAttachedTar-src.tar.gz
> >>>>>>>>> (The system cannot find the file specified)
> >>>>>>>>>    at
> >>>>>>>>> org.apache.commons.release.plugin.mojos.
> >> CommonsDistributionStagingMojo
> >>>>>>>> Test.testSuccess(CommonsDistributionStagingMojoTest.java:74)
> >>>>>>>>>
> >>>>>>>>> [INFO] Running
> >>>>>>>>> org.apache.commons.release.plugin.mojos.
> >> CommonsSiteCompressionMojoTest
> >>>>>>>>> [ERROR] "mvn site" was not run before this goal, or a
> >> siteDirectory did
> >>>>>>>> not
> >>>>>>>>> exist.
> >>>>>>>>> [INFO] Current project contains no distributions. Not executing.
> >>>>>>>>> [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time
> >> elapsed:
> >>>>>>>>> 0.014 s - in
> >>>>>>>>> org.apache.commons.release.plugin.mojos.
> >> CommonsSiteCompressionMojoTest
> >>>>>>>>> [INFO] Running
> >>>>>>>>> org.apache.commons.release.plugin.velocity.
> >>>>>>>> HeaderHtmlVelocityDelegateTest
> >>>>>>>>> [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time
> >> elapsed:
> >>>>>>>>> 0.009 s - in
> >>>>>>>>> org.apache.commons.release.plugin.velocity.
> >>>>>>>> HeaderHtmlVelocityDelegateTest
> >>>>>>>>> [INFO] Running
> >>>>>>>>> org.apache.commons.release.plugin.velocity.
> >>>>>>>> ReadmeHtmlVelocityDelegateTest
> >>>>>>>>> [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time
> >> elapsed:
> >>>>>>>>> 0.004 s - in
> >>>>>>>>> org.apache.commons.release.plugin.velocity.
> >>>>>>>> ReadmeHtmlVelocityDelegateTest
> >>>>>>>>> [INFO]
> >>>>>>>>> [INFO] Results:
> >>>>>>>>> [INFO]
> >>>>>>>>> [ERROR] Errors:
> >>>>>>>>> [ERROR]   CommonsDistributionDetachmentMojoTest.testSuccess:67 »
> >>>>>>>>> MojoExecution Could not...
> >>>>>>>>> [ERROR]   CommonsDistributionStagingMojoTest.testSuccess:74 »
> >>>>>>>> MojoExecution
> >>>>>>>>> Could not fi...
> >>>>>>>>> [INFO]
> >>>>>>>>> [ERROR] Tests run: 9, Failures: 0, Errors: 2, Skipped: 0
> >>>>>>>>> [INFO]
> >>>>>>>>> [INFO]
> >>>>>>>>> ------------------------------------------------------------
> >>>>>> ------------
> >>>>>>>>> [INFO] BUILD FAILURE
> >>>>>>>>> [INFO]
> >>>>>>>>> ------------------------------------------------------------
> >>>>>> ------------
> >>>>>>>>> [INFO] Total time: 19.574 s
> >>>>>>>>> [INFO] Finished at: 2018-05-26T08:35:04-06:00
> >>>>>>>>> [INFO]
> >>>>>>>>> ------------------------------------------------------------
> >>>>>> ------------
> >>>>>>>>> [ERROR] Failed to execute goal
> >>>>>>>>> org.apache.maven.plugins:maven-surefire-plugin:2.21.0:test
> >>>>>>>> (default-test)
> >>>>>>>>> on project commons-release-plugin: There are test failures.
> >>>>>>>>>
> >>>>>>>>> Any ideas on how to fix that?
> >>>>>>>>>
> >>>>>>>>> Gary
> >>>>>>>>
> >>>>>>>>
> >>>>>>>> ------------------------------------------------------------
> >> ---------
> >>>>>>>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> >>>>>>>> For additional commands, e-mail: dev-help@commons.apache.org
> >>>>>>>>
> >>>>>>>>
> >>>>>>
> >>>>>>
> >>>>>> ------------------------------------------------------------
> ---------
> >>>>>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> >>>>>> For additional commands, e-mail: dev-help@commons.apache.org
> >>>>>>
> >>>>>>
> >>>>
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> >>>> For additional commands, e-mail: dev-help@commons.apache.org
> >>>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> >>> For additional commands, e-mail: dev-help@commons.apache.org
> >>>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> >> For additional commands, e-mail: dev-help@commons.apache.org
> >>
> >>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>

Re: [release-plugin] Unit test failures

Posted by Rob Tompkins <ch...@gmail.com>.

> On May 29, 2018, at 10:16 AM, Gary Gregory <ga...@gmail.com> wrote:
> 
>> On Tue, May 29, 2018 at 7:01 AM, Rob Tompkins <ch...@gmail.com> wrote:
>> 
>> @Gary - let me know how things run now.
>> 
> 
> The build passes now with 'mvn clean install site -Danimal.sniffer.skip'
> 

Do you have an opinion on the symbolic links in the distributions svn repos?

-Rob

> Thank you,
> Gary
> 
> 
>> 
>>>> On May 29, 2018, at 6:01 AM, sebb <se...@gmail.com> wrote:
>>>> 
>>>> On 29 May 2018 at 02:58, Rob Tompkins <ch...@gmail.com> wrote:
>>>> It looks like this has to do with java setting up symbolic links on a
>> windows machine. Clearly this is something that we’ll want to overcome, but
>> I’m not certain how to accommodate this. It seems that:
>>>> 
>>>> Files.createSymbolicLink
>>>> 
>>>> may not work on Windows. It looks like Apache Storm may have seen this
>> before with https://issues.apache.org/jira/browse/STORM-1193.
>>>> 
>>>> Curious if anyone else on the list might have any suggestions here?
>> Also, I’ll try to dig around in the maven codebases to see if they use it
>> anywhere.
>>> 
>>> Why should the Commons code set up links at all?
>>> 
>>>> -Rob
>>>> 
>>>>> On May 28, 2018, at 1:07 PM, Gary Gregory <ga...@gmail.com>
>> wrote:
>>>>> 
>>>>> I pulled the latest and I get:
>>>>> 
>>>>> [INFO] Preparing to stage distributions
>>>>> [INFO] Checking out dist from: scm:svn:
>>>>> https://dist.apache.org/repos/dist/dev/commons/release-plugin
>>>>> Executing: cmd.exe /X /C "svn --non-interactive checkout
>>>>> https://dist.apache.org/repos/dist/dev/commons/release-plugin
>>>>> C:\vcs\git\apache\commons\commons-release-plugin\target\
>> testing-commons-release-plugin\scm"
>>>>> Working directory:
>>>>> C:\vcs\git\apache\commons\commons-release-plugin\target\
>> testing-commons-release-plugin
>>>>> [INFO] Copying RELEASE-NOTES.txt to working directory.
>>>>> [ERROR] Could not build HEADER and README html files
>>>>> java.nio.file.FileSystemException:
>>>>> C:\vcs\git\apache\commons\commons-release-plugin\target\
>> testing-commons-release-plugin\scm\source\HEADER.html:
>>>>> A required privilege is not held by the client.
>>>>> 
>>>>>      at
>>>>> sun.nio.fs.WindowsException.translateToIOException(
>> WindowsException.java:86)
>>>>>      at
>>>>> sun.nio.fs.WindowsException.rethrowAsIOException(
>> WindowsException.java:97)
>>>>>      at
>>>>> sun.nio.fs.WindowsException.rethrowAsIOException(
>> WindowsException.java:102)
>>>>>      at
>>>>> sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(
>> WindowsFileSystemProvider.java:585)
>>>>>      at java.nio.file.Files.createSymbolicLink(Files.java:1043)
>>>>>      at
>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
>> .buildSymbolicLinks(CommonsDistributionStagingMojo.java:342)
>>>>>      at
>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
>> .buildReadmeAndHeaderHtmlFiles(CommonsDistributionStagingMojo.java:319)
>>>>>      at
>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
>> .copyDistributionsIntoScmDirectoryStructure(CommonsDistributionStagingMojo
>> .java:274)
>>>>>      at
>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
>> .execute(CommonsDistributionStagingMojo.java:164)
>>>>>      at
>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
>> Test.testSuccess(CommonsDistributionStagingMojoTest.java:77)
>>>>>      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>      at
>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
>> NativeMethodAccessorImpl.java:62)
>>>>>      at
>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(
>> DelegatingMethodAccessorImpl.java:43)
>>>>>      at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>      at
>>>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(
>> FrameworkMethod.java:50)
>>>>>      at
>>>>> org.junit.internal.runners.model.ReflectiveCallable.run(
>> ReflectiveCallable.java:12)
>>>>>      at
>>>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(
>> FrameworkMethod.java:47)
>>>>>      at
>>>>> org.junit.internal.runners.statements.InvokeMethod.
>> evaluate(InvokeMethod.java:17)
>>>>>      at
>>>>> org.junit.internal.runners.statements.RunBefores.
>> evaluate(RunBefores.java:26)
>>>>>      at
>>>>> org.apache.maven.plugin.testing.MojoRule$2.evaluate(MojoRule.java:308)
>>>>>      at org.junit.rules.RunRules.evaluate(RunRules.java:20)
>>>>>      at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>      at
>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(
>> BlockJUnit4ClassRunner.java:78)
>>>>>      at
>>>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(
>> BlockJUnit4ClassRunner.java:57)
>>>>>      at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>      at org.junit.runners.ParentRunner$1.schedule(
>> ParentRunner.java:71)
>>>>>      at org.junit.runners.ParentRunner.runChildren(
>> ParentRunner.java:288)
>>>>>      at org.junit.runners.ParentRunner.access$000(
>> ParentRunner.java:58)
>>>>>      at org.junit.runners.ParentRunner$2.evaluate(
>> ParentRunner.java:268)
>>>>>      at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>      at
>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(
>> JUnit4Provider.java:365)
>>>>>      at
>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(
>> JUnit4Provider.java:273)
>>>>>      at
>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.
>> executeTestSet(JUnit4Provider.java:238)
>>>>>      at
>>>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(
>> JUnit4Provider.java:159)
>>>>>      at
>>>>> org.apache.maven.surefire.booter.ForkedBooter.
>> invokeProviderInSameClassLoader(ForkedBooter.java:379)
>>>>>      at
>>>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(
>> ForkedBooter.java:340)
>>>>>      at
>>>>> org.apache.maven.surefire.booter.ForkedBooter.execute(
>> ForkedBooter.java:125)
>>>>>      at
>>>>> org.apache.maven.surefire.booter.ForkedBooter.main(
>> ForkedBooter.java:413)
>>>>> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
>>>>> 2.067 s <<< FAILURE! - in
>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
>> Test
>>>>> [ERROR]
>>>>> testSuccess(org.apache.commons.release.plugin.mojos.
>> CommonsDistributionStagingMojoTest)
>>>>> Time elapsed: 1.998 s  <<< ERROR!
>>>>> org.apache.maven.plugin.MojoExecutionException: Could not build
>> HEADER and
>>>>> README html files
>>>>>      at
>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
>> Test.testSuccess(CommonsDistributionStagingMojoTest.java:77)
>>>>> Caused by: java.nio.file.FileSystemException:
>>>>> C:\vcs\git\apache\commons\commons-release-plugin\target\
>> testing-commons-release-plugin\scm\source\HEADER.html:
>>>>> A required privilege is not held by the client.
>>>>> 
>>>>>      at
>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
>> Test.testSuccess(CommonsDistributionStagingMojoTest.java:77)
>>>>> 
>>>>> I wonder if this is more than a Windows vs. Linux thing?
>>>>> 
>>>>> Gary
>>>>> 
>>>>>> On Mon, May 28, 2018 at 10:30 AM, Rob Tompkins <ch...@gmail.com>
>> wrote:
>>>>>> 
>>>>>> Git stores linux file permissions, and all the files were 644 (the
>>>>>> default), I updated them to 755. Try it now and let me know.
>>>>>> 
>>>>>> -Rob
>>>>>> 
>>>>>>> On May 28, 2018, at 11:26 AM, Gary Gregory <ga...@gmail.com>
>>>>>> wrote:
>>>>>>> 
>>>>>>> Hi Rob,
>>>>>>> 
>>>>>>> I get a different error now running 'mvn clean install site
>>>>>>> -Danimal.sniffer.skip':
>>>>>>> 
>>>>>>> [INFO] Checking out dist from: scm:svn:https://dist.apache.
>>>>>>> org/repos/dist/dev/commons/release-plugin
>>>>>>> Executing: cmd.exe /X /C "svn --non-interactive checkout
>>>>>>> https://dist.apache.org/repos/dist/dev/commons/release-plugin
>>>>>>> C:\vcs\git\apache\commons\commons-release-plugin\target\
>>>>>>> testing-commons-release-plugin\scm"
>>>>>>> Working directory: C:\vcs\git\apache\commons\
>>>>>> commons-release-plugin\target\
>>>>>>> testing-commons-release-plugin
>>>>>>> [INFO] Copying RELEASE-NOTES.txt to working directory.
>>>>>>> [ERROR] Could not build HEADER and README html files
>>>>>>> java.nio.file.FileSystemException: C:\vcs\git\apache\commons\
>>>>>>> commons-release-plugin\target\testing-commons-release-
>>>>>> plugin\scm\source\HEADER.html:
>>>>>>> A required privilege is not held by the client.
>>>>>>> 
>>>>>>>     at sun.nio.fs.WindowsException.translateToIOException(
>>>>>>> WindowsException.java:86)
>>>>>>>     at sun.nio.fs.WindowsException.rethrowAsIOException(
>>>>>>> WindowsException.java:97)
>>>>>>>     at sun.nio.fs.WindowsException.rethrowAsIOException(
>>>>>>> WindowsException.java:102)
>>>>>>>     at sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(
>>>>>>> WindowsFileSystemProvider.java:585)
>>>>>>>     at java.nio.file.Files.createSymbolicLink(Files.java:1043)
>>>>>>>     at org.apache.commons.release.plugin.mojos.
>>>>>>> CommonsDistributionStagingMojo.buildSymbolicLinks(
>>>>>>> CommonsDistributionStagingMojo.java:342)
>>>>>>>     at org.apache.commons.release.plugin.mojos.
>>>>>>> CommonsDistributionStagingMojo.buildReadmeAndHeaderHtmlFiles(
>>>>>>> CommonsDistributionStagingMojo.java:319)
>>>>>>>     at org.apache.commons.release.plugin.mojos.
>>>>>>> CommonsDistributionStagingMojo.copyDistributionsIntoScmDirect
>>>>>> oryStructure(
>>>>>>> CommonsDistributionStagingMojo.java:274)
>>>>>>>     at org.apache.commons.release.plugin.mojos.
>>>>>>> CommonsDistributionStagingMojo.execute(
>> CommonsDistributionStagingMojo
>>>>>>> .java:164)
>>>>>>>     at org.apache.commons.release.plugin.mojos.
>>>>>>> CommonsDistributionStagingMojoTest.testSuccess(
>>>>>>> CommonsDistributionStagingMojoTest.java:77)
>>>>>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>>     at sun.reflect.NativeMethodAccessorImpl.invoke(
>>>>>>> NativeMethodAccessorImpl.java:62)
>>>>>>>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(
>>>>>>> DelegatingMethodAccessorImpl.java:43)
>>>>>>>     at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>>>     at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(
>>>>>>> FrameworkMethod.java:50)
>>>>>>>     at org.junit.internal.runners.model.ReflectiveCallable.run(
>>>>>>> ReflectiveCallable.java:12)
>>>>>>>     at org.junit.runners.model.FrameworkMethod.invokeExplosively(
>>>>>>> FrameworkMethod.java:47)
>>>>>>>     at org.junit.internal.runners.statements.InvokeMethod.
>>>>>>> evaluate(InvokeMethod.java:17)
>>>>>>>     at org.junit.internal.runners.statements.RunBefores.
>>>>>>> evaluate(RunBefores.java:26)
>>>>>>>     at org.apache.maven.plugin.testing.MojoRule$2.evaluate(
>>>>>>> MojoRule.java:308)
>>>>>>>     at org.junit.rules.RunRules.evaluate(RunRules.java:20)
>>>>>>>     at org.junit.runners.ParentRunner.runLeaf(
>> ParentRunner.java:325)
>>>>>>>     at org.junit.runners.BlockJUnit4ClassRunner.runChild(
>>>>>>> BlockJUnit4ClassRunner.java:78)
>>>>>>>     at org.junit.runners.BlockJUnit4ClassRunner.runChild(
>>>>>>> BlockJUnit4ClassRunner.java:57)
>>>>>>>     at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>>>     at org.junit.runners.ParentRunner$1.schedule(
>>>>>> ParentRunner.java:71)
>>>>>>>     at org.junit.runners.ParentRunner.runChildren(
>>>>>> ParentRunner.java:288)
>>>>>>>     at org.junit.runners.ParentRunner.access$000(
>>>>>> ParentRunner.java:58)
>>>>>>>     at org.junit.runners.ParentRunner$2.evaluate(
>>>>>> ParentRunner.java:268)
>>>>>>>     at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>>>     at org.apache.maven.surefire.junit4.JUnit4Provider.execute(
>>>>>>> JUnit4Provider.java:365)
>>>>>>>     at org.apache.maven.surefire.junit4.JUnit4Provider.
>>>>>> executeWithRerun(
>>>>>>> JUnit4Provider.java:273)
>>>>>>>     at org.apache.maven.surefire.junit4.JUnit4Provider.
>>>>>>> executeTestSet(JUnit4Provider.java:238)
>>>>>>>     at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(
>>>>>>> JUnit4Provider.java:159)
>>>>>>>     at org.apache.maven.surefire.booter.ForkedBooter.
>>>>>>> invokeProviderInSameClassLoader(ForkedBooter.java:379)
>>>>>>>     at org.apache.maven.surefire.booter.ForkedBooter.
>>>>>> runSuitesInProcess(
>>>>>>> ForkedBooter.java:340)
>>>>>>>     at org.apache.maven.surefire.booter.ForkedBooter.execute(
>>>>>>> ForkedBooter.java:125)
>>>>>>>     at org.apache.maven.surefire.booter.ForkedBooter.main(
>>>>>>> ForkedBooter.java:413)
>>>>>>> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time
>> elapsed:
>>>>>>> 2.273 s <<< FAILURE! - in org.apache.commons.release.plugin.mojos.
>>>>>>> CommonsDistributionStagingMojoTest
>>>>>>> [ERROR] testSuccess(org.apache.commons.release.plugin.mojos.
>>>>>>> CommonsDistributionStagingMojoTest) Time elapsed: 2.117 s  <<<
>> ERROR!
>>>>>>> org.apache.maven.plugin.MojoExecutionException: Could not build
>> HEADER
>>>>>> and
>>>>>>> README html files
>>>>>>>     at org.apache.commons.release.plugin.mojos.
>>>>>>> CommonsDistributionStagingMojoTest.testSuccess(
>>>>>>> CommonsDistributionStagingMojoTest.java:77)
>>>>>>> Caused by: java.nio.file.FileSystemException:
>>>>>>> C:\vcs\git\apache\commons\commons-release-plugin\target\
>>>>>>> testing-commons-release-plugin\scm\source\HEADER.html: A required
>>>>>> privilege
>>>>>>> is not held by the client.
>>>>>>> 
>>>>>>>     at org.apache.commons.release.plugin.mojos.
>>>>>>> CommonsDistributionStagingMojoTest.testSuccess(
>>>>>>> CommonsDistributionStagingMojoTest.java:77)
>>>>>>> 
>>>>>>> Using:
>>>>>>> 
>>>>>>> Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297;
>>>>>>> 2018-02-24T12:49:05-07:00)
>>>>>>> Maven home: C:\Java\apache-maven-3.5.3\bin\..
>>>>>>> Java version: 1.8.0_172, vendor: Oracle Corporation
>>>>>>> Java home: C:\Program Files\Java\jdk1.8.0_172\jre
>>>>>>> Default locale: en_US, platform encoding: Cp1252
>>>>>>> OS name: "windows 10", version: "10.0", arch: "amd64", family:
>> "windows"
>>>>>>> 
>>>>>>> Gary
>>>>>>> 
>>>>>>> 
>>>>>>> On Mon, May 28, 2018 at 7:21 AM, Rob Tompkins <ch...@gmail.com>
>>>>>> wrote:
>>>>>>> 
>>>>>>>> Curious looks like my test tars/zips didn’t get committed.
>>>>>>>> 
>>>>>>>> Let me do that.
>>>>>>>> 
>>>>>>>>> On May 26, 2018, at 10:46 AM, Gary Gregory <garydgregory@gmail.com
>>> 
>>>>>>>> wrote:
>>>>>>>>> 
>>>>>>>>> Hi Rob and All,
>>>>>>>>> 
>>>>>>>>> When I run 'mvn clean install site -Danimal.sniffer.skip', I get
>> unit
>>>>>>>> test
>>>>>>>>> failures:
>>>>>>>>> 
>>>>>>>>> [INFO] -------------------------------------------------------
>>>>>>>>> [INFO]  T E S T S
>>>>>>>>> [INFO] -------------------------------------------------------
>>>>>>>>> [INFO] Running
>>>>>>>>> org.apache.commons.release.plugin.mojos.
>> CommonsDistributionDetachmentM
>>>>>>>> ojoTest
>>>>>>>>> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
>>>>>>>>> SLF4J: Defaulting to no-operation (NOP) logger implementation
>>>>>>>>> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
>>>>>>>> further
>>>>>>>>> details.
>>>>>>>>> [WARNING] commons.distSvnStagingUrl is not set, the
>>>>>>>> commons-release-plugin
>>>>>>>>> will not run.
>>>>>>>>> [INFO] Detaching Assemblies
>>>>>>>>> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time
>> elapsed:
>>>>>>>>> 3.886 s <<< FAILURE! - in
>>>>>>>>> org.apache.commons.release.plugin.mojos.
>> CommonsDistributionDetachmentM
>>>>>>>> ojoTest
>>>>>>>>> [ERROR]
>>>>>>>>> testSuccess(org.apache.commons.release.plugin.mojos.
>>>>>>>> CommonsDistributionDetachmentMojoTest)
>>>>>>>>> Time elapsed: 0.052 s  <<< ERROR!
>>>>>>>>> org.apache.maven.plugin.MojoExecutionException: Could not find
>>>>>> artifact
>>>>>>>>> signature for: mockAttachedTar-null type: tar.gz
>>>>>>>>>    at
>>>>>>>>> org.apache.commons.release.plugin.mojos.
>> CommonsDistributionDetachmentM
>>>>>>>> ojoTest.testSuccess(CommonsDistributionDetachmentMojoTest.java:67)
>>>>>>>>> Caused by: java.io.FileNotFoundException:
>>>>>>>>> src\test\resources\mojos\detach-distributions\target\
>>>>>>>> mockAttachedTar-src.tar.gz
>>>>>>>>> (The system cannot find the file specified)
>>>>>>>>>    at
>>>>>>>>> org.apache.commons.release.plugin.mojos.
>> CommonsDistributionDetachmentM
>>>>>>>> ojoTest.testSuccess(CommonsDistributionDetachmentMojoTest.java:67)
>>>>>>>>> 
>>>>>>>>> [INFO] Running
>>>>>>>>> org.apache.commons.release.plugin.mojos.
>> CommonsDistributionStagingMojo
>>>>>>>> Test
>>>>>>>>> [INFO] This module is marked as a non distribution or assembly
>> module,
>>>>>>>> and
>>>>>>>>> the plugin will not run.
>>>>>>>>> [INFO] Detaching Assemblies
>>>>>>>>> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time
>> elapsed:
>>>>>>>>> 0.017 s <<< FAILURE! - in
>>>>>>>>> org.apache.commons.release.plugin.mojos.
>> CommonsDistributionStagingMojo
>>>>>>>> Test
>>>>>>>>> [ERROR]
>>>>>>>>> testSuccess(org.apache.commons.release.plugin.mojos.
>>>>>>>> CommonsDistributionStagingMojoTest)
>>>>>>>>> Time elapsed: 0.005 s  <<< ERROR!
>>>>>>>>> org.apache.maven.plugin.MojoExecutionException: Could not find
>>>>>> artifact
>>>>>>>>> signature for: mockAttachedTar-null type: tar.gz
>>>>>>>>>    at
>>>>>>>>> org.apache.commons.release.plugin.mojos.
>> CommonsDistributionStagingMojo
>>>>>>>> Test.testSuccess(CommonsDistributionStagingMojoTest.java:74)
>>>>>>>>> Caused by: java.io.FileNotFoundException:
>>>>>>>>> src\test\resources\mojos\detach-distributions\target\
>>>>>>>> mockAttachedTar-src.tar.gz
>>>>>>>>> (The system cannot find the file specified)
>>>>>>>>>    at
>>>>>>>>> org.apache.commons.release.plugin.mojos.
>> CommonsDistributionStagingMojo
>>>>>>>> Test.testSuccess(CommonsDistributionStagingMojoTest.java:74)
>>>>>>>>> 
>>>>>>>>> [INFO] Running
>>>>>>>>> org.apache.commons.release.plugin.mojos.
>> CommonsSiteCompressionMojoTest
>>>>>>>>> [ERROR] "mvn site" was not run before this goal, or a
>> siteDirectory did
>>>>>>>> not
>>>>>>>>> exist.
>>>>>>>>> [INFO] Current project contains no distributions. Not executing.
>>>>>>>>> [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time
>> elapsed:
>>>>>>>>> 0.014 s - in
>>>>>>>>> org.apache.commons.release.plugin.mojos.
>> CommonsSiteCompressionMojoTest
>>>>>>>>> [INFO] Running
>>>>>>>>> org.apache.commons.release.plugin.velocity.
>>>>>>>> HeaderHtmlVelocityDelegateTest
>>>>>>>>> [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time
>> elapsed:
>>>>>>>>> 0.009 s - in
>>>>>>>>> org.apache.commons.release.plugin.velocity.
>>>>>>>> HeaderHtmlVelocityDelegateTest
>>>>>>>>> [INFO] Running
>>>>>>>>> org.apache.commons.release.plugin.velocity.
>>>>>>>> ReadmeHtmlVelocityDelegateTest
>>>>>>>>> [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time
>> elapsed:
>>>>>>>>> 0.004 s - in
>>>>>>>>> org.apache.commons.release.plugin.velocity.
>>>>>>>> ReadmeHtmlVelocityDelegateTest
>>>>>>>>> [INFO]
>>>>>>>>> [INFO] Results:
>>>>>>>>> [INFO]
>>>>>>>>> [ERROR] Errors:
>>>>>>>>> [ERROR]   CommonsDistributionDetachmentMojoTest.testSuccess:67 »
>>>>>>>>> MojoExecution Could not...
>>>>>>>>> [ERROR]   CommonsDistributionStagingMojoTest.testSuccess:74 »
>>>>>>>> MojoExecution
>>>>>>>>> Could not fi...
>>>>>>>>> [INFO]
>>>>>>>>> [ERROR] Tests run: 9, Failures: 0, Errors: 2, Skipped: 0
>>>>>>>>> [INFO]
>>>>>>>>> [INFO]
>>>>>>>>> ------------------------------------------------------------
>>>>>> ------------
>>>>>>>>> [INFO] BUILD FAILURE
>>>>>>>>> [INFO]
>>>>>>>>> ------------------------------------------------------------
>>>>>> ------------
>>>>>>>>> [INFO] Total time: 19.574 s
>>>>>>>>> [INFO] Finished at: 2018-05-26T08:35:04-06:00
>>>>>>>>> [INFO]
>>>>>>>>> ------------------------------------------------------------
>>>>>> ------------
>>>>>>>>> [ERROR] Failed to execute goal
>>>>>>>>> org.apache.maven.plugins:maven-surefire-plugin:2.21.0:test
>>>>>>>> (default-test)
>>>>>>>>> on project commons-release-plugin: There are test failures.
>>>>>>>>> 
>>>>>>>>> Any ideas on how to fix that?
>>>>>>>>> 
>>>>>>>>> Gary
>>>>>>>> 
>>>>>>>> 
>>>>>>>> ------------------------------------------------------------
>> ---------
>>>>>>>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>>>>>>>> For additional commands, e-mail: dev-help@commons.apache.org
>>>>>>>> 
>>>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>>>>>> For additional commands, e-mail: dev-help@commons.apache.org
>>>>>> 
>>>>>> 
>>>> 
>>>> 
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>>>> For additional commands, e-mail: dev-help@commons.apache.org
>>>> 
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>>> For additional commands, e-mail: dev-help@commons.apache.org
>>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>> For additional commands, e-mail: dev-help@commons.apache.org
>> 
>> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [release-plugin] Unit test failures

Posted by Gary Gregory <ga...@gmail.com>.
On Tue, May 29, 2018 at 7:01 AM, Rob Tompkins <ch...@gmail.com> wrote:

> @Gary - let me know how things run now.
>

The build passes now with 'mvn clean install site -Danimal.sniffer.skip'

Thank you,
Gary


>
> > On May 29, 2018, at 6:01 AM, sebb <se...@gmail.com> wrote:
> >
> >> On 29 May 2018 at 02:58, Rob Tompkins <ch...@gmail.com> wrote:
> >> It looks like this has to do with java setting up symbolic links on a
> windows machine. Clearly this is something that we’ll want to overcome, but
> I’m not certain how to accommodate this. It seems that:
> >>
> >> Files.createSymbolicLink
> >>
> >> may not work on Windows. It looks like Apache Storm may have seen this
> before with https://issues.apache.org/jira/browse/STORM-1193.
> >>
> >> Curious if anyone else on the list might have any suggestions here?
> Also, I’ll try to dig around in the maven codebases to see if they use it
> anywhere.
> >
> > Why should the Commons code set up links at all?
> >
> >> -Rob
> >>
> >>> On May 28, 2018, at 1:07 PM, Gary Gregory <ga...@gmail.com>
> wrote:
> >>>
> >>> I pulled the latest and I get:
> >>>
> >>> [INFO] Preparing to stage distributions
> >>> [INFO] Checking out dist from: scm:svn:
> >>> https://dist.apache.org/repos/dist/dev/commons/release-plugin
> >>> Executing: cmd.exe /X /C "svn --non-interactive checkout
> >>> https://dist.apache.org/repos/dist/dev/commons/release-plugin
> >>> C:\vcs\git\apache\commons\commons-release-plugin\target\
> testing-commons-release-plugin\scm"
> >>> Working directory:
> >>> C:\vcs\git\apache\commons\commons-release-plugin\target\
> testing-commons-release-plugin
> >>> [INFO] Copying RELEASE-NOTES.txt to working directory.
> >>> [ERROR] Could not build HEADER and README html files
> >>> java.nio.file.FileSystemException:
> >>> C:\vcs\git\apache\commons\commons-release-plugin\target\
> testing-commons-release-plugin\scm\source\HEADER.html:
> >>> A required privilege is not held by the client.
> >>>
> >>>       at
> >>> sun.nio.fs.WindowsException.translateToIOException(
> WindowsException.java:86)
> >>>       at
> >>> sun.nio.fs.WindowsException.rethrowAsIOException(
> WindowsException.java:97)
> >>>       at
> >>> sun.nio.fs.WindowsException.rethrowAsIOException(
> WindowsException.java:102)
> >>>       at
> >>> sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(
> WindowsFileSystemProvider.java:585)
> >>>       at java.nio.file.Files.createSymbolicLink(Files.java:1043)
> >>>       at
> >>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
> .buildSymbolicLinks(CommonsDistributionStagingMojo.java:342)
> >>>       at
> >>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
> .buildReadmeAndHeaderHtmlFiles(CommonsDistributionStagingMojo.java:319)
> >>>       at
> >>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
> .copyDistributionsIntoScmDirectoryStructure(CommonsDistributionStagingMojo
> .java:274)
> >>>       at
> >>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
> .execute(CommonsDistributionStagingMojo.java:164)
> >>>       at
> >>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
> Test.testSuccess(CommonsDistributionStagingMojoTest.java:77)
> >>>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>       at
> >>> sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:62)
> >>>       at
> >>> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> >>>       at java.lang.reflect.Method.invoke(Method.java:498)
> >>>       at
> >>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(
> FrameworkMethod.java:50)
> >>>       at
> >>> org.junit.internal.runners.model.ReflectiveCallable.run(
> ReflectiveCallable.java:12)
> >>>       at
> >>> org.junit.runners.model.FrameworkMethod.invokeExplosively(
> FrameworkMethod.java:47)
> >>>       at
> >>> org.junit.internal.runners.statements.InvokeMethod.
> evaluate(InvokeMethod.java:17)
> >>>       at
> >>> org.junit.internal.runners.statements.RunBefores.
> evaluate(RunBefores.java:26)
> >>>       at
> >>> org.apache.maven.plugin.testing.MojoRule$2.evaluate(MojoRule.java:308)
> >>>       at org.junit.rules.RunRules.evaluate(RunRules.java:20)
> >>>       at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
> >>>       at
> >>> org.junit.runners.BlockJUnit4ClassRunner.runChild(
> BlockJUnit4ClassRunner.java:78)
> >>>       at
> >>> org.junit.runners.BlockJUnit4ClassRunner.runChild(
> BlockJUnit4ClassRunner.java:57)
> >>>       at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
> >>>       at org.junit.runners.ParentRunner$1.schedule(
> ParentRunner.java:71)
> >>>       at org.junit.runners.ParentRunner.runChildren(
> ParentRunner.java:288)
> >>>       at org.junit.runners.ParentRunner.access$000(
> ParentRunner.java:58)
> >>>       at org.junit.runners.ParentRunner$2.evaluate(
> ParentRunner.java:268)
> >>>       at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
> >>>       at
> >>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(
> JUnit4Provider.java:365)
> >>>       at
> >>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(
> JUnit4Provider.java:273)
> >>>       at
> >>> org.apache.maven.surefire.junit4.JUnit4Provider.
> executeTestSet(JUnit4Provider.java:238)
> >>>       at
> >>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(
> JUnit4Provider.java:159)
> >>>       at
> >>> org.apache.maven.surefire.booter.ForkedBooter.
> invokeProviderInSameClassLoader(ForkedBooter.java:379)
> >>>       at
> >>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(
> ForkedBooter.java:340)
> >>>       at
> >>> org.apache.maven.surefire.booter.ForkedBooter.execute(
> ForkedBooter.java:125)
> >>>       at
> >>> org.apache.maven.surefire.booter.ForkedBooter.main(
> ForkedBooter.java:413)
> >>> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
> >>> 2.067 s <<< FAILURE! - in
> >>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
> Test
> >>> [ERROR]
> >>> testSuccess(org.apache.commons.release.plugin.mojos.
> CommonsDistributionStagingMojoTest)
> >>> Time elapsed: 1.998 s  <<< ERROR!
> >>> org.apache.maven.plugin.MojoExecutionException: Could not build
> HEADER and
> >>> README html files
> >>>       at
> >>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
> Test.testSuccess(CommonsDistributionStagingMojoTest.java:77)
> >>> Caused by: java.nio.file.FileSystemException:
> >>> C:\vcs\git\apache\commons\commons-release-plugin\target\
> testing-commons-release-plugin\scm\source\HEADER.html:
> >>> A required privilege is not held by the client.
> >>>
> >>>       at
> >>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
> Test.testSuccess(CommonsDistributionStagingMojoTest.java:77)
> >>>
> >>> I wonder if this is more than a Windows vs. Linux thing?
> >>>
> >>> Gary
> >>>
> >>>> On Mon, May 28, 2018 at 10:30 AM, Rob Tompkins <ch...@gmail.com>
> wrote:
> >>>>
> >>>> Git stores linux file permissions, and all the files were 644 (the
> >>>> default), I updated them to 755. Try it now and let me know.
> >>>>
> >>>> -Rob
> >>>>
> >>>>> On May 28, 2018, at 11:26 AM, Gary Gregory <ga...@gmail.com>
> >>>> wrote:
> >>>>>
> >>>>> Hi Rob,
> >>>>>
> >>>>> I get a different error now running 'mvn clean install site
> >>>>> -Danimal.sniffer.skip':
> >>>>>
> >>>>> [INFO] Checking out dist from: scm:svn:https://dist.apache.
> >>>>> org/repos/dist/dev/commons/release-plugin
> >>>>> Executing: cmd.exe /X /C "svn --non-interactive checkout
> >>>>> https://dist.apache.org/repos/dist/dev/commons/release-plugin
> >>>>> C:\vcs\git\apache\commons\commons-release-plugin\target\
> >>>>> testing-commons-release-plugin\scm"
> >>>>> Working directory: C:\vcs\git\apache\commons\
> >>>> commons-release-plugin\target\
> >>>>> testing-commons-release-plugin
> >>>>> [INFO] Copying RELEASE-NOTES.txt to working directory.
> >>>>> [ERROR] Could not build HEADER and README html files
> >>>>> java.nio.file.FileSystemException: C:\vcs\git\apache\commons\
> >>>>> commons-release-plugin\target\testing-commons-release-
> >>>> plugin\scm\source\HEADER.html:
> >>>>> A required privilege is not held by the client.
> >>>>>
> >>>>>      at sun.nio.fs.WindowsException.translateToIOException(
> >>>>> WindowsException.java:86)
> >>>>>      at sun.nio.fs.WindowsException.rethrowAsIOException(
> >>>>> WindowsException.java:97)
> >>>>>      at sun.nio.fs.WindowsException.rethrowAsIOException(
> >>>>> WindowsException.java:102)
> >>>>>      at sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(
> >>>>> WindowsFileSystemProvider.java:585)
> >>>>>      at java.nio.file.Files.createSymbolicLink(Files.java:1043)
> >>>>>      at org.apache.commons.release.plugin.mojos.
> >>>>> CommonsDistributionStagingMojo.buildSymbolicLinks(
> >>>>> CommonsDistributionStagingMojo.java:342)
> >>>>>      at org.apache.commons.release.plugin.mojos.
> >>>>> CommonsDistributionStagingMojo.buildReadmeAndHeaderHtmlFiles(
> >>>>> CommonsDistributionStagingMojo.java:319)
> >>>>>      at org.apache.commons.release.plugin.mojos.
> >>>>> CommonsDistributionStagingMojo.copyDistributionsIntoScmDirect
> >>>> oryStructure(
> >>>>> CommonsDistributionStagingMojo.java:274)
> >>>>>      at org.apache.commons.release.plugin.mojos.
> >>>>> CommonsDistributionStagingMojo.execute(
> CommonsDistributionStagingMojo
> >>>>> .java:164)
> >>>>>      at org.apache.commons.release.plugin.mojos.
> >>>>> CommonsDistributionStagingMojoTest.testSuccess(
> >>>>> CommonsDistributionStagingMojoTest.java:77)
> >>>>>      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>>>>      at sun.reflect.NativeMethodAccessorImpl.invoke(
> >>>>> NativeMethodAccessorImpl.java:62)
> >>>>>      at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> >>>>> DelegatingMethodAccessorImpl.java:43)
> >>>>>      at java.lang.reflect.Method.invoke(Method.java:498)
> >>>>>      at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(
> >>>>> FrameworkMethod.java:50)
> >>>>>      at org.junit.internal.runners.model.ReflectiveCallable.run(
> >>>>> ReflectiveCallable.java:12)
> >>>>>      at org.junit.runners.model.FrameworkMethod.invokeExplosively(
> >>>>> FrameworkMethod.java:47)
> >>>>>      at org.junit.internal.runners.statements.InvokeMethod.
> >>>>> evaluate(InvokeMethod.java:17)
> >>>>>      at org.junit.internal.runners.statements.RunBefores.
> >>>>> evaluate(RunBefores.java:26)
> >>>>>      at org.apache.maven.plugin.testing.MojoRule$2.evaluate(
> >>>>> MojoRule.java:308)
> >>>>>      at org.junit.rules.RunRules.evaluate(RunRules.java:20)
> >>>>>      at org.junit.runners.ParentRunner.runLeaf(
> ParentRunner.java:325)
> >>>>>      at org.junit.runners.BlockJUnit4ClassRunner.runChild(
> >>>>> BlockJUnit4ClassRunner.java:78)
> >>>>>      at org.junit.runners.BlockJUnit4ClassRunner.runChild(
> >>>>> BlockJUnit4ClassRunner.java:57)
> >>>>>      at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
> >>>>>      at org.junit.runners.ParentRunner$1.schedule(
> >>>> ParentRunner.java:71)
> >>>>>      at org.junit.runners.ParentRunner.runChildren(
> >>>> ParentRunner.java:288)
> >>>>>      at org.junit.runners.ParentRunner.access$000(
> >>>> ParentRunner.java:58)
> >>>>>      at org.junit.runners.ParentRunner$2.evaluate(
> >>>> ParentRunner.java:268)
> >>>>>      at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
> >>>>>      at org.apache.maven.surefire.junit4.JUnit4Provider.execute(
> >>>>> JUnit4Provider.java:365)
> >>>>>      at org.apache.maven.surefire.junit4.JUnit4Provider.
> >>>> executeWithRerun(
> >>>>> JUnit4Provider.java:273)
> >>>>>      at org.apache.maven.surefire.junit4.JUnit4Provider.
> >>>>> executeTestSet(JUnit4Provider.java:238)
> >>>>>      at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(
> >>>>> JUnit4Provider.java:159)
> >>>>>      at org.apache.maven.surefire.booter.ForkedBooter.
> >>>>> invokeProviderInSameClassLoader(ForkedBooter.java:379)
> >>>>>      at org.apache.maven.surefire.booter.ForkedBooter.
> >>>> runSuitesInProcess(
> >>>>> ForkedBooter.java:340)
> >>>>>      at org.apache.maven.surefire.booter.ForkedBooter.execute(
> >>>>> ForkedBooter.java:125)
> >>>>>      at org.apache.maven.surefire.booter.ForkedBooter.main(
> >>>>> ForkedBooter.java:413)
> >>>>> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time
> elapsed:
> >>>>> 2.273 s <<< FAILURE! - in org.apache.commons.release.plugin.mojos.
> >>>>> CommonsDistributionStagingMojoTest
> >>>>> [ERROR] testSuccess(org.apache.commons.release.plugin.mojos.
> >>>>> CommonsDistributionStagingMojoTest)  Time elapsed: 2.117 s  <<<
> ERROR!
> >>>>> org.apache.maven.plugin.MojoExecutionException: Could not build
> HEADER
> >>>> and
> >>>>> README html files
> >>>>>      at org.apache.commons.release.plugin.mojos.
> >>>>> CommonsDistributionStagingMojoTest.testSuccess(
> >>>>> CommonsDistributionStagingMojoTest.java:77)
> >>>>> Caused by: java.nio.file.FileSystemException:
> >>>>> C:\vcs\git\apache\commons\commons-release-plugin\target\
> >>>>> testing-commons-release-plugin\scm\source\HEADER.html: A required
> >>>> privilege
> >>>>> is not held by the client.
> >>>>>
> >>>>>      at org.apache.commons.release.plugin.mojos.
> >>>>> CommonsDistributionStagingMojoTest.testSuccess(
> >>>>> CommonsDistributionStagingMojoTest.java:77)
> >>>>>
> >>>>> Using:
> >>>>>
> >>>>> Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297;
> >>>>> 2018-02-24T12:49:05-07:00)
> >>>>> Maven home: C:\Java\apache-maven-3.5.3\bin\..
> >>>>> Java version: 1.8.0_172, vendor: Oracle Corporation
> >>>>> Java home: C:\Program Files\Java\jdk1.8.0_172\jre
> >>>>> Default locale: en_US, platform encoding: Cp1252
> >>>>> OS name: "windows 10", version: "10.0", arch: "amd64", family:
> "windows"
> >>>>>
> >>>>> Gary
> >>>>>
> >>>>>
> >>>>> On Mon, May 28, 2018 at 7:21 AM, Rob Tompkins <ch...@gmail.com>
> >>>> wrote:
> >>>>>
> >>>>>> Curious looks like my test tars/zips didn’t get committed.
> >>>>>>
> >>>>>> Let me do that.
> >>>>>>
> >>>>>>> On May 26, 2018, at 10:46 AM, Gary Gregory <garydgregory@gmail.com
> >
> >>>>>> wrote:
> >>>>>>>
> >>>>>>> Hi Rob and All,
> >>>>>>>
> >>>>>>> When I run 'mvn clean install site -Danimal.sniffer.skip', I get
> unit
> >>>>>> test
> >>>>>>> failures:
> >>>>>>>
> >>>>>>> [INFO] -------------------------------------------------------
> >>>>>>> [INFO]  T E S T S
> >>>>>>> [INFO] -------------------------------------------------------
> >>>>>>> [INFO] Running
> >>>>>>> org.apache.commons.release.plugin.mojos.
> CommonsDistributionDetachmentM
> >>>>>> ojoTest
> >>>>>>> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
> >>>>>>> SLF4J: Defaulting to no-operation (NOP) logger implementation
> >>>>>>> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
> >>>>>> further
> >>>>>>> details.
> >>>>>>> [WARNING] commons.distSvnStagingUrl is not set, the
> >>>>>> commons-release-plugin
> >>>>>>> will not run.
> >>>>>>> [INFO] Detaching Assemblies
> >>>>>>> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time
> elapsed:
> >>>>>>> 3.886 s <<< FAILURE! - in
> >>>>>>> org.apache.commons.release.plugin.mojos.
> CommonsDistributionDetachmentM
> >>>>>> ojoTest
> >>>>>>> [ERROR]
> >>>>>>> testSuccess(org.apache.commons.release.plugin.mojos.
> >>>>>> CommonsDistributionDetachmentMojoTest)
> >>>>>>> Time elapsed: 0.052 s  <<< ERROR!
> >>>>>>> org.apache.maven.plugin.MojoExecutionException: Could not find
> >>>> artifact
> >>>>>>> signature for: mockAttachedTar-null type: tar.gz
> >>>>>>>     at
> >>>>>>> org.apache.commons.release.plugin.mojos.
> CommonsDistributionDetachmentM
> >>>>>> ojoTest.testSuccess(CommonsDistributionDetachmentMojoTest.java:67)
> >>>>>>> Caused by: java.io.FileNotFoundException:
> >>>>>>> src\test\resources\mojos\detach-distributions\target\
> >>>>>> mockAttachedTar-src.tar.gz
> >>>>>>> (The system cannot find the file specified)
> >>>>>>>     at
> >>>>>>> org.apache.commons.release.plugin.mojos.
> CommonsDistributionDetachmentM
> >>>>>> ojoTest.testSuccess(CommonsDistributionDetachmentMojoTest.java:67)
> >>>>>>>
> >>>>>>> [INFO] Running
> >>>>>>> org.apache.commons.release.plugin.mojos.
> CommonsDistributionStagingMojo
> >>>>>> Test
> >>>>>>> [INFO] This module is marked as a non distribution or assembly
> module,
> >>>>>> and
> >>>>>>> the plugin will not run.
> >>>>>>> [INFO] Detaching Assemblies
> >>>>>>> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time
> elapsed:
> >>>>>>> 0.017 s <<< FAILURE! - in
> >>>>>>> org.apache.commons.release.plugin.mojos.
> CommonsDistributionStagingMojo
> >>>>>> Test
> >>>>>>> [ERROR]
> >>>>>>> testSuccess(org.apache.commons.release.plugin.mojos.
> >>>>>> CommonsDistributionStagingMojoTest)
> >>>>>>> Time elapsed: 0.005 s  <<< ERROR!
> >>>>>>> org.apache.maven.plugin.MojoExecutionException: Could not find
> >>>> artifact
> >>>>>>> signature for: mockAttachedTar-null type: tar.gz
> >>>>>>>     at
> >>>>>>> org.apache.commons.release.plugin.mojos.
> CommonsDistributionStagingMojo
> >>>>>> Test.testSuccess(CommonsDistributionStagingMojoTest.java:74)
> >>>>>>> Caused by: java.io.FileNotFoundException:
> >>>>>>> src\test\resources\mojos\detach-distributions\target\
> >>>>>> mockAttachedTar-src.tar.gz
> >>>>>>> (The system cannot find the file specified)
> >>>>>>>     at
> >>>>>>> org.apache.commons.release.plugin.mojos.
> CommonsDistributionStagingMojo
> >>>>>> Test.testSuccess(CommonsDistributionStagingMojoTest.java:74)
> >>>>>>>
> >>>>>>> [INFO] Running
> >>>>>>> org.apache.commons.release.plugin.mojos.
> CommonsSiteCompressionMojoTest
> >>>>>>> [ERROR] "mvn site" was not run before this goal, or a
> siteDirectory did
> >>>>>> not
> >>>>>>> exist.
> >>>>>>> [INFO] Current project contains no distributions. Not executing.
> >>>>>>> [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time
> elapsed:
> >>>>>>> 0.014 s - in
> >>>>>>> org.apache.commons.release.plugin.mojos.
> CommonsSiteCompressionMojoTest
> >>>>>>> [INFO] Running
> >>>>>>> org.apache.commons.release.plugin.velocity.
> >>>>>> HeaderHtmlVelocityDelegateTest
> >>>>>>> [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time
> elapsed:
> >>>>>>> 0.009 s - in
> >>>>>>> org.apache.commons.release.plugin.velocity.
> >>>>>> HeaderHtmlVelocityDelegateTest
> >>>>>>> [INFO] Running
> >>>>>>> org.apache.commons.release.plugin.velocity.
> >>>>>> ReadmeHtmlVelocityDelegateTest
> >>>>>>> [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time
> elapsed:
> >>>>>>> 0.004 s - in
> >>>>>>> org.apache.commons.release.plugin.velocity.
> >>>>>> ReadmeHtmlVelocityDelegateTest
> >>>>>>> [INFO]
> >>>>>>> [INFO] Results:
> >>>>>>> [INFO]
> >>>>>>> [ERROR] Errors:
> >>>>>>> [ERROR]   CommonsDistributionDetachmentMojoTest.testSuccess:67 »
> >>>>>>> MojoExecution Could not...
> >>>>>>> [ERROR]   CommonsDistributionStagingMojoTest.testSuccess:74 »
> >>>>>> MojoExecution
> >>>>>>> Could not fi...
> >>>>>>> [INFO]
> >>>>>>> [ERROR] Tests run: 9, Failures: 0, Errors: 2, Skipped: 0
> >>>>>>> [INFO]
> >>>>>>> [INFO]
> >>>>>>> ------------------------------------------------------------
> >>>> ------------
> >>>>>>> [INFO] BUILD FAILURE
> >>>>>>> [INFO]
> >>>>>>> ------------------------------------------------------------
> >>>> ------------
> >>>>>>> [INFO] Total time: 19.574 s
> >>>>>>> [INFO] Finished at: 2018-05-26T08:35:04-06:00
> >>>>>>> [INFO]
> >>>>>>> ------------------------------------------------------------
> >>>> ------------
> >>>>>>> [ERROR] Failed to execute goal
> >>>>>>> org.apache.maven.plugins:maven-surefire-plugin:2.21.0:test
> >>>>>> (default-test)
> >>>>>>> on project commons-release-plugin: There are test failures.
> >>>>>>>
> >>>>>>> Any ideas on how to fix that?
> >>>>>>>
> >>>>>>> Gary
> >>>>>>
> >>>>>>
> >>>>>> ------------------------------------------------------------
> ---------
> >>>>>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> >>>>>> For additional commands, e-mail: dev-help@commons.apache.org
> >>>>>>
> >>>>>>
> >>>>
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> >>>> For additional commands, e-mail: dev-help@commons.apache.org
> >>>>
> >>>>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> >> For additional commands, e-mail: dev-help@commons.apache.org
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> > For additional commands, e-mail: dev-help@commons.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>

Re: [release-plugin] Unit test failures

Posted by Rob Tompkins <ch...@gmail.com>.
@Gary - let me know how things run now. 

> On May 29, 2018, at 6:01 AM, sebb <se...@gmail.com> wrote:
> 
>> On 29 May 2018 at 02:58, Rob Tompkins <ch...@gmail.com> wrote:
>> It looks like this has to do with java setting up symbolic links on a windows machine. Clearly this is something that we’ll want to overcome, but I’m not certain how to accommodate this. It seems that:
>> 
>> Files.createSymbolicLink
>> 
>> may not work on Windows. It looks like Apache Storm may have seen this before with https://issues.apache.org/jira/browse/STORM-1193.
>> 
>> Curious if anyone else on the list might have any suggestions here? Also, I’ll try to dig around in the maven codebases to see if they use it anywhere.
> 
> Why should the Commons code set up links at all?
> 
>> -Rob
>> 
>>> On May 28, 2018, at 1:07 PM, Gary Gregory <ga...@gmail.com> wrote:
>>> 
>>> I pulled the latest and I get:
>>> 
>>> [INFO] Preparing to stage distributions
>>> [INFO] Checking out dist from: scm:svn:
>>> https://dist.apache.org/repos/dist/dev/commons/release-plugin
>>> Executing: cmd.exe /X /C "svn --non-interactive checkout
>>> https://dist.apache.org/repos/dist/dev/commons/release-plugin
>>> C:\vcs\git\apache\commons\commons-release-plugin\target\testing-commons-release-plugin\scm"
>>> Working directory:
>>> C:\vcs\git\apache\commons\commons-release-plugin\target\testing-commons-release-plugin
>>> [INFO] Copying RELEASE-NOTES.txt to working directory.
>>> [ERROR] Could not build HEADER and README html files
>>> java.nio.file.FileSystemException:
>>> C:\vcs\git\apache\commons\commons-release-plugin\target\testing-commons-release-plugin\scm\source\HEADER.html:
>>> A required privilege is not held by the client.
>>> 
>>>       at
>>> sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86)
>>>       at
>>> sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
>>>       at
>>> sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
>>>       at
>>> sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(WindowsFileSystemProvider.java:585)
>>>       at java.nio.file.Files.createSymbolicLink(Files.java:1043)
>>>       at
>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo.buildSymbolicLinks(CommonsDistributionStagingMojo.java:342)
>>>       at
>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo.buildReadmeAndHeaderHtmlFiles(CommonsDistributionStagingMojo.java:319)
>>>       at
>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo.copyDistributionsIntoScmDirectoryStructure(CommonsDistributionStagingMojo.java:274)
>>>       at
>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo.execute(CommonsDistributionStagingMojo.java:164)
>>>       at
>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojoTest.testSuccess(CommonsDistributionStagingMojoTest.java:77)
>>>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>       at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>       at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>       at java.lang.reflect.Method.invoke(Method.java:498)
>>>       at
>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>       at
>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>       at
>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>       at
>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>       at
>>> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
>>>       at
>>> org.apache.maven.plugin.testing.MojoRule$2.evaluate(MojoRule.java:308)
>>>       at org.junit.rules.RunRules.evaluate(RunRules.java:20)
>>>       at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>       at
>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>       at
>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>       at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>       at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>       at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>       at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>       at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>       at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>       at
>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
>>>       at
>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
>>>       at
>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
>>>       at
>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
>>>       at
>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:379)
>>>       at
>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:340)
>>>       at
>>> org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
>>>       at
>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:413)
>>> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
>>> 2.067 s <<< FAILURE! - in
>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojoTest
>>> [ERROR]
>>> testSuccess(org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojoTest)
>>> Time elapsed: 1.998 s  <<< ERROR!
>>> org.apache.maven.plugin.MojoExecutionException: Could not build HEADER and
>>> README html files
>>>       at
>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojoTest.testSuccess(CommonsDistributionStagingMojoTest.java:77)
>>> Caused by: java.nio.file.FileSystemException:
>>> C:\vcs\git\apache\commons\commons-release-plugin\target\testing-commons-release-plugin\scm\source\HEADER.html:
>>> A required privilege is not held by the client.
>>> 
>>>       at
>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojoTest.testSuccess(CommonsDistributionStagingMojoTest.java:77)
>>> 
>>> I wonder if this is more than a Windows vs. Linux thing?
>>> 
>>> Gary
>>> 
>>>> On Mon, May 28, 2018 at 10:30 AM, Rob Tompkins <ch...@gmail.com> wrote:
>>>> 
>>>> Git stores linux file permissions, and all the files were 644 (the
>>>> default), I updated them to 755. Try it now and let me know.
>>>> 
>>>> -Rob
>>>> 
>>>>> On May 28, 2018, at 11:26 AM, Gary Gregory <ga...@gmail.com>
>>>> wrote:
>>>>> 
>>>>> Hi Rob,
>>>>> 
>>>>> I get a different error now running 'mvn clean install site
>>>>> -Danimal.sniffer.skip':
>>>>> 
>>>>> [INFO] Checking out dist from: scm:svn:https://dist.apache.
>>>>> org/repos/dist/dev/commons/release-plugin
>>>>> Executing: cmd.exe /X /C "svn --non-interactive checkout
>>>>> https://dist.apache.org/repos/dist/dev/commons/release-plugin
>>>>> C:\vcs\git\apache\commons\commons-release-plugin\target\
>>>>> testing-commons-release-plugin\scm"
>>>>> Working directory: C:\vcs\git\apache\commons\
>>>> commons-release-plugin\target\
>>>>> testing-commons-release-plugin
>>>>> [INFO] Copying RELEASE-NOTES.txt to working directory.
>>>>> [ERROR] Could not build HEADER and README html files
>>>>> java.nio.file.FileSystemException: C:\vcs\git\apache\commons\
>>>>> commons-release-plugin\target\testing-commons-release-
>>>> plugin\scm\source\HEADER.html:
>>>>> A required privilege is not held by the client.
>>>>> 
>>>>>      at sun.nio.fs.WindowsException.translateToIOException(
>>>>> WindowsException.java:86)
>>>>>      at sun.nio.fs.WindowsException.rethrowAsIOException(
>>>>> WindowsException.java:97)
>>>>>      at sun.nio.fs.WindowsException.rethrowAsIOException(
>>>>> WindowsException.java:102)
>>>>>      at sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(
>>>>> WindowsFileSystemProvider.java:585)
>>>>>      at java.nio.file.Files.createSymbolicLink(Files.java:1043)
>>>>>      at org.apache.commons.release.plugin.mojos.
>>>>> CommonsDistributionStagingMojo.buildSymbolicLinks(
>>>>> CommonsDistributionStagingMojo.java:342)
>>>>>      at org.apache.commons.release.plugin.mojos.
>>>>> CommonsDistributionStagingMojo.buildReadmeAndHeaderHtmlFiles(
>>>>> CommonsDistributionStagingMojo.java:319)
>>>>>      at org.apache.commons.release.plugin.mojos.
>>>>> CommonsDistributionStagingMojo.copyDistributionsIntoScmDirect
>>>> oryStructure(
>>>>> CommonsDistributionStagingMojo.java:274)
>>>>>      at org.apache.commons.release.plugin.mojos.
>>>>> CommonsDistributionStagingMojo.execute(CommonsDistributionStagingMojo
>>>>> .java:164)
>>>>>      at org.apache.commons.release.plugin.mojos.
>>>>> CommonsDistributionStagingMojoTest.testSuccess(
>>>>> CommonsDistributionStagingMojoTest.java:77)
>>>>>      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>      at sun.reflect.NativeMethodAccessorImpl.invoke(
>>>>> NativeMethodAccessorImpl.java:62)
>>>>>      at sun.reflect.DelegatingMethodAccessorImpl.invoke(
>>>>> DelegatingMethodAccessorImpl.java:43)
>>>>>      at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>      at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(
>>>>> FrameworkMethod.java:50)
>>>>>      at org.junit.internal.runners.model.ReflectiveCallable.run(
>>>>> ReflectiveCallable.java:12)
>>>>>      at org.junit.runners.model.FrameworkMethod.invokeExplosively(
>>>>> FrameworkMethod.java:47)
>>>>>      at org.junit.internal.runners.statements.InvokeMethod.
>>>>> evaluate(InvokeMethod.java:17)
>>>>>      at org.junit.internal.runners.statements.RunBefores.
>>>>> evaluate(RunBefores.java:26)
>>>>>      at org.apache.maven.plugin.testing.MojoRule$2.evaluate(
>>>>> MojoRule.java:308)
>>>>>      at org.junit.rules.RunRules.evaluate(RunRules.java:20)
>>>>>      at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>      at org.junit.runners.BlockJUnit4ClassRunner.runChild(
>>>>> BlockJUnit4ClassRunner.java:78)
>>>>>      at org.junit.runners.BlockJUnit4ClassRunner.runChild(
>>>>> BlockJUnit4ClassRunner.java:57)
>>>>>      at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>      at org.junit.runners.ParentRunner$1.schedule(
>>>> ParentRunner.java:71)
>>>>>      at org.junit.runners.ParentRunner.runChildren(
>>>> ParentRunner.java:288)
>>>>>      at org.junit.runners.ParentRunner.access$000(
>>>> ParentRunner.java:58)
>>>>>      at org.junit.runners.ParentRunner$2.evaluate(
>>>> ParentRunner.java:268)
>>>>>      at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>      at org.apache.maven.surefire.junit4.JUnit4Provider.execute(
>>>>> JUnit4Provider.java:365)
>>>>>      at org.apache.maven.surefire.junit4.JUnit4Provider.
>>>> executeWithRerun(
>>>>> JUnit4Provider.java:273)
>>>>>      at org.apache.maven.surefire.junit4.JUnit4Provider.
>>>>> executeTestSet(JUnit4Provider.java:238)
>>>>>      at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(
>>>>> JUnit4Provider.java:159)
>>>>>      at org.apache.maven.surefire.booter.ForkedBooter.
>>>>> invokeProviderInSameClassLoader(ForkedBooter.java:379)
>>>>>      at org.apache.maven.surefire.booter.ForkedBooter.
>>>> runSuitesInProcess(
>>>>> ForkedBooter.java:340)
>>>>>      at org.apache.maven.surefire.booter.ForkedBooter.execute(
>>>>> ForkedBooter.java:125)
>>>>>      at org.apache.maven.surefire.booter.ForkedBooter.main(
>>>>> ForkedBooter.java:413)
>>>>> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
>>>>> 2.273 s <<< FAILURE! - in org.apache.commons.release.plugin.mojos.
>>>>> CommonsDistributionStagingMojoTest
>>>>> [ERROR] testSuccess(org.apache.commons.release.plugin.mojos.
>>>>> CommonsDistributionStagingMojoTest)  Time elapsed: 2.117 s  <<< ERROR!
>>>>> org.apache.maven.plugin.MojoExecutionException: Could not build HEADER
>>>> and
>>>>> README html files
>>>>>      at org.apache.commons.release.plugin.mojos.
>>>>> CommonsDistributionStagingMojoTest.testSuccess(
>>>>> CommonsDistributionStagingMojoTest.java:77)
>>>>> Caused by: java.nio.file.FileSystemException:
>>>>> C:\vcs\git\apache\commons\commons-release-plugin\target\
>>>>> testing-commons-release-plugin\scm\source\HEADER.html: A required
>>>> privilege
>>>>> is not held by the client.
>>>>> 
>>>>>      at org.apache.commons.release.plugin.mojos.
>>>>> CommonsDistributionStagingMojoTest.testSuccess(
>>>>> CommonsDistributionStagingMojoTest.java:77)
>>>>> 
>>>>> Using:
>>>>> 
>>>>> Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297;
>>>>> 2018-02-24T12:49:05-07:00)
>>>>> Maven home: C:\Java\apache-maven-3.5.3\bin\..
>>>>> Java version: 1.8.0_172, vendor: Oracle Corporation
>>>>> Java home: C:\Program Files\Java\jdk1.8.0_172\jre
>>>>> Default locale: en_US, platform encoding: Cp1252
>>>>> OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
>>>>> 
>>>>> Gary
>>>>> 
>>>>> 
>>>>> On Mon, May 28, 2018 at 7:21 AM, Rob Tompkins <ch...@gmail.com>
>>>> wrote:
>>>>> 
>>>>>> Curious looks like my test tars/zips didn’t get committed.
>>>>>> 
>>>>>> Let me do that.
>>>>>> 
>>>>>>> On May 26, 2018, at 10:46 AM, Gary Gregory <ga...@gmail.com>
>>>>>> wrote:
>>>>>>> 
>>>>>>> Hi Rob and All,
>>>>>>> 
>>>>>>> When I run 'mvn clean install site -Danimal.sniffer.skip', I get unit
>>>>>> test
>>>>>>> failures:
>>>>>>> 
>>>>>>> [INFO] -------------------------------------------------------
>>>>>>> [INFO]  T E S T S
>>>>>>> [INFO] -------------------------------------------------------
>>>>>>> [INFO] Running
>>>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentM
>>>>>> ojoTest
>>>>>>> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
>>>>>>> SLF4J: Defaulting to no-operation (NOP) logger implementation
>>>>>>> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
>>>>>> further
>>>>>>> details.
>>>>>>> [WARNING] commons.distSvnStagingUrl is not set, the
>>>>>> commons-release-plugin
>>>>>>> will not run.
>>>>>>> [INFO] Detaching Assemblies
>>>>>>> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
>>>>>>> 3.886 s <<< FAILURE! - in
>>>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentM
>>>>>> ojoTest
>>>>>>> [ERROR]
>>>>>>> testSuccess(org.apache.commons.release.plugin.mojos.
>>>>>> CommonsDistributionDetachmentMojoTest)
>>>>>>> Time elapsed: 0.052 s  <<< ERROR!
>>>>>>> org.apache.maven.plugin.MojoExecutionException: Could not find
>>>> artifact
>>>>>>> signature for: mockAttachedTar-null type: tar.gz
>>>>>>>     at
>>>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentM
>>>>>> ojoTest.testSuccess(CommonsDistributionDetachmentMojoTest.java:67)
>>>>>>> Caused by: java.io.FileNotFoundException:
>>>>>>> src\test\resources\mojos\detach-distributions\target\
>>>>>> mockAttachedTar-src.tar.gz
>>>>>>> (The system cannot find the file specified)
>>>>>>>     at
>>>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentM
>>>>>> ojoTest.testSuccess(CommonsDistributionDetachmentMojoTest.java:67)
>>>>>>> 
>>>>>>> [INFO] Running
>>>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
>>>>>> Test
>>>>>>> [INFO] This module is marked as a non distribution or assembly module,
>>>>>> and
>>>>>>> the plugin will not run.
>>>>>>> [INFO] Detaching Assemblies
>>>>>>> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
>>>>>>> 0.017 s <<< FAILURE! - in
>>>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
>>>>>> Test
>>>>>>> [ERROR]
>>>>>>> testSuccess(org.apache.commons.release.plugin.mojos.
>>>>>> CommonsDistributionStagingMojoTest)
>>>>>>> Time elapsed: 0.005 s  <<< ERROR!
>>>>>>> org.apache.maven.plugin.MojoExecutionException: Could not find
>>>> artifact
>>>>>>> signature for: mockAttachedTar-null type: tar.gz
>>>>>>>     at
>>>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
>>>>>> Test.testSuccess(CommonsDistributionStagingMojoTest.java:74)
>>>>>>> Caused by: java.io.FileNotFoundException:
>>>>>>> src\test\resources\mojos\detach-distributions\target\
>>>>>> mockAttachedTar-src.tar.gz
>>>>>>> (The system cannot find the file specified)
>>>>>>>     at
>>>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
>>>>>> Test.testSuccess(CommonsDistributionStagingMojoTest.java:74)
>>>>>>> 
>>>>>>> [INFO] Running
>>>>>>> org.apache.commons.release.plugin.mojos.CommonsSiteCompressionMojoTest
>>>>>>> [ERROR] "mvn site" was not run before this goal, or a siteDirectory did
>>>>>> not
>>>>>>> exist.
>>>>>>> [INFO] Current project contains no distributions. Not executing.
>>>>>>> [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>>>>>> 0.014 s - in
>>>>>>> org.apache.commons.release.plugin.mojos.CommonsSiteCompressionMojoTest
>>>>>>> [INFO] Running
>>>>>>> org.apache.commons.release.plugin.velocity.
>>>>>> HeaderHtmlVelocityDelegateTest
>>>>>>> [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>>>>>> 0.009 s - in
>>>>>>> org.apache.commons.release.plugin.velocity.
>>>>>> HeaderHtmlVelocityDelegateTest
>>>>>>> [INFO] Running
>>>>>>> org.apache.commons.release.plugin.velocity.
>>>>>> ReadmeHtmlVelocityDelegateTest
>>>>>>> [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>>>>>> 0.004 s - in
>>>>>>> org.apache.commons.release.plugin.velocity.
>>>>>> ReadmeHtmlVelocityDelegateTest
>>>>>>> [INFO]
>>>>>>> [INFO] Results:
>>>>>>> [INFO]
>>>>>>> [ERROR] Errors:
>>>>>>> [ERROR]   CommonsDistributionDetachmentMojoTest.testSuccess:67 »
>>>>>>> MojoExecution Could not...
>>>>>>> [ERROR]   CommonsDistributionStagingMojoTest.testSuccess:74 »
>>>>>> MojoExecution
>>>>>>> Could not fi...
>>>>>>> [INFO]
>>>>>>> [ERROR] Tests run: 9, Failures: 0, Errors: 2, Skipped: 0
>>>>>>> [INFO]
>>>>>>> [INFO]
>>>>>>> ------------------------------------------------------------
>>>> ------------
>>>>>>> [INFO] BUILD FAILURE
>>>>>>> [INFO]
>>>>>>> ------------------------------------------------------------
>>>> ------------
>>>>>>> [INFO] Total time: 19.574 s
>>>>>>> [INFO] Finished at: 2018-05-26T08:35:04-06:00
>>>>>>> [INFO]
>>>>>>> ------------------------------------------------------------
>>>> ------------
>>>>>>> [ERROR] Failed to execute goal
>>>>>>> org.apache.maven.plugins:maven-surefire-plugin:2.21.0:test
>>>>>> (default-test)
>>>>>>> on project commons-release-plugin: There are test failures.
>>>>>>> 
>>>>>>> Any ideas on how to fix that?
>>>>>>> 
>>>>>>> Gary
>>>>>> 
>>>>>> 
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>>>>>> For additional commands, e-mail: dev-help@commons.apache.org
>>>>>> 
>>>>>> 
>>>> 
>>>> 
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>>>> For additional commands, e-mail: dev-help@commons.apache.org
>>>> 
>>>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>> For additional commands, e-mail: dev-help@commons.apache.org
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [release-plugin] Unit test failures

Posted by Rob Tompkins <ch...@gmail.com>.

> On May 29, 2018, at 6:01 AM, sebb <se...@gmail.com> wrote:
> 
>> On 29 May 2018 at 02:58, Rob Tompkins <ch...@gmail.com> wrote:
>> It looks like this has to do with java setting up symbolic links on a windows machine. Clearly this is something that we’ll want to overcome, but I’m not certain how to accommodate this. It seems that:
>> 
>> Files.createSymbolicLink
>> 
>> may not work on Windows. It looks like Apache Storm may have seen this before with https://issues.apache.org/jira/browse/STORM-1193.
>> 
>> Curious if anyone else on the list might have any suggestions here? Also, I’ll try to dig around in the maven codebases to see if they use it anywhere.
> 
> Why should the Commons code set up links at all?

I’m ok with copying the readme.html and header.html in the dist locations to all three directories root, binaries, and source. I was merely trying to keep things looking as they are today. 

-Rob

> 
>> -Rob
>> 
>>> On May 28, 2018, at 1:07 PM, Gary Gregory <ga...@gmail.com> wrote:
>>> 
>>> I pulled the latest and I get:
>>> 
>>> [INFO] Preparing to stage distributions
>>> [INFO] Checking out dist from: scm:svn:
>>> https://dist.apache.org/repos/dist/dev/commons/release-plugin
>>> Executing: cmd.exe /X /C "svn --non-interactive checkout
>>> https://dist.apache.org/repos/dist/dev/commons/release-plugin
>>> C:\vcs\git\apache\commons\commons-release-plugin\target\testing-commons-release-plugin\scm"
>>> Working directory:
>>> C:\vcs\git\apache\commons\commons-release-plugin\target\testing-commons-release-plugin
>>> [INFO] Copying RELEASE-NOTES.txt to working directory.
>>> [ERROR] Could not build HEADER and README html files
>>> java.nio.file.FileSystemException:
>>> C:\vcs\git\apache\commons\commons-release-plugin\target\testing-commons-release-plugin\scm\source\HEADER.html:
>>> A required privilege is not held by the client.
>>> 
>>>       at
>>> sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86)
>>>       at
>>> sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
>>>       at
>>> sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
>>>       at
>>> sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(WindowsFileSystemProvider.java:585)
>>>       at java.nio.file.Files.createSymbolicLink(Files.java:1043)
>>>       at
>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo.buildSymbolicLinks(CommonsDistributionStagingMojo.java:342)
>>>       at
>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo.buildReadmeAndHeaderHtmlFiles(CommonsDistributionStagingMojo.java:319)
>>>       at
>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo.copyDistributionsIntoScmDirectoryStructure(CommonsDistributionStagingMojo.java:274)
>>>       at
>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo.execute(CommonsDistributionStagingMojo.java:164)
>>>       at
>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojoTest.testSuccess(CommonsDistributionStagingMojoTest.java:77)
>>>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>       at
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>>       at
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>>       at java.lang.reflect.Method.invoke(Method.java:498)
>>>       at
>>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>>       at
>>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>>       at
>>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>>       at
>>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>>       at
>>> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
>>>       at
>>> org.apache.maven.plugin.testing.MojoRule$2.evaluate(MojoRule.java:308)
>>>       at org.junit.rules.RunRules.evaluate(RunRules.java:20)
>>>       at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>       at
>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>>       at
>>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>>       at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>       at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>>       at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>>       at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>>       at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>>       at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>       at
>>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
>>>       at
>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
>>>       at
>>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
>>>       at
>>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
>>>       at
>>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:379)
>>>       at
>>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:340)
>>>       at
>>> org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
>>>       at
>>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:413)
>>> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
>>> 2.067 s <<< FAILURE! - in
>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojoTest
>>> [ERROR]
>>> testSuccess(org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojoTest)
>>> Time elapsed: 1.998 s  <<< ERROR!
>>> org.apache.maven.plugin.MojoExecutionException: Could not build HEADER and
>>> README html files
>>>       at
>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojoTest.testSuccess(CommonsDistributionStagingMojoTest.java:77)
>>> Caused by: java.nio.file.FileSystemException:
>>> C:\vcs\git\apache\commons\commons-release-plugin\target\testing-commons-release-plugin\scm\source\HEADER.html:
>>> A required privilege is not held by the client.
>>> 
>>>       at
>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojoTest.testSuccess(CommonsDistributionStagingMojoTest.java:77)
>>> 
>>> I wonder if this is more than a Windows vs. Linux thing?
>>> 
>>> Gary
>>> 
>>>> On Mon, May 28, 2018 at 10:30 AM, Rob Tompkins <ch...@gmail.com> wrote:
>>>> 
>>>> Git stores linux file permissions, and all the files were 644 (the
>>>> default), I updated them to 755. Try it now and let me know.
>>>> 
>>>> -Rob
>>>> 
>>>>> On May 28, 2018, at 11:26 AM, Gary Gregory <ga...@gmail.com>
>>>> wrote:
>>>>> 
>>>>> Hi Rob,
>>>>> 
>>>>> I get a different error now running 'mvn clean install site
>>>>> -Danimal.sniffer.skip':
>>>>> 
>>>>> [INFO] Checking out dist from: scm:svn:https://dist.apache.
>>>>> org/repos/dist/dev/commons/release-plugin
>>>>> Executing: cmd.exe /X /C "svn --non-interactive checkout
>>>>> https://dist.apache.org/repos/dist/dev/commons/release-plugin
>>>>> C:\vcs\git\apache\commons\commons-release-plugin\target\
>>>>> testing-commons-release-plugin\scm"
>>>>> Working directory: C:\vcs\git\apache\commons\
>>>> commons-release-plugin\target\
>>>>> testing-commons-release-plugin
>>>>> [INFO] Copying RELEASE-NOTES.txt to working directory.
>>>>> [ERROR] Could not build HEADER and README html files
>>>>> java.nio.file.FileSystemException: C:\vcs\git\apache\commons\
>>>>> commons-release-plugin\target\testing-commons-release-
>>>> plugin\scm\source\HEADER.html:
>>>>> A required privilege is not held by the client.
>>>>> 
>>>>>      at sun.nio.fs.WindowsException.translateToIOException(
>>>>> WindowsException.java:86)
>>>>>      at sun.nio.fs.WindowsException.rethrowAsIOException(
>>>>> WindowsException.java:97)
>>>>>      at sun.nio.fs.WindowsException.rethrowAsIOException(
>>>>> WindowsException.java:102)
>>>>>      at sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(
>>>>> WindowsFileSystemProvider.java:585)
>>>>>      at java.nio.file.Files.createSymbolicLink(Files.java:1043)
>>>>>      at org.apache.commons.release.plugin.mojos.
>>>>> CommonsDistributionStagingMojo.buildSymbolicLinks(
>>>>> CommonsDistributionStagingMojo.java:342)
>>>>>      at org.apache.commons.release.plugin.mojos.
>>>>> CommonsDistributionStagingMojo.buildReadmeAndHeaderHtmlFiles(
>>>>> CommonsDistributionStagingMojo.java:319)
>>>>>      at org.apache.commons.release.plugin.mojos.
>>>>> CommonsDistributionStagingMojo.copyDistributionsIntoScmDirect
>>>> oryStructure(
>>>>> CommonsDistributionStagingMojo.java:274)
>>>>>      at org.apache.commons.release.plugin.mojos.
>>>>> CommonsDistributionStagingMojo.execute(CommonsDistributionStagingMojo
>>>>> .java:164)
>>>>>      at org.apache.commons.release.plugin.mojos.
>>>>> CommonsDistributionStagingMojoTest.testSuccess(
>>>>> CommonsDistributionStagingMojoTest.java:77)
>>>>>      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>      at sun.reflect.NativeMethodAccessorImpl.invoke(
>>>>> NativeMethodAccessorImpl.java:62)
>>>>>      at sun.reflect.DelegatingMethodAccessorImpl.invoke(
>>>>> DelegatingMethodAccessorImpl.java:43)
>>>>>      at java.lang.reflect.Method.invoke(Method.java:498)
>>>>>      at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(
>>>>> FrameworkMethod.java:50)
>>>>>      at org.junit.internal.runners.model.ReflectiveCallable.run(
>>>>> ReflectiveCallable.java:12)
>>>>>      at org.junit.runners.model.FrameworkMethod.invokeExplosively(
>>>>> FrameworkMethod.java:47)
>>>>>      at org.junit.internal.runners.statements.InvokeMethod.
>>>>> evaluate(InvokeMethod.java:17)
>>>>>      at org.junit.internal.runners.statements.RunBefores.
>>>>> evaluate(RunBefores.java:26)
>>>>>      at org.apache.maven.plugin.testing.MojoRule$2.evaluate(
>>>>> MojoRule.java:308)
>>>>>      at org.junit.rules.RunRules.evaluate(RunRules.java:20)
>>>>>      at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>>      at org.junit.runners.BlockJUnit4ClassRunner.runChild(
>>>>> BlockJUnit4ClassRunner.java:78)
>>>>>      at org.junit.runners.BlockJUnit4ClassRunner.runChild(
>>>>> BlockJUnit4ClassRunner.java:57)
>>>>>      at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>>      at org.junit.runners.ParentRunner$1.schedule(
>>>> ParentRunner.java:71)
>>>>>      at org.junit.runners.ParentRunner.runChildren(
>>>> ParentRunner.java:288)
>>>>>      at org.junit.runners.ParentRunner.access$000(
>>>> ParentRunner.java:58)
>>>>>      at org.junit.runners.ParentRunner$2.evaluate(
>>>> ParentRunner.java:268)
>>>>>      at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>>      at org.apache.maven.surefire.junit4.JUnit4Provider.execute(
>>>>> JUnit4Provider.java:365)
>>>>>      at org.apache.maven.surefire.junit4.JUnit4Provider.
>>>> executeWithRerun(
>>>>> JUnit4Provider.java:273)
>>>>>      at org.apache.maven.surefire.junit4.JUnit4Provider.
>>>>> executeTestSet(JUnit4Provider.java:238)
>>>>>      at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(
>>>>> JUnit4Provider.java:159)
>>>>>      at org.apache.maven.surefire.booter.ForkedBooter.
>>>>> invokeProviderInSameClassLoader(ForkedBooter.java:379)
>>>>>      at org.apache.maven.surefire.booter.ForkedBooter.
>>>> runSuitesInProcess(
>>>>> ForkedBooter.java:340)
>>>>>      at org.apache.maven.surefire.booter.ForkedBooter.execute(
>>>>> ForkedBooter.java:125)
>>>>>      at org.apache.maven.surefire.booter.ForkedBooter.main(
>>>>> ForkedBooter.java:413)
>>>>> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
>>>>> 2.273 s <<< FAILURE! - in org.apache.commons.release.plugin.mojos.
>>>>> CommonsDistributionStagingMojoTest
>>>>> [ERROR] testSuccess(org.apache.commons.release.plugin.mojos.
>>>>> CommonsDistributionStagingMojoTest)  Time elapsed: 2.117 s  <<< ERROR!
>>>>> org.apache.maven.plugin.MojoExecutionException: Could not build HEADER
>>>> and
>>>>> README html files
>>>>>      at org.apache.commons.release.plugin.mojos.
>>>>> CommonsDistributionStagingMojoTest.testSuccess(
>>>>> CommonsDistributionStagingMojoTest.java:77)
>>>>> Caused by: java.nio.file.FileSystemException:
>>>>> C:\vcs\git\apache\commons\commons-release-plugin\target\
>>>>> testing-commons-release-plugin\scm\source\HEADER.html: A required
>>>> privilege
>>>>> is not held by the client.
>>>>> 
>>>>>      at org.apache.commons.release.plugin.mojos.
>>>>> CommonsDistributionStagingMojoTest.testSuccess(
>>>>> CommonsDistributionStagingMojoTest.java:77)
>>>>> 
>>>>> Using:
>>>>> 
>>>>> Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297;
>>>>> 2018-02-24T12:49:05-07:00)
>>>>> Maven home: C:\Java\apache-maven-3.5.3\bin\..
>>>>> Java version: 1.8.0_172, vendor: Oracle Corporation
>>>>> Java home: C:\Program Files\Java\jdk1.8.0_172\jre
>>>>> Default locale: en_US, platform encoding: Cp1252
>>>>> OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
>>>>> 
>>>>> Gary
>>>>> 
>>>>> 
>>>>> On Mon, May 28, 2018 at 7:21 AM, Rob Tompkins <ch...@gmail.com>
>>>> wrote:
>>>>> 
>>>>>> Curious looks like my test tars/zips didn’t get committed.
>>>>>> 
>>>>>> Let me do that.
>>>>>> 
>>>>>>> On May 26, 2018, at 10:46 AM, Gary Gregory <ga...@gmail.com>
>>>>>> wrote:
>>>>>>> 
>>>>>>> Hi Rob and All,
>>>>>>> 
>>>>>>> When I run 'mvn clean install site -Danimal.sniffer.skip', I get unit
>>>>>> test
>>>>>>> failures:
>>>>>>> 
>>>>>>> [INFO] -------------------------------------------------------
>>>>>>> [INFO]  T E S T S
>>>>>>> [INFO] -------------------------------------------------------
>>>>>>> [INFO] Running
>>>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentM
>>>>>> ojoTest
>>>>>>> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
>>>>>>> SLF4J: Defaulting to no-operation (NOP) logger implementation
>>>>>>> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
>>>>>> further
>>>>>>> details.
>>>>>>> [WARNING] commons.distSvnStagingUrl is not set, the
>>>>>> commons-release-plugin
>>>>>>> will not run.
>>>>>>> [INFO] Detaching Assemblies
>>>>>>> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
>>>>>>> 3.886 s <<< FAILURE! - in
>>>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentM
>>>>>> ojoTest
>>>>>>> [ERROR]
>>>>>>> testSuccess(org.apache.commons.release.plugin.mojos.
>>>>>> CommonsDistributionDetachmentMojoTest)
>>>>>>> Time elapsed: 0.052 s  <<< ERROR!
>>>>>>> org.apache.maven.plugin.MojoExecutionException: Could not find
>>>> artifact
>>>>>>> signature for: mockAttachedTar-null type: tar.gz
>>>>>>>     at
>>>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentM
>>>>>> ojoTest.testSuccess(CommonsDistributionDetachmentMojoTest.java:67)
>>>>>>> Caused by: java.io.FileNotFoundException:
>>>>>>> src\test\resources\mojos\detach-distributions\target\
>>>>>> mockAttachedTar-src.tar.gz
>>>>>>> (The system cannot find the file specified)
>>>>>>>     at
>>>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentM
>>>>>> ojoTest.testSuccess(CommonsDistributionDetachmentMojoTest.java:67)
>>>>>>> 
>>>>>>> [INFO] Running
>>>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
>>>>>> Test
>>>>>>> [INFO] This module is marked as a non distribution or assembly module,
>>>>>> and
>>>>>>> the plugin will not run.
>>>>>>> [INFO] Detaching Assemblies
>>>>>>> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
>>>>>>> 0.017 s <<< FAILURE! - in
>>>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
>>>>>> Test
>>>>>>> [ERROR]
>>>>>>> testSuccess(org.apache.commons.release.plugin.mojos.
>>>>>> CommonsDistributionStagingMojoTest)
>>>>>>> Time elapsed: 0.005 s  <<< ERROR!
>>>>>>> org.apache.maven.plugin.MojoExecutionException: Could not find
>>>> artifact
>>>>>>> signature for: mockAttachedTar-null type: tar.gz
>>>>>>>     at
>>>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
>>>>>> Test.testSuccess(CommonsDistributionStagingMojoTest.java:74)
>>>>>>> Caused by: java.io.FileNotFoundException:
>>>>>>> src\test\resources\mojos\detach-distributions\target\
>>>>>> mockAttachedTar-src.tar.gz
>>>>>>> (The system cannot find the file specified)
>>>>>>>     at
>>>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
>>>>>> Test.testSuccess(CommonsDistributionStagingMojoTest.java:74)
>>>>>>> 
>>>>>>> [INFO] Running
>>>>>>> org.apache.commons.release.plugin.mojos.CommonsSiteCompressionMojoTest
>>>>>>> [ERROR] "mvn site" was not run before this goal, or a siteDirectory did
>>>>>> not
>>>>>>> exist.
>>>>>>> [INFO] Current project contains no distributions. Not executing.
>>>>>>> [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>>>>>> 0.014 s - in
>>>>>>> org.apache.commons.release.plugin.mojos.CommonsSiteCompressionMojoTest
>>>>>>> [INFO] Running
>>>>>>> org.apache.commons.release.plugin.velocity.
>>>>>> HeaderHtmlVelocityDelegateTest
>>>>>>> [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>>>>>> 0.009 s - in
>>>>>>> org.apache.commons.release.plugin.velocity.
>>>>>> HeaderHtmlVelocityDelegateTest
>>>>>>> [INFO] Running
>>>>>>> org.apache.commons.release.plugin.velocity.
>>>>>> ReadmeHtmlVelocityDelegateTest
>>>>>>> [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>>>>>> 0.004 s - in
>>>>>>> org.apache.commons.release.plugin.velocity.
>>>>>> ReadmeHtmlVelocityDelegateTest
>>>>>>> [INFO]
>>>>>>> [INFO] Results:
>>>>>>> [INFO]
>>>>>>> [ERROR] Errors:
>>>>>>> [ERROR]   CommonsDistributionDetachmentMojoTest.testSuccess:67 »
>>>>>>> MojoExecution Could not...
>>>>>>> [ERROR]   CommonsDistributionStagingMojoTest.testSuccess:74 »
>>>>>> MojoExecution
>>>>>>> Could not fi...
>>>>>>> [INFO]
>>>>>>> [ERROR] Tests run: 9, Failures: 0, Errors: 2, Skipped: 0
>>>>>>> [INFO]
>>>>>>> [INFO]
>>>>>>> ------------------------------------------------------------
>>>> ------------
>>>>>>> [INFO] BUILD FAILURE
>>>>>>> [INFO]
>>>>>>> ------------------------------------------------------------
>>>> ------------
>>>>>>> [INFO] Total time: 19.574 s
>>>>>>> [INFO] Finished at: 2018-05-26T08:35:04-06:00
>>>>>>> [INFO]
>>>>>>> ------------------------------------------------------------
>>>> ------------
>>>>>>> [ERROR] Failed to execute goal
>>>>>>> org.apache.maven.plugins:maven-surefire-plugin:2.21.0:test
>>>>>> (default-test)
>>>>>>> on project commons-release-plugin: There are test failures.
>>>>>>> 
>>>>>>> Any ideas on how to fix that?
>>>>>>> 
>>>>>>> Gary
>>>>>> 
>>>>>> 
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>>>>>> For additional commands, e-mail: dev-help@commons.apache.org
>>>>>> 
>>>>>> 
>>>> 
>>>> 
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>>>> For additional commands, e-mail: dev-help@commons.apache.org
>>>> 
>>>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>> For additional commands, e-mail: dev-help@commons.apache.org
>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [release-plugin] Unit test failures

Posted by sebb <se...@gmail.com>.
On 29 May 2018 at 02:58, Rob Tompkins <ch...@gmail.com> wrote:
> It looks like this has to do with java setting up symbolic links on a windows machine. Clearly this is something that we’ll want to overcome, but I’m not certain how to accommodate this. It seems that:
>
> Files.createSymbolicLink
>
> may not work on Windows. It looks like Apache Storm may have seen this before with https://issues.apache.org/jira/browse/STORM-1193.
>
> Curious if anyone else on the list might have any suggestions here? Also, I’ll try to dig around in the maven codebases to see if they use it anywhere.

Why should the Commons code set up links at all?

> -Rob
>
>> On May 28, 2018, at 1:07 PM, Gary Gregory <ga...@gmail.com> wrote:
>>
>> I pulled the latest and I get:
>>
>> [INFO] Preparing to stage distributions
>> [INFO] Checking out dist from: scm:svn:
>> https://dist.apache.org/repos/dist/dev/commons/release-plugin
>> Executing: cmd.exe /X /C "svn --non-interactive checkout
>> https://dist.apache.org/repos/dist/dev/commons/release-plugin
>> C:\vcs\git\apache\commons\commons-release-plugin\target\testing-commons-release-plugin\scm"
>> Working directory:
>> C:\vcs\git\apache\commons\commons-release-plugin\target\testing-commons-release-plugin
>> [INFO] Copying RELEASE-NOTES.txt to working directory.
>> [ERROR] Could not build HEADER and README html files
>> java.nio.file.FileSystemException:
>> C:\vcs\git\apache\commons\commons-release-plugin\target\testing-commons-release-plugin\scm\source\HEADER.html:
>> A required privilege is not held by the client.
>>
>>        at
>> sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86)
>>        at
>> sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
>>        at
>> sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
>>        at
>> sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(WindowsFileSystemProvider.java:585)
>>        at java.nio.file.Files.createSymbolicLink(Files.java:1043)
>>        at
>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo.buildSymbolicLinks(CommonsDistributionStagingMojo.java:342)
>>        at
>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo.buildReadmeAndHeaderHtmlFiles(CommonsDistributionStagingMojo.java:319)
>>        at
>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo.copyDistributionsIntoScmDirectoryStructure(CommonsDistributionStagingMojo.java:274)
>>        at
>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo.execute(CommonsDistributionStagingMojo.java:164)
>>        at
>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojoTest.testSuccess(CommonsDistributionStagingMojoTest.java:77)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>>        at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>>        at java.lang.reflect.Method.invoke(Method.java:498)
>>        at
>> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>>        at
>> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>>        at
>> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>>        at
>> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>>        at
>> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
>>        at
>> org.apache.maven.plugin.testing.MojoRule$2.evaluate(MojoRule.java:308)
>>        at org.junit.rules.RunRules.evaluate(RunRules.java:20)
>>        at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>        at
>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>>        at
>> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>>        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>>        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>>        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>>        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>>        at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>        at
>> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
>>        at
>> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
>>        at
>> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
>>        at
>> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
>>        at
>> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:379)
>>        at
>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:340)
>>        at
>> org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
>>        at
>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:413)
>> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
>> 2.067 s <<< FAILURE! - in
>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojoTest
>> [ERROR]
>> testSuccess(org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojoTest)
>> Time elapsed: 1.998 s  <<< ERROR!
>> org.apache.maven.plugin.MojoExecutionException: Could not build HEADER and
>> README html files
>>        at
>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojoTest.testSuccess(CommonsDistributionStagingMojoTest.java:77)
>> Caused by: java.nio.file.FileSystemException:
>> C:\vcs\git\apache\commons\commons-release-plugin\target\testing-commons-release-plugin\scm\source\HEADER.html:
>> A required privilege is not held by the client.
>>
>>        at
>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojoTest.testSuccess(CommonsDistributionStagingMojoTest.java:77)
>>
>> I wonder if this is more than a Windows vs. Linux thing?
>>
>> Gary
>>
>> On Mon, May 28, 2018 at 10:30 AM, Rob Tompkins <ch...@gmail.com> wrote:
>>
>>> Git stores linux file permissions, and all the files were 644 (the
>>> default), I updated them to 755. Try it now and let me know.
>>>
>>> -Rob
>>>
>>>> On May 28, 2018, at 11:26 AM, Gary Gregory <ga...@gmail.com>
>>> wrote:
>>>>
>>>> Hi Rob,
>>>>
>>>> I get a different error now running 'mvn clean install site
>>>> -Danimal.sniffer.skip':
>>>>
>>>> [INFO] Checking out dist from: scm:svn:https://dist.apache.
>>>> org/repos/dist/dev/commons/release-plugin
>>>> Executing: cmd.exe /X /C "svn --non-interactive checkout
>>>> https://dist.apache.org/repos/dist/dev/commons/release-plugin
>>>> C:\vcs\git\apache\commons\commons-release-plugin\target\
>>>> testing-commons-release-plugin\scm"
>>>> Working directory: C:\vcs\git\apache\commons\
>>> commons-release-plugin\target\
>>>> testing-commons-release-plugin
>>>> [INFO] Copying RELEASE-NOTES.txt to working directory.
>>>> [ERROR] Could not build HEADER and README html files
>>>> java.nio.file.FileSystemException: C:\vcs\git\apache\commons\
>>>> commons-release-plugin\target\testing-commons-release-
>>> plugin\scm\source\HEADER.html:
>>>> A required privilege is not held by the client.
>>>>
>>>>       at sun.nio.fs.WindowsException.translateToIOException(
>>>> WindowsException.java:86)
>>>>       at sun.nio.fs.WindowsException.rethrowAsIOException(
>>>> WindowsException.java:97)
>>>>       at sun.nio.fs.WindowsException.rethrowAsIOException(
>>>> WindowsException.java:102)
>>>>       at sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(
>>>> WindowsFileSystemProvider.java:585)
>>>>       at java.nio.file.Files.createSymbolicLink(Files.java:1043)
>>>>       at org.apache.commons.release.plugin.mojos.
>>>> CommonsDistributionStagingMojo.buildSymbolicLinks(
>>>> CommonsDistributionStagingMojo.java:342)
>>>>       at org.apache.commons.release.plugin.mojos.
>>>> CommonsDistributionStagingMojo.buildReadmeAndHeaderHtmlFiles(
>>>> CommonsDistributionStagingMojo.java:319)
>>>>       at org.apache.commons.release.plugin.mojos.
>>>> CommonsDistributionStagingMojo.copyDistributionsIntoScmDirect
>>> oryStructure(
>>>> CommonsDistributionStagingMojo.java:274)
>>>>       at org.apache.commons.release.plugin.mojos.
>>>> CommonsDistributionStagingMojo.execute(CommonsDistributionStagingMojo
>>>> .java:164)
>>>>       at org.apache.commons.release.plugin.mojos.
>>>> CommonsDistributionStagingMojoTest.testSuccess(
>>>> CommonsDistributionStagingMojoTest.java:77)
>>>>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>       at sun.reflect.NativeMethodAccessorImpl.invoke(
>>>> NativeMethodAccessorImpl.java:62)
>>>>       at sun.reflect.DelegatingMethodAccessorImpl.invoke(
>>>> DelegatingMethodAccessorImpl.java:43)
>>>>       at java.lang.reflect.Method.invoke(Method.java:498)
>>>>       at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(
>>>> FrameworkMethod.java:50)
>>>>       at org.junit.internal.runners.model.ReflectiveCallable.run(
>>>> ReflectiveCallable.java:12)
>>>>       at org.junit.runners.model.FrameworkMethod.invokeExplosively(
>>>> FrameworkMethod.java:47)
>>>>       at org.junit.internal.runners.statements.InvokeMethod.
>>>> evaluate(InvokeMethod.java:17)
>>>>       at org.junit.internal.runners.statements.RunBefores.
>>>> evaluate(RunBefores.java:26)
>>>>       at org.apache.maven.plugin.testing.MojoRule$2.evaluate(
>>>> MojoRule.java:308)
>>>>       at org.junit.rules.RunRules.evaluate(RunRules.java:20)
>>>>       at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>>       at org.junit.runners.BlockJUnit4ClassRunner.runChild(
>>>> BlockJUnit4ClassRunner.java:78)
>>>>       at org.junit.runners.BlockJUnit4ClassRunner.runChild(
>>>> BlockJUnit4ClassRunner.java:57)
>>>>       at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>>       at org.junit.runners.ParentRunner$1.schedule(
>>> ParentRunner.java:71)
>>>>       at org.junit.runners.ParentRunner.runChildren(
>>> ParentRunner.java:288)
>>>>       at org.junit.runners.ParentRunner.access$000(
>>> ParentRunner.java:58)
>>>>       at org.junit.runners.ParentRunner$2.evaluate(
>>> ParentRunner.java:268)
>>>>       at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>>       at org.apache.maven.surefire.junit4.JUnit4Provider.execute(
>>>> JUnit4Provider.java:365)
>>>>       at org.apache.maven.surefire.junit4.JUnit4Provider.
>>> executeWithRerun(
>>>> JUnit4Provider.java:273)
>>>>       at org.apache.maven.surefire.junit4.JUnit4Provider.
>>>> executeTestSet(JUnit4Provider.java:238)
>>>>       at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(
>>>> JUnit4Provider.java:159)
>>>>       at org.apache.maven.surefire.booter.ForkedBooter.
>>>> invokeProviderInSameClassLoader(ForkedBooter.java:379)
>>>>       at org.apache.maven.surefire.booter.ForkedBooter.
>>> runSuitesInProcess(
>>>> ForkedBooter.java:340)
>>>>       at org.apache.maven.surefire.booter.ForkedBooter.execute(
>>>> ForkedBooter.java:125)
>>>>       at org.apache.maven.surefire.booter.ForkedBooter.main(
>>>> ForkedBooter.java:413)
>>>> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
>>>> 2.273 s <<< FAILURE! - in org.apache.commons.release.plugin.mojos.
>>>> CommonsDistributionStagingMojoTest
>>>> [ERROR] testSuccess(org.apache.commons.release.plugin.mojos.
>>>> CommonsDistributionStagingMojoTest)  Time elapsed: 2.117 s  <<< ERROR!
>>>> org.apache.maven.plugin.MojoExecutionException: Could not build HEADER
>>> and
>>>> README html files
>>>>       at org.apache.commons.release.plugin.mojos.
>>>> CommonsDistributionStagingMojoTest.testSuccess(
>>>> CommonsDistributionStagingMojoTest.java:77)
>>>> Caused by: java.nio.file.FileSystemException:
>>>> C:\vcs\git\apache\commons\commons-release-plugin\target\
>>>> testing-commons-release-plugin\scm\source\HEADER.html: A required
>>> privilege
>>>> is not held by the client.
>>>>
>>>>       at org.apache.commons.release.plugin.mojos.
>>>> CommonsDistributionStagingMojoTest.testSuccess(
>>>> CommonsDistributionStagingMojoTest.java:77)
>>>>
>>>> Using:
>>>>
>>>> Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297;
>>>> 2018-02-24T12:49:05-07:00)
>>>> Maven home: C:\Java\apache-maven-3.5.3\bin\..
>>>> Java version: 1.8.0_172, vendor: Oracle Corporation
>>>> Java home: C:\Program Files\Java\jdk1.8.0_172\jre
>>>> Default locale: en_US, platform encoding: Cp1252
>>>> OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
>>>>
>>>> Gary
>>>>
>>>>
>>>> On Mon, May 28, 2018 at 7:21 AM, Rob Tompkins <ch...@gmail.com>
>>> wrote:
>>>>
>>>>> Curious looks like my test tars/zips didn’t get committed.
>>>>>
>>>>> Let me do that.
>>>>>
>>>>>> On May 26, 2018, at 10:46 AM, Gary Gregory <ga...@gmail.com>
>>>>> wrote:
>>>>>>
>>>>>> Hi Rob and All,
>>>>>>
>>>>>> When I run 'mvn clean install site -Danimal.sniffer.skip', I get unit
>>>>> test
>>>>>> failures:
>>>>>>
>>>>>> [INFO] -------------------------------------------------------
>>>>>> [INFO]  T E S T S
>>>>>> [INFO] -------------------------------------------------------
>>>>>> [INFO] Running
>>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentM
>>>>> ojoTest
>>>>>> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
>>>>>> SLF4J: Defaulting to no-operation (NOP) logger implementation
>>>>>> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
>>>>> further
>>>>>> details.
>>>>>> [WARNING] commons.distSvnStagingUrl is not set, the
>>>>> commons-release-plugin
>>>>>> will not run.
>>>>>> [INFO] Detaching Assemblies
>>>>>> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
>>>>>> 3.886 s <<< FAILURE! - in
>>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentM
>>>>> ojoTest
>>>>>> [ERROR]
>>>>>> testSuccess(org.apache.commons.release.plugin.mojos.
>>>>> CommonsDistributionDetachmentMojoTest)
>>>>>> Time elapsed: 0.052 s  <<< ERROR!
>>>>>> org.apache.maven.plugin.MojoExecutionException: Could not find
>>> artifact
>>>>>> signature for: mockAttachedTar-null type: tar.gz
>>>>>>      at
>>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentM
>>>>> ojoTest.testSuccess(CommonsDistributionDetachmentMojoTest.java:67)
>>>>>> Caused by: java.io.FileNotFoundException:
>>>>>> src\test\resources\mojos\detach-distributions\target\
>>>>> mockAttachedTar-src.tar.gz
>>>>>> (The system cannot find the file specified)
>>>>>>      at
>>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentM
>>>>> ojoTest.testSuccess(CommonsDistributionDetachmentMojoTest.java:67)
>>>>>>
>>>>>> [INFO] Running
>>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
>>>>> Test
>>>>>> [INFO] This module is marked as a non distribution or assembly module,
>>>>> and
>>>>>> the plugin will not run.
>>>>>> [INFO] Detaching Assemblies
>>>>>> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
>>>>>> 0.017 s <<< FAILURE! - in
>>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
>>>>> Test
>>>>>> [ERROR]
>>>>>> testSuccess(org.apache.commons.release.plugin.mojos.
>>>>> CommonsDistributionStagingMojoTest)
>>>>>> Time elapsed: 0.005 s  <<< ERROR!
>>>>>> org.apache.maven.plugin.MojoExecutionException: Could not find
>>> artifact
>>>>>> signature for: mockAttachedTar-null type: tar.gz
>>>>>>      at
>>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
>>>>> Test.testSuccess(CommonsDistributionStagingMojoTest.java:74)
>>>>>> Caused by: java.io.FileNotFoundException:
>>>>>> src\test\resources\mojos\detach-distributions\target\
>>>>> mockAttachedTar-src.tar.gz
>>>>>> (The system cannot find the file specified)
>>>>>>      at
>>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
>>>>> Test.testSuccess(CommonsDistributionStagingMojoTest.java:74)
>>>>>>
>>>>>> [INFO] Running
>>>>>> org.apache.commons.release.plugin.mojos.CommonsSiteCompressionMojoTest
>>>>>> [ERROR] "mvn site" was not run before this goal, or a siteDirectory did
>>>>> not
>>>>>> exist.
>>>>>> [INFO] Current project contains no distributions. Not executing.
>>>>>> [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>>>>> 0.014 s - in
>>>>>> org.apache.commons.release.plugin.mojos.CommonsSiteCompressionMojoTest
>>>>>> [INFO] Running
>>>>>> org.apache.commons.release.plugin.velocity.
>>>>> HeaderHtmlVelocityDelegateTest
>>>>>> [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>>>>> 0.009 s - in
>>>>>> org.apache.commons.release.plugin.velocity.
>>>>> HeaderHtmlVelocityDelegateTest
>>>>>> [INFO] Running
>>>>>> org.apache.commons.release.plugin.velocity.
>>>>> ReadmeHtmlVelocityDelegateTest
>>>>>> [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>>>>> 0.004 s - in
>>>>>> org.apache.commons.release.plugin.velocity.
>>>>> ReadmeHtmlVelocityDelegateTest
>>>>>> [INFO]
>>>>>> [INFO] Results:
>>>>>> [INFO]
>>>>>> [ERROR] Errors:
>>>>>> [ERROR]   CommonsDistributionDetachmentMojoTest.testSuccess:67 »
>>>>>> MojoExecution Could not...
>>>>>> [ERROR]   CommonsDistributionStagingMojoTest.testSuccess:74 »
>>>>> MojoExecution
>>>>>> Could not fi...
>>>>>> [INFO]
>>>>>> [ERROR] Tests run: 9, Failures: 0, Errors: 2, Skipped: 0
>>>>>> [INFO]
>>>>>> [INFO]
>>>>>> ------------------------------------------------------------
>>> ------------
>>>>>> [INFO] BUILD FAILURE
>>>>>> [INFO]
>>>>>> ------------------------------------------------------------
>>> ------------
>>>>>> [INFO] Total time: 19.574 s
>>>>>> [INFO] Finished at: 2018-05-26T08:35:04-06:00
>>>>>> [INFO]
>>>>>> ------------------------------------------------------------
>>> ------------
>>>>>> [ERROR] Failed to execute goal
>>>>>> org.apache.maven.plugins:maven-surefire-plugin:2.21.0:test
>>>>> (default-test)
>>>>>> on project commons-release-plugin: There are test failures.
>>>>>>
>>>>>> Any ideas on how to fix that?
>>>>>>
>>>>>> Gary
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>>>>> For additional commands, e-mail: dev-help@commons.apache.org
>>>>>
>>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>>> For additional commands, e-mail: dev-help@commons.apache.org
>>>
>>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [release-plugin] Unit test failures

Posted by Rob Tompkins <ch...@gmail.com>.
It looks like this has to do with java setting up symbolic links on a windows machine. Clearly this is something that we’ll want to overcome, but I’m not certain how to accommodate this. It seems that:

Files.createSymbolicLink

may not work on Windows. It looks like Apache Storm may have seen this before with https://issues.apache.org/jira/browse/STORM-1193.

Curious if anyone else on the list might have any suggestions here? Also, I’ll try to dig around in the maven codebases to see if they use it anywhere.

-Rob

> On May 28, 2018, at 1:07 PM, Gary Gregory <ga...@gmail.com> wrote:
> 
> I pulled the latest and I get:
> 
> [INFO] Preparing to stage distributions
> [INFO] Checking out dist from: scm:svn:
> https://dist.apache.org/repos/dist/dev/commons/release-plugin
> Executing: cmd.exe /X /C "svn --non-interactive checkout
> https://dist.apache.org/repos/dist/dev/commons/release-plugin
> C:\vcs\git\apache\commons\commons-release-plugin\target\testing-commons-release-plugin\scm"
> Working directory:
> C:\vcs\git\apache\commons\commons-release-plugin\target\testing-commons-release-plugin
> [INFO] Copying RELEASE-NOTES.txt to working directory.
> [ERROR] Could not build HEADER and README html files
> java.nio.file.FileSystemException:
> C:\vcs\git\apache\commons\commons-release-plugin\target\testing-commons-release-plugin\scm\source\HEADER.html:
> A required privilege is not held by the client.
> 
>        at
> sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86)
>        at
> sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
>        at
> sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
>        at
> sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(WindowsFileSystemProvider.java:585)
>        at java.nio.file.Files.createSymbolicLink(Files.java:1043)
>        at
> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo.buildSymbolicLinks(CommonsDistributionStagingMojo.java:342)
>        at
> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo.buildReadmeAndHeaderHtmlFiles(CommonsDistributionStagingMojo.java:319)
>        at
> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo.copyDistributionsIntoScmDirectoryStructure(CommonsDistributionStagingMojo.java:274)
>        at
> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo.execute(CommonsDistributionStagingMojo.java:164)
>        at
> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojoTest.testSuccess(CommonsDistributionStagingMojoTest.java:77)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>        at java.lang.reflect.Method.invoke(Method.java:498)
>        at
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>        at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>        at
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>        at
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>        at
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
>        at
> org.apache.maven.plugin.testing.MojoRule$2.evaluate(MojoRule.java:308)
>        at org.junit.rules.RunRules.evaluate(RunRules.java:20)
>        at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>        at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>        at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>        at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>        at
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
>        at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
>        at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
>        at
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
>        at
> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:379)
>        at
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:340)
>        at
> org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
>        at
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:413)
> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
> 2.067 s <<< FAILURE! - in
> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojoTest
> [ERROR]
> testSuccess(org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojoTest)
> Time elapsed: 1.998 s  <<< ERROR!
> org.apache.maven.plugin.MojoExecutionException: Could not build HEADER and
> README html files
>        at
> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojoTest.testSuccess(CommonsDistributionStagingMojoTest.java:77)
> Caused by: java.nio.file.FileSystemException:
> C:\vcs\git\apache\commons\commons-release-plugin\target\testing-commons-release-plugin\scm\source\HEADER.html:
> A required privilege is not held by the client.
> 
>        at
> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojoTest.testSuccess(CommonsDistributionStagingMojoTest.java:77)
> 
> I wonder if this is more than a Windows vs. Linux thing?
> 
> Gary
> 
> On Mon, May 28, 2018 at 10:30 AM, Rob Tompkins <ch...@gmail.com> wrote:
> 
>> Git stores linux file permissions, and all the files were 644 (the
>> default), I updated them to 755. Try it now and let me know.
>> 
>> -Rob
>> 
>>> On May 28, 2018, at 11:26 AM, Gary Gregory <ga...@gmail.com>
>> wrote:
>>> 
>>> Hi Rob,
>>> 
>>> I get a different error now running 'mvn clean install site
>>> -Danimal.sniffer.skip':
>>> 
>>> [INFO] Checking out dist from: scm:svn:https://dist.apache.
>>> org/repos/dist/dev/commons/release-plugin
>>> Executing: cmd.exe /X /C "svn --non-interactive checkout
>>> https://dist.apache.org/repos/dist/dev/commons/release-plugin
>>> C:\vcs\git\apache\commons\commons-release-plugin\target\
>>> testing-commons-release-plugin\scm"
>>> Working directory: C:\vcs\git\apache\commons\
>> commons-release-plugin\target\
>>> testing-commons-release-plugin
>>> [INFO] Copying RELEASE-NOTES.txt to working directory.
>>> [ERROR] Could not build HEADER and README html files
>>> java.nio.file.FileSystemException: C:\vcs\git\apache\commons\
>>> commons-release-plugin\target\testing-commons-release-
>> plugin\scm\source\HEADER.html:
>>> A required privilege is not held by the client.
>>> 
>>>       at sun.nio.fs.WindowsException.translateToIOException(
>>> WindowsException.java:86)
>>>       at sun.nio.fs.WindowsException.rethrowAsIOException(
>>> WindowsException.java:97)
>>>       at sun.nio.fs.WindowsException.rethrowAsIOException(
>>> WindowsException.java:102)
>>>       at sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(
>>> WindowsFileSystemProvider.java:585)
>>>       at java.nio.file.Files.createSymbolicLink(Files.java:1043)
>>>       at org.apache.commons.release.plugin.mojos.
>>> CommonsDistributionStagingMojo.buildSymbolicLinks(
>>> CommonsDistributionStagingMojo.java:342)
>>>       at org.apache.commons.release.plugin.mojos.
>>> CommonsDistributionStagingMojo.buildReadmeAndHeaderHtmlFiles(
>>> CommonsDistributionStagingMojo.java:319)
>>>       at org.apache.commons.release.plugin.mojos.
>>> CommonsDistributionStagingMojo.copyDistributionsIntoScmDirect
>> oryStructure(
>>> CommonsDistributionStagingMojo.java:274)
>>>       at org.apache.commons.release.plugin.mojos.
>>> CommonsDistributionStagingMojo.execute(CommonsDistributionStagingMojo
>>> .java:164)
>>>       at org.apache.commons.release.plugin.mojos.
>>> CommonsDistributionStagingMojoTest.testSuccess(
>>> CommonsDistributionStagingMojoTest.java:77)
>>>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>       at sun.reflect.NativeMethodAccessorImpl.invoke(
>>> NativeMethodAccessorImpl.java:62)
>>>       at sun.reflect.DelegatingMethodAccessorImpl.invoke(
>>> DelegatingMethodAccessorImpl.java:43)
>>>       at java.lang.reflect.Method.invoke(Method.java:498)
>>>       at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(
>>> FrameworkMethod.java:50)
>>>       at org.junit.internal.runners.model.ReflectiveCallable.run(
>>> ReflectiveCallable.java:12)
>>>       at org.junit.runners.model.FrameworkMethod.invokeExplosively(
>>> FrameworkMethod.java:47)
>>>       at org.junit.internal.runners.statements.InvokeMethod.
>>> evaluate(InvokeMethod.java:17)
>>>       at org.junit.internal.runners.statements.RunBefores.
>>> evaluate(RunBefores.java:26)
>>>       at org.apache.maven.plugin.testing.MojoRule$2.evaluate(
>>> MojoRule.java:308)
>>>       at org.junit.rules.RunRules.evaluate(RunRules.java:20)
>>>       at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>       at org.junit.runners.BlockJUnit4ClassRunner.runChild(
>>> BlockJUnit4ClassRunner.java:78)
>>>       at org.junit.runners.BlockJUnit4ClassRunner.runChild(
>>> BlockJUnit4ClassRunner.java:57)
>>>       at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>       at org.junit.runners.ParentRunner$1.schedule(
>> ParentRunner.java:71)
>>>       at org.junit.runners.ParentRunner.runChildren(
>> ParentRunner.java:288)
>>>       at org.junit.runners.ParentRunner.access$000(
>> ParentRunner.java:58)
>>>       at org.junit.runners.ParentRunner$2.evaluate(
>> ParentRunner.java:268)
>>>       at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>       at org.apache.maven.surefire.junit4.JUnit4Provider.execute(
>>> JUnit4Provider.java:365)
>>>       at org.apache.maven.surefire.junit4.JUnit4Provider.
>> executeWithRerun(
>>> JUnit4Provider.java:273)
>>>       at org.apache.maven.surefire.junit4.JUnit4Provider.
>>> executeTestSet(JUnit4Provider.java:238)
>>>       at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(
>>> JUnit4Provider.java:159)
>>>       at org.apache.maven.surefire.booter.ForkedBooter.
>>> invokeProviderInSameClassLoader(ForkedBooter.java:379)
>>>       at org.apache.maven.surefire.booter.ForkedBooter.
>> runSuitesInProcess(
>>> ForkedBooter.java:340)
>>>       at org.apache.maven.surefire.booter.ForkedBooter.execute(
>>> ForkedBooter.java:125)
>>>       at org.apache.maven.surefire.booter.ForkedBooter.main(
>>> ForkedBooter.java:413)
>>> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
>>> 2.273 s <<< FAILURE! - in org.apache.commons.release.plugin.mojos.
>>> CommonsDistributionStagingMojoTest
>>> [ERROR] testSuccess(org.apache.commons.release.plugin.mojos.
>>> CommonsDistributionStagingMojoTest)  Time elapsed: 2.117 s  <<< ERROR!
>>> org.apache.maven.plugin.MojoExecutionException: Could not build HEADER
>> and
>>> README html files
>>>       at org.apache.commons.release.plugin.mojos.
>>> CommonsDistributionStagingMojoTest.testSuccess(
>>> CommonsDistributionStagingMojoTest.java:77)
>>> Caused by: java.nio.file.FileSystemException:
>>> C:\vcs\git\apache\commons\commons-release-plugin\target\
>>> testing-commons-release-plugin\scm\source\HEADER.html: A required
>> privilege
>>> is not held by the client.
>>> 
>>>       at org.apache.commons.release.plugin.mojos.
>>> CommonsDistributionStagingMojoTest.testSuccess(
>>> CommonsDistributionStagingMojoTest.java:77)
>>> 
>>> Using:
>>> 
>>> Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297;
>>> 2018-02-24T12:49:05-07:00)
>>> Maven home: C:\Java\apache-maven-3.5.3\bin\..
>>> Java version: 1.8.0_172, vendor: Oracle Corporation
>>> Java home: C:\Program Files\Java\jdk1.8.0_172\jre
>>> Default locale: en_US, platform encoding: Cp1252
>>> OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
>>> 
>>> Gary
>>> 
>>> 
>>> On Mon, May 28, 2018 at 7:21 AM, Rob Tompkins <ch...@gmail.com>
>> wrote:
>>> 
>>>> Curious looks like my test tars/zips didn’t get committed.
>>>> 
>>>> Let me do that.
>>>> 
>>>>> On May 26, 2018, at 10:46 AM, Gary Gregory <ga...@gmail.com>
>>>> wrote:
>>>>> 
>>>>> Hi Rob and All,
>>>>> 
>>>>> When I run 'mvn clean install site -Danimal.sniffer.skip', I get unit
>>>> test
>>>>> failures:
>>>>> 
>>>>> [INFO] -------------------------------------------------------
>>>>> [INFO]  T E S T S
>>>>> [INFO] -------------------------------------------------------
>>>>> [INFO] Running
>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentM
>>>> ojoTest
>>>>> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
>>>>> SLF4J: Defaulting to no-operation (NOP) logger implementation
>>>>> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
>>>> further
>>>>> details.
>>>>> [WARNING] commons.distSvnStagingUrl is not set, the
>>>> commons-release-plugin
>>>>> will not run.
>>>>> [INFO] Detaching Assemblies
>>>>> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
>>>>> 3.886 s <<< FAILURE! - in
>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentM
>>>> ojoTest
>>>>> [ERROR]
>>>>> testSuccess(org.apache.commons.release.plugin.mojos.
>>>> CommonsDistributionDetachmentMojoTest)
>>>>> Time elapsed: 0.052 s  <<< ERROR!
>>>>> org.apache.maven.plugin.MojoExecutionException: Could not find
>> artifact
>>>>> signature for: mockAttachedTar-null type: tar.gz
>>>>>      at
>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentM
>>>> ojoTest.testSuccess(CommonsDistributionDetachmentMojoTest.java:67)
>>>>> Caused by: java.io.FileNotFoundException:
>>>>> src\test\resources\mojos\detach-distributions\target\
>>>> mockAttachedTar-src.tar.gz
>>>>> (The system cannot find the file specified)
>>>>>      at
>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentM
>>>> ojoTest.testSuccess(CommonsDistributionDetachmentMojoTest.java:67)
>>>>> 
>>>>> [INFO] Running
>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
>>>> Test
>>>>> [INFO] This module is marked as a non distribution or assembly module,
>>>> and
>>>>> the plugin will not run.
>>>>> [INFO] Detaching Assemblies
>>>>> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
>>>>> 0.017 s <<< FAILURE! - in
>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
>>>> Test
>>>>> [ERROR]
>>>>> testSuccess(org.apache.commons.release.plugin.mojos.
>>>> CommonsDistributionStagingMojoTest)
>>>>> Time elapsed: 0.005 s  <<< ERROR!
>>>>> org.apache.maven.plugin.MojoExecutionException: Could not find
>> artifact
>>>>> signature for: mockAttachedTar-null type: tar.gz
>>>>>      at
>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
>>>> Test.testSuccess(CommonsDistributionStagingMojoTest.java:74)
>>>>> Caused by: java.io.FileNotFoundException:
>>>>> src\test\resources\mojos\detach-distributions\target\
>>>> mockAttachedTar-src.tar.gz
>>>>> (The system cannot find the file specified)
>>>>>      at
>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
>>>> Test.testSuccess(CommonsDistributionStagingMojoTest.java:74)
>>>>> 
>>>>> [INFO] Running
>>>>> org.apache.commons.release.plugin.mojos.CommonsSiteCompressionMojoTest
>>>>> [ERROR] "mvn site" was not run before this goal, or a siteDirectory did
>>>> not
>>>>> exist.
>>>>> [INFO] Current project contains no distributions. Not executing.
>>>>> [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>>>> 0.014 s - in
>>>>> org.apache.commons.release.plugin.mojos.CommonsSiteCompressionMojoTest
>>>>> [INFO] Running
>>>>> org.apache.commons.release.plugin.velocity.
>>>> HeaderHtmlVelocityDelegateTest
>>>>> [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>>>> 0.009 s - in
>>>>> org.apache.commons.release.plugin.velocity.
>>>> HeaderHtmlVelocityDelegateTest
>>>>> [INFO] Running
>>>>> org.apache.commons.release.plugin.velocity.
>>>> ReadmeHtmlVelocityDelegateTest
>>>>> [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>>>> 0.004 s - in
>>>>> org.apache.commons.release.plugin.velocity.
>>>> ReadmeHtmlVelocityDelegateTest
>>>>> [INFO]
>>>>> [INFO] Results:
>>>>> [INFO]
>>>>> [ERROR] Errors:
>>>>> [ERROR]   CommonsDistributionDetachmentMojoTest.testSuccess:67 »
>>>>> MojoExecution Could not...
>>>>> [ERROR]   CommonsDistributionStagingMojoTest.testSuccess:74 »
>>>> MojoExecution
>>>>> Could not fi...
>>>>> [INFO]
>>>>> [ERROR] Tests run: 9, Failures: 0, Errors: 2, Skipped: 0
>>>>> [INFO]
>>>>> [INFO]
>>>>> ------------------------------------------------------------
>> ------------
>>>>> [INFO] BUILD FAILURE
>>>>> [INFO]
>>>>> ------------------------------------------------------------
>> ------------
>>>>> [INFO] Total time: 19.574 s
>>>>> [INFO] Finished at: 2018-05-26T08:35:04-06:00
>>>>> [INFO]
>>>>> ------------------------------------------------------------
>> ------------
>>>>> [ERROR] Failed to execute goal
>>>>> org.apache.maven.plugins:maven-surefire-plugin:2.21.0:test
>>>> (default-test)
>>>>> on project commons-release-plugin: There are test failures.
>>>>> 
>>>>> Any ideas on how to fix that?
>>>>> 
>>>>> Gary
>>>> 
>>>> 
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>>>> For additional commands, e-mail: dev-help@commons.apache.org
>>>> 
>>>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>> For additional commands, e-mail: dev-help@commons.apache.org
>> 
>> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [release-plugin] Unit test failures

Posted by Rob Tompkins <ch...@gmail.com>.
Hm...Travis ci seems to agree. I’ll sort it out. 

> On May 28, 2018, at 1:07 PM, Gary Gregory <ga...@gmail.com> wrote:
> 
> I pulled the latest and I get:
> 
> [INFO] Preparing to stage distributions
> [INFO] Checking out dist from: scm:svn:
> https://dist.apache.org/repos/dist/dev/commons/release-plugin
> Executing: cmd.exe /X /C "svn --non-interactive checkout
> https://dist.apache.org/repos/dist/dev/commons/release-plugin
> C:\vcs\git\apache\commons\commons-release-plugin\target\testing-commons-release-plugin\scm"
> Working directory:
> C:\vcs\git\apache\commons\commons-release-plugin\target\testing-commons-release-plugin
> [INFO] Copying RELEASE-NOTES.txt to working directory.
> [ERROR] Could not build HEADER and README html files
> java.nio.file.FileSystemException:
> C:\vcs\git\apache\commons\commons-release-plugin\target\testing-commons-release-plugin\scm\source\HEADER.html:
> A required privilege is not held by the client.
> 
>        at
> sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86)
>        at
> sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
>        at
> sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
>        at
> sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(WindowsFileSystemProvider.java:585)
>        at java.nio.file.Files.createSymbolicLink(Files.java:1043)
>        at
> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo.buildSymbolicLinks(CommonsDistributionStagingMojo.java:342)
>        at
> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo.buildReadmeAndHeaderHtmlFiles(CommonsDistributionStagingMojo.java:319)
>        at
> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo.copyDistributionsIntoScmDirectoryStructure(CommonsDistributionStagingMojo.java:274)
>        at
> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo.execute(CommonsDistributionStagingMojo.java:164)
>        at
> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojoTest.testSuccess(CommonsDistributionStagingMojoTest.java:77)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>        at java.lang.reflect.Method.invoke(Method.java:498)
>        at
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
>        at
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>        at
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
>        at
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>        at
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
>        at
> org.apache.maven.plugin.testing.MojoRule$2.evaluate(MojoRule.java:308)
>        at org.junit.rules.RunRules.evaluate(RunRules.java:20)
>        at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>        at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
>        at
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
>        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>        at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>        at
> org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
>        at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
>        at
> org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
>        at
> org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
>        at
> org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:379)
>        at
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:340)
>        at
> org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
>        at
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:413)
> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
> 2.067 s <<< FAILURE! - in
> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojoTest
> [ERROR]
> testSuccess(org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojoTest)
> Time elapsed: 1.998 s  <<< ERROR!
> org.apache.maven.plugin.MojoExecutionException: Could not build HEADER and
> README html files
>        at
> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojoTest.testSuccess(CommonsDistributionStagingMojoTest.java:77)
> Caused by: java.nio.file.FileSystemException:
> C:\vcs\git\apache\commons\commons-release-plugin\target\testing-commons-release-plugin\scm\source\HEADER.html:
> A required privilege is not held by the client.
> 
>        at
> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojoTest.testSuccess(CommonsDistributionStagingMojoTest.java:77)
> 
> I wonder if this is more than a Windows vs. Linux thing?
> 
> Gary
> 
>> On Mon, May 28, 2018 at 10:30 AM, Rob Tompkins <ch...@gmail.com> wrote:
>> 
>> Git stores linux file permissions, and all the files were 644 (the
>> default), I updated them to 755. Try it now and let me know.
>> 
>> -Rob
>> 
>>> On May 28, 2018, at 11:26 AM, Gary Gregory <ga...@gmail.com>
>> wrote:
>>> 
>>> Hi Rob,
>>> 
>>> I get a different error now running 'mvn clean install site
>>> -Danimal.sniffer.skip':
>>> 
>>> [INFO] Checking out dist from: scm:svn:https://dist.apache.
>>> org/repos/dist/dev/commons/release-plugin
>>> Executing: cmd.exe /X /C "svn --non-interactive checkout
>>> https://dist.apache.org/repos/dist/dev/commons/release-plugin
>>> C:\vcs\git\apache\commons\commons-release-plugin\target\
>>> testing-commons-release-plugin\scm"
>>> Working directory: C:\vcs\git\apache\commons\
>> commons-release-plugin\target\
>>> testing-commons-release-plugin
>>> [INFO] Copying RELEASE-NOTES.txt to working directory.
>>> [ERROR] Could not build HEADER and README html files
>>> java.nio.file.FileSystemException: C:\vcs\git\apache\commons\
>>> commons-release-plugin\target\testing-commons-release-
>> plugin\scm\source\HEADER.html:
>>> A required privilege is not held by the client.
>>> 
>>>       at sun.nio.fs.WindowsException.translateToIOException(
>>> WindowsException.java:86)
>>>       at sun.nio.fs.WindowsException.rethrowAsIOException(
>>> WindowsException.java:97)
>>>       at sun.nio.fs.WindowsException.rethrowAsIOException(
>>> WindowsException.java:102)
>>>       at sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(
>>> WindowsFileSystemProvider.java:585)
>>>       at java.nio.file.Files.createSymbolicLink(Files.java:1043)
>>>       at org.apache.commons.release.plugin.mojos.
>>> CommonsDistributionStagingMojo.buildSymbolicLinks(
>>> CommonsDistributionStagingMojo.java:342)
>>>       at org.apache.commons.release.plugin.mojos.
>>> CommonsDistributionStagingMojo.buildReadmeAndHeaderHtmlFiles(
>>> CommonsDistributionStagingMojo.java:319)
>>>       at org.apache.commons.release.plugin.mojos.
>>> CommonsDistributionStagingMojo.copyDistributionsIntoScmDirect
>> oryStructure(
>>> CommonsDistributionStagingMojo.java:274)
>>>       at org.apache.commons.release.plugin.mojos.
>>> CommonsDistributionStagingMojo.execute(CommonsDistributionStagingMojo
>>> .java:164)
>>>       at org.apache.commons.release.plugin.mojos.
>>> CommonsDistributionStagingMojoTest.testSuccess(
>>> CommonsDistributionStagingMojoTest.java:77)
>>>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>       at sun.reflect.NativeMethodAccessorImpl.invoke(
>>> NativeMethodAccessorImpl.java:62)
>>>       at sun.reflect.DelegatingMethodAccessorImpl.invoke(
>>> DelegatingMethodAccessorImpl.java:43)
>>>       at java.lang.reflect.Method.invoke(Method.java:498)
>>>       at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(
>>> FrameworkMethod.java:50)
>>>       at org.junit.internal.runners.model.ReflectiveCallable.run(
>>> ReflectiveCallable.java:12)
>>>       at org.junit.runners.model.FrameworkMethod.invokeExplosively(
>>> FrameworkMethod.java:47)
>>>       at org.junit.internal.runners.statements.InvokeMethod.
>>> evaluate(InvokeMethod.java:17)
>>>       at org.junit.internal.runners.statements.RunBefores.
>>> evaluate(RunBefores.java:26)
>>>       at org.apache.maven.plugin.testing.MojoRule$2.evaluate(
>>> MojoRule.java:308)
>>>       at org.junit.rules.RunRules.evaluate(RunRules.java:20)
>>>       at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>>>       at org.junit.runners.BlockJUnit4ClassRunner.runChild(
>>> BlockJUnit4ClassRunner.java:78)
>>>       at org.junit.runners.BlockJUnit4ClassRunner.runChild(
>>> BlockJUnit4ClassRunner.java:57)
>>>       at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>>>       at org.junit.runners.ParentRunner$1.schedule(
>> ParentRunner.java:71)
>>>       at org.junit.runners.ParentRunner.runChildren(
>> ParentRunner.java:288)
>>>       at org.junit.runners.ParentRunner.access$000(
>> ParentRunner.java:58)
>>>       at org.junit.runners.ParentRunner$2.evaluate(
>> ParentRunner.java:268)
>>>       at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>>>       at org.apache.maven.surefire.junit4.JUnit4Provider.execute(
>>> JUnit4Provider.java:365)
>>>       at org.apache.maven.surefire.junit4.JUnit4Provider.
>> executeWithRerun(
>>> JUnit4Provider.java:273)
>>>       at org.apache.maven.surefire.junit4.JUnit4Provider.
>>> executeTestSet(JUnit4Provider.java:238)
>>>       at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(
>>> JUnit4Provider.java:159)
>>>       at org.apache.maven.surefire.booter.ForkedBooter.
>>> invokeProviderInSameClassLoader(ForkedBooter.java:379)
>>>       at org.apache.maven.surefire.booter.ForkedBooter.
>> runSuitesInProcess(
>>> ForkedBooter.java:340)
>>>       at org.apache.maven.surefire.booter.ForkedBooter.execute(
>>> ForkedBooter.java:125)
>>>       at org.apache.maven.surefire.booter.ForkedBooter.main(
>>> ForkedBooter.java:413)
>>> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
>>> 2.273 s <<< FAILURE! - in org.apache.commons.release.plugin.mojos.
>>> CommonsDistributionStagingMojoTest
>>> [ERROR] testSuccess(org.apache.commons.release.plugin.mojos.
>>> CommonsDistributionStagingMojoTest)  Time elapsed: 2.117 s  <<< ERROR!
>>> org.apache.maven.plugin.MojoExecutionException: Could not build HEADER
>> and
>>> README html files
>>>       at org.apache.commons.release.plugin.mojos.
>>> CommonsDistributionStagingMojoTest.testSuccess(
>>> CommonsDistributionStagingMojoTest.java:77)
>>> Caused by: java.nio.file.FileSystemException:
>>> C:\vcs\git\apache\commons\commons-release-plugin\target\
>>> testing-commons-release-plugin\scm\source\HEADER.html: A required
>> privilege
>>> is not held by the client.
>>> 
>>>       at org.apache.commons.release.plugin.mojos.
>>> CommonsDistributionStagingMojoTest.testSuccess(
>>> CommonsDistributionStagingMojoTest.java:77)
>>> 
>>> Using:
>>> 
>>> Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297;
>>> 2018-02-24T12:49:05-07:00)
>>> Maven home: C:\Java\apache-maven-3.5.3\bin\..
>>> Java version: 1.8.0_172, vendor: Oracle Corporation
>>> Java home: C:\Program Files\Java\jdk1.8.0_172\jre
>>> Default locale: en_US, platform encoding: Cp1252
>>> OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
>>> 
>>> Gary
>>> 
>>> 
>>> On Mon, May 28, 2018 at 7:21 AM, Rob Tompkins <ch...@gmail.com>
>> wrote:
>>> 
>>>> Curious looks like my test tars/zips didn’t get committed.
>>>> 
>>>> Let me do that.
>>>> 
>>>>> On May 26, 2018, at 10:46 AM, Gary Gregory <ga...@gmail.com>
>>>> wrote:
>>>>> 
>>>>> Hi Rob and All,
>>>>> 
>>>>> When I run 'mvn clean install site -Danimal.sniffer.skip', I get unit
>>>> test
>>>>> failures:
>>>>> 
>>>>> [INFO] -------------------------------------------------------
>>>>> [INFO]  T E S T S
>>>>> [INFO] -------------------------------------------------------
>>>>> [INFO] Running
>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentM
>>>> ojoTest
>>>>> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
>>>>> SLF4J: Defaulting to no-operation (NOP) logger implementation
>>>>> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
>>>> further
>>>>> details.
>>>>> [WARNING] commons.distSvnStagingUrl is not set, the
>>>> commons-release-plugin
>>>>> will not run.
>>>>> [INFO] Detaching Assemblies
>>>>> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
>>>>> 3.886 s <<< FAILURE! - in
>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentM
>>>> ojoTest
>>>>> [ERROR]
>>>>> testSuccess(org.apache.commons.release.plugin.mojos.
>>>> CommonsDistributionDetachmentMojoTest)
>>>>> Time elapsed: 0.052 s  <<< ERROR!
>>>>> org.apache.maven.plugin.MojoExecutionException: Could not find
>> artifact
>>>>> signature for: mockAttachedTar-null type: tar.gz
>>>>>      at
>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentM
>>>> ojoTest.testSuccess(CommonsDistributionDetachmentMojoTest.java:67)
>>>>> Caused by: java.io.FileNotFoundException:
>>>>> src\test\resources\mojos\detach-distributions\target\
>>>> mockAttachedTar-src.tar.gz
>>>>> (The system cannot find the file specified)
>>>>>      at
>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentM
>>>> ojoTest.testSuccess(CommonsDistributionDetachmentMojoTest.java:67)
>>>>> 
>>>>> [INFO] Running
>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
>>>> Test
>>>>> [INFO] This module is marked as a non distribution or assembly module,
>>>> and
>>>>> the plugin will not run.
>>>>> [INFO] Detaching Assemblies
>>>>> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
>>>>> 0.017 s <<< FAILURE! - in
>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
>>>> Test
>>>>> [ERROR]
>>>>> testSuccess(org.apache.commons.release.plugin.mojos.
>>>> CommonsDistributionStagingMojoTest)
>>>>> Time elapsed: 0.005 s  <<< ERROR!
>>>>> org.apache.maven.plugin.MojoExecutionException: Could not find
>> artifact
>>>>> signature for: mockAttachedTar-null type: tar.gz
>>>>>      at
>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
>>>> Test.testSuccess(CommonsDistributionStagingMojoTest.java:74)
>>>>> Caused by: java.io.FileNotFoundException:
>>>>> src\test\resources\mojos\detach-distributions\target\
>>>> mockAttachedTar-src.tar.gz
>>>>> (The system cannot find the file specified)
>>>>>      at
>>>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
>>>> Test.testSuccess(CommonsDistributionStagingMojoTest.java:74)
>>>>> 
>>>>> [INFO] Running
>>>>> org.apache.commons.release.plugin.mojos.CommonsSiteCompressionMojoTest
>>>>> [ERROR] "mvn site" was not run before this goal, or a siteDirectory did
>>>> not
>>>>> exist.
>>>>> [INFO] Current project contains no distributions. Not executing.
>>>>> [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>>>> 0.014 s - in
>>>>> org.apache.commons.release.plugin.mojos.CommonsSiteCompressionMojoTest
>>>>> [INFO] Running
>>>>> org.apache.commons.release.plugin.velocity.
>>>> HeaderHtmlVelocityDelegateTest
>>>>> [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>>>> 0.009 s - in
>>>>> org.apache.commons.release.plugin.velocity.
>>>> HeaderHtmlVelocityDelegateTest
>>>>> [INFO] Running
>>>>> org.apache.commons.release.plugin.velocity.
>>>> ReadmeHtmlVelocityDelegateTest
>>>>> [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>>>> 0.004 s - in
>>>>> org.apache.commons.release.plugin.velocity.
>>>> ReadmeHtmlVelocityDelegateTest
>>>>> [INFO]
>>>>> [INFO] Results:
>>>>> [INFO]
>>>>> [ERROR] Errors:
>>>>> [ERROR]   CommonsDistributionDetachmentMojoTest.testSuccess:67 »
>>>>> MojoExecution Could not...
>>>>> [ERROR]   CommonsDistributionStagingMojoTest.testSuccess:74 »
>>>> MojoExecution
>>>>> Could not fi...
>>>>> [INFO]
>>>>> [ERROR] Tests run: 9, Failures: 0, Errors: 2, Skipped: 0
>>>>> [INFO]
>>>>> [INFO]
>>>>> ------------------------------------------------------------
>> ------------
>>>>> [INFO] BUILD FAILURE
>>>>> [INFO]
>>>>> ------------------------------------------------------------
>> ------------
>>>>> [INFO] Total time: 19.574 s
>>>>> [INFO] Finished at: 2018-05-26T08:35:04-06:00
>>>>> [INFO]
>>>>> ------------------------------------------------------------
>> ------------
>>>>> [ERROR] Failed to execute goal
>>>>> org.apache.maven.plugins:maven-surefire-plugin:2.21.0:test
>>>> (default-test)
>>>>> on project commons-release-plugin: There are test failures.
>>>>> 
>>>>> Any ideas on how to fix that?
>>>>> 
>>>>> Gary
>>>> 
>>>> 
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>>>> For additional commands, e-mail: dev-help@commons.apache.org
>>>> 
>>>> 
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>> For additional commands, e-mail: dev-help@commons.apache.org
>> 
>> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [release-plugin] Unit test failures

Posted by Gary Gregory <ga...@gmail.com>.
I pulled the latest and I get:

[INFO] Preparing to stage distributions
[INFO] Checking out dist from: scm:svn:
https://dist.apache.org/repos/dist/dev/commons/release-plugin
Executing: cmd.exe /X /C "svn --non-interactive checkout
https://dist.apache.org/repos/dist/dev/commons/release-plugin
C:\vcs\git\apache\commons\commons-release-plugin\target\testing-commons-release-plugin\scm"
Working directory:
C:\vcs\git\apache\commons\commons-release-plugin\target\testing-commons-release-plugin
[INFO] Copying RELEASE-NOTES.txt to working directory.
[ERROR] Could not build HEADER and README html files
java.nio.file.FileSystemException:
C:\vcs\git\apache\commons\commons-release-plugin\target\testing-commons-release-plugin\scm\source\HEADER.html:
A required privilege is not held by the client.

        at
sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:86)
        at
sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
        at
sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:102)
        at
sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(WindowsFileSystemProvider.java:585)
        at java.nio.file.Files.createSymbolicLink(Files.java:1043)
        at
org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo.buildSymbolicLinks(CommonsDistributionStagingMojo.java:342)
        at
org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo.buildReadmeAndHeaderHtmlFiles(CommonsDistributionStagingMojo.java:319)
        at
org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo.copyDistributionsIntoScmDirectoryStructure(CommonsDistributionStagingMojo.java:274)
        at
org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo.execute(CommonsDistributionStagingMojo.java:164)
        at
org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojoTest.testSuccess(CommonsDistributionStagingMojoTest.java:77)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
        at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
        at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
        at
org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
        at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
        at
org.apache.maven.plugin.testing.MojoRule$2.evaluate(MojoRule.java:308)
        at org.junit.rules.RunRules.evaluate(RunRules.java:20)
        at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
        at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
        at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
        at
org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:365)
        at
org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(JUnit4Provider.java:273)
        at
org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:238)
        at
org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:159)
        at
org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:379)
        at
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:340)
        at
org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:125)
        at
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:413)
[ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
2.067 s <<< FAILURE! - in
org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojoTest
[ERROR]
testSuccess(org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojoTest)
Time elapsed: 1.998 s  <<< ERROR!
org.apache.maven.plugin.MojoExecutionException: Could not build HEADER and
README html files
        at
org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojoTest.testSuccess(CommonsDistributionStagingMojoTest.java:77)
Caused by: java.nio.file.FileSystemException:
C:\vcs\git\apache\commons\commons-release-plugin\target\testing-commons-release-plugin\scm\source\HEADER.html:
A required privilege is not held by the client.

        at
org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojoTest.testSuccess(CommonsDistributionStagingMojoTest.java:77)

I wonder if this is more than a Windows vs. Linux thing?

Gary

On Mon, May 28, 2018 at 10:30 AM, Rob Tompkins <ch...@gmail.com> wrote:

> Git stores linux file permissions, and all the files were 644 (the
> default), I updated them to 755. Try it now and let me know.
>
> -Rob
>
> > On May 28, 2018, at 11:26 AM, Gary Gregory <ga...@gmail.com>
> wrote:
> >
> > Hi Rob,
> >
> > I get a different error now running 'mvn clean install site
> > -Danimal.sniffer.skip':
> >
> > [INFO] Checking out dist from: scm:svn:https://dist.apache.
> > org/repos/dist/dev/commons/release-plugin
> > Executing: cmd.exe /X /C "svn --non-interactive checkout
> > https://dist.apache.org/repos/dist/dev/commons/release-plugin
> > C:\vcs\git\apache\commons\commons-release-plugin\target\
> > testing-commons-release-plugin\scm"
> > Working directory: C:\vcs\git\apache\commons\
> commons-release-plugin\target\
> > testing-commons-release-plugin
> > [INFO] Copying RELEASE-NOTES.txt to working directory.
> > [ERROR] Could not build HEADER and README html files
> > java.nio.file.FileSystemException: C:\vcs\git\apache\commons\
> > commons-release-plugin\target\testing-commons-release-
> plugin\scm\source\HEADER.html:
> > A required privilege is not held by the client.
> >
> >        at sun.nio.fs.WindowsException.translateToIOException(
> > WindowsException.java:86)
> >        at sun.nio.fs.WindowsException.rethrowAsIOException(
> > WindowsException.java:97)
> >        at sun.nio.fs.WindowsException.rethrowAsIOException(
> > WindowsException.java:102)
> >        at sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(
> > WindowsFileSystemProvider.java:585)
> >        at java.nio.file.Files.createSymbolicLink(Files.java:1043)
> >        at org.apache.commons.release.plugin.mojos.
> > CommonsDistributionStagingMojo.buildSymbolicLinks(
> > CommonsDistributionStagingMojo.java:342)
> >        at org.apache.commons.release.plugin.mojos.
> > CommonsDistributionStagingMojo.buildReadmeAndHeaderHtmlFiles(
> > CommonsDistributionStagingMojo.java:319)
> >        at org.apache.commons.release.plugin.mojos.
> > CommonsDistributionStagingMojo.copyDistributionsIntoScmDirect
> oryStructure(
> > CommonsDistributionStagingMojo.java:274)
> >        at org.apache.commons.release.plugin.mojos.
> > CommonsDistributionStagingMojo.execute(CommonsDistributionStagingMojo
> > .java:164)
> >        at org.apache.commons.release.plugin.mojos.
> > CommonsDistributionStagingMojoTest.testSuccess(
> > CommonsDistributionStagingMojoTest.java:77)
> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >        at sun.reflect.NativeMethodAccessorImpl.invoke(
> > NativeMethodAccessorImpl.java:62)
> >        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> > DelegatingMethodAccessorImpl.java:43)
> >        at java.lang.reflect.Method.invoke(Method.java:498)
> >        at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(
> > FrameworkMethod.java:50)
> >        at org.junit.internal.runners.model.ReflectiveCallable.run(
> > ReflectiveCallable.java:12)
> >        at org.junit.runners.model.FrameworkMethod.invokeExplosively(
> > FrameworkMethod.java:47)
> >        at org.junit.internal.runners.statements.InvokeMethod.
> > evaluate(InvokeMethod.java:17)
> >        at org.junit.internal.runners.statements.RunBefores.
> > evaluate(RunBefores.java:26)
> >        at org.apache.maven.plugin.testing.MojoRule$2.evaluate(
> > MojoRule.java:308)
> >        at org.junit.rules.RunRules.evaluate(RunRules.java:20)
> >        at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
> >        at org.junit.runners.BlockJUnit4ClassRunner.runChild(
> > BlockJUnit4ClassRunner.java:78)
> >        at org.junit.runners.BlockJUnit4ClassRunner.runChild(
> > BlockJUnit4ClassRunner.java:57)
> >        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
> >        at org.junit.runners.ParentRunner$1.schedule(
> ParentRunner.java:71)
> >        at org.junit.runners.ParentRunner.runChildren(
> ParentRunner.java:288)
> >        at org.junit.runners.ParentRunner.access$000(
> ParentRunner.java:58)
> >        at org.junit.runners.ParentRunner$2.evaluate(
> ParentRunner.java:268)
> >        at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
> >        at org.apache.maven.surefire.junit4.JUnit4Provider.execute(
> > JUnit4Provider.java:365)
> >        at org.apache.maven.surefire.junit4.JUnit4Provider.
> executeWithRerun(
> > JUnit4Provider.java:273)
> >        at org.apache.maven.surefire.junit4.JUnit4Provider.
> > executeTestSet(JUnit4Provider.java:238)
> >        at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(
> > JUnit4Provider.java:159)
> >        at org.apache.maven.surefire.booter.ForkedBooter.
> > invokeProviderInSameClassLoader(ForkedBooter.java:379)
> >        at org.apache.maven.surefire.booter.ForkedBooter.
> runSuitesInProcess(
> > ForkedBooter.java:340)
> >        at org.apache.maven.surefire.booter.ForkedBooter.execute(
> > ForkedBooter.java:125)
> >        at org.apache.maven.surefire.booter.ForkedBooter.main(
> > ForkedBooter.java:413)
> > [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
> > 2.273 s <<< FAILURE! - in org.apache.commons.release.plugin.mojos.
> > CommonsDistributionStagingMojoTest
> > [ERROR] testSuccess(org.apache.commons.release.plugin.mojos.
> > CommonsDistributionStagingMojoTest)  Time elapsed: 2.117 s  <<< ERROR!
> > org.apache.maven.plugin.MojoExecutionException: Could not build HEADER
> and
> > README html files
> >        at org.apache.commons.release.plugin.mojos.
> > CommonsDistributionStagingMojoTest.testSuccess(
> > CommonsDistributionStagingMojoTest.java:77)
> > Caused by: java.nio.file.FileSystemException:
> > C:\vcs\git\apache\commons\commons-release-plugin\target\
> > testing-commons-release-plugin\scm\source\HEADER.html: A required
> privilege
> > is not held by the client.
> >
> >        at org.apache.commons.release.plugin.mojos.
> > CommonsDistributionStagingMojoTest.testSuccess(
> > CommonsDistributionStagingMojoTest.java:77)
> >
> > Using:
> >
> > Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297;
> > 2018-02-24T12:49:05-07:00)
> > Maven home: C:\Java\apache-maven-3.5.3\bin\..
> > Java version: 1.8.0_172, vendor: Oracle Corporation
> > Java home: C:\Program Files\Java\jdk1.8.0_172\jre
> > Default locale: en_US, platform encoding: Cp1252
> > OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
> >
> > Gary
> >
> >
> > On Mon, May 28, 2018 at 7:21 AM, Rob Tompkins <ch...@gmail.com>
> wrote:
> >
> >> Curious looks like my test tars/zips didn’t get committed.
> >>
> >> Let me do that.
> >>
> >>> On May 26, 2018, at 10:46 AM, Gary Gregory <ga...@gmail.com>
> >> wrote:
> >>>
> >>> Hi Rob and All,
> >>>
> >>> When I run 'mvn clean install site -Danimal.sniffer.skip', I get unit
> >> test
> >>> failures:
> >>>
> >>> [INFO] -------------------------------------------------------
> >>> [INFO]  T E S T S
> >>> [INFO] -------------------------------------------------------
> >>> [INFO] Running
> >>> org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentM
> >> ojoTest
> >>> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
> >>> SLF4J: Defaulting to no-operation (NOP) logger implementation
> >>> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
> >> further
> >>> details.
> >>> [WARNING] commons.distSvnStagingUrl is not set, the
> >> commons-release-plugin
> >>> will not run.
> >>> [INFO] Detaching Assemblies
> >>> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
> >>> 3.886 s <<< FAILURE! - in
> >>> org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentM
> >> ojoTest
> >>> [ERROR]
> >>> testSuccess(org.apache.commons.release.plugin.mojos.
> >> CommonsDistributionDetachmentMojoTest)
> >>> Time elapsed: 0.052 s  <<< ERROR!
> >>> org.apache.maven.plugin.MojoExecutionException: Could not find
> artifact
> >>> signature for: mockAttachedTar-null type: tar.gz
> >>>       at
> >>> org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentM
> >> ojoTest.testSuccess(CommonsDistributionDetachmentMojoTest.java:67)
> >>> Caused by: java.io.FileNotFoundException:
> >>> src\test\resources\mojos\detach-distributions\target\
> >> mockAttachedTar-src.tar.gz
> >>> (The system cannot find the file specified)
> >>>       at
> >>> org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentM
> >> ojoTest.testSuccess(CommonsDistributionDetachmentMojoTest.java:67)
> >>>
> >>> [INFO] Running
> >>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
> >> Test
> >>> [INFO] This module is marked as a non distribution or assembly module,
> >> and
> >>> the plugin will not run.
> >>> [INFO] Detaching Assemblies
> >>> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
> >>> 0.017 s <<< FAILURE! - in
> >>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
> >> Test
> >>> [ERROR]
> >>> testSuccess(org.apache.commons.release.plugin.mojos.
> >> CommonsDistributionStagingMojoTest)
> >>> Time elapsed: 0.005 s  <<< ERROR!
> >>> org.apache.maven.plugin.MojoExecutionException: Could not find
> artifact
> >>> signature for: mockAttachedTar-null type: tar.gz
> >>>       at
> >>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
> >> Test.testSuccess(CommonsDistributionStagingMojoTest.java:74)
> >>> Caused by: java.io.FileNotFoundException:
> >>> src\test\resources\mojos\detach-distributions\target\
> >> mockAttachedTar-src.tar.gz
> >>> (The system cannot find the file specified)
> >>>       at
> >>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
> >> Test.testSuccess(CommonsDistributionStagingMojoTest.java:74)
> >>>
> >>> [INFO] Running
> >>> org.apache.commons.release.plugin.mojos.CommonsSiteCompressionMojoTest
> >>> [ERROR] "mvn site" was not run before this goal, or a siteDirectory did
> >> not
> >>> exist.
> >>> [INFO] Current project contains no distributions. Not executing.
> >>> [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
> >>> 0.014 s - in
> >>> org.apache.commons.release.plugin.mojos.CommonsSiteCompressionMojoTest
> >>> [INFO] Running
> >>> org.apache.commons.release.plugin.velocity.
> >> HeaderHtmlVelocityDelegateTest
> >>> [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
> >>> 0.009 s - in
> >>> org.apache.commons.release.plugin.velocity.
> >> HeaderHtmlVelocityDelegateTest
> >>> [INFO] Running
> >>> org.apache.commons.release.plugin.velocity.
> >> ReadmeHtmlVelocityDelegateTest
> >>> [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
> >>> 0.004 s - in
> >>> org.apache.commons.release.plugin.velocity.
> >> ReadmeHtmlVelocityDelegateTest
> >>> [INFO]
> >>> [INFO] Results:
> >>> [INFO]
> >>> [ERROR] Errors:
> >>> [ERROR]   CommonsDistributionDetachmentMojoTest.testSuccess:67 »
> >>> MojoExecution Could not...
> >>> [ERROR]   CommonsDistributionStagingMojoTest.testSuccess:74 »
> >> MojoExecution
> >>> Could not fi...
> >>> [INFO]
> >>> [ERROR] Tests run: 9, Failures: 0, Errors: 2, Skipped: 0
> >>> [INFO]
> >>> [INFO]
> >>> ------------------------------------------------------------
> ------------
> >>> [INFO] BUILD FAILURE
> >>> [INFO]
> >>> ------------------------------------------------------------
> ------------
> >>> [INFO] Total time: 19.574 s
> >>> [INFO] Finished at: 2018-05-26T08:35:04-06:00
> >>> [INFO]
> >>> ------------------------------------------------------------
> ------------
> >>> [ERROR] Failed to execute goal
> >>> org.apache.maven.plugins:maven-surefire-plugin:2.21.0:test
> >> (default-test)
> >>> on project commons-release-plugin: There are test failures.
> >>>
> >>> Any ideas on how to fix that?
> >>>
> >>> Gary
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> >> For additional commands, e-mail: dev-help@commons.apache.org
> >>
> >>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>

Re: [release-plugin] Unit test failures

Posted by Rob Tompkins <ch...@gmail.com>.
Git stores linux file permissions, and all the files were 644 (the default), I updated them to 755. Try it now and let me know.

-Rob

> On May 28, 2018, at 11:26 AM, Gary Gregory <ga...@gmail.com> wrote:
> 
> Hi Rob,
> 
> I get a different error now running 'mvn clean install site
> -Danimal.sniffer.skip':
> 
> [INFO] Checking out dist from: scm:svn:https://dist.apache.
> org/repos/dist/dev/commons/release-plugin
> Executing: cmd.exe /X /C "svn --non-interactive checkout
> https://dist.apache.org/repos/dist/dev/commons/release-plugin
> C:\vcs\git\apache\commons\commons-release-plugin\target\
> testing-commons-release-plugin\scm"
> Working directory: C:\vcs\git\apache\commons\commons-release-plugin\target\
> testing-commons-release-plugin
> [INFO] Copying RELEASE-NOTES.txt to working directory.
> [ERROR] Could not build HEADER and README html files
> java.nio.file.FileSystemException: C:\vcs\git\apache\commons\
> commons-release-plugin\target\testing-commons-release-plugin\scm\source\HEADER.html:
> A required privilege is not held by the client.
> 
>        at sun.nio.fs.WindowsException.translateToIOException(
> WindowsException.java:86)
>        at sun.nio.fs.WindowsException.rethrowAsIOException(
> WindowsException.java:97)
>        at sun.nio.fs.WindowsException.rethrowAsIOException(
> WindowsException.java:102)
>        at sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(
> WindowsFileSystemProvider.java:585)
>        at java.nio.file.Files.createSymbolicLink(Files.java:1043)
>        at org.apache.commons.release.plugin.mojos.
> CommonsDistributionStagingMojo.buildSymbolicLinks(
> CommonsDistributionStagingMojo.java:342)
>        at org.apache.commons.release.plugin.mojos.
> CommonsDistributionStagingMojo.buildReadmeAndHeaderHtmlFiles(
> CommonsDistributionStagingMojo.java:319)
>        at org.apache.commons.release.plugin.mojos.
> CommonsDistributionStagingMojo.copyDistributionsIntoScmDirectoryStructure(
> CommonsDistributionStagingMojo.java:274)
>        at org.apache.commons.release.plugin.mojos.
> CommonsDistributionStagingMojo.execute(CommonsDistributionStagingMojo
> .java:164)
>        at org.apache.commons.release.plugin.mojos.
> CommonsDistributionStagingMojoTest.testSuccess(
> CommonsDistributionStagingMojoTest.java:77)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:62)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
>        at java.lang.reflect.Method.invoke(Method.java:498)
>        at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(
> FrameworkMethod.java:50)
>        at org.junit.internal.runners.model.ReflectiveCallable.run(
> ReflectiveCallable.java:12)
>        at org.junit.runners.model.FrameworkMethod.invokeExplosively(
> FrameworkMethod.java:47)
>        at org.junit.internal.runners.statements.InvokeMethod.
> evaluate(InvokeMethod.java:17)
>        at org.junit.internal.runners.statements.RunBefores.
> evaluate(RunBefores.java:26)
>        at org.apache.maven.plugin.testing.MojoRule$2.evaluate(
> MojoRule.java:308)
>        at org.junit.rules.RunRules.evaluate(RunRules.java:20)
>        at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
>        at org.junit.runners.BlockJUnit4ClassRunner.runChild(
> BlockJUnit4ClassRunner.java:78)
>        at org.junit.runners.BlockJUnit4ClassRunner.runChild(
> BlockJUnit4ClassRunner.java:57)
>        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
>        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
>        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
>        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
>        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
>        at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
>        at org.apache.maven.surefire.junit4.JUnit4Provider.execute(
> JUnit4Provider.java:365)
>        at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(
> JUnit4Provider.java:273)
>        at org.apache.maven.surefire.junit4.JUnit4Provider.
> executeTestSet(JUnit4Provider.java:238)
>        at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(
> JUnit4Provider.java:159)
>        at org.apache.maven.surefire.booter.ForkedBooter.
> invokeProviderInSameClassLoader(ForkedBooter.java:379)
>        at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(
> ForkedBooter.java:340)
>        at org.apache.maven.surefire.booter.ForkedBooter.execute(
> ForkedBooter.java:125)
>        at org.apache.maven.surefire.booter.ForkedBooter.main(
> ForkedBooter.java:413)
> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
> 2.273 s <<< FAILURE! - in org.apache.commons.release.plugin.mojos.
> CommonsDistributionStagingMojoTest
> [ERROR] testSuccess(org.apache.commons.release.plugin.mojos.
> CommonsDistributionStagingMojoTest)  Time elapsed: 2.117 s  <<< ERROR!
> org.apache.maven.plugin.MojoExecutionException: Could not build HEADER and
> README html files
>        at org.apache.commons.release.plugin.mojos.
> CommonsDistributionStagingMojoTest.testSuccess(
> CommonsDistributionStagingMojoTest.java:77)
> Caused by: java.nio.file.FileSystemException:
> C:\vcs\git\apache\commons\commons-release-plugin\target\
> testing-commons-release-plugin\scm\source\HEADER.html: A required privilege
> is not held by the client.
> 
>        at org.apache.commons.release.plugin.mojos.
> CommonsDistributionStagingMojoTest.testSuccess(
> CommonsDistributionStagingMojoTest.java:77)
> 
> Using:
> 
> Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297;
> 2018-02-24T12:49:05-07:00)
> Maven home: C:\Java\apache-maven-3.5.3\bin\..
> Java version: 1.8.0_172, vendor: Oracle Corporation
> Java home: C:\Program Files\Java\jdk1.8.0_172\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
> 
> Gary
> 
> 
> On Mon, May 28, 2018 at 7:21 AM, Rob Tompkins <ch...@gmail.com> wrote:
> 
>> Curious looks like my test tars/zips didn’t get committed.
>> 
>> Let me do that.
>> 
>>> On May 26, 2018, at 10:46 AM, Gary Gregory <ga...@gmail.com>
>> wrote:
>>> 
>>> Hi Rob and All,
>>> 
>>> When I run 'mvn clean install site -Danimal.sniffer.skip', I get unit
>> test
>>> failures:
>>> 
>>> [INFO] -------------------------------------------------------
>>> [INFO]  T E S T S
>>> [INFO] -------------------------------------------------------
>>> [INFO] Running
>>> org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentM
>> ojoTest
>>> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
>>> SLF4J: Defaulting to no-operation (NOP) logger implementation
>>> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
>> further
>>> details.
>>> [WARNING] commons.distSvnStagingUrl is not set, the
>> commons-release-plugin
>>> will not run.
>>> [INFO] Detaching Assemblies
>>> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
>>> 3.886 s <<< FAILURE! - in
>>> org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentM
>> ojoTest
>>> [ERROR]
>>> testSuccess(org.apache.commons.release.plugin.mojos.
>> CommonsDistributionDetachmentMojoTest)
>>> Time elapsed: 0.052 s  <<< ERROR!
>>> org.apache.maven.plugin.MojoExecutionException: Could not find artifact
>>> signature for: mockAttachedTar-null type: tar.gz
>>>       at
>>> org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentM
>> ojoTest.testSuccess(CommonsDistributionDetachmentMojoTest.java:67)
>>> Caused by: java.io.FileNotFoundException:
>>> src\test\resources\mojos\detach-distributions\target\
>> mockAttachedTar-src.tar.gz
>>> (The system cannot find the file specified)
>>>       at
>>> org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentM
>> ojoTest.testSuccess(CommonsDistributionDetachmentMojoTest.java:67)
>>> 
>>> [INFO] Running
>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
>> Test
>>> [INFO] This module is marked as a non distribution or assembly module,
>> and
>>> the plugin will not run.
>>> [INFO] Detaching Assemblies
>>> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
>>> 0.017 s <<< FAILURE! - in
>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
>> Test
>>> [ERROR]
>>> testSuccess(org.apache.commons.release.plugin.mojos.
>> CommonsDistributionStagingMojoTest)
>>> Time elapsed: 0.005 s  <<< ERROR!
>>> org.apache.maven.plugin.MojoExecutionException: Could not find artifact
>>> signature for: mockAttachedTar-null type: tar.gz
>>>       at
>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
>> Test.testSuccess(CommonsDistributionStagingMojoTest.java:74)
>>> Caused by: java.io.FileNotFoundException:
>>> src\test\resources\mojos\detach-distributions\target\
>> mockAttachedTar-src.tar.gz
>>> (The system cannot find the file specified)
>>>       at
>>> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
>> Test.testSuccess(CommonsDistributionStagingMojoTest.java:74)
>>> 
>>> [INFO] Running
>>> org.apache.commons.release.plugin.mojos.CommonsSiteCompressionMojoTest
>>> [ERROR] "mvn site" was not run before this goal, or a siteDirectory did
>> not
>>> exist.
>>> [INFO] Current project contains no distributions. Not executing.
>>> [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>> 0.014 s - in
>>> org.apache.commons.release.plugin.mojos.CommonsSiteCompressionMojoTest
>>> [INFO] Running
>>> org.apache.commons.release.plugin.velocity.
>> HeaderHtmlVelocityDelegateTest
>>> [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>> 0.009 s - in
>>> org.apache.commons.release.plugin.velocity.
>> HeaderHtmlVelocityDelegateTest
>>> [INFO] Running
>>> org.apache.commons.release.plugin.velocity.
>> ReadmeHtmlVelocityDelegateTest
>>> [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
>>> 0.004 s - in
>>> org.apache.commons.release.plugin.velocity.
>> ReadmeHtmlVelocityDelegateTest
>>> [INFO]
>>> [INFO] Results:
>>> [INFO]
>>> [ERROR] Errors:
>>> [ERROR]   CommonsDistributionDetachmentMojoTest.testSuccess:67 »
>>> MojoExecution Could not...
>>> [ERROR]   CommonsDistributionStagingMojoTest.testSuccess:74 »
>> MojoExecution
>>> Could not fi...
>>> [INFO]
>>> [ERROR] Tests run: 9, Failures: 0, Errors: 2, Skipped: 0
>>> [INFO]
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] BUILD FAILURE
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [INFO] Total time: 19.574 s
>>> [INFO] Finished at: 2018-05-26T08:35:04-06:00
>>> [INFO]
>>> ------------------------------------------------------------------------
>>> [ERROR] Failed to execute goal
>>> org.apache.maven.plugins:maven-surefire-plugin:2.21.0:test
>> (default-test)
>>> on project commons-release-plugin: There are test failures.
>>> 
>>> Any ideas on how to fix that?
>>> 
>>> Gary
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
>> For additional commands, e-mail: dev-help@commons.apache.org
>> 
>> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Re: [release-plugin] Unit test failures

Posted by Gary Gregory <ga...@gmail.com>.
Hi Rob,

I get a different error now running 'mvn clean install site
-Danimal.sniffer.skip':

[INFO] Checking out dist from: scm:svn:https://dist.apache.
org/repos/dist/dev/commons/release-plugin
Executing: cmd.exe /X /C "svn --non-interactive checkout
https://dist.apache.org/repos/dist/dev/commons/release-plugin
C:\vcs\git\apache\commons\commons-release-plugin\target\
testing-commons-release-plugin\scm"
Working directory: C:\vcs\git\apache\commons\commons-release-plugin\target\
testing-commons-release-plugin
[INFO] Copying RELEASE-NOTES.txt to working directory.
[ERROR] Could not build HEADER and README html files
java.nio.file.FileSystemException: C:\vcs\git\apache\commons\
commons-release-plugin\target\testing-commons-release-plugin\scm\source\HEADER.html:
A required privilege is not held by the client.

        at sun.nio.fs.WindowsException.translateToIOException(
WindowsException.java:86)
        at sun.nio.fs.WindowsException.rethrowAsIOException(
WindowsException.java:97)
        at sun.nio.fs.WindowsException.rethrowAsIOException(
WindowsException.java:102)
        at sun.nio.fs.WindowsFileSystemProvider.createSymbolicLink(
WindowsFileSystemProvider.java:585)
        at java.nio.file.Files.createSymbolicLink(Files.java:1043)
        at org.apache.commons.release.plugin.mojos.
CommonsDistributionStagingMojo.buildSymbolicLinks(
CommonsDistributionStagingMojo.java:342)
        at org.apache.commons.release.plugin.mojos.
CommonsDistributionStagingMojo.buildReadmeAndHeaderHtmlFiles(
CommonsDistributionStagingMojo.java:319)
        at org.apache.commons.release.plugin.mojos.
CommonsDistributionStagingMojo.copyDistributionsIntoScmDirectoryStructure(
CommonsDistributionStagingMojo.java:274)
        at org.apache.commons.release.plugin.mojos.
CommonsDistributionStagingMojo.execute(CommonsDistributionStagingMojo
.java:164)
        at org.apache.commons.release.plugin.mojos.
CommonsDistributionStagingMojoTest.testSuccess(
CommonsDistributionStagingMojoTest.java:77)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(
FrameworkMethod.java:50)
        at org.junit.internal.runners.model.ReflectiveCallable.run(
ReflectiveCallable.java:12)
        at org.junit.runners.model.FrameworkMethod.invokeExplosively(
FrameworkMethod.java:47)
        at org.junit.internal.runners.statements.InvokeMethod.
evaluate(InvokeMethod.java:17)
        at org.junit.internal.runners.statements.RunBefores.
evaluate(RunBefores.java:26)
        at org.apache.maven.plugin.testing.MojoRule$2.evaluate(
MojoRule.java:308)
        at org.junit.rules.RunRules.evaluate(RunRules.java:20)
        at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(
BlockJUnit4ClassRunner.java:78)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(
BlockJUnit4ClassRunner.java:57)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
        at org.apache.maven.surefire.junit4.JUnit4Provider.execute(
JUnit4Provider.java:365)
        at org.apache.maven.surefire.junit4.JUnit4Provider.executeWithRerun(
JUnit4Provider.java:273)
        at org.apache.maven.surefire.junit4.JUnit4Provider.
executeTestSet(JUnit4Provider.java:238)
        at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(
JUnit4Provider.java:159)
        at org.apache.maven.surefire.booter.ForkedBooter.
invokeProviderInSameClassLoader(ForkedBooter.java:379)
        at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(
ForkedBooter.java:340)
        at org.apache.maven.surefire.booter.ForkedBooter.execute(
ForkedBooter.java:125)
        at org.apache.maven.surefire.booter.ForkedBooter.main(
ForkedBooter.java:413)
[ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
2.273 s <<< FAILURE! - in org.apache.commons.release.plugin.mojos.
CommonsDistributionStagingMojoTest
[ERROR] testSuccess(org.apache.commons.release.plugin.mojos.
CommonsDistributionStagingMojoTest)  Time elapsed: 2.117 s  <<< ERROR!
org.apache.maven.plugin.MojoExecutionException: Could not build HEADER and
README html files
        at org.apache.commons.release.plugin.mojos.
CommonsDistributionStagingMojoTest.testSuccess(
CommonsDistributionStagingMojoTest.java:77)
Caused by: java.nio.file.FileSystemException:
C:\vcs\git\apache\commons\commons-release-plugin\target\
testing-commons-release-plugin\scm\source\HEADER.html: A required privilege
is not held by the client.

        at org.apache.commons.release.plugin.mojos.
CommonsDistributionStagingMojoTest.testSuccess(
CommonsDistributionStagingMojoTest.java:77)

Using:

Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297;
2018-02-24T12:49:05-07:00)
Maven home: C:\Java\apache-maven-3.5.3\bin\..
Java version: 1.8.0_172, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.8.0_172\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"

Gary


On Mon, May 28, 2018 at 7:21 AM, Rob Tompkins <ch...@gmail.com> wrote:

> Curious looks like my test tars/zips didn’t get committed.
>
> Let me do that.
>
> > On May 26, 2018, at 10:46 AM, Gary Gregory <ga...@gmail.com>
> wrote:
> >
> > Hi Rob and All,
> >
> > When I run 'mvn clean install site -Danimal.sniffer.skip', I get unit
> test
> > failures:
> >
> > [INFO] -------------------------------------------------------
> > [INFO]  T E S T S
> > [INFO] -------------------------------------------------------
> > [INFO] Running
> > org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentM
> ojoTest
> > SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
> > SLF4J: Defaulting to no-operation (NOP) logger implementation
> > SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for
> further
> > details.
> > [WARNING] commons.distSvnStagingUrl is not set, the
> commons-release-plugin
> > will not run.
> > [INFO] Detaching Assemblies
> > [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
> > 3.886 s <<< FAILURE! - in
> > org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentM
> ojoTest
> > [ERROR]
> > testSuccess(org.apache.commons.release.plugin.mojos.
> CommonsDistributionDetachmentMojoTest)
> > Time elapsed: 0.052 s  <<< ERROR!
> > org.apache.maven.plugin.MojoExecutionException: Could not find artifact
> > signature for: mockAttachedTar-null type: tar.gz
> >        at
> > org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentM
> ojoTest.testSuccess(CommonsDistributionDetachmentMojoTest.java:67)
> > Caused by: java.io.FileNotFoundException:
> > src\test\resources\mojos\detach-distributions\target\
> mockAttachedTar-src.tar.gz
> > (The system cannot find the file specified)
> >        at
> > org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentM
> ojoTest.testSuccess(CommonsDistributionDetachmentMojoTest.java:67)
> >
> > [INFO] Running
> > org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
> Test
> > [INFO] This module is marked as a non distribution or assembly module,
> and
> > the plugin will not run.
> > [INFO] Detaching Assemblies
> > [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
> > 0.017 s <<< FAILURE! - in
> > org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
> Test
> > [ERROR]
> > testSuccess(org.apache.commons.release.plugin.mojos.
> CommonsDistributionStagingMojoTest)
> > Time elapsed: 0.005 s  <<< ERROR!
> > org.apache.maven.plugin.MojoExecutionException: Could not find artifact
> > signature for: mockAttachedTar-null type: tar.gz
> >        at
> > org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
> Test.testSuccess(CommonsDistributionStagingMojoTest.java:74)
> > Caused by: java.io.FileNotFoundException:
> > src\test\resources\mojos\detach-distributions\target\
> mockAttachedTar-src.tar.gz
> > (The system cannot find the file specified)
> >        at
> > org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojo
> Test.testSuccess(CommonsDistributionStagingMojoTest.java:74)
> >
> > [INFO] Running
> > org.apache.commons.release.plugin.mojos.CommonsSiteCompressionMojoTest
> > [ERROR] "mvn site" was not run before this goal, or a siteDirectory did
> not
> > exist.
> > [INFO] Current project contains no distributions. Not executing.
> > [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
> > 0.014 s - in
> > org.apache.commons.release.plugin.mojos.CommonsSiteCompressionMojoTest
> > [INFO] Running
> > org.apache.commons.release.plugin.velocity.
> HeaderHtmlVelocityDelegateTest
> > [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
> > 0.009 s - in
> > org.apache.commons.release.plugin.velocity.
> HeaderHtmlVelocityDelegateTest
> > [INFO] Running
> > org.apache.commons.release.plugin.velocity.
> ReadmeHtmlVelocityDelegateTest
> > [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
> > 0.004 s - in
> > org.apache.commons.release.plugin.velocity.
> ReadmeHtmlVelocityDelegateTest
> > [INFO]
> > [INFO] Results:
> > [INFO]
> > [ERROR] Errors:
> > [ERROR]   CommonsDistributionDetachmentMojoTest.testSuccess:67 »
> > MojoExecution Could not...
> > [ERROR]   CommonsDistributionStagingMojoTest.testSuccess:74 »
> MojoExecution
> > Could not fi...
> > [INFO]
> > [ERROR] Tests run: 9, Failures: 0, Errors: 2, Skipped: 0
> > [INFO]
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] BUILD FAILURE
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] Total time: 19.574 s
> > [INFO] Finished at: 2018-05-26T08:35:04-06:00
> > [INFO]
> > ------------------------------------------------------------------------
> > [ERROR] Failed to execute goal
> > org.apache.maven.plugins:maven-surefire-plugin:2.21.0:test
> (default-test)
> > on project commons-release-plugin: There are test failures.
> >
> > Any ideas on how to fix that?
> >
> > Gary
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
> For additional commands, e-mail: dev-help@commons.apache.org
>
>

Re: [release-plugin] Unit test failures

Posted by Rob Tompkins <ch...@gmail.com>.
Curious looks like my test tars/zips didn’t get committed.

Let me do that.

> On May 26, 2018, at 10:46 AM, Gary Gregory <ga...@gmail.com> wrote:
> 
> Hi Rob and All,
> 
> When I run 'mvn clean install site -Danimal.sniffer.skip', I get unit test
> failures:
> 
> [INFO] -------------------------------------------------------
> [INFO]  T E S T S
> [INFO] -------------------------------------------------------
> [INFO] Running
> org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentMojoTest
> SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
> SLF4J: Defaulting to no-operation (NOP) logger implementation
> SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further
> details.
> [WARNING] commons.distSvnStagingUrl is not set, the commons-release-plugin
> will not run.
> [INFO] Detaching Assemblies
> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
> 3.886 s <<< FAILURE! - in
> org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentMojoTest
> [ERROR]
> testSuccess(org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentMojoTest)
> Time elapsed: 0.052 s  <<< ERROR!
> org.apache.maven.plugin.MojoExecutionException: Could not find artifact
> signature for: mockAttachedTar-null type: tar.gz
>        at
> org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentMojoTest.testSuccess(CommonsDistributionDetachmentMojoTest.java:67)
> Caused by: java.io.FileNotFoundException:
> src\test\resources\mojos\detach-distributions\target\mockAttachedTar-src.tar.gz
> (The system cannot find the file specified)
>        at
> org.apache.commons.release.plugin.mojos.CommonsDistributionDetachmentMojoTest.testSuccess(CommonsDistributionDetachmentMojoTest.java:67)
> 
> [INFO] Running
> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojoTest
> [INFO] This module is marked as a non distribution or assembly module, and
> the plugin will not run.
> [INFO] Detaching Assemblies
> [ERROR] Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed:
> 0.017 s <<< FAILURE! - in
> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojoTest
> [ERROR]
> testSuccess(org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojoTest)
> Time elapsed: 0.005 s  <<< ERROR!
> org.apache.maven.plugin.MojoExecutionException: Could not find artifact
> signature for: mockAttachedTar-null type: tar.gz
>        at
> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojoTest.testSuccess(CommonsDistributionStagingMojoTest.java:74)
> Caused by: java.io.FileNotFoundException:
> src\test\resources\mojos\detach-distributions\target\mockAttachedTar-src.tar.gz
> (The system cannot find the file specified)
>        at
> org.apache.commons.release.plugin.mojos.CommonsDistributionStagingMojoTest.testSuccess(CommonsDistributionStagingMojoTest.java:74)
> 
> [INFO] Running
> org.apache.commons.release.plugin.mojos.CommonsSiteCompressionMojoTest
> [ERROR] "mvn site" was not run before this goal, or a siteDirectory did not
> exist.
> [INFO] Current project contains no distributions. Not executing.
> [INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
> 0.014 s - in
> org.apache.commons.release.plugin.mojos.CommonsSiteCompressionMojoTest
> [INFO] Running
> org.apache.commons.release.plugin.velocity.HeaderHtmlVelocityDelegateTest
> [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
> 0.009 s - in
> org.apache.commons.release.plugin.velocity.HeaderHtmlVelocityDelegateTest
> [INFO] Running
> org.apache.commons.release.plugin.velocity.ReadmeHtmlVelocityDelegateTest
> [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed:
> 0.004 s - in
> org.apache.commons.release.plugin.velocity.ReadmeHtmlVelocityDelegateTest
> [INFO]
> [INFO] Results:
> [INFO]
> [ERROR] Errors:
> [ERROR]   CommonsDistributionDetachmentMojoTest.testSuccess:67 »
> MojoExecution Could not...
> [ERROR]   CommonsDistributionStagingMojoTest.testSuccess:74 » MojoExecution
> Could not fi...
> [INFO]
> [ERROR] Tests run: 9, Failures: 0, Errors: 2, Skipped: 0
> [INFO]
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 19.574 s
> [INFO] Finished at: 2018-05-26T08:35:04-06:00
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-surefire-plugin:2.21.0:test (default-test)
> on project commons-release-plugin: There are test failures.
> 
> Any ideas on how to fix that?
> 
> Gary


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org