Test massive side-tag update in bodhi staging #12869
Labels
No labels
after freeze
automation
backlog
blocked
change-ack
change-nak
change-noreleng
changes
Closed As
Can't Fix
Closed As
Duplicate
Closed As
Fixed
Closed As
Fixed with Explanation
Closed As
Get back later
Closed As
Grooming
Closed As
Insufficient data
Closed As
Invalid
Closed As
It's all good
Closed As
taiga
Closed As
upstream
day-to-day
dev
docs
easyfix
epel
f26
f27
f28
f29
f30
f31
f32
f33
f34
f35
f36
f37
f38
f39
f40
f41
f42
f43
f44
f45
fedora
groomed
high-gain
high-trouble
in-progress
in-review
investigation
legal
low-gain
low-trouble
mass rebuild
medium-gain
medium-trouble
meeting
mini-initiative
new_artifact
ops
pdc_retirement
rawhide
RCA
review
script
sidetarget
sprint-0
sprint-1
sprint-2
sprint-3
sprint-4
sprint-5
unfrozen
waiting on external
Backlog Status
Needs Review
Backlog Status
Ready
chore
documentation
points
01
points
02
points
03
points
05
points
08
points
13
Priority
High
Priority
Low
Priority
Medium
release-process
Sprint Status
Blocked
Sprint Status
Done
Sprint Status
In Progress
Sprint Status
Review
Sprint Status
To Do
Technical Debt
Work Item
Bug
Work Item
Epic
Work Item
Spike
Work Item
Task
Work Item
User Story
No milestone
No project
No assignees
5 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
releng/tickets#12869
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We are looking at changing how distrobuildsync-eln creates updates for its builds, by using bodhi side-tag updates. The question is if bodhi can handle a mass rebuild batch (which could be 3k+ and possibly much larger in the future) or if we need to bypass bodhi in such a case. (Right now it just tags builds into eln-updates candidate, so one update per build, which is suboptimal in any case and overwhelms the system during an ELN mass rebuild.)
To that end, we want to test bodhi's capacity by creating a side-tag, populating it with a few thousand builds (even better if somehow we don't actually have to create the builds), submitting it, and monitoring bodhi and koji performance, all in staging.
More background: https://github.com/fedora-eln/eln/issues/200 (in comments)
When do you need this? (YYYY/MM/DD)
At your convenience.
When is this no longer needed or useful? (YYYY/MM/DD)
N/A
If we cannot complete your request, what is the impact?
We either don't proceed with the desired improvements, or we do so without proper testing.
Metadata Update from @jnsamyak:
@mattia can you see any easy way to test this in staging?
I don't know if the Koji prod db to the stg db can be synchronized, so that we could already have a lot of "new" builds that bodhi stg is not aware of...
Those builds could then be tagged in a side-tag and a new side-tag update submitted in bodhi stg. At least the initial tagging of all builds in pending-signing should work, after that I don't know if bodhi stg correctly lists to the message queue to process later steps.
We could do a sync of course, but not sure there would be sufficent builds that it doesn't know about? well, I guess it depends on when the last time we synced the bodhi database?
Bodhi stg db was synced last time two months ago, there F43 is still Rawhide. There are currently ~8.900 updates in prod which shouldn't be known by bodhi stg. The count surely has multiple updates for the same package, but I think we can reach a couple of thousand of unique packages.
ok. I can start a sync. It usually takes a day or so.
The sync is all done.
Can you look at making the update? or who would like to work on that? :)
Looks like I have access to koji and bodhi stg, but where can I find the builds that were just synced?
I think I don't quite understand the question, anyway we'll need to:
Does anyone see any simpler way?
f43-build-side-117736 created on koji.stg
I've not been really much around lately... I will try to write a script to extract/compare/tag builds in the side-tag as soon as I get some time (a week? perhaps two...)
Ok, I've tagged ~23k builds in
f43-build-side-117736(koji is still running tag tasks ATM).For reference, here it's what I ran (in staging bodhi-web pod terminal to overcome koji authentication and authorization):
... I think I might have clogged koji stg... it still running tagging tasks (ca ~1.8k left)!
This might happen in prod as well when bodhi will start to move the builds of such large updates. Perhaps there are limited resources in stg in comparison to prod, so the impact on prod will be lesser.
Yeah, stg koji has vastly smaller amount of builders... and in fact I need to rebuild some since the dc move, so it even has less than normal. :)
It seems like it's done?
https://bodhi.stg.fedoraproject.org/updates/FEDORA-2025-3d83cfd7e4
So, BTW, it wasn't done I don't think... the staging builders got in a weird state and were not checking in.
I fixed that (and moved them all to f43) eariler this week.
It had a backlog of about 13,000 tag tasks.
it's got about 2300 left. Should finish later tonight.
The question I suppose is if they got in a weird state because of this update?
Reviving this on the new tracker. It takes a long while to open the page for the update, but eventually it does load. The update is still in pending.
Likely in stg it will always sit in pending because we don't have signing there, so bodhi is likely waiting for them to be signed.
I think probibly we should just try it in prod...
It seems that this test caused issue https://pagure.io/fedora-infrastructure/issue/12932, probably some optimization could be done.
So, it seems it's looping oddly...
for example:
I see the update itself was deleted? (at least it 404s for me now).
I deleted the side tag.
I am canceling all the 376167 tagging tasks (but it's slow going)
@kevin wrote in #12869 (comment):
Yes, I did a synch of bodhi's prod db into stg as It was needed to test the multiple destination registries for flatpak. I thought that the massive update was not needed anymore.
yeah, we don't need it anymore, but do you have any idea why bodhi was trying to still tag/untag from the signing-pending sidetag tag?
Only down to 361228 now... ;(
Might have to resort to just doing a prod->staging koji db sync to clear them out. ;)
@kevin wrote in #12869 (comment):
My only thought is that the signing-pending sidetag is tagged by celery tasks. Maybe those tasks were still living somewhere even after they were supposed to be completed?
Hum... does it use a rabbitmq queue for those? If it was, they are all empty now...
down to 307784... gonna take a while. ;(