action #111887
closedcoordination #111860: [epic] Upgrade all our infrastructure, e.g. o3+osd workers+webui and production workloads, to openSUSE Leap 15.4
Upgrade OBS package CI checks to Leap 15.4 (os-autoinst+openQA) size:S
Description
Motivation¶
As we will use Leap 15.4 as CI container base in os-autoinst and openQA so far already AFAIK we should also run the according OBS checks on Leap 15.4
Acceptance criteria¶
- AC1: OBS checks run on pull requests for both os-autoinst and openQA test on Leap 15.4
Suggestions¶
- Find out where this is configured and update to use Leap 15.4 both for os-autoinst and openQA, see https://openbuildservice.org/help/manuals/obs-user-guide/cha.obs.scm_ci_workflow_integration.html#sec.obs.obs_scm_ci_workflow_integration.use_cases.test_build_pull_request just update https://github.com/os-autoinst/os-autoinst/blob/master/.obs/workflows.yml or maybe even extend to have 15.3+15.4. If it's easier just replace the version. If it's possible test both
- Verify that it works, e.g. by opening a pull request for both os-autoinst and openQA
Updated by okurz over 2 years ago
- Copied from action #102464: Upgrade OBS package CI checks to Leap 15.3 (os-autoinst+openQA) size:M added
Updated by okurz over 2 years ago
- Project changed from openQA Infrastructure to openQA Project
- Subject changed from Upgrade OBS package CI checks to Leap 15.3 (os-autoinst+openQA) size:M to Upgrade OBS package CI checks to Leap 15.4 (os-autoinst+openQA)
- Description updated (diff)
- Category set to Organisational
- Assignee deleted (
tinita) - Priority changed from High to Normal
- Target version changed from Ready to future
- Start date deleted (
2021-09-24)
Updated by okurz over 2 years ago
- Related to action #112403: 18-qemu-options.t fails on Leap 15.4 and Tumbleweed size:M added
Updated by okurz over 2 years ago
- Subject changed from Upgrade OBS package CI checks to Leap 15.4 (os-autoinst+openQA) to Upgrade OBS package CI checks to Leap 15.4 (os-autoinst+openQA) size:S
- Description updated (diff)
- Status changed from New to Workable
Updated by tinita over 2 years ago
- Status changed from Workable to In Progress
- Assignee set to tinita
Updated by tinita over 2 years ago
- Status changed from In Progress to Blocked
There is a problem with running 15.4 checks, I made a test PR in my fork:
https://github.com/perlpunk/os-autoinst/pull/13
https://build.opensuse.org/package/live_build_log/home:tinita:branches:devel:openQA:GitHub:perlpunk:os-autoinst:PR-13/os-autoinst:os-autoinst-test/openSUSE_Leap_15.4/x86_64
[ 49s] Unpacking os-autoinst-4.6.1655222857.cb9d974.obscpio ...
[ 49s] 68005 blocks
[ 49s] Running build time source services...
[ 49s] Traceback (most recent call last):
[ 49s] File "/usr/lib/obs/service/tar", line 30, in <module>
[ 49s] main()
[ 49s] File "/usr/lib/obs/service/tar", line 26, in main
[ 49s] TarSCM.run()
[ 49s] File "/usr/lib/obs/service/TarSCM/__init__.py", line 39, in run
[ 49s] task_list.process_list()
[ 49s] File "/usr/lib/obs/service/TarSCM/tasks.py", line 118, in process_list
[ 49s] self.process_single_task(task)
[ 49s] File "/usr/lib/obs/service/TarSCM/tasks.py", line 173, in process_single_task
[ 49s] self.args = self.check_for_branch_request(args)
[ 49s] File "/usr/lib/obs/service/TarSCM/tasks.py", line 156, in check_for_branch_request
[ 49s] if j['object_kind'] == 'merge_request':
[ 49s] KeyError: 'object_kind'
[ 49s] service run failed for service 'tar'
Currently asking on IRC about it. If I get no answer I'll create an issue: https://github.com/openSUSE/obs-service-tar_scm
Updated by tinita over 2 years ago
It looks like there might already be a fix, but not yet packaged?
This is how the code looks like on my machine:
155 j = json.load(f)
156 if j['object_kind'] == 'merge_request':
and in git:
https://github.com/openSUSE/obs-service-tar_scm/blob/master/TarSCM/tasks.py#L155
dat = json.load(ofh)
if dat.get('object_kind') == 'merge_request':
Updated by tinita over 2 years ago
I created an issue: https://github.com/openSUSE/obs-service-tar_scm/issues/446
Not much help on IRC yet.
I created a draft PR anyway for adding the 15.4 repo: https://github.com/os-autoinst/os-autoinst/pull/2086
Updated by tinita over 2 years ago
- Status changed from Blocked to In Progress
I got the suggestion "try adding opensuse:tools repo to your repo config".
I wasn't able to figure out the exact text to put into the config first.
First I found out that it needs to be openSUSE:Tools and not opensuse:tools.
Then I found out that I should not add another <respository>
item, but add that repository to the openSUSE_Leap_15 repository.
<repository name="openSUSE_Leap_15.4">
<path project="openSUSE:Tools" repository="15.4"/>
<path project="devel:openQA:Leap:15.4" repository="openSUSE_Leap_15.4"/>
<arch>x86_64</arch>
</repository>
Now the build succeeded:
https://github.com/perlpunk/os-autoinst/pull/13
https://github.com/os-autoinst/os-autoinst/pull/2086 ready for review
Updated by tinita over 2 years ago
openQA: https://github.com/perlpunk/openQA/pull/2 - Dummy PR to test the new OBS config
But the build is still blocked, it has been blocked for hours.
https://build.opensuse.org/package/show/devel:openQA:GitHub:perlpunk:openQA:PR-2/openQA
Not sure what to do.
Updated by tinita over 2 years ago
Ok, builds finally finished.
https://github.com/os-autoinst/openQA/pull/4708 - ci: Test on Leap 15.4
Updated by tinita over 2 years ago
Updated by openqa_review over 2 years ago
- Due date set to 2022-07-01
Setting due date based on mean cycle time of SUSE QE Tools
Updated by tinita over 2 years ago
- Status changed from In Progress to Feedback
Updated by tinita over 2 years ago
- Status changed from Feedback to Resolved
15.4 tests showing up in all pull requests as expected.
Updated by okurz over 1 year ago
- Copied to action #130603: Upgrade OBS package CI checks to Leap 15.5 (os-autoinst+openQA) size:M added