-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove deprecated legacy job group view #5941
base: master
Are you sure you want to change the base?
Conversation
cc1508f
to
7cc64c3
Compare
Did you check whether any of the job groups on our production instances still use the old approach? If that would be the case, will they be force-migrated? |
The old view has been deprecated 5 years ago. Related: https://progress.opensuse.org/issues/166310#note-14
7cc64c3
to
2397575
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments by Martchus
I asked for feedback in Slack, as mentioned in the ticket. |
I found https://openqa.fedoraproject.org/admin/job_templates/1 and https://openqa.debian.net/admin/job_templates/10 still using the table based view. @phil-hands @AdamWill @marmarek WDYT about the proposed change and enforcing the YAML editor for job group settings? |
I'm fine with that. I think Qubes uses YAML everywhere already (if not, that's an oversight). |
As discussed today, I'm fine with merging this anyways if it will simply switch over existing instances seamlessly to using the yaml editor without losing data. |
What is the "old view" and what is the "new view"? We don't typically use any kind of web UI editing of the job templates in Fedora; we work on them as text in my FIF interchange format in https://pagure.io/fedora-qa/os-autoinst-distri-fedora - see https://pagure.io/fedora-qa/os-autoinst-distri-fedora/blob/main/f/templates.fif.json and https://pagure.io/fedora-qa/os-autoinst-distri-fedora/blob/main/f/templates-updates.fif.json . https://pagure.io/fedora-qa/os-autoinst-distri-fedora/blob/main/f/fifloader.py converts to the format expected by load_templates and calls load_templates on it. |
Adam Williamson ***@***.***> writes:
What is the "old view" and what is the "new view"?
We don't typically use any kind of web UI editing of the job templates in Fedora; we work on them as text in my FIF interchange format in https://pagure.io/fedora-qa/os-autoinst-distri-fedora - see https://pagure.io/fedora-qa/os-autoinst-distri-fedora/blob/main/f/templates.fif.json and https://pagure.io/fedora-qa/os-autoinst-distri-fedora/blob/main/f/templates-updates.fif.json . https://pagure.io/fedora-qa/os-autoinst-distri-fedora/blob/main/f/fifloader.py converts to the format expected by load_templates and calls load_templates on it.
We (debian) currently also use fifloader. I've not yet experimented with
moving our config into the git repo (which seems to be the way forward).
Once I manage to update to a version that includes the caching of git
repos, I'll be able to experiment. At present if I use CASEDIR more than
a little salsa.debian.org (our gitlab instance) decides I'm conducting a
DoS and blocks the workers. :-/
I have an update that's mostly ready, so hopefully will be able to sort
that out shortly.
Cheers, Phil.
--
Philip Hands -- https://hands.com/~phil
|
This is the old view: https://openqa.fedoraproject.org/admin/job_templates/1 As opposed to the YAML editor: |
The script mentioned by @AdamWill will maybe break if we proceed with this (because if you have once submitted YAML you cannot update job templates anymore; the script uses |
to be clear, what would be easiest for us is if we can continue to just use |
FWIW I used to do something similar (didn't used the web ui for job templates, and instead re-imported generated input each time), but nowadays I'm using YAML version with web UI and I'd say it's better. But also, I have a bit less templates, so maybe there is some duplication that could be avoided by keeping external generator. Anyway, with the removal of legacy job group, I think any of such generator probably needs to be changed to generate YAML content instead of json dict for job groups. |
I wrote the intermediate format and parser before the current YAML stuff existed, because working with the previous format in text was painful. If it's necessary to adapt it we can, it's just work for no obvious benefit, which always sucks. The reason we want to maintain the templates in text and import them is so that we have proper revision history for changes to them, with handwritten commit messages and pull requests and so on. And also so our server deployment can be fully ansible-driven and disposable. |
On this I agree... |
The old view has been deprecated 5 years ago.
Related: https://progress.opensuse.org/issues/166310#note-14