#9504 I managed to brake the infra tags F32 probably?
Closed: Fixed 3 years ago by mizdebsk. Opened 3 years ago by praiskup.

I have a "batch" script for tagging something to infra or infra-stg repos.
Today I did:
$ ./releng/koji-tag-move-prod copr-cli-1.91-1.fc32 python-copr-1.107-1.fc32 python-copr-common-0.11-1.fc32 copr-rpmbuild-0.44-1.fc32

Which generated several task in Koji that all succeeded. That in turn generated several distRepo tasks, which also seem they succeeded. E.g.:
https://koji.fedoraproject.org/koji/taskinfo?taskID=56522470

Particular x86_64 createrepo run says there's copr-rpmbuild-0.44:
https://kojipkgs.fedoraproject.org//work/tasks/2547/56522547/createrepo.log
14:25:44: Adding pkg: /var/tmp/koji/tasks/2547/56522547/repo/Packages/c/copr-rpmbuild-0.44-1.fc32.x86_64.rpm

But still, after some time - I can't find the package in the /latest/ repo:

# curl https://kojipkgs.fedoraproject.org/repos-dist/f32-infra/latest/x86_64/pkglist 2>/dev/null | grep copr-rpmbuild
Packages/c/copr-rpmbuild-0.39-1.fc32.x86_64.rpm
Packages/c/copr-rpmbuild-0.42-1.fc32.x86_64.rpm

What you can see here is a race condition in Koji. You tagged 4 builds, which resulted in 4 competing distRepo tasks. The last distRepo task to complete "wins" - the repo produced by it is marked as latest.

Metadata Update from @mizdebsk:
- Issue assigned to mizdebsk
- Issue priority set to: Waiting on Assignee (was: Needs Review)
- Issue tagged with: ops

3 years ago

Fixed with koji tag --force f32-infra copr-rpmbuild-0.44-1.fc32
https://koji.fedoraproject.org/koji/taskinfo?taskID=56530242

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

3 years ago

It looks like the issue is still not fixed. I'm adding more information in case someone wants to forward it upstream.

tagBuild tasks:

  • task 56522463, event 64852048, build copr-cli-1.91-1.fc32
  • task 56522464, event 64852049, build python-copr-1.107-1.fc32
  • task 56522465, event 64852050, build python-copr-common-0.11-1.fc32
  • task 56522466, event 64852051, build copr-rpmbuild-0.44-1.fc32

Corresponding distRepo tasks:

  • task 56522467, event 64852048, repo 506546
  • task 56522468, event 64852049, repo 506547
  • task 56522469, event 64852050, repo 506548
  • task 56522470, event 64852051, repo 506549

At the end, after all the above tasks completed, repo 506547 was the latest while 506549 should be the latest.

Metadata Update from @mizdebsk:
- Issue tagged with: koji

3 years ago

Login to comment on this ticket.

Metadata
Boards 1
ops Status: Done