Project

General

Profile

Actions

action #176556

open

Add `openqa-cli download` sub-command supporting authentication size:S

Added by mkittler 2 months ago. Updated 4 days ago.

Status:
Workable
Priority:
Low
Assignee:
-
Category:
Feature requests
Target version:
Start date:
2025-02-04
Due date:
% Done:

0%

Estimated time:

Description

Motivation

After #175902 a simple wget 'http://…/assets/….qcow2' is no longer possible to download certain assets from OSD. While one can specify the credentials manually this is a bit tedious. Using openqa-cli api --apibase '' https://…/assets/….qcow2 > ….qcow2 is possible but might use a lot of ram (does it?) and also a bit cumbersome to use (especially as one has to specify the asset name twice).

Acceptance criteria

  • AC1: openqa-cli allows downloading assets
  • AC2: openqa-cli determines the file name automatically
  • AC3: Asset downloads via openqa-cli work out of the box even when authentication is required as long as client.conf contains the required API key/secret
  • AC4: Even when downloading big files the memory usage is not high

Suggestions

  • Look into similar implementations for the open build service CLI osc
  • Make this new sub-command for downloading assets and adds additional arguments for authentication.
  • As applicable consider making that an upstream feature of underlying modules, e.g. mojolicious

Related issues 1 (1 open0 closed)

Copied to openQA Project (public) - action #179972: Add continuing downloads in `openqa-cli download` sub-command supporting authenticationBlockedokurz2025-02-04

Actions
Actions #1

Updated by okurz 2 months ago

  • Target version set to future
Actions #2

Updated by okurz about 2 months ago

  • Target version changed from future to Tools - Next
Actions #3

Updated by livdywan 15 days ago

  • Subject changed from Add `openqa-cli download` sub-command supporting authentication to Add `openqa-cli download` sub-command supporting authentication size:S
  • Description updated (diff)
  • Status changed from New to Workable
Actions #4

Updated by okurz 15 days ago

  • Copied to action #179972: Add continuing downloads in `openqa-cli download` sub-command supporting authentication added
Actions #5

Updated by okurz 10 days ago

  • Priority changed from Normal to Low
Actions #6

Updated by kraih 8 days ago

I've opened an upstream PR for a Mojolicious feature that is related: https://github.com/mojolicious/mojo/pull/2243

Actions #7

Updated by okurz 8 days ago

  • Target version changed from Tools - Next to future
  • Parent task changed from #166358 to #180815

Cool. Let's see what comes out of that first.

Actions #8

Updated by kraih 4 days ago

Went with a slightly different solution for the upstream feature, but resumable file downloads will be in the next Mojolicious release. https://github.com/mojolicious/mojo/pull/2244

Actions

Also available in: Atom PDF