• Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Minor Minor
    • core
    • Jenkins-1.520, JRE1.7.0_17, Windows7 64bits

      Some tests in jenkins-test-harness fails in Windows.
      This is very inconvenient for I cannot test regressions in Windows.

      I know following tests fails with Jenkins-1.520:

      • hudson.bugs.JnlpAccessWithSecuredHudsonTest: fails with Java1.6, and not finish with Java 1.7.
      • hudson.ClassicPluginStrategyTest: fails to delete classes.jar.
      • hudson.console.ConsoleAnnotatorTest: problem with CRLF.
      • hudson.maven.AbortedMavenBuildTest: fails to delete temporary directory in tearDown.
      • hudson.maven.MavenProjectTest: build interrupted.
      • hudson.model.JobQueueTest: fails to delete temporary directory in tearDown.
      • hudson.model.QueueTest: problem with CRLF.
      • hudson.model.UpdateSiteTest: fails to access local files with query parameters.
      • hudson.PluginManagerTest: fails to delete classes.jar.
      • hudson.tasks.junit.JUnitResultArchiverTest: build timeouted.
      • hudson.util.FormFieldValidatorTest: fails to delete classes.jar.

          [JENKINS-18643] Make tests run on Windows

          Code changed in jenkins
          User: ikedam
          Path:
          test/src/test/java/hudson/console/ConsoleAnnotatorTest.java
          test/src/test/java/hudson/model/QueueTest.java
          http://jenkins-ci.org/commit/jenkins/e3ad0561aeb4afc481d2e4e80190fa52e0f4974c
          Log:
          JENKINS-18643 Make tests run on Windows. Use line.separator property instead of LF.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: test/src/test/java/hudson/console/ConsoleAnnotatorTest.java test/src/test/java/hudson/model/QueueTest.java http://jenkins-ci.org/commit/jenkins/e3ad0561aeb4afc481d2e4e80190fa52e0f4974c Log: JENKINS-18643 Make tests run on Windows. Use line.separator property instead of LF.

          Code changed in jenkins
          User: ikedam
          Path:
          test/src/test/java/hudson/model/UpdateSiteTest.java
          http://jenkins-ci.org/commit/jenkins/5cfc002081593379c4713f0ca370d56824107378
          Log:
          JENKINS-18643 Make tests run on Windows. Use local HTTP server to access update-center.json for test.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: ikedam Path: test/src/test/java/hudson/model/UpdateSiteTest.java http://jenkins-ci.org/commit/jenkins/5cfc002081593379c4713f0ca370d56824107378 Log: JENKINS-18643 Make tests run on Windows. Use local HTTP server to access update-center.json for test.

          Code changed in jenkins
          User: Kohsuke Kawaguchi
          Path:
          test/src/test/java/hudson/console/ConsoleAnnotatorTest.java
          test/src/test/java/hudson/model/QueueTest.java
          test/src/test/java/hudson/model/UpdateSiteTest.java
          http://jenkins-ci.org/commit/jenkins/09cf96f33c9075355fb36b42373c76029c59ad8f
          Log:
          Merge pull request #854 from ikedam/feature/JENKINS-18643-1

          [FIXED JENKINS-18643] Make tests run on Windows (line break character, query parameters for file schema)

          Compare: https://github.com/jenkinsci/jenkins/compare/3376cf01580e...09cf96f33c90

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: test/src/test/java/hudson/console/ConsoleAnnotatorTest.java test/src/test/java/hudson/model/QueueTest.java test/src/test/java/hudson/model/UpdateSiteTest.java http://jenkins-ci.org/commit/jenkins/09cf96f33c9075355fb36b42373c76029c59ad8f Log: Merge pull request #854 from ikedam/feature/ JENKINS-18643 -1 [FIXED JENKINS-18643] Make tests run on Windows (line break character, query parameters for file schema) Compare: https://github.com/jenkinsci/jenkins/compare/3376cf01580e...09cf96f33c90

          dogfood added a comment -

          Integrated in jenkins_main_trunk #2758

          Result = SUCCESS

          dogfood added a comment - Integrated in jenkins_main_trunk #2758 Result = SUCCESS

          Daniel Beck added a comment -

          Commit comments mention this should be fixed?

          Daniel Beck added a comment - Commit comments mention this should be fixed?

          Oleg Nenashev added a comment -

          Unfortunately, the answer no.

          Jenkins builds do not work on Windows.
          In particular, the harness test suite usually fails on temporary data cleanup.

          Oleg Nenashev added a comment - Unfortunately, the answer no. Jenkins builds do not work on Windows. In particular, the harness test suite usually fails on temporary data cleanup.

          ikedam added a comment -

          I gave up this for JENKINS-4409, the problem a temporary folder created in a test cannot be deleted in Windows.

          ikedam added a comment - I gave up this for JENKINS-4409 , the problem a temporary folder created in a test cannot be deleted in Windows.

          Jesse Glick added a comment -

          Are there specific problems here not already covered by JENKINS-4409?

          Jesse Glick added a comment - Are there specific problems here not already covered by JENKINS-4409 ?

          ikedam added a comment -

          All problems I listed in the description are resolved. Thanks a lot!

          I tried run all tests on Windows with the latest master (dac7dfe), and saw following new problems:

          • hudson.PluginManagerTest#prevalidateConfig
            • Tries to access a local file with a query string (trailing ?param=value).
            • This is the same problem to 5cfc002 and can be fixed in the same way.
          • hudson.tasks.MavenTest#sensitiveParameters
            • The build log contains the content of the password parameter.
            • The build log was:
              Legacy code started this job.  No cause information is available
              Building in workspace C:\Users\ikedam\Desktop\workspace\jenkins\test\target\hudson5918984730964172897test\workspace\test0
              Deleting existing workspace C:\Users\ikedam\Desktop\workspace\jenkins\test\target\hudson5918984730964172897test\workspace\test0
              Staging file:/C:/Users/ikedam/Desktop/workspace/jenkins/test/target/test-classes/hudson/tasks/maven-empty.zip
              [test0] $ cmd.exe /C '"mvn.bat -Dstring2=Value2 -Dstring=defaultValue -Dpassword=12345 clean package && exit %%ERRORLEVEL%%"'
              
            • I'm not sure what's the expected result.
          • hudson.bugs.JnlpAccessWithSecuredHudsonTest#testServiceUsingDirectSecret
            • Hangs up. It can stack for 1 minutes for its implementation, but apparently it stacked over 10 minutes...

          Let me have more time to see details of those failures.

          ikedam added a comment - All problems I listed in the description are resolved. Thanks a lot! I tried run all tests on Windows with the latest master ( dac7dfe ), and saw following new problems: hudson.PluginManagerTest#prevalidateConfig Tries to access a local file with a query string (trailing ?param=value). This is the same problem to 5cfc002 and can be fixed in the same way. hudson.tasks.MavenTest#sensitiveParameters The build log contains the content of the password parameter. The build log was: Legacy code started this job. No cause information is available Building in workspace C:\Users\ikedam\Desktop\workspace\jenkins\test\target\hudson5918984730964172897test\workspace\test0 Deleting existing workspace C:\Users\ikedam\Desktop\workspace\jenkins\test\target\hudson5918984730964172897test\workspace\test0 Staging file:/C:/Users/ikedam/Desktop/workspace/jenkins/test/target/test-classes/hudson/tasks/maven-empty.zip [test0] $ cmd.exe /C '"mvn.bat -Dstring2=Value2 -Dstring=defaultValue -Dpassword=12345 clean package && exit %%ERRORLEVEL%%"' I'm not sure what's the expected result. hudson.bugs.JnlpAccessWithSecuredHudsonTest#testServiceUsingDirectSecret Hangs up. It can stack for 1 minutes for its implementation, but apparently it stacked over 10 minutes... Let me have more time to see details of those failures.

          ikedam added a comment -

          Sorry, but I give up this issue as I don't enough time to work on.

          ikedam added a comment - Sorry, but I give up this issue as I don't enough time to work on.

            ikedam ikedam
            ikedam ikedam
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: