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

Add regression test for GH-1647 #1687

Merged
merged 2 commits into from Nov 3, 2022
Merged

Add regression test for GH-1647 #1687

merged 2 commits into from Nov 3, 2022

Conversation

gschaffner
Copy link
Member

@gschaffner gschaffner commented Oct 1, 2022

Closes #1686.

This asserts that the package is cached to avoid the problem with the prior test (where it passed when it should have failed—see #1649 (comment)).

Contributor checklist
  • Provided the tests for the changes.
  • Assure PR title is short, clear, and good to be included in the user-oriented changelog
Maintainer checklist
  • Assure one of these labels is present: backwards incompatible, feature, enhancement, deprecation, bug, dependency, docs or skip-changelog as they determine changelog listing.
  • Assign the PR to an existing or new milestone for the target version (following Semantic Versioning).

@gschaffner
Copy link
Member Author

gschaffner commented Oct 1, 2022

To test that this fails prior to the fix #1649:

$ git checkout --detach test-compile-cached-vcs
$ git rebase --onto 40d4818~ "$(git merge-base master HEAD)" HEAD
$ tox -e py310-piplatest-coverage -- -n 0 --no-cov -v tests/test_cli_compile.py::test_compile_cached_vcs_package

).stdout
)

with open("requirements.in", "w") as req_in:
Copy link
Member

Choose a reason for hiding this comment

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

Why is this written to the project root?

Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure. I just followed the pattern used already for the other tests.

@ssbarnea ssbarnea added the skip-changelog Avoid listing in changelog label Oct 5, 2022
For Windows support, this includes workarounds for
python/cpython#85815.
@gschaffner
Copy link
Member Author

I rebased onto master and fixed the Windows incompatibility.

@atugushev atugushev added the tests Testing and related things label Oct 11, 2022
Copy link
Member

@atugushev atugushev left a comment

Choose a reason for hiding this comment

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

Thanks a lot!

@atugushev atugushev enabled auto-merge (squash) November 3, 2022 18:44
@atugushev atugushev merged commit f90fcf3 into jazzband:master Nov 3, 2022
@gschaffner gschaffner deleted the test-compile-cached-vcs branch November 4, 2022 05:59
dand-oss pushed a commit to dand-oss/pip-tools that referenced this pull request Nov 12, 2022
For Windows support, this includes workarounds for
python/cpython#85815.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip-changelog Avoid listing in changelog tests Testing and related things
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test for pip-compile cached VCS packages
4 participants