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

Get just the _statistics file(s) #1678

Open
bberberov opened this issue Dec 13, 2024 · 2 comments
Open

Get just the _statistics file(s) #1678

bberberov opened this issue Dec 13, 2024 · 2 comments
Labels

Comments

@bberberov
Copy link

Is your feature request related to a problem? Please describe.
I'm looking for a simpler way to download the _statistics file(s) after a build is completed on build.opensuse.org. I use osc getbinaries, but most of the time I just want to look at the _statistics without downloading gigabytes.

Describe the solution you'd like
I looked at the code a little, and I'm thinking of two possibilities:

  1. It seems relatively simple to add something like --stats-only to getbinaries, but I'm not confident enough to propose a patch at this time.

  2. It may make more sense to create a getstatistics sub-command instead, that just gets all _statistics for all configured repos for the package. That way I don't have to lookup what repos and arches are configured for the package, since the files are usually very small.

Describe alternatives you've considered
I looked a little but at using osc api, but I don't want to specify all the necessary options, when I'm already in the directory of a locally checked out package.

@dmach
Copy link
Contributor

dmach commented Jan 2, 2025

@bberberov retrieving a specified file doesn't work for you? e.g.

$ osc getbinaries openSUSE:Tools osc openSUSE_Tumbleweed x86_64 _statistics

Do you need to download multiple _statistics files at once?

@bberberov
Copy link
Author

That will probably work according to the getbinaries usage:

usage:
    osc getbinaries REPOSITORY                                 # works in checked out project/package (check out all archs in subdirs)
    osc getbinaries REPOSITORY ARCHITECTURE                    # works in checked out project/package
    osc getbinaries PROJECT REPOSITORY ARCHITECTURE
    osc getbinaries PROJECT PACKAGE REPOSITORY ARCHITECTURE
    osc getbinaries PROJECT PACKAGE REPOSITORY ARCHITECTURE FILE

I'd like not to have to enter PROJECT and PACKAGE when "in checked out project/package". If I can get _statistics for all REPOSITORY and ARCHITECTURE combinations, without separate commands, that would be great too. Other commands like checkconstraints work simply when "in checked out project/package", for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants