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

twine check in action, but passes when dockerfile built locally #227

Closed
LecrisUT opened this issue Apr 11, 2024 · 4 comments
Closed

twine check in action, but passes when dockerfile built locally #227

LecrisUT opened this issue Apr 11, 2024 · 4 comments
Labels
question Further information is requested

Comments

@LecrisUT
Copy link

Example failure: https://github.com/spglib/spglib/actions/runs/8647336672/job/23717517322

I've run twine check locally and it passed, I ran it with the built Dockerfile and it also passed. Any idea what's going on here?

@webknjaz
Copy link
Member

Have you tried downloading the artifacts from your GHA workflow page locally and checking them all with twine check --strict?

It's definitely unpleasant to get failures in the very last step of the release process, which is why I recommend running it early in the workflow. In many of my workflows I migrated to building the dists before testing. This way, I can lint them (including but not limited to twine check), test the same wheels and then publish exactly what's tested as opposed to publishing something that was built separately from what was built in the test jobs.

@webknjaz webknjaz added the question Further information is requested label Apr 11, 2024
@LecrisUT
Copy link
Author

Turns out it was a bug on download-artifact where it just made a mess of things scikit-build/scikit-build-core#696 (comment)

@webknjaz
Copy link
Member

zipfile.BadZipFile: Bad magic number for file header

Your error sounds a lot like #215 and #148. I'd also report to Twine as we just call it via CLI and it could output better errors.

@LecrisUT
Copy link
Author

Yeah, I should have added a manual action for twine check on the artifacts. Alternatively, having a dry-run/no-upload input for this action would also help with that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants