Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose git errors instead of printing a generic error message #9845

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions src/poetry/vcs/git/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,11 +231,8 @@ def _clone_legacy(url: str, refspec: GitRefSpec, target: Path) -> Repo:

try:
SystemGit.clone(url, target)
except CalledProcessError:
raise PoetryConsoleError(
f"Failed to clone {url}, check your git configuration and permissions"
" for this repository."
)
except CalledProcessError as e:
raise PoetryConsoleError(f"Failed to clone {url}\n {e.stderr}")
Copy link
Member

@abn abn Nov 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would suggest the git error be surfaced via logger.debug instead. The proposed change is too noisy.

Suggested change
raise PoetryConsoleError(f"Failed to clone {url}\n {e.stderr}")
logger.debug("Git command returned the following error:\n%s", e.stderr)
raise PoetryConsoleError(
f"Failed to clone {url}, check your git configuration and permissions"
" for this repository."
)


if revision:
revision.replace("refs/head/", "")
Expand Down
6 changes: 3 additions & 3 deletions src/poetry/vcs/git/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ def run(*args: Any, **kwargs: Any) -> None:
git_command = find_git_command()
env = os.environ.copy()
env["GIT_TERMINAL_PROMPT"] = "0"
subprocess.check_call( # type: ignore[call-arg]
subprocess.run(
git_command + list(args),
stderr=subprocess.DEVNULL,
stdout=subprocess.DEVNULL,
check=True,
capture_output=True,
env=env,
text=True,
encoding="utf-8",
Expand Down
10 changes: 10 additions & 0 deletions tests/integration/test_utils_vcs_git.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,3 +435,13 @@
"ssh://github.com/python-poetry/test-fixture-vcs-repository.git",
"ssh://github.com/python-poetry/test-fixture-vcs-repository.git",
]


def test_git_error_is_exposed_for_non_existent_repo() -> None:
source_url = "https://github.com/python-poetry/test-fixture-vcs-repo.git"
branch = uuid.uuid4().hex

with pytest.raises(PoetryConsoleError) as e:
Git.clone(url=source_url, branch=branch)

assert "remote: Repository not found." in str(e.value)

Check failure on line 447 in tests/integration/test_utils_vcs_git.py

View check run for this annotation

Cirrus CI / Tests / FreeBSD (Python 3.9) / pytest

tests/integration/test_utils_vcs_git.py#L447

tests.integration.test_utils_vcs_git.test_git_error_is_exposed_for_non_existent_repo
Raw output
def test_git_error_is_exposed_for_non_existent_repo() -> None:
        source_url = "https://github.com/python-poetry/test-fixture-vcs-repo.git"
        branch = uuid.uuid4().hex
    
        with pytest.raises(PoetryConsoleError) as e:
            Git.clone(url=source_url, branch=branch)
    
>       assert "remote: Repository not found." in str(e.value)
E       assert 'remote: Repository not found.' in "Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/tmp/pytest-of-root/pytest-0/popen-gw1/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n"
E        +  where "Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/tmp/pytest-of-root/pytest-0/popen-gw1/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n" = str(PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/tmp/pytest-of-root/pytest-0/popen-gw1/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n"))
E        +    where PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/tmp/pytest-of-root/pytest-0/popen-gw1/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n") = <ExceptionInfo PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/tmp/py...y/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n") tblen=3>.value

/tmp/cirrus-ci-build/tests/integration/test_utils_vcs_git.py:447: AssertionError

Check failure on line 447 in tests/integration/test_utils_vcs_git.py

View check run for this annotation

Cirrus CI / Tests / FreeBSD (Python 3.10) / pytest

tests/integration/test_utils_vcs_git.py#L447

tests.integration.test_utils_vcs_git.test_git_error_is_exposed_for_non_existent_repo
Raw output
def test_git_error_is_exposed_for_non_existent_repo() -> None:
        source_url = "https://github.com/python-poetry/test-fixture-vcs-repo.git"
        branch = uuid.uuid4().hex
    
        with pytest.raises(PoetryConsoleError) as e:
            Git.clone(url=source_url, branch=branch)
    
>       assert "remote: Repository not found." in str(e.value)
E       assert 'remote: Repository not found.' in "Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/tmp/pytest-of-root/pytest-0/popen-gw0/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n"
E        +  where "Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/tmp/pytest-of-root/pytest-0/popen-gw0/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n" = str(PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/tmp/pytest-of-root/pytest-0/popen-gw0/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n"))
E        +    where PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/tmp/pytest-of-root/pytest-0/popen-gw0/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n") = <ExceptionInfo PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/tmp/py...y/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n") tblen=3>.value

/tmp/cirrus-ci-build/tests/integration/test_utils_vcs_git.py:447: AssertionError

Check failure on line 447 in tests/integration/test_utils_vcs_git.py

View check run for this annotation

Cirrus CI / Tests / FreeBSD (Python 3.11) / pytest

tests/integration/test_utils_vcs_git.py#L447

tests.integration.test_utils_vcs_git.test_git_error_is_exposed_for_non_existent_repo
Raw output
def test_git_error_is_exposed_for_non_existent_repo() -> None:
        source_url = "https://github.com/python-poetry/test-fixture-vcs-repo.git"
        branch = uuid.uuid4().hex
    
        with pytest.raises(PoetryConsoleError) as e:
            Git.clone(url=source_url, branch=branch)
    
>       assert "remote: Repository not found." in str(e.value)
E       assert 'remote: Repository not found.' in "Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/tmp/pytest-of-root/pytest-0/popen-gw0/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n"
E        +  where "Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/tmp/pytest-of-root/pytest-0/popen-gw0/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n" = str(PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/tmp/pytest-of-root/pytest-0/popen-gw0/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n"))
E        +    where PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/tmp/pytest-of-root/pytest-0/popen-gw0/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n") = <ExceptionInfo PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/tmp/py...y/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n") tblen=3>.value

/tmp/cirrus-ci-build/tests/integration/test_utils_vcs_git.py:447: AssertionError

Check failure on line 447 in tests/integration/test_utils_vcs_git.py

View workflow job for this annotation

GitHub Actions / macOS aarch64 (Python 3.10) / pytest

test_git_error_is_exposed_for_non_existent_repo assert 'remote: Repository not found.' in "Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/1y/56hdyx6x0_jb18k7b4ys9b6w0000gn/T/pytest-of-runner/pytest-0/popen-gw1/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n" + where "Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/1y/56hdyx6x0_jb18k7b4ys9b6w0000gn/T/pytest-of-runner/pytest-0/popen-gw1/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n" = str(PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/1y/56hdyx6x0_jb18k7b4ys9b6w0000gn/T/pytest-of-runner/pytest-0/popen-gw1/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n")) + where PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/1y/56hdyx6x0_jb18k7b4ys9b6w0000gn/T/pytest-of-runner/pytest-0/popen-gw1/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n") = <ExceptionInfo PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/privat...y/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n") tblen=3>.value

Check failure on line 447 in tests/integration/test_utils_vcs_git.py

View workflow job for this annotation

GitHub Actions / macOS aarch64 (Python 3.11) / pytest

test_git_error_is_exposed_for_non_existent_repo assert 'remote: Repository not found.' in "Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/1y/56hdyx6x0_jb18k7b4ys9b6w0000gn/T/pytest-of-runner/pytest-0/popen-gw2/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n" + where "Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/1y/56hdyx6x0_jb18k7b4ys9b6w0000gn/T/pytest-of-runner/pytest-0/popen-gw2/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n" = str(PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/1y/56hdyx6x0_jb18k7b4ys9b6w0000gn/T/pytest-of-runner/pytest-0/popen-gw2/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n")) + where PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/1y/56hdyx6x0_jb18k7b4ys9b6w0000gn/T/pytest-of-runner/pytest-0/popen-gw2/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n") = <ExceptionInfo PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/privat...y/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n") tblen=3>.value

Check failure on line 447 in tests/integration/test_utils_vcs_git.py

View workflow job for this annotation

GitHub Actions / macOS aarch64 (Python 3.12) / pytest

test_git_error_is_exposed_for_non_existent_repo assert 'remote: Repository not found.' in "Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/1y/56hdyx6x0_jb18k7b4ys9b6w0000gn/T/pytest-of-runner/pytest-0/popen-gw0/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n" + where "Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/1y/56hdyx6x0_jb18k7b4ys9b6w0000gn/T/pytest-of-runner/pytest-0/popen-gw0/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n" = str(PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/1y/56hdyx6x0_jb18k7b4ys9b6w0000gn/T/pytest-of-runner/pytest-0/popen-gw0/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n")) + where PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/1y/56hdyx6x0_jb18k7b4ys9b6w0000gn/T/pytest-of-runner/pytest-0/popen-gw0/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n") = <ExceptionInfo PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/privat...y/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n") tblen=3>.value

Check failure on line 447 in tests/integration/test_utils_vcs_git.py

View workflow job for this annotation

GitHub Actions / macOS aarch64 (Python 3.13) / pytest

test_git_error_is_exposed_for_non_existent_repo assert 'remote: Repository not found.' in "Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/1y/56hdyx6x0_jb18k7b4ys9b6w0000gn/T/pytest-of-runner/pytest-0/popen-gw1/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n" + where "Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/1y/56hdyx6x0_jb18k7b4ys9b6w0000gn/T/pytest-of-runner/pytest-0/popen-gw1/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n" = str(PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/1y/56hdyx6x0_jb18k7b4ys9b6w0000gn/T/pytest-of-runner/pytest-0/popen-gw1/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n")) + where PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/1y/56hdyx6x0_jb18k7b4ys9b6w0000gn/T/pytest-of-runner/pytest-0/popen-gw1/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n") = <ExceptionInfo PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/privat...y/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n") tblen=3>.value

Check failure on line 447 in tests/integration/test_utils_vcs_git.py

View workflow job for this annotation

GitHub Actions / macOS aarch64 (Python 3.9) / pytest

test_git_error_is_exposed_for_non_existent_repo assert 'remote: Repository not found.' in "Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/1y/56hdyx6x0_jb18k7b4ys9b6w0000gn/T/pytest-of-runner/pytest-0/popen-gw0/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n" + where "Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/1y/56hdyx6x0_jb18k7b4ys9b6w0000gn/T/pytest-of-runner/pytest-0/popen-gw0/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n" = str(PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/1y/56hdyx6x0_jb18k7b4ys9b6w0000gn/T/pytest-of-runner/pytest-0/popen-gw0/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n")) + where PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/1y/56hdyx6x0_jb18k7b4ys9b6w0000gn/T/pytest-of-runner/pytest-0/popen-gw0/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n") = <ExceptionInfo PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/privat...y/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n") tblen=3>.value

Check failure on line 447 in tests/integration/test_utils_vcs_git.py

View workflow job for this annotation

GitHub Actions / macOS x86_64 (Python 3.10) / pytest

test_git_error_is_exposed_for_non_existent_repo assert 'remote: Repository not found.' in "Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/p1/44pzfl0j2m301zzfb0fv0p380000gn/T/pytest-of-runner/pytest-0/popen-gw0/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n" + where "Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/p1/44pzfl0j2m301zzfb0fv0p380000gn/T/pytest-of-runner/pytest-0/popen-gw0/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n" = str(PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/p1/44pzfl0j2m301zzfb0fv0p380000gn/T/pytest-of-runner/pytest-0/popen-gw0/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n")) + where PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/p1/44pzfl0j2m301zzfb0fv0p380000gn/T/pytest-of-runner/pytest-0/popen-gw0/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n") = <ExceptionInfo PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/privat...y/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n") tblen=3>.value

Check failure on line 447 in tests/integration/test_utils_vcs_git.py

View workflow job for this annotation

GitHub Actions / macOS x86_64 (Python 3.11) / pytest

test_git_error_is_exposed_for_non_existent_repo assert 'remote: Repository not found.' in "Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/s_/65g8q4dd2sl191r_f2fp_z580000gn/T/pytest-of-runner/pytest-0/popen-gw2/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n" + where "Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/s_/65g8q4dd2sl191r_f2fp_z580000gn/T/pytest-of-runner/pytest-0/popen-gw2/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n" = str(PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/s_/65g8q4dd2sl191r_f2fp_z580000gn/T/pytest-of-runner/pytest-0/popen-gw2/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n")) + where PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/s_/65g8q4dd2sl191r_f2fp_z580000gn/T/pytest-of-runner/pytest-0/popen-gw2/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n") = <ExceptionInfo PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/privat...y/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n") tblen=3>.value

Check failure on line 447 in tests/integration/test_utils_vcs_git.py

View workflow job for this annotation

GitHub Actions / macOS x86_64 (Python 3.12) / pytest

test_git_error_is_exposed_for_non_existent_repo assert 'remote: Repository not found.' in "Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/p1/44pzfl0j2m301zzfb0fv0p380000gn/T/pytest-of-runner/pytest-0/popen-gw0/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n" + where "Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/p1/44pzfl0j2m301zzfb0fv0p380000gn/T/pytest-of-runner/pytest-0/popen-gw0/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n" = str(PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/p1/44pzfl0j2m301zzfb0fv0p380000gn/T/pytest-of-runner/pytest-0/popen-gw0/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n")) + where PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/p1/44pzfl0j2m301zzfb0fv0p380000gn/T/pytest-of-runner/pytest-0/popen-gw0/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n") = <ExceptionInfo PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/privat...y/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n") tblen=3>.value

Check failure on line 447 in tests/integration/test_utils_vcs_git.py

View workflow job for this annotation

GitHub Actions / macOS x86_64 (Python 3.13) / pytest

test_git_error_is_exposed_for_non_existent_repo assert 'remote: Repository not found.' in "Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/p1/44pzfl0j2m301zzfb0fv0p380000gn/T/pytest-of-runner/pytest-0/popen-gw2/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n" + where "Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/p1/44pzfl0j2m301zzfb0fv0p380000gn/T/pytest-of-runner/pytest-0/popen-gw2/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n" = str(PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/p1/44pzfl0j2m301zzfb0fv0p380000gn/T/pytest-of-runner/pytest-0/popen-gw2/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n")) + where PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/p1/44pzfl0j2m301zzfb0fv0p380000gn/T/pytest-of-runner/pytest-0/popen-gw2/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n") = <ExceptionInfo PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/privat...y/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n") tblen=3>.value

Check failure on line 447 in tests/integration/test_utils_vcs_git.py

View workflow job for this annotation

GitHub Actions / macOS x86_64 (Python 3.9) / pytest

test_git_error_is_exposed_for_non_existent_repo assert 'remote: Repository not found.' in "Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/s_/65g8q4dd2sl191r_f2fp_z580000gn/T/pytest-of-runner/pytest-0/popen-gw3/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n" + where "Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/s_/65g8q4dd2sl191r_f2fp_z580000gn/T/pytest-of-runner/pytest-0/popen-gw3/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n" = str(PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/s_/65g8q4dd2sl191r_f2fp_z580000gn/T/pytest-of-runner/pytest-0/popen-gw3/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n")) + where PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/private/var/folders/s_/65g8q4dd2sl191r_f2fp_z580000gn/T/pytest-of-runner/pytest-0/popen-gw3/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n") = <ExceptionInfo PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/privat...y/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n") tblen=3>.value

Check failure on line 447 in tests/integration/test_utils_vcs_git.py

View workflow job for this annotation

GitHub Actions / Ubuntu (Python 3.10) / pytest

test_git_error_is_exposed_for_non_existent_repo assert 'remote: Repository not found.' in "Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/tmp/pytest-of-runner/pytest-0/popen-gw0/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n" + where "Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/tmp/pytest-of-runner/pytest-0/popen-gw0/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n" = str(PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/tmp/pytest-of-runner/pytest-0/popen-gw0/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n")) + where PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/tmp/pytest-of-runner/pytest-0/popen-gw0/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n") = <ExceptionInfo PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/tmp/py...y/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n") tblen=3>.value

Check failure on line 447 in tests/integration/test_utils_vcs_git.py

View workflow job for this annotation

GitHub Actions / Ubuntu (Python 3.11) / pytest

test_git_error_is_exposed_for_non_existent_repo assert 'remote: Repository not found.' in "Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/tmp/pytest-of-runner/pytest-0/popen-gw3/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n" + where "Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/tmp/pytest-of-runner/pytest-0/popen-gw3/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n" = str(PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/tmp/pytest-of-runner/pytest-0/popen-gw3/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n")) + where PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/tmp/pytest-of-runner/pytest-0/popen-gw3/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n") = <ExceptionInfo PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/tmp/py...y/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n") tblen=3>.value

Check failure on line 447 in tests/integration/test_utils_vcs_git.py

View workflow job for this annotation

GitHub Actions / Ubuntu (Python 3.12) / pytest

test_git_error_is_exposed_for_non_existent_repo assert 'remote: Repository not found.' in "Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/tmp/pytest-of-runner/pytest-0/popen-gw1/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n" + where "Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/tmp/pytest-of-runner/pytest-0/popen-gw1/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n" = str(PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/tmp/pytest-of-runner/pytest-0/popen-gw1/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n")) + where PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/tmp/pytest-of-runner/pytest-0/popen-gw1/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n") = <ExceptionInfo PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/tmp/py...y/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n") tblen=3>.value

Check failure on line 447 in tests/integration/test_utils_vcs_git.py

View workflow job for this annotation

GitHub Actions / Ubuntu (Python 3.13) / pytest

test_git_error_is_exposed_for_non_existent_repo assert 'remote: Repository not found.' in "Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/tmp/pytest-of-runner/pytest-0/popen-gw3/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n" + where "Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/tmp/pytest-of-runner/pytest-0/popen-gw3/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n" = str(PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/tmp/pytest-of-runner/pytest-0/popen-gw3/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n")) + where PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/tmp/pytest-of-runner/pytest-0/popen-gw3/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n") = <ExceptionInfo PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/tmp/py...y/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n") tblen=3>.value

Check failure on line 447 in tests/integration/test_utils_vcs_git.py

View workflow job for this annotation

GitHub Actions / Ubuntu (Python 3.9) / pytest

test_git_error_is_exposed_for_non_existent_repo assert 'remote: Repository not found.' in "Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/tmp/pytest-of-runner/pytest-0/popen-gw3/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n" + where "Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/tmp/pytest-of-runner/pytest-0/popen-gw3/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n" = str(PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/tmp/pytest-of-runner/pytest-0/popen-gw3/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n")) + where PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/tmp/pytest-of-runner/pytest-0/popen-gw3/test_git_error_is_exposed_for_0/.cache/pypoetry/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n") = <ExceptionInfo PoetryConsoleError("Failed to clone https://github.com/python-poetry/test-fixture-vcs-repo.git\n Cloning into '/tmp/py...y/src/test-fixture-vcs-repo'...\nfatal: could not read Username for 'https://github.com': terminal prompts disabled\n") tblen=3>.value
Loading