tools/perf/cli_tools/flakiness_cli/cached_api.py
def GetTestResults(master, builder, test_type):
  """Get a test results data frame and keep a cached copy."""
  def make_frame():
    data = api.GetTestResults(master, builder, test_type)
    return frames.TestResultsDataFrame(data)

  basename = hashlib.md5('/'.join([master, builder, test_type])).hexdigest()
  return frames.GetWithCache(
      basename + '.pkl', make_frame, expires_after=datetime.timedelta(hours=3))
Get a test results data frame and keep a cached copy.
Get a test results data frame and keep a cached copy.
Get a test results data frame and keep a cached copy .
def GetTestResults(master, builder, test_type):
  def make_frame():
    data = api.GetTestResults(master, builder, test_type)
    return frames.TestResultsDataFrame(data)
  basename = hashlib.md5('/'.join([master, builder, test_type])).hexdigest()
  return frames.GetWithCache(
      basename + '.pkl', make_frame, expires_after=datetime.timedelta(hours=3))
def GetTestResults ( master , builder , test_type ) : def make_frame ( ) : data = api . GetTestResults ( master , builder , test_type ) return frames . TestResultsDataFrame ( data ) basename = hashlib . md5 ( '/' . join ( [ master , builder , test_type ] ) ) . hexdigest ( ) return frames . GetWithCache ( basename + '.pkl' , make_frame , expires_after = datetime . timedelta ( hours = 3 ) )
Get a test results data frame and keep a cached copy.
Get a test results data frame and keep a cached copy .
"""Get a test results data frame and keep a cached copy."""
master
builder
test_type