Skip to content

Cache for successful test runs#74

Merged
nicolasnoble merged 2 commits intogrpc:masterfrom
ctiller:run_tests_fast
Jan 16, 2015
Merged

Cache for successful test runs#74
nicolasnoble merged 2 commits intogrpc:masterfrom
ctiller:run_tests_fast

Conversation

@ctiller
Copy link
Copy Markdown
Member

@ctiller ctiller commented Jan 16, 2015

By default don't re-run tests that have already run successfully, to
reduce latency between making a change and seeing if it fixed the last
thing that you were trying to fix.

By default don't re-run tests that have already run successfully, to
reduce latency between making a change and seeing if it fixed the last
thing that you were trying to fix.
@ctiller ctiller assigned ctiller and nicolasnoble and unassigned ctiller Jan 16, 2015
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line length :-P

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

On Thu Jan 15 2015 at 5:22:22 PM Nicolas Noble notifications@github.com
wrote:

In tools/run_tests/run_tests.py
#74 (diff):

  • def init(self):
  • self._last_successful_run = {}
  • def should_run(self, cmdline, bin_hash):
  • cmdline = ' '.join(cmdline)
  • if cmdline not in self._last_successful_run:
  •  return True
    
  • if self._last_successful_run[cmdline] != bin_hash:
  •  return True
    
  • return False
  • def finished(self, cmdline, bin_hash):
  • self._last_successful_run[' '.join(cmdline)] = bin_hash
  • def dump(self):
  • return [{'cmdline': k, 'hash': v} for k, v in self._last_successful_run.iteritems()]

line length :-P


Reply to this email directly or view it on GitHub
https://github.com/google/grpc/pull/74/files#r23057960.

nicolasnoble added a commit that referenced this pull request Jan 16, 2015
Cache for successful test runs
@nicolasnoble nicolasnoble merged commit 3903bcf into grpc:master Jan 16, 2015
@ctiller ctiller deleted the run_tests_fast branch January 16, 2015 23:22
stanley-cheung referenced this pull request in stanley-cheung/grpc Aug 27, 2015
Removing java examples from grpc-common
apolcyn referenced this pull request in apolcyn/grpc Jul 25, 2016
Added section on Blocking and Non Blocking in the principles post.
@lock lock bot locked as resolved and limited conversation to collaborators Feb 2, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants