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

fix: pin git references #8

Merged
merged 1 commit into from
Dec 5, 2023
Merged

fix: pin git references #8

merged 1 commit into from
Dec 5, 2023

Conversation

shepherdjerred
Copy link
Contributor

This fixes some failing tests by ignoring the author and description fields.

@shepherdjerred shepherdjerred requested review from jmwoliver, a team and glin and removed request for a team December 4, 2023 18:29
parse_test.go Outdated
Comment on lines 350 to 351
"description",
"author",
Copy link
Collaborator

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.

Copy link
Contributor Author

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

Copy link
Collaborator

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.

Copy link
Contributor Author

@shepherdjerred shepherdjerred Dec 5, 2023

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.

Copy link
Collaborator

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!

Copy link
Collaborator

@jmwoliver jmwoliver left a 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!

@shepherdjerred shepherdjerred changed the title fix: ignore more fields from snapshots fix: pin git references Dec 5, 2023
@shepherdjerred
Copy link
Contributor Author

@jmwoliver I updated the tests to clone pinned references

@shepherdjerred shepherdjerred enabled auto-merge (rebase) December 5, 2023 18:52
@shepherdjerred shepherdjerred merged commit b194140 into main Dec 5, 2023
2 checks passed
@shepherdjerred shepherdjerred deleted the sj/fix-tests branch December 5, 2023 18:57
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 this pull request may close these issues.

2 participants