Jesse Glick 2f58ceb1a6 [JENKINS-18065] Uncommenting original test.
The actual implementation does not behave as nicely as one would hope, for a few reasons:
1. isEmpty actually tries to load the newestBuild, rather than simply checking whether there is some idOnDisk.
   Arguably this is necessary, since there could be an unloadable build record, in which case it would be technically correct for the map to be considered empty.
2. Loading AbstractLazyLoadRunMap.newestBuild calls search(MAX_VALUE, DESC), which behaves oddly, by doing a binary search, and thus perhaps loading lg(|map|) entries.
   You would think that it would suffice to check for the last member of idOnDisk in index.byId.
3. The iterator eagerly loads the next value before hasNext has even been called.
   Looks bad in a test, though it probably has little practical impact since most callers would be calling hasNext soon afterward anyway.
   Might cause one extra build record to be loaded unnecessarily from a limited RunList.
2014-07-11 17:17:45 -04:00
2014-07-07 23:11:00 -07:00
2013-03-01 18:59:59 -08:00
2014-02-14 13:34:32 +01:00
2014-06-09 13:59:11 -07:00
2012-09-25 11:59:00 -07:00
2014-07-11 17:40:31 +01:00
2014-07-07 10:13:02 +01:00
2013-07-23 22:28:43 +10:00
2011-01-31 18:34:17 -08:00
2011-09-11 16:12:09 +02:00
2014-07-07 23:11:00 -07:00

Jenkins CI

Copyright © 2004–, Kohsuke Kawaguchi, Sun Microsystems, Inc., and a number of other of contributors. Licensed under MIT License.

About

In a nutshell Jenkins CI is the leading open-source continuous integration server. Built with Java, it provides over 930 plugins to support building and testing virtually any project.

Downloads

Non-source downloads such as WAR file and several Linux packages can be found on our Mirrors.

Source

Our latest and greatest source of Jenkins CI can be found on GitHub. Fork us!

News and Website

All about Jenkins CI can be found on our website. Follow us on Twitter @jenkinsci.

Languages
Java 87.1%
HTML 6.3%
JavaScript 3.3%
SCSS 2.3%
Groovy 0.3%
Other 0.6%