tasks/release.py
def _get_windows_ddnpm_release_json_info(release_json, agent_major_version, is_first_rc=False):
    """
    Gets the Windows NPM driver info from the previous entries in the release.json file.
    """

    # First RC should use the data from nightly section otherwise reuse the last RC info
    if is_first_rc:
        previous_release_json_version = nightly_entry_for(agent_major_version)
    else:
        previous_release_json_version = release_entry_for(agent_major_version)

    print(f"Using '{previous_release_json_version}' DDNPM values")
    release_json_version_data = release_json[previous_release_json_version]

    win_ddnpm_driver = release_json_version_data['WINDOWS_DDNPM_DRIVER']
    win_ddnpm_version = release_json_version_data['WINDOWS_DDNPM_VERSION']
    win_ddnpm_shasum = release_json_version_data['WINDOWS_DDNPM_SHASUM']

    if win_ddnpm_driver not in ['release-signed', 'attestation-signed']:
        print(f"WARN: WINDOWS_DDNPM_DRIVER value '{win_ddnpm_driver}' is not valid")

    print(f"The windows ddnpm version is {win_ddnpm_version}")

    return win_ddnpm_driver, win_ddnpm_version, win_ddnpm_shasum

    Gets the Windows NPM driver info from the previous entries in the release.json file.
    
Gets the Windows NPM driver info from the previous entries in the release.json file.
Gets the Windows NPM driver info from the previous entries in the release . json file .
def _get_windows_ddnpm_release_json_info(release_json, agent_major_version, is_first_rc=False):
    if is_first_rc:
        previous_release_json_version = nightly_entry_for(agent_major_version)
    else:
        previous_release_json_version = release_entry_for(agent_major_version)
    print(f"Using '{previous_release_json_version}' DDNPM values")
    release_json_version_data = release_json[previous_release_json_version]
    win_ddnpm_driver = release_json_version_data['WINDOWS_DDNPM_DRIVER']
    win_ddnpm_version = release_json_version_data['WINDOWS_DDNPM_VERSION']
    win_ddnpm_shasum = release_json_version_data['WINDOWS_DDNPM_SHASUM']
    if win_ddnpm_driver not in ['release-signed', 'attestation-signed']:
        print(f"WARN: WINDOWS_DDNPM_DRIVER value '{win_ddnpm_driver}' is not valid")
    print(f"The windows ddnpm version is {win_ddnpm_version}")
    return win_ddnpm_driver, win_ddnpm_version, win_ddnpm_shasum
def _get_windows_ddnpm_release_json_info ( release_json , agent_major_version , is_first_rc = False ) : if is_first_rc : previous_release_json_version = nightly_entry_for ( agent_major_version ) else : previous_release_json_version = release_entry_for ( agent_major_version ) print ( f"Using '{previous_release_json_version}' DDNPM values" ) release_json_version_data = release_json [ previous_release_json_version ] win_ddnpm_driver = release_json_version_data [ 'WINDOWS_DDNPM_DRIVER' ] win_ddnpm_version = release_json_version_data [ 'WINDOWS_DDNPM_VERSION' ] win_ddnpm_shasum = release_json_version_data [ 'WINDOWS_DDNPM_SHASUM' ] if win_ddnpm_driver not in [ 'release-signed' , 'attestation-signed' ] : print ( f"WARN: WINDOWS_DDNPM_DRIVER value '{win_ddnpm_driver}' is not valid" ) print ( f"The windows ddnpm version is {win_ddnpm_version}" ) return win_ddnpm_driver , win_ddnpm_version , win_ddnpm_shasum
Gets the Windows NPM driver info from the previous entries in the release.json file.
Gets the Windows NPM driver info from the previous entries in the release . json file .
"""
    Gets the Windows NPM driver info from the previous entries in the release.json file.
    """ # First RC should use the data from nightly section otherwise reuse the last RC info
release_json
agent_major_version
is_first_rc