Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-26764

A couple of tests fail

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: p4-plugin
    • Labels:
      None
    • Environment:
      windows, p4jenkins 1.1.4-SNAPSHOT
    • Similar Issues:

      Description

      here are the errors:

      org.jenkinsci.plugins.p4.client.ConnectionTest: Unable to delete file: tmp-p4root\db.workingx

      and

      java.nio.file.FileSystemException: C:\Users\trand8\AppData\Local\Temp\hudson6220150106327700823tmp\cvs\WEB-INF\lib\class
      es.jar: The process cannot access the file because it is being used by another process.
      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.implDelete(WindowsFileSystemProvider.java:269)
      at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103)
      at java.nio.file.Files.delete(Files.java:1079)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at hudson.Util.deleteFile(Util.java:239)
      at hudson.Util.deleteRecursive(Util.java:307)
      at hudson.Util.deleteContentsRecursive(Util.java:204)
      at hudson.Util.deleteRecursive(Util.java:298)
      at hudson.Util.deleteContentsRecursive(Util.java:204)
      at hudson.Util.deleteRecursive(Util.java:298)
      at hudson.Util.deleteContentsRecursive(Util.java:204)
      at hudson.Util.deleteRecursive(Util.java:298)
      at hudson.Util.deleteContentsRecursive(Util.java:204)
      at hudson.Util.deleteRecursive(Util.java:298)
      at org.jvnet.hudson.test.TestPluginManager$1.run(TestPluginManager.java:146)

      Results :

      Failed tests: testManual_Modtime(org.jenkinsci.plugins.p4.client.ConnectionTest): expected:<1397049803000> but was:<14
      22999440444>

        Attachments

          Activity

          Hide
          p4paul Paul Allen added a comment -

          Windows... long sigh...

          Sometimes after a 'p4 admin stop' it doesn't shut down the thread and waits a bit holding resources (files or sockets). I tried adding some delays/retries for startup, perhaps I need then for tear down too.

          Show
          p4paul Paul Allen added a comment - Windows... long sigh... Sometimes after a 'p4 admin stop' it doesn't shut down the thread and waits a bit holding resources (files or sockets). I tried adding some delays/retries for startup, perhaps I need then for tear down too.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Paul Allen
          Path:
          src/test/java/org/jenkinsci/plugins/p4/P4Server.java
          http://jenkins-ci.org/commit/p4-plugin/d7e62db320a3f32e8d4ca400c36ed67dc06817e1
          Log:
          Adding retries (5) to P4Server.clean (stuartr).

          JENKINS-26764

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Paul Allen Path: src/test/java/org/jenkinsci/plugins/p4/P4Server.java http://jenkins-ci.org/commit/p4-plugin/d7e62db320a3f32e8d4ca400c36ed67dc06817e1 Log: Adding retries (5) to P4Server.clean (stuartr). JENKINS-26764
          Hide
          p4paul Paul Allen added a comment -

          Ready for release

          Show
          p4paul Paul Allen added a comment - Ready for release
          Hide
          p4paul Paul Allen added a comment -

          Released in 1.4.7

          Show
          p4paul Paul Allen added a comment - Released in 1.4.7

            People

            • Assignee:
              Unassigned
              Reporter:
              dantran dan tran
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: