def METHOD_NAME():
    """Parse the checkbox monorepo to trigger deb daily builds in Launchpad."""
    # First request code import (GitHub -> Launchpad)
    run(
       "./tools/release/lp-request-import.py "
       "~checkbox-dev/checkbox/+git/checkbox",
       shell=True, check=True)
    projects = {}
    for path, dirs, files in os.walk('.'):
        if "debian" in dirs:
            project_path = os.path.relpath(path)
            # Tweak the provider paths to get names in the following form:
            # providers/base -> checkbox-provider-base
            project_name = project_path.replace('s/', '-')
            if project_name.startswith('provider'):
                project_name = "checkbox-"+project_name
            projects[project_name] = project_path
    to_check = []
    # Find projects new commits from the last 24 hours
    for name, path in sorted(projects.items(), key=lambda i: i[1]):
        new_commits = int(run(
            'git rev-list --count HEAD --not '
            '$(git rev-list -n1 --before="24 hours" '
            '--first-parent HEAD) -- :{}'.format(path),
            shell=True, check=True).stdout.decode().rstrip())
        # Kick off daily builds if the new commits got merged into main
        if new_commits:
            output = run(
                "./tools/release/lp-recipe-update-build.py checkbox "
                "--recipe {} -n {}".format(
                    name+'-daily', get_version()),
                shell=True, check=True).stdout.decode().rstrip()
            print(output)
            # We have started the build, store it here so it can
            # be checked after.
            to_check.append(name)
    checked = [(name, check_build(name)) for name in to_check]
    for name, ok in checked:
        if not ok:
            print("Failed to build:", name)
    if any(not ok for (_,ok) in checked):
        raise SystemExit(1)