-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Unknown
-
None
-
Component/s: None
-
Needed
Name of Failure:
400 Uploading new files to releases older than 14 days is not allowed.
Link to task:
https://github.com/mongodb/mongo-python-driver/actions/runs/28999439141
Context of when and why the failure occurred:
PyPI just merged a restriction on uploading files to a release that is more than 14 days old. Because we're using the dev version with --skip-existing on TestPyPI, we're hitting the restriction. The 400 error is raised prior to the skip check. I asked on Python Discuss about possible options.
It appears our options are to release a new version every time on TestPyPI (and perhaps only do so once per week for binary wheels), or miss out on testing trusted publishing end-to-end.
Stack trace:
Uploading pymongo-4.18.0.dev0-cp310-cp310-macosx_10_9_x86_64.whl INFO Response from https://test.pypi.org/legacy/: 400 Bad Request INFO <html> <head> <title>400 Uploading new files to releases older than 14 days is not allowed.</title> </head> <body> <h1>400 Uploading new files to releases older than 14 days is not allowed.</h1> The server could not comply with the request since it is either malformed or otherwise incorrect.<br/><br/> Uploading new files to releases older than 14 days is not allowed. </body> </html>