#8593 builds failing on stg.koji against a side tag target -- mock errors
Closed: Fixed by ryanlerch. Opened by ryanlerch.

When trying to build a package on Koji Stage, my builds are failing with some mock errors:

https://koji.stg.fedoraproject.org/koji/taskinfo?taskID=90009028

AFAICT, the notable section from the root.log is:

DEBUG util.py:585:  BUILDSTDERR: Unable to detect release version (use '--releasever' to specify release version)
DEBUG util.py:585:  BUILDSTDERR: Failed to synchronize cache for repo 'build'
DEBUG util.py:585:  BUILDSTDERR: Ignoring repositories: build
DEBUG util.py:585:  BUILDSTDERR: Warning: Module or Group 'srpm-build' does not exist.
DEBUG util.py:585:  BUILDSTDERR: Error: Nothing to do.

If it helps, here is some background of how i got to this point, I created the side-tag using the following simple script:

import koji
ks = koji.ClientSession('https://koji.stg.fedoraproject.org/kojihub')
ks.gssapi_login()
print(ks.createSideTag("f30-build"))

And kicked off the build (in the f30 branch of my checkout from src.stg) with:

fedpkg-stage build --target f30-build-side-7723

@tkopecek IIRC you mentioned that koji.stg runs code from the demo branch of your fork of sidetag-koji-plugin, can you give some insight if this is a problem in code or configuration? Thanks.

Tag itself looks ok. For me it looks like a temporary network error (buildroot repo was not accessible in that point). @ryanlerch Are you able to reproduce it now?

@tkopecek just tried again with the same side-tag, and got the same issue:

https://koji.stg.fedoraproject.org/koji/taskinfo?taskID=90009390

@tkopecek and again with a new side-tag here, with the same failure:

https://koji.stg.fedoraproject.org/koji/taskinfo?taskID=90009393

I see the problem. sidetag doesn't inherit arches properly, so build repo doesn't exist. Not sure, what have changed in koji code, but there is a simple fix:

https://pagure.io/fork/tkopecek/sidetag-koji-plugin/c/c728393ace78349d260100a61e6ab41c799b85a7?branch=demo
+ build:

https://copr.fedorainfracloud.org/coprs/tkopecek/koji/build/998335/

@kevin I hope you're the right person to contact here, can we get Tomaš's fix deployed on koji.stg? Thanks!

Yep. I am planning on doing 1.18.0 builds here soon...

@tkopecek can you rebase your changes on 1.18.0 for me?

@kevin Change is only in sidetag plugin, not in koji, so only plugin update is needed. 1.18 should have everything you need already.

Awesome. Thanks for confirming.

ok. I have updated the plugin... can you try now again?

@kevin yes it works now thanks! @tkopecek thanks too!

the side tags i created before the patch was applied still didnt work, but i created a new one (which took a lot longer in the createrepo phase), but the build worked!

Metadata Update from @ryanlerch:
- Issue close_status updated to: Fixed
- Issue status updated to: Closed (was: Open)

@ryanlerch Just a note: createrepo should be much faster with koji 1.18 - it is running just update on that, while in older versions it is full createrepo. So, I'm wondering if there is still older koji in stage or update was already done?

Metadata