Project

General

Profile

action #111887

coordination #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

Added by okurz 2 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Organisational
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:

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


Related issues

Related to openQA Project - action #112403: 18-qemu-options.t fails on Leap 15.4 and Tumbleweed size:MResolved2022-06-14

Copied from openQA Project - action #102464: Upgrade OBS package CI checks to Leap 15.3 (os-autoinst+openQA) size:MResolved2021-09-24

History

#1 Updated by okurz 2 months ago

  • Copied from action #102464: Upgrade OBS package CI checks to Leap 15.3 (os-autoinst+openQA) size:M added

#2 Updated by okurz 2 months 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)

#3 Updated by okurz about 2 months ago

  • Related to action #112403: 18-qemu-options.t fails on Leap 15.4 and Tumbleweed size:M added

#4 Updated by okurz about 2 months ago

  • Target version changed from future to Ready

#5 Updated by okurz about 2 months 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

#6 Updated by tinita about 2 months ago

  • Status changed from Workable to In Progress
  • Assignee set to tinita

#7 Updated by tinita about 2 months 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

#8 Updated by tinita about 2 months 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':

#9 Updated by tinita about 2 months 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

#10 Updated by tinita about 2 months 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

#11 Updated by tinita about 2 months 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.

#12 Updated by tinita about 2 months ago

Ok, builds finally finished.

https://github.com/os-autoinst/openQA/pull/4708 - ci: Test on Leap 15.4

#14 Updated by openqa_review about 2 months ago

  • Due date set to 2022-07-01

Setting due date based on mean cycle time of SUSE QE Tools

#15 Updated by tinita about 2 months ago

  • Status changed from In Progress to Feedback

#16 Updated by tinita about 2 months ago

  • Status changed from Feedback to Resolved

15.4 tests showing up in all pull requests as expected.

#17 Updated by okurz about 1 month ago

  • Due date deleted (2022-07-01)

Also available in: Atom PDF