python / typeshed

Collection of library stubs for Python, with static types
Other
4.3k stars 1.73k forks source link

str2bool package causes assertion failures during stubsabot runs #12272

Closed AlexWaygood closed 2 months ago

AlexWaygood commented 2 months ago
File "/home/runner/work/typeshed/typeshed/scripts/stubsabot.py", line 842, in <module>
    asyncio.run(main())
  File "/opt/hostedtoolcache/Python/3.12.4/x64/lib/python3.12/asyncio/runners.py", line 194, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.4/x64/lib/python3.12/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.4/x64/lib/python3.12/asyncio/base_events.py", line 687, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/home/runner/work/typeshed/typeshed/scripts/stubsabot.py", line 811, in main
    update = await task
             ^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.4/x64/lib/python3.12/asyncio/tasks.py", line 631, in _wait_for_one
    return f.result()  # May raise f.exception().
           ^^^^^^^^^^
  File "/home/runner/work/typeshed/typeshed/scripts/stubsabot.py", line 490, in determine_action
    obsolete_since = await find_first_release_with_py_typed(pypi_info, session=session)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/typeshed/typeshed/scripts/stubsabot.py", line 248, in find_first_release_with_py_typed
    if not (await release_contains_py_typed(latest_release, session=session)):
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/typeshed/typeshed/scripts/stubsabot.py", line 233, in release_contains_py_typed
    assert release_to_download.filename.endswith(".tar.gz")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError

Seen in https://github.com/python/typeshed/actions/runs/9789641114/job/27029756711 (a dry run on main)

srittau commented 2 months ago

Package file 'str2bool-1.1.zip' does not end with '.tar.gz'