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

Cordoba Malibran, Erich erich.cordoba.malibran at intel.com
Wed Sep 25 15:10:47 UTC 2019


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


More information about the Starlingx-discuss mailing list