[Starlingx-discuss] Correct workflow for testing gerrit changes in OBS

Dominig ar Foll (Intel Open Source) dominig.arfoll at fridu.net
Wed Sep 25 20:58:56 UTC 2019


Erich,

am afraid that you have found a bug in git service from OBS.
A patch is on its way.
I will keep you posted when available.
You can follow progress here if you wish.
   https://github.com/openSUSE/obs-service-tar_scm/issues/330

Sorry, I do not have a quick work around.

Dominig

On 25/09/2019 17:10, Cordoba Malibran, Erich wrote:
> Hi,
>
> As part of the multi-os effort we are moving specfiles from Open Build
> Service (OBS)[0] to git.
>
> To test the complete flow, I defined the following _service file. 
>
>
> <services>
>   <service name="obs_scm">
>     <param name="scm">git</param>
>     <param name="url">https://opendev.org/starlingx/fault</param>
>     <param name="revision">refs/changes/95/684395/5</param>
>     <param name="version">1.0</param>
>     <param name="subdir">fm-mgr</param>
>     <param name="filename">fm-mgr</param>
>     <param name="changesgenerate">disable</param>
>     <param name="extract">opensuse/fm-mgr.spec</param>
>     <param name="extract">opensuse/fm-mgr.changes</param>
>   </service>
>   <service mode="buildtime" name="tar" />
>   <service mode="buildtime" name="recompress">
>     <param name="compression">gz</param>
>     <param name="file">*.tar</param>
>   </service>
>   <service name="set_version" mode="disabled"/>
> </services>
>
> Where the "revision" parameter points to the branch created in gerrit. 
>
> Doing a local `osc service run` works and I can checkout to that
> specific revision, however, if I send this same _service file to OBS
> then I get an error as is unable to find such revision:  
>
> Running /usr/lib/obs/service//obs_scm --scm git \
> --url https://opendev.org/starlingx/fault \
> --revision refs/changes/95/684395/5 --version 1.0 \
> --subdir fm-common --filename fm-common \
> --changesgenerate disable --extract opensuse/fm-common.spec \
> --extract opensuse/fm-common.changes --outdir /var/cache/obs/z2nh9MaFtIWq/out
> refs/changes/95/684395/5: No such revision 
>
> It seems that the server doesn't have an updated version of the repo, is there way
> to force the server to do a git fetch ?
>
> You can see the complete error log here: 
> https://build.opensuse.org/package/show/home:erichcm:branches:Cloud:StarlingX:2.0/fm-common
>
> Thanks!
>
> - [0] https://build.opensuse.org/project/show/Cloud:StarlingX:2.0
> _______________________________________________
> Starlingx-discuss mailing list
> Starlingx-discuss at lists.starlingx.io
> http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss

-- 
Dominig ar Foll
Senior Software Architect
Intel Open Source Technology Centre




More information about the Starlingx-discuss mailing list