def _wa_get_kernel_sha1(self, wa_dir): """ Find the SHA1 of the kernel that a WA3 run was run against """ with open(os.path.join(wa_dir, '__meta', 'target_info.json')) as f: target_info = json.load(f) return KernelVersion(target_info['kernel_release']).sha1
def fast_ramp(self): # The EWMA "fast ramp up" feature has been merged only in kernel TBD # TODO fix kernel version return False min_kernel = KernelVersion('5.4-rc1').parts cur_kernel = self.plat_info['kernel']['version'].parts return cur_kernel < min_kernel
def kernel_version_from_pod(pod): release_string = pod['kernel_release'] version_string = pod['kernel_version'] if release_string: if version_string: kernel_string = '{} #{}'.format(release_string, version_string) else: kernel_string = release_string else: kernel_string = '#{}'.format(version_string) return KernelVersion(kernel_string)
def fast_ramp(self): min_kernel = KernelVersion('5.5').parts cur_kernel = self.plat_info['kernel']['version'].parts return cur_kernel < min_kernel
def wa_get_kernel_sha1(self, wa_dir): with open(os.path.join(wa_dir, '__meta', 'target_info.json')) as f: target_info = json.load(f) return KernelVersion(target_info['kernel_release']).sha1