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

str2bool package causes assertion failures during stubsabot runs #12272

Closed
AlexWaygood opened this issue Jul 4, 2024 · 1 comment · Fixed by #12287
Closed

str2bool package causes assertion failures during stubsabot runs #12272

AlexWaygood opened this issue Jul 4, 2024 · 1 comment · Fixed by #12287
Labels
project: infrastructure typeshed build, test, documentation, or distribution related

Comments

@AlexWaygood
Copy link
Member

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)

@AlexWaygood AlexWaygood added the project: infrastructure typeshed build, test, documentation, or distribution related label Jul 4, 2024
srittau added a commit to srittau/typeshed that referenced this issue Jul 4, 2024
srittau added a commit to srittau/typeshed that referenced this issue Jul 4, 2024
@srittau
Copy link
Collaborator

srittau commented Jul 4, 2024

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

AlexWaygood pushed a commit that referenced this issue Jul 4, 2024
@AlexWaygood AlexWaygood changed the title Assertion failure during a stubsabot run str2bool package causes assertion failures during stubsabot runs Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
project: infrastructure typeshed build, test, documentation, or distribution related
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants