9121332c18e024d417d1aeb189ec98f295ffc694,perfkitbenchmarker/linux_packages/epel_release.py,,YumInstall,#Any#,47

Before Change


  try:
    vm.InstallPackages("epel-release")
  except errors.VirtualMachine.RemoteCommandError:
    stdout, _ = vm.RemoteCommand("cat /etc/redhat-release")
    major_version = int(re.search("release ([0-9])", stdout).group(1))
    if major_version == 6:
      epel_rpm = EPEL6_RPM
    elif major_version == 7:

After Change



def YumInstall(vm):
  Installs epel-release repo.
  if vm.OS_TYPE not in _EPEL_URLS:
    raise errors.Setup.InvalidConfigurationError(
        "os_type {} not in {}".format(vm.OS_TYPE, sorted(_EPEL_URLS)))
  if IsEpelRepoInstalled(vm):
    logging.info("EPEL repo already installed")
    return
  url = _EPEL_URLS[vm.OS_TYPE]
  if url:
    vm.InstallPackages(url)
  if vm.OS_TYPE in _EPEL_CMDS:
    vm.RemoteCommand(_EPEL_CMDS[vm.OS_TYPE])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 9121332c18e024d417d1aeb189ec98f295ffc694
Time: 2020-07-28
Author: chriswilkes@google.com
File Name: perfkitbenchmarker/linux_packages/epel_release.py
Class Name:
Method Name: YumInstall


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 45652fa7a59b658596a7c6365cb2347cd33eb8e8
Time: 2019-03-12
Author: ferneyhough@google.com
File Name: perfkitbenchmarker/linux_benchmarks/horovod_benchmark.py
Class Name:
Method Name: Run


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 2e2c6cc8a6c9c51fdcee445dcc479ac3b981f8e5
Time: 2020-04-03
Author: p3rf@google.com
File Name: perfkitbenchmarker/linux_packages/cuda_toolkit.py
Class Name:
Method Name: AptInstall