We have a number of "in_container" scripts written in Bash, They are doing a number of houseekeeping stuff but since we already have Python 3.7+ inside the CI image, we could modularise them more and make them run from external and simplify entrypoint_ci (for example separate script for tests).
package_format: str,
    version_suffix_for_pypi: str,
    package_list_file: IO | None,
    skip_tag_check: bool,
    skip_deleting_generated_files: bool,
    clean_dist: bool,
    github_repository: str,
    provider_packages: tuple[str, ...],
):
    perform_environment_checks()
    fix_ownership_using_docker()
    cleanup_python_generated_files()
    packages_list = get_packages_list_to_act_on(package_list_file, provider_packages)
    if not skip_tag_check:
        run_command(["git", "remote", "rm", "apache-https-for-providers"], check=False, stderr=DEVNULL)
        make_sure_remote_apache_exists_and_fetch(github_repository=github_repository)
    success_packages = []
    skipped_as_already_released_packages = []
    suspended_packages = []
    wrong_setup_packages = []
    error_packages = []
    if clean_dist: