-
Notifications
You must be signed in to change notification settings - Fork 1
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
fix: pin git references #8
Conversation
parse_test.go
Outdated
"description", | ||
"author", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we know why these changed or what these changed to? It feels weird that author
changed, but not author_email
. It's starting to feel more like we should store files in this repo so we aren't cloning the latest. That way we don't have to ignore any fields and if anything changes, it's because twine
behavior changed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The author field was set to <name> + (n others)
. As a project gains contributors, n
increases, so the snapshot doesn't match.
It's starting to feel more like we should store files in this repo so we aren't cloning the latest.
I'm not completely against it, but I don't feel like it's worth spending time on this right now, especially considering how infrequently Twine releases, and how the upload code has been fairly stable: https://pypi.org/project/twine/#history
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense! We can leave this as-is for now, but as more fields change and we set more to <field name> exists
, these tests lose more of their usefulness in my opinion. Storing the distributions with the tests would reduce the variability to only catching the random, infrequent Twine change, which is the benefit of these tests to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree with you. I'll pin the repo references, which will be super easy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great idea, thanks for doing that!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing these!
ba05c98
to
7033ea7
Compare
@jmwoliver I updated the tests to clone pinned references |
This fixes some failing tests by ignoring the
author
anddescription
fields.