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

CI test for macos sometimes fails in test_it_uses_pip_repositories_with_env_var_substitution #591

Closed
2 tasks done
maresb opened this issue Jan 29, 2024 · 0 comments · Fixed by #601
Closed
2 tasks done

Comments

@maresb
Copy link
Contributor

maresb commented Jan 29, 2024

Checklist

  • I added a descriptive title
  • I searched open reports and couldn't find a duplicate

What happened?

This only happens some of the time. Maybe some sort of race condition?

_ ERROR at teardown of test_it_uses_pip_repositories_with_env_var_substitution[conda] _
[gw3] darwin -- Python 3.12.1 /Users/runner/micromamba/envs/conda-lock-dev/bin/python3.12

    @pytest.fixture(scope="module")
    def private_package_tar():
        tar_path = _PRIVATE_PACKAGE_SDIST_PATH.parent / "fake-private-package-1.0.0.tar.gz"
        with tarfile.open(tar_path, "w:gz") as tar:
            tar.add(
                _PRIVATE_PACKAGE_SDIST_PATH,
                arcname=os.path.basename(_PRIVATE_PACKAGE_SDIST_PATH),
            )
        try:
            yield tar_path
        finally:
>           os.remove(tar_path)
E           FileNotFoundError: [Errno 2] No such file or directory: '/Users/runner/work/_temp/tests/test-pip-repositories/fake-private-package-1.0.0.tar.gz'

tests/test_pip_repositories.py:54: FileNotFoundError

Conda Info

No response

Conda Config

No response

Conda list

No response

Additional Context

No response

maresb added a commit to maresb/conda-lock that referenced this issue Feb 10, 2024
maresb added a commit to maresb/conda-lock that referenced this issue Feb 10, 2024
maresb added a commit to maresb/conda-lock that referenced this issue Feb 10, 2024
maresb added a commit to maresb/conda-lock that referenced this issue Feb 10, 2024
maresb added a commit to maresb/conda-lock that referenced this issue Feb 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant