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

Binary version from the API not corresponding to the actual version in OBS #5192

Open
hustodemon opened this issue Jun 23, 2018 · 3 comments
Labels
Backend Things regarding the OBS backend

Comments

@hustodemon
Copy link

Issue Description

When searching for some binaries (e.g. gnome-shell) via /search, I get incorrect version for some entries (e.g. 3.4.1 for the openSUSE:Factory project).

The OBS Web UI shows a different version (both in the spec file and in the published repository - 3.28.2+20180519.a52597ac5). Link: https://build.opensuse.org/package/binaries/openSUSE:Factory/gnome-shell/standard

We are using this search endpoint in https://github.com/openSUSE/software-o-o which leads to incorrect version string in our serch results (see the Tumbleweed section in https://software.opensuse.org/package/gnome-shell).

Expected Result

When search for a binary, I get the actual version - the one that is visible via the Web UI.

How to Reproduce

  1. Use the /search endpoint, e.g. with this snippet:
curl -u <user> "https://api.opensuse.org:443/search/published/binary\
/id?match=%40name+%3D+%27gnome-shell%27"

At this time the script returns the following data to me: out.xml.gz

  1. Check the version field of the gnome-shell binary corresponding to the openSUSE:Factory
  2. At this time it is3.4.1, but it should be 3.28.....

Further Information

  • A link to an OBS instance showing the issue: provided above
@vpereira
Copy link
Contributor

vpereira commented Jun 27, 2018

Hm, looks like we have one match for the version 3.4.1, release=1.1 and many others to the correct version release=1.2. Maybe we should sort the results by release too?

<binary name="gnome-shell" project="openSUSE:Factory" repository="standard" version="3.4.1" release="1.1" arch="i586" filename="gnome-shell-3.4.1-1.1.i586.rpm" filepath="openSUSE:/Factory/standard/i586/gnome-shell-3.4.1-1.1.i586.rpm" baseproject="openSUSE:Factory" type="rpm" />

but many others to the "right one"

<binary name="gnome-shell" project="openSUSE:Factory" package="gnome-shell" repository="standard" version="3.28.2+20180519.a52597ac5" release="1.2" arch="i586" filename="gnome-shell-3.28.2+20180519.a52597ac5-1.2.i586.rpm" filepath="openSUSE:/Factory/standard/i586/gnome-shell-3.28.2+20180519.a52597ac5-1.2.i586.rpm" baseproject="openSUSE:Factory" type="rpm" />
<binary name="gnome-shell" project="openSUSE:Factory" package="gnome-shell" repository="standard" version="3.28.2+20180519.a52597ac5" release="1.2" arch="x86_64" filename="gnome-shell-3.28.2+20180519.a52597ac5-1.2.x86_64.rpm" filepath="openSUSE:/Factory/standard/x86_64/gnome-shell-3.28.2+20180519.a52597ac5-1.2.x86_64.rpm" baseproject="openSUSE:Factory" type="rpm" />

how to reproduce it:

 osc api 'search/published/binary/id?match=%40name+%3D+%27gnome-shell%27' | egrep '[^base]project="openSUSE:Factory"'

@vpereira
Copy link
Contributor

I get the right result using: osc ls -b openSUSE:Factory gnome-shell

@vpereira vpereira added the Backend Things regarding the OBS backend label Jun 27, 2018
@adrianschroeter
Copy link
Member

adrianschroeter commented Jun 27, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend Things regarding the OBS backend
Projects
None yet
Development

No branches or pull requests

3 participants