Skip to content

bustage fix: backout dependency upgrades to pushflatpak to fix bustage#1092

Merged
bhearsum merged 1 commit intomozilla-releng:masterfrom
bhearsum:pushflat-bust
Nov 21, 2024
Merged

bustage fix: backout dependency upgrades to pushflatpak to fix bustage#1092
bhearsum merged 1 commit intomozilla-releng:masterfrom
bhearsum:pushflat-bust

Conversation

@bhearsum
Copy link
Contributor

Related to https://bugzilla.mozilla.org/show_bug.cgi?id=1932766

Traceback is:

2024-11-21 21:27:45,958 - pushflatpakscript.flathub - INFO - Pushing the flatpak to the associated https://hub.flathub.org/api/v1/build/146893
Unexpected TypeError exception in push: Can't instantiate abstract class AsyncNamedFilePart with abstract method decode
Traceback (most recent call last):
  File "/app/flat_manager_venv/bin/flat-manager-client", line 914, in <module>
    result = asyncio.run(run_with_session(args))
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/asyncio/base_events.py", line 654, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/app/flat_manager_venv/bin/flat-manager-client", line 799, in run_with_session
    result = await args.func(session, args)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/flat_manager_venv/lib/python3.11/site-packages/tenacity/asyncio/__init__.py", line 189, in async_wrapped
    return await copy(fn, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/flat_manager_venv/lib/python3.11/site-packages/tenacity/asyncio/__init__.py", line 111, in __call__
    do = await self.iter(retry_state=retry_state)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/flat_manager_venv/lib/python3.11/site-packages/tenacity/asyncio/__init__.py", line 153, in iter
    result = await action(retry_state)
             ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/flat_manager_venv/lib/python3.11/site-packages/tenacity/_utils.py", line 99, in inner
    return call(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "/app/flat_manager_venv/lib/python3.11/site-packages/tenacity/__init__.py", line 398, in <lambda>
    self._add_action_func(lambda rs: rs.outcome.result())
                                     ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/concurrent/futures/_base.py", line 449, in result
    return self.__get_result()
           ^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
    raise self._exception
  File "/app/flat_manager_venv/lib/python3.11/site-packages/tenacity/asyncio/__init__.py", line 114, in __call__
    result = await fn(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/flat_manager_venv/bin/flat-manager-client", line 714, in push_command
    await upload_objects(session, args.repo_path, args.build_url, token, missing_file_objects)
  File "/app/flat_manager_venv/bin/flat-manager-client", line 281, in upload_objects
    named = get_object_multipart(repo_path, file_obj)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/flat_manager_venv/bin/flat-manager-client", line 616, in get_object_multipart
    return AsyncNamedFilePart(repo_path + "/objects/" + object[:2] + "/" + object[2:], filename=object)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Can't instantiate abstract class AsyncNamedFilePart with abstract method decode

Traceback (most recent call last):
  File "/app/bin/pushflatpakscript", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/app/lib/python3.11/site-packages/pushflatpakscript/script.py", line 41, in main
    return client.sync_main(async_main, config_path=config_path, default_config=get_default_config())
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/app/lib/python3.11/site-packages/scriptworker/client.py", line 165, in sync_main
    loop.run_until_complete(_handle_asyncio_loop(async_main, context))
  File "/usr/local/lib/python3.11/asyncio/base_events.py", line 654, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/app/lib/python3.11/site-packages/scriptworker/client.py", line 204, in _handle_asyncio_loop
    await async_main(context)
  File "/app/lib/python3.11/site-packages/pushflatpakscript/script.py", line 22, in async_main
    flathub.push(context, flatpak_file_path, channel)
  File "/app/lib/python3.11/site-packages/pushflatpakscript/flathub.py", line 194, in push
    run_flat_manager_client_process(context, token_args + ["push", publish_build_output, deflated_dir])
  File "/app/lib/python3.11/site-packages/pushflatpakscript/flathub.py", line 31, in run_flat_manager_client_process
    raise RuntimeError("Command returned error: {}".format(exit_code))
RuntimeError: Command returned error: 1

...which most likely means only the flat-manager-client changes need to be backed out, but let's do everything here to be safe.

@bhearsum bhearsum enabled auto-merge (squash) November 21, 2024 22:02
@bhearsum bhearsum merged commit 839b0cc into mozilla-releng:master Nov 21, 2024
@jcristau jcristau mentioned this pull request Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants