Nightly release checks failing on TestPyPI check

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Gone away
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?
    • None
    • None
    • None
    • None
    • None
    • None

      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>     
      

            Assignee:
            Unassigned
            Reporter:
            Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: