content/test/gpu/gpu_tests/skia_gold_integration_test_base.py
def GetGoldJsonKeys(self, page):
    """Get all the JSON metadata that will be passed to golctl."""
    img_params = self.GetImageParameters(page)
    # The frequently changing last part of the ANGLE driver version (revision of
    # some sort?) messes a bit with inexact matching since each revision will
    # be treated as a separate trace, so strip it off.
    _StripAngleRevisionFromDriver(img_params)
    # All values need to be strings, otherwise goldctl fails.
    gpu_keys = {
        'vendor_id':
        _ToHexOrNone(img_params.vendor_id),
        'device_id':
        _ToHexOrNone(img_params.device_id),
        'vendor_string':
        _ToNonEmptyStrOrNone(img_params.vendor_string),
        'device_string':
        _ToNonEmptyStrOrNone(img_params.device_string),
        'msaa':
        str(img_params.msaa),
        'model_name':
        _ToNonEmptyStrOrNone(img_params.model_name),
        'os':
        _ToNonEmptyStrOrNone(self.browser.platform.GetOSName()),
        'os_version':
        _ToNonEmptyStrOrNone(self.browser.platform.GetOSVersionName()),
        'os_version_detail_string':
        _ToNonEmptyStrOrNone(self.browser.platform.GetOSVersionDetailString()),
        'driver_version':
        _ToNonEmptyStrOrNone(img_params.driver_version),
        'driver_vendor':
        _ToNonEmptyStrOrNone(img_params.driver_vendor),
        'display_server':
        _ToNonEmptyStrOrNone(img_params.display_server),
        'combined_hardware_identifier':
        _GetCombinedHardwareIdentifier(img_params),
        'browser_type':
        _ToNonEmptyStrOrNone(self.browser.browser_type),
    }
    # If we have a grace period active, then the test is potentially flaky.
    # Include a pair that will cause Gold to ignore any untriaged images, which
    # will prevent it from automatically commenting on unrelated CLs that happen
    # to produce a new image.
    if _GracePeriodActive(page):
      gpu_keys['ignore'] = '1'
    return gpu_keys
Get all the JSON metadata that will be passed to golctl.
Get all the JSON metadata that will be passed to golctl.
Get all the JSON metadata that will be passed to golctl .
def GetGoldJsonKeys(self, page):
    img_params = self.GetImageParameters(page)
    _StripAngleRevisionFromDriver(img_params)
    gpu_keys = {
        'vendor_id':
        _ToHexOrNone(img_params.vendor_id),
        'device_id':
        _ToHexOrNone(img_params.device_id),
        'vendor_string':
        _ToNonEmptyStrOrNone(img_params.vendor_string),
        'device_string':
        _ToNonEmptyStrOrNone(img_params.device_string),
        'msaa':
        str(img_params.msaa),
        'model_name':
        _ToNonEmptyStrOrNone(img_params.model_name),
        'os':
        _ToNonEmptyStrOrNone(self.browser.platform.GetOSName()),
        'os_version':
        _ToNonEmptyStrOrNone(self.browser.platform.GetOSVersionName()),
        'os_version_detail_string':
        _ToNonEmptyStrOrNone(self.browser.platform.GetOSVersionDetailString()),
        'driver_version':
        _ToNonEmptyStrOrNone(img_params.driver_version),
        'driver_vendor':
        _ToNonEmptyStrOrNone(img_params.driver_vendor),
        'display_server':
        _ToNonEmptyStrOrNone(img_params.display_server),
        'combined_hardware_identifier':
        _GetCombinedHardwareIdentifier(img_params),
        'browser_type':
        _ToNonEmptyStrOrNone(self.browser.browser_type),
    }
    if _GracePeriodActive(page):
      gpu_keys['ignore'] = '1'
    return gpu_keys
def GetGoldJsonKeys ( self , page ) : img_params = self . GetImageParameters ( page ) _StripAngleRevisionFromDriver ( img_params ) gpu_keys = { 'vendor_id' : _ToHexOrNone ( img_params . vendor_id ) , 'device_id' : _ToHexOrNone ( img_params . device_id ) , 'vendor_string' : _ToNonEmptyStrOrNone ( img_params . vendor_string ) , 'device_string' : _ToNonEmptyStrOrNone ( img_params . device_string ) , 'msaa' : str ( img_params . msaa ) , 'model_name' : _ToNonEmptyStrOrNone ( img_params . model_name ) , 'os' : _ToNonEmptyStrOrNone ( self . browser . platform . GetOSName ( ) ) , 'os_version' : _ToNonEmptyStrOrNone ( self . browser . platform . GetOSVersionName ( ) ) , 'os_version_detail_string' : _ToNonEmptyStrOrNone ( self . browser . platform . GetOSVersionDetailString ( ) ) , 'driver_version' : _ToNonEmptyStrOrNone ( img_params . driver_version ) , 'driver_vendor' : _ToNonEmptyStrOrNone ( img_params . driver_vendor ) , 'display_server' : _ToNonEmptyStrOrNone ( img_params . display_server ) , 'combined_hardware_identifier' : _GetCombinedHardwareIdentifier ( img_params ) , 'browser_type' : _ToNonEmptyStrOrNone ( self . browser . browser_type ) , } if _GracePeriodActive ( page ) : gpu_keys [ 'ignore' ] = '1' return gpu_keys
Get all the JSON metadata that will be passed to golctl.
Get all the JSON metadata that will be passed to golctl .
"""Get all the JSON metadata that will be passed to golctl.""" # The frequently changing last part of the ANGLE driver version (revision of # some sort?) messes a bit with inexact matching since each revision will # be treated as a separate trace, so strip it off. # All values need to be strings, otherwise goldctl fails. # If we have a grace period active, then the test is potentially flaky. # Include a pair that will cause Gold to ignore any untriaged images, which # will prevent it from automatically commenting on unrelated CLs that happen # to produce a new image.
self
page