Skip to content

Nightly build fail. git clone error #374

@anton-tokarev-softeq

Description

@anton-tokarev-softeq

Nightly build failed https://app.circleci.com/pipelines/github/RedisJSON/RedisJSON/4156/workflows/8ad03a1d-fe6d-47b6-bcd3-acb39f5d50e1/jobs/14528/steps

2022-09-11 20:42:01,236 INFO Fetching infrastructure definition from git repo https://github.com/RedisLabsModules/testing-infrastructure.git//terraform/oss-standalone-redisearch-m5d (branch=master). Using local dir /tmp/tmpb4gnf9c3 to store state
Traceback (most recent call last):
  File "/usr/local/bin/redisbench-admin", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.8/dist-packages/redisbench_admin/cli.py", line 146, in main
    run_remote_command_logic(args, project_name, project_version)
  File "/usr/local/lib/python3.8/dist-packages/redisbench_admin/run_remote/run_remote.py", line 403, in run_remote_command_logic
    ) = remote_env_setup(
  File "/usr/local/lib/python3.8/dist-packages/redisbench_admin/run_remote/remote_env.py", line 59, in remote_env_setup
    ) = terraform_spin_or_reuse_env(
  File "/usr/local/lib/python3.8/dist-packages/redisbench_admin/run_remote/terraform.py", line 34, in terraform_spin_or_reuse_env
    (remote_setup, deployment_type, remote_id,) = fetch_remote_setup_from_config(
  File "/usr/local/lib/python3.8/dist-packages/redisbench_admin/utils/remote.py", line 557, in fetch_remote_setup_from_config
    terraform_working_dir = common_tf(branch, path, repo)
  File "/usr/local/lib/python3.8/dist-packages/redisbench_admin/utils/remote.py", line 536, in common_tf
    git.Repo.clone_from(repo, temporary_dir, branch=branch, depth=1)
  File "/usr/local/lib/python3.8/dist-packages/git/repo/base.py", line 1148, in clone_from
    return cls._clone(git, url, to_path, GitCmdObjectDB, progress, multi_options, **kwargs)
  File "/usr/local/lib/python3.8/dist-packages/git/repo/base.py", line 1086, in _clone
    finalize_process(proc, stderr=stderr)
  File "/usr/local/lib/python3.8/dist-packages/git/util.py", line 386, in finalize_process
    proc.wait(**kwargs)
  File "/usr/local/lib/python3.8/dist-packages/git/cmd.py", line 502, in wait
    raise GitCommandError(remove_password_if_present(self.args), status, errstr)
git.exc.GitCommandError: Cmd('git') failed due to: exit code(128)
  cmdline: git clone -v --branch=master --depth=1 https://github.com/RedisLabsModules/testing-infrastructure.git /tmp/tmpb4gnf9c3
  stderr: 'Cloning into '/tmp/tmpb4gnf9c3'...
ERROR: 
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
'

Exited with code exit status 1

I think it can be problem on a GitHub side too but need to verify and may be add some check to clone command to avoid/retry in error situation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions