-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Fix: Fixes hardcoded commit SHA on test_install_vcs_git.py #13492
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
Conversation
@ichard26 this appears to be your commit: https://github.com/pypa/pip-test-package/commits/master/ |
@sepehr-rs I don't think we need a news item here, or at least just make it a "trivial" news item. |
Got it, I’ve gone ahead and removed it. |
I think this PR serves as a temporary fix. A more sustainable approach would be to avoid hardcoding, since every time there's a new commit on that project, a new PR will be needed here to address it. |
Thanks for the PR @sepehr-rs, probably you are correct, I'm going to hold of from merging for just a little bit to see if @ichard26 has any comment on something we could do better here. |
Could we clone a specific tag or branch on the pip-test-package repository that's meant to be frozen for the SHA test? We can call it If that sounds reasonable, I'm happy to set this up on |
The test seems to be specifically for "Clone the default branch", there's already tests for cloning a tag and specific commits. To be more flexible I think the way this test works would need to change, rather than checking if some specific commit was sourced rather run some git command that checks the default branch has been sourced. |
Hi @notatallshaw and @ichard26, thanks for the great discussion here! |
Yeah, let's fix CI now and have a follow up PR later. |
That sounds great, should I open up an issue about it? |
You're welcome to if you would like, but there is no obligation. |
Sure, I just made one :). |
Fixes #13491,
I tried to fix this bug to the best of my ability. I’d appreciate any feedback or suggestions on how to make it better.