Skip to content

Add ability to set the upload_firmware timeout in cli #77

Closed

Description

@CMon

its currently fixed to 60 seconds, we have a quite large firmware and if our upload is occupied to much we are unable to upload the firmware in 60 seconds.

Activity

  1. martonilles commented on Jul 17, 2026

    @martonilles
    Contributor

    It is already possible to override the timeout default 60sec, by providing a timeout parameter:

        def upload_firmware(
            self,
            metadata: m.FirmwareMetadata,
            path: Path | None,
            *,
            sbom_path: Path | None = None,
            enable_monitoring: bool,
            timeout=60,
        ):
    
  2. CMon commented on Aug 12, 2026

    @CMon
    Author

    Yes I found it inside your class (thats where i got the 60s from) but not exposed to the cli itself, since I use your pip package in my CI's there the def upload_firmware from : onekey_client/cli/firmware_upload.py#L42 will be used, which does not allow setting the timeout

  3. martonilles commented on Aug 14, 2026

    @martonilles
    Contributor

    Sorry, it was not clear you were referring to the cli

  4. changed the title [-]Add ability to set the upload_firmware timeout[/-] [+]Add ability to set the upload_firmware timeout in cli[/+] on Aug 14, 2026
  5. martonilles commented on Aug 26, 2026

    @martonilles
    Contributor

    Done in #79

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions