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 published wheel RECORDs. #18219

Merged
merged 1 commit into from
Feb 9, 2023
Merged

Fix published wheel RECORDs. #18219

merged 1 commit into from
Feb 9, 2023

Conversation

jsirois
Copy link
Contributor

@jsirois jsirois commented Feb 9, 2023

The hash format is fixed and a verification step added to prevent
publishing invalid wheels going forward.

Fixes #18111

The hash format is fixed and a verification step added to prevent
publishing invalid wheels going forward.

Fixes pantsbuild#18111
@jsirois
Copy link
Contributor Author

jsirois commented Feb 9, 2023

I tested this out with a hacked up build-support/bin/_release_helper.py that skipped all publish steps except for downloading wheels and reversioning them. The results are detailed in #18111 and the finished product looks like:

$ PY=python3.9 USE_PY39=true ./build-support/bin/release.sh publish
[=== 00:00 Releasing to PyPI and GitHub ===]
[=== 00:00 Fetching pre-built wheels for 2.16.0.dev6+git2983f166 ===]
Saving to /home/jsirois/dev/pantsbuild/jsirois-pants/dist/deploy.

Fetching https://binaries.pantsbuild.org/wheels%2Fpantsbuild.pants%2F2983f166e18b1c1a480b85bf722d16d514b41b17%2F2.16.0.dev6%2Bgit2983f166%2Findex.html
...
Fetching https://binaries.pantsbuild.org/wheels%2Fpantsbuild.pants%2F2983f166e18b1c1a480b85bf722d16d514b41b17%2F2.16.0.dev6%2Bgit2983f166%2Fpantsbuild.pants.testutil-2.16.0.dev6%2Bgit2983f166-py3-none-any.whl

Unpacking to: /tmp/tmp7ohr1anb/check-wheel/pantsbuild.pants-2.16.0.dev6...OK
Wrote whl with version 2.16.0.dev6 to /home/jsirois/dev/pantsbuild/jsirois-pants/dist/deploy/wheels/pantsbuild.pants/2983f166e18b1c1a480b85bf722d16d514b41b17/2.16.0.dev6/pantsbuild.pants-2.16.0.dev6-cp37-cp37m-macosx_10_15_x86_64.whl.
...
Unpacking to: /tmp/tmpxucwf4nn/check-wheel/pantsbuild.pants-2.16.0.dev6...OK
Wrote whl with version 2.16.0.dev6 to /home/jsirois/dev/pantsbuild/jsirois-pants/dist/deploy/wheels/pantsbuild.pants/2983f166e18b1c1a480b85bf722d16d514b41b17/2.16.0.dev6/pantsbuild.pants-2.16.0.dev6-cp38-cp38-manylinux2014_x86_64.whl.

Unpacking to: /tmp/tmpf63z1yx0/check-wheel/pantsbuild.pants-2.16.0.dev6...OK
Wrote whl with version 2.16.0.dev6 to /home/jsirois/dev/pantsbuild/jsirois-pants/dist/deploy/wheels/pantsbuild.pants/2983f166e18b1c1a480b85bf722d16d514b41b17/2.16.0.dev6/pantsbuild.pants-2.16.0.dev6-cp38-cp38-manylinux2014_aarch64.whl.
...

@jsirois jsirois added the category:bugfix Bug fixes for released features label Feb 9, 2023
@benjyw
Copy link
Sponsor Contributor

benjyw commented Feb 9, 2023

Should we cherry-pick to 2.15.x so the release wheels there can be valid?

@jsirois
Copy link
Contributor Author

jsirois commented Feb 9, 2023

Should we cherry-pick to 2.15.x so the release wheels there can be valid?

Yeah, I think that makes sense. Coming up.

@jsirois jsirois merged commit 817db43 into pantsbuild:main Feb 9, 2023
@jsirois jsirois added this to the 2.15.x milestone Feb 9, 2023
@jsirois jsirois deleted the issues/18111 branch February 9, 2023 22:19
jsirois added a commit to jsirois/pants that referenced this pull request Feb 9, 2023
The hash format is fixed and a verification step added to prevent
publishing invalid wheels going forward.

Fixes pantsbuild#18111

(cherry picked from commit 817db43)
jsirois added a commit that referenced this pull request Feb 9, 2023
Fix published wheel RECORDs. (#18219)

The hash format is fixed and a verification step added to prevent
publishing invalid wheels going forward.

Fixes #18111

(cherry picked from commit 817db43)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:bugfix Bug fixes for released features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invalid entry in the RECORD file in pants's wheels
2 participants