tests/lts_compatibility.py
def run_live_compatibility_with_latest(args, repo, local_branch):
    """
    Tests that a service from the latest LTS can be safely upgraded to the version of
    the local checkout.
    """
    lts_version, lts_install_path = repo.install_latest_lts_for_branch(
        os.getenv(ENV_VAR_LATEST_LTS_BRANCH_NAME, local_branch)
    )
    local_major_version = infra.github.get_major_version_from_branch_name(local_branch)
    LOG.info(
        f'From LTS {lts_version} to local "{local_branch}" branch (version: {local_major_version})'
    )
    if not args.dry_run:
        run_code_upgrade_from(
            args,
            from_install_path=lts_install_path,
            to_install_path=LOCAL_CHECKOUT_DIRECTORY,
            from_version=lts_version,
            to_version=local_major_version,
        )
    return lts_version

    Tests that a service from the latest LTS can be safely upgraded to the version of
    the local checkout.
    
Tests that a service from the latest LTS can be safely upgraded to the version of
the local checkout.
Tests that a service from the latest LTS can be safely upgraded to the version of the local checkout .
def run_live_compatibility_with_latest(args, repo, local_branch):
    lts_version, lts_install_path = repo.install_latest_lts_for_branch(
        os.getenv(ENV_VAR_LATEST_LTS_BRANCH_NAME, local_branch)
    )
    local_major_version = infra.github.get_major_version_from_branch_name(local_branch)
    LOG.info(
        f'From LTS {lts_version} to local "{local_branch}" branch (version: {local_major_version})'
    )
    if not args.dry_run:
        run_code_upgrade_from(
            args,
            from_install_path=lts_install_path,
            to_install_path=LOCAL_CHECKOUT_DIRECTORY,
            from_version=lts_version,
            to_version=local_major_version,
        )
    return lts_version
def run_live_compatibility_with_latest ( args , repo , local_branch ) : lts_version , lts_install_path = repo . install_latest_lts_for_branch ( os . getenv ( ENV_VAR_LATEST_LTS_BRANCH_NAME , local_branch ) ) local_major_version = infra . github . get_major_version_from_branch_name ( local_branch ) LOG . info ( f'From LTS {lts_version} to local "{local_branch}" branch (version: {local_major_version})' ) if not args . dry_run : run_code_upgrade_from ( args , from_install_path = lts_install_path , to_install_path = LOCAL_CHECKOUT_DIRECTORY , from_version = lts_version , to_version = local_major_version , ) return lts_version
Tests that a service from the latest LTS can be safely upgraded to the version of
the local checkout.
Tests that a service from the latest LTS can be safely upgraded to the version of the local checkout .
"""
    Tests that a service from the latest LTS can be safely upgraded to the version of
    the local checkout.
    """
args
repo
local_branch