tests/lts_compatibility.py
def run_live_compatibility_with_following(args, repo, local_branch):
    """
    Tests that a service from the local checkout can be safely upgraded to the version of
    the next LTS.
    """
    lts_version, lts_install_path = repo.install_next_lts_for_branch(local_branch)
    if lts_version is None:
        LOG.warning(f"No next LTS for local {local_branch} branch")
        return None

    local_major_version = infra.github.get_major_version_from_branch_name(local_branch)
    LOG.info(
        f'From local "{local_branch}" branch (version: {local_major_version}) to LTS {lts_version}'
    )
    if not args.dry_run:
        run_code_upgrade_from(
            args,
            from_install_path=LOCAL_CHECKOUT_DIRECTORY,
            to_install_path=lts_install_path,
            from_version=local_major_version,
            to_version=lts_version,
        )
    return lts_version

    Tests that a service from the local checkout can be safely upgraded to the version of
    the next LTS.
    
Tests that a service from the local checkout can be safely upgraded to the version of
the next LTS.
Tests that a service from the local checkout can be safely upgraded to the version of the next LTS .
def run_live_compatibility_with_following(args, repo, local_branch):
    lts_version, lts_install_path = repo.install_next_lts_for_branch(local_branch)
    if lts_version is None:
        LOG.warning(f"No next LTS for local {local_branch} branch")
        return None
    local_major_version = infra.github.get_major_version_from_branch_name(local_branch)
    LOG.info(
        f'From local "{local_branch}" branch (version: {local_major_version}) to LTS {lts_version}'
    )
    if not args.dry_run:
        run_code_upgrade_from(
            args,
            from_install_path=LOCAL_CHECKOUT_DIRECTORY,
            to_install_path=lts_install_path,
            from_version=local_major_version,
            to_version=lts_version,
        )
    return lts_version
def run_live_compatibility_with_following ( args , repo , local_branch ) : lts_version , lts_install_path = repo . install_next_lts_for_branch ( local_branch ) if lts_version is None : LOG . warning ( f"No next LTS for local {local_branch} branch" ) return None local_major_version = infra . github . get_major_version_from_branch_name ( local_branch ) LOG . info ( f'From local "{local_branch}" branch (version: {local_major_version}) to LTS {lts_version}' ) if not args . dry_run : run_code_upgrade_from ( args , from_install_path = LOCAL_CHECKOUT_DIRECTORY , to_install_path = lts_install_path , from_version = local_major_version , to_version = lts_version , ) return lts_version
Tests that a service from the local checkout can be safely upgraded to the version of
the next LTS.
Tests that a service from the local checkout can be safely upgraded to the version of the next LTS .
"""
    Tests that a service from the local checkout can be safely upgraded to the version of
    the next LTS.
    """
args
repo
local_branch