dgroup / docker-unittests

Testing of base docker images during CI/CD process
MIT License
35 stars 4 forks source link

#242: NotModifiedException for simple test #243

Closed dgroup closed 5 years ago

dgroup commented 5 years ago

242

dgroup commented 5 years ago

Found 2 issues #244 and #245 .

dgroup commented 5 years ago

@rultor merge

rultor commented 5 years ago

@rultor merge

@dgroup OK, I'll try to merge now. You can check the progress of the merge here

rultor commented 5 years ago

@rultor merge

@dgroup Oops, I failed. You can see the full log here (spent 2min)

    at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
    at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
    at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
    at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
    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.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
    at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
    at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
    at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
    at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
Caused by: org.newsclub.net.unix.AFUNIXSocketException: Permission denied (socket: /run/docker.sock)
    at org.newsclub.net.unix.NativeUnixSocket.connect(Native Method)
    at org.newsclub.net.unix.AFUNIXSocketImpl.connect(AFUNIXSocketImpl.java:137)
    at org.newsclub.net.unix.AFUNIXSocket.connect(AFUNIXSocket.java:107)
    at com.github.dockerjava.jaxrs.ApacheUnixSocket.connect(ApacheUnixSocket.java:62)
    at com.github.dockerjava.jaxrs.UnixConnectionSocketFactory.connectSocket(UnixConnectionSocketFactory.java:74)
    at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)
    at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:373)
    at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:394)
    at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237)
    at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185)
    at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
    at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
    at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72)
    at org.glassfish.jersey.apache.connector.ApacheConnector.apply(ApacheConnector.java:450)
    ... 44 more

Running com.github.dgroup.dockertest.process.output.TextCmdOutputTest
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec

Results :

Tests in error: 
  pull(com.github.dgroup.dockertest.process.docker.cmd.PullTest): org.newsclub.net.unix.AFUNIXSocketException: Permission denied (socket: /run/docker.sock)

Tests run: 95, Failures: 0, Errors: 1, Skipped: 3

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 41.308 s
[INFO] Finished at: 2019-04-13T14:21:25+00:00
[INFO] Final Memory: 44M/230M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project docker-unittests: There are test failures.
[ERROR] 
[ERROR] Please refer to /home/r/repo/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
container cb0d5d900276a73f2b25e6613b5976de158830d25058f28f30f85234d5d2335f is dead
Sat Apr 13 16:21:53 CEST 2019
codecov[bot] commented 5 years ago

Codecov Report

Merging #243 into master will decrease coverage by 0.11%. The diff coverage is 78.57%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #243      +/-   ##
============================================
- Coverage     77.85%   77.73%   -0.12%     
- Complexity      393      395       +2     
============================================
  Files           113      114       +1     
  Lines          1323     1343      +20     
  Branches         59       59              
============================================
+ Hits           1030     1044      +14     
- Misses          255      261       +6     
  Partials         38       38
Impacted Files Coverage Δ Complexity Δ
...ub/dgroup/dockertest/process/docker/cmd/Start.java 100% <100%> (ø) 2 <2> (ø) :arrow_down:
...ithub/dgroup/dockertest/concurrent/Concurrent.java 77.14% <100%> (+0.67%) 8 <0> (ø) :arrow_down:
...hub/dgroup/dockertest/process/docker/cmd/Pull.java 68.42% <68.42%> (ø) 2 <2> (?)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update fad61a9...8c4eb00. Read the comment docs.

codecov[bot] commented 5 years ago

Codecov Report

Merging #243 into master will decrease coverage by 0.11%. The diff coverage is 78.57%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #243      +/-   ##
============================================
- Coverage     77.85%   77.73%   -0.12%     
- Complexity      393      395       +2     
============================================
  Files           113      114       +1     
  Lines          1323     1343      +20     
  Branches         59       59              
============================================
+ Hits           1030     1044      +14     
- Misses          255      261       +6     
  Partials         38       38
Impacted Files Coverage Δ Complexity Δ
...ub/dgroup/dockertest/process/docker/cmd/Start.java 100% <100%> (ø) 2 <2> (ø) :arrow_down:
...ithub/dgroup/dockertest/concurrent/Concurrent.java 77.14% <100%> (+0.67%) 8 <0> (ø) :arrow_down:
...hub/dgroup/dockertest/process/docker/cmd/Pull.java 68.42% <68.42%> (ø) 2 <2> (?)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update fad61a9...8c4eb00. Read the comment docs.

dgroup commented 5 years ago

@rultor merge

rultor commented 5 years ago

@rultor merge

@dgroup OK, I'll try to merge now. You can check the progress of the merge here

rultor commented 5 years ago

@rultor merge

@dgroup Done! FYI, the full log is here (took me 2min)