rust-vmm / rust-vmm-ci

Apache License 2.0
18 stars 33 forks source link

Bad owner or permissions on /root/.ssh/config #94

Open vireshk opened 2 years ago

vireshk commented 2 years ago

Running ./rust-vmm-ci/test_run.py locally fails for vhost-device repository.

Commands I ran:

$ docker run --device=/dev/kvm -it --security-opt seccomp=unconfined --volume /home/vireshk/vhost-device:/vhost-device --volume ~/.ssh:/root/.ssh rustvmm/dev:v13

cd vhost-device; ./rust-vmm-ci/test_run.py

Failure Message:

test_commit-format (main.TestsContainer) ... =============================================================================================== test session starts =============================================================================================== platform linux -- Python 3.8.10, pytest-6.2.5, py-1.10.0, pluggy-1.0.0 rootdir: /vhost-device plugins: timeout-1.4.2 collected 1 item

rust-vmm-ci/integration_tests/test_commit_format.py F [100%]

==================================================================================================== FAILURES ===================================================================================================== ___ test_commit_format ____

def test_commit_format():
    """
    Checks commit message format for the current PR's commits.

    Checks if commit messages follow the 50/72 git commit rule
    [https://www.midori-global.com/blog/2018/04/02/git-50-72-rule]
    and if commits are signed.
    """
    # Fetch the upstream repository.
    fetch_base_cmd = "git fetch {} {}".format(REMOTE, BASE_BRANCH)
    try:
        subprocess.run(fetch_base_cmd, shell=True, check=True)
    except subprocess.CalledProcessError:
      raise NameError(

"The name of the base branch or remote is invalid. " "See test documentation for more details." ) from None E NameError: The name of the base branch or remote is invalid. See test documentation for more details.

rust-vmm-ci/integration_tests/test_commit_format.py:42: NameError ---------------------------------------------------------------------------------------------- Captured stderr call ----------------------------------------------------------------------------------------------- Bad owner or permissions on /root/.ssh/config fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists. ============================================================================================= short test summary info ============================================================================================= FAILED rust-vmm-ci/integration_tests/test_commit_format.py::test_commit_format - NameError: The name of the base branch or remote is invalid. See test documentation for more details. ================================================================================================ 1 failed in 0.03s ================================================================================================ ERROR

vireshk commented 2 years ago

FWIW, on the local system:

$ ls -la ~/.ssh/config -rw------- 1 vireshk vireshk 188 Oct 5 2017 /home/vireshk/.ssh/config

Same from within docker instance:

root@d2ac617cf894:/vhost-device# ls -la ~/.ssh/config -rw------- 1 1000 1000 188 Oct 5 2017 /root/.ssh/config

@andreeaflorescu