1. 09 12月, 2017 1 次提交
  2. 08 12月, 2017 1 次提交
  3. 05 12月, 2017 2 次提交
  4. 04 12月, 2017 2 次提交
  5. 03 12月, 2017 2 次提交
  6. 02 12月, 2017 4 次提交
  7. 01 12月, 2017 3 次提交
    • D
      [JENKINS-36088] Use NIO implementations of chmod and mode by default (#3135) · fdccc0e8
      Devin Nusbaum 提交于
      * Use NIO for FilePath#chmod and IOUtils#mode
      
      * Add tests for NIO mode and chmod implementations
      
      * Add test, remove new method, and update JavaDoc
      
      * Provide system property to use native implementations of chmod and mode
      
      * Revert unrelated whitespace modification
      
      * Don't remove exception from throws and put imports in original location
      
      * Fix broken JavaDoc links
      
      * Ignore file type bits (above 0o7777) in Util#modeToPermission
      
      * Use octal for constants and don't include file type bits
      
      * Revert unnecessary changes to TarArchiverTest
      
      * Add assertion that non-permission bits are ignored by chmod
      
      * Use NIO copy with StandardCopyOption.COPY_ATTRIBUTES in copyToWithPermissions where possible
      
      * Catch InvalidPathException and convert it to IOException
      
      * Create utility method for File#toPath and use File#createDirectories after review
      
      * Remove useless calls to toAbsolutePath and getAbsoluteFile
      
      * Fix typos and use octal for constant after review
      
      * Add test for behavior of copyToWithPermission with special bits
      fdccc0e8
    • O
      Add default implementations of deprecated methods of BuilableItem and Item. (#3142) · 88248577
      Oleg Nenashev 提交于
      * Add default implementations to deprecated methods of BuilableItem and Item.
      
      Currently the interface requires the API user to implement already deprecated methods.
      It does not make much sense, and the API could be simplified.
      
      * Address comments from @jglick
      88248577
    • J
      7cbc8f55
  8. 30 11月, 2017 1 次提交
  9. 29 11月, 2017 5 次提交
  10. 28 11月, 2017 3 次提交
  11. 27 11月, 2017 5 次提交
    • O
      Merge pull request #3157 from Jimilian/optimise_start_of_workflow_job · 80b515e9
      Oleg Nenashev 提交于
      If task can be run only on master, use shortcut
      80b515e9
    • G
      update to the newest version · 8bb8057e
      Gentle Yang 提交于
      8bb8057e
    • K
      2e920c7d
    • K
      35b62132
    • B
      Do not force SYNC · 465f85e3
      Baptiste Mathus 提交于
      It might be preferrable from a consistency standpoint,
      but many CLI tests start failing when you force this.
      
      So, as the previous behaviour was not forcing the sync, this seems
      to show there could be unintended behavioural changes in effect.
      
      Possibly, we'll want to address this later, but as the main goal
      here was to make commit() atomic as much as possible, fixing
      this is probably another story anyway.
      
      Note: I was *never* able to reproduce those failures on my machine in
      a normal env dev. It was only visible in CI.
      I finally managed to make it reproducible (but still a bit randomly) by
      using Docker resource constraints, using something like this:
      
      * cd to jenkins local clone
      * `docker run -ti -v m2repo:/root/.m2/repository -v $PWD:/work -v ~/.m2/settings.xml:/root/.m2/settings.xml:ro -v ~/.m2/settings-security.xml:/root/.m2/settings-security.xml:ro --device-write-iops /dev/mapper/fedora-home:40 --device-read-iops /dev/mapper/fedora-home:40  --device-write-bps /dev/mapper/fedora-home:10m --device-read-bps /dev/mapper/fedora-home:10m maven:3.5.2-jdk-8 bash`
      * cd /work
      * `mvn clean install -Dtest=WaitNodeOfflineCommandTest,RunRangeCommandTest -Dfindbugs.skip=true  -DfailIfNoTests=false -Dskip.npm=true`
      
      Failure example:
      
      ```
      ERROR] Tests run: 6, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 55.68OfflineCommandTest
      [ERROR] waitNodeOfflineShouldSucceedOnDisconnectingNode(hudson.cli.WaitNodeOf  <<< FAILURE!
      java.lang.AssertionError:
      
      Expected: <true>
           but: was <false>
              at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
              at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:8)
              at hudson.cli.WaitNodeOfflineCommandTest.waitNodeOfflineShouldSucceedndTest.java:128)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorIm
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAc
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(Framew
              at org.junit.internal.runners.model.ReflectiveCallable.run(Reflective
              at org.junit.runners.model.FrameworkMethod.invokeExplosively(Framewor
              at org.junit.internal.runners.statements.InvokeMethod.evaluate(Invoke
              at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefor
              at org.jvnet.hudson.test.JenkinsRule$1.evaluate(JenkinsRule.java:542)
              at org.junit.internal.runners.statements.FailOnTimeout$CallableStatem
              at org.junit.internal.runners.statements.FailOnTimeout$CallableStatem
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at java.lang.Thread.run(Thread.java:748)
      
      [ERROR] waitNodeOfflineShouldSucceedOnDisconnectedNode(hudson.cli.WaitNodeOff <<< FAILURE!
      java.lang.AssertionError
      ```
      465f85e3
  12. 26 11月, 2017 5 次提交
  13. 25 11月, 2017 1 次提交
  14. 24 11月, 2017 1 次提交
    • B
      Log exception in case of failure · 4c50c7a9
      Baptiste Mathus 提交于
      I see we enter that catch, and the `else` in a failing test.
      But I'm somewhat stuck since I miss both the stack, and even at
      least the exception being thrown and not being an
      `AtomicMoveNotSupportedException`.
      
      It's possibly an `IOException` or some subclass. But still having the
      stack could help understand why the test fails, and provide more
      data for diagnosis in the future in production use.
      
      ```
      === Starting hudson.cli.RunRangeCommandTest
         0.007 [id=96]	WARNING	o.jvnet.hudson.test.JenkinsRule#before: Jenkins.theInstance was not cleared by a previous test, doing that now
         0.018 [id=96]	INFO	o.jvnet.hudson.test.JenkinsRule#createWebServer: Running on http://localhost:45833/jenkins/
         0.037 [id=15]	WARNING	jenkins.model.Jenkins#cleanUp: This instance is no longer the singleton, ignoring cleanUp()
         0.345 [id=96]	WARNING	hudson.util.AtomicFileWriter#commit: Unable to move atomically, falling back to non-atomic move.
         0.345 [id=96]	SEVERE	hudson.util.AtomicFileWriter#commit: Unable to move /home/jenkins/workspace/Core_jenkins_PR-2548-5VRJ4BBBSEGVOZEA7OVAL2YLTLCBL55RB4LDQIZN56WJZD4M6ZKA/test/target/jenkinsTests.tmp/jenkins333129509690162870test/atomic9184049448662376708tmp to /home/jenkins/workspace/Core_jenkins_PR-2548-5VRJ4BBBSEGVOZEA7OVAL2YLTLCBL55RB4LDQIZN56WJZD4M6ZKA/test/target/jenkinsTests.tmp/jenkins333129509690162870test/secret.key. Attempting to delete /home/jenkins/workspace/Core_jenkins_PR-2548-5VRJ4BBBSEGVOZEA7OVAL2YLTLCBL55RB4LDQIZN56WJZD4M6ZKA/test/target/jenkinsTests.tmp/jenkins333129509690162870test/atomic9184049448662376708tmp and abandoning.
      ```
      4c50c7a9
  15. 23 11月, 2017 4 次提交
    • D
      Merge pull request #3153 from jsoref/help · e3b695fe
      Daniel Beck 提交于
      misc UX changes
      e3b695fe
    • B
      Try to get the future for 10 seconds before timing out · 9b482009
      Baptiste Mathus 提交于
      Should make the test more robust on variously performing setups.
      9b482009
    • B
      Fix RequireUpperBoundDeps issue · fed7f2e3
      Baptiste Mathus 提交于
      ```
      WARNING] Rule 3: org.apache.maven.plugins.enforcer.RequireUpperBoundDeps fai
      Failed while enforcing RequireUpperBoundDeps. The error(s) are [
      Require upper bound dependencies error for org.objenesis:objenesis:2.1 paths
      +-org.jenkins-ci.main:test:2.92-SNAPSHOT
        +-org.mockito:mockito-core:1.10.19
          +-org.objenesis:objenesis:2.1
      and
      +-org.jenkins-ci.main:test:2.92-SNAPSHOT
        +-org.awaitility:awaitility:3.0.0
          +-org.objenesis:objenesis:2.5.1
      ```
      fed7f2e3
    • B
      Retry assertion for 10 seconds before failing · e50d4d71
      Baptiste Mathus 提交于
      Also reduce the time 250 ms (instead of 1 second previously) between
      retries to hopefully reduce the test duration on quick enough setups,
      and still degrade nicely on less performing ones.
      e50d4d71