diff options
author | David Garcia Quintas <dgq@google.com> | 2016-05-17 17:19:33 -0700 |
---|---|---|
committer | David Garcia Quintas <dgq@google.com> | 2016-05-17 17:19:33 -0700 |
commit | f54171c18b427a3165b0612e316d0d86db96c176 (patch) | |
tree | 2d7edd2f109adb525f45bfd2c95d8c38ffea4ae5 /tools/run_tests/jobset.py | |
parent | 3370b8bbcde704d6f7072c69dbe1acdce9f8c88b (diff) | |
parent | 9e9f7b62c706245cd74de1a7f01c03ba0bd96b0b (diff) |
Merge branch 'moar-compression-public-refactorings' into compression_md_level_bis
Diffstat (limited to 'tools/run_tests/jobset.py')
-rwxr-xr-x | tools/run_tests/jobset.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tools/run_tests/jobset.py b/tools/run_tests/jobset.py index e9675fb785..d3259e724d 100755 --- a/tools/run_tests/jobset.py +++ b/tools/run_tests/jobset.py @@ -344,6 +344,7 @@ class Jobset(object): self._add_env = add_env self.resultset = {} self._remaining = None + self._start_time = time.time() def set_remaining(self, remaining): self._remaining = remaining @@ -413,6 +414,11 @@ class Jobset(object): if dead: return if (not self._travis): rstr = '' if self._remaining is None else '%d queued, ' % self._remaining + if self._remaining is not None and self._completed > 0: + now = time.time() + sofar = now - self._start_time + remaining = sofar / self._completed * (self._remaining + len(self._running)) + rstr = 'ETA %.1f sec; %s' % (remaining, rstr) message('WAITING', '%s%d jobs running, %d complete, %d failed' % ( rstr, len(self._running), self._completed, self._failures)) if platform_string() == 'windows': @@ -457,7 +463,7 @@ def tag_remaining(xs): staging = [] for x in xs: staging.append(x) - if len(staging) > 1000: + if len(staging) > 5000: yield (staging.pop(0), None) n = len(staging) for i, x in enumerate(staging): |