Skip to content

Commit

Permalink
Merge pull request #263 from os-autoinst/leap16_add_repos
Browse files Browse the repository at this point in the history
Leap16 add repos
  • Loading branch information
lkocman authored Aug 30, 2024
2 parents 8b85e48 + 8a5d908 commit 22377bc
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 15 deletions.
8 changes: 8 additions & 0 deletions script/cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ def pre_rsync_repo(repos):
[ ! -f __envsub/files_repo.lst ] || ! grep -q -- "-POOL-" __envsub/files_repo.lst || additional_repo_suffix=-POOL
[ -n "$buildid" ] || buildid=$(grep -hEo 'Build[0-9]+(.[0-9]+)?' __envsub/Media1_*.lst 2>/dev/null | head -n 1)
buildid=${buildid/.iso}
for repo in {REPOOWNLIST,}; do
while read src; do
[ ! -z "$src" ] || continue
Expand Down Expand Up @@ -375,6 +377,8 @@ def openqa_call_extra(repos):
repoKey=${repot}
repoKey=${repoKey^^}
repoKey=${repoKey//-/_}
repoKey=${repoKey//./_}
repoKey=${repoKey//$/}
echo " REPO_$i=$repoDest \\\\"
''' + openqa_call_repot_part3() + '''
''' + openqa_call_build_id_from_iso2(build_id_from_iso) + '''
Expand Down Expand Up @@ -408,6 +412,8 @@ def openqa_call_repot1_debugsource():
repoKey=REPOKEY
repoKey=${repoKey^^}
repoKey=${repoKey//-/_}
repoKey=${repoKey//./_}
repoKey=${repoKey//$/}
''' + openqa_call_repot1_debugsource() + '''
dest=${dest//-Media1/}
dest=${dest//-Media2/}
Expand All @@ -433,6 +439,8 @@ def openqa_call_repot1_debugsource():
''' + openqa_call_repot1_debugsource() + '''
repoKey=${repoKey^^}
repoKey=${repoKey//-/_}
repoKey=${repoKey//./_}
repoKey=${repoKey//$/}
'''

def openqa_call_news_end(distri, news, news_arch):
Expand Down
9 changes: 8 additions & 1 deletion script/scriptgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,14 @@ def gen_read_files(self, f):
self.p(cfg.read_files_repo_link3, f)
if self.repos:
if self.media1 == "0":
self.p(cfg.read_files_repo, f, "| grep -P 'Media1(.license)?$'", "")
self.p(
cfg.read_files_repo,
f,
"| grep -P 'Media1(.license)?$'",
"",
"| grep -P 'Media[1-3](.license)?$'",
"",
)
else:
self.p(cfg.read_files_repo, f)
if self.build_id_from_iso:
Expand Down
6 changes: 4 additions & 2 deletions t/obs/openSUSE:Leap:16.0:ToTest/files_iso.lst
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
agama-installer-Leap.aarch64.9.0.0-openSUSE-Build2.4.iso
agama-installer-Leap.aarch64-9.0.0-openSUSE-Build2.4.iso
agama-installer-Leap.aarch64-9.0.0-openSUSE-PXE-Build2.4.install.iso
agama-installer-Leap.ppc64le-9.0.0-openSUSE-Build2.4.iso
agama-installer-Leap.s390x-9.0.0-openSUSE-Build2.4.iso
agama-installer-Leap.x86_64.9.0.0-openSUSE-Build2.4.iso
agama-installer-Leap.x86_64-9.0.0-openSUSE-Build2.4.iso
agama-installer-Leap.x86_64-9.0.0-openSUSE-PXE-Build2.4.install.iso
1 change: 1 addition & 0 deletions t/obs/openSUSE:Leap:16.0:ToTest/files_repo.lst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Leap-16.0-aarch64-ppc64le-s390x-x86_64
16 changes: 10 additions & 6 deletions t/obs/openSUSE:Leap:16.0:ToTest/print_openqa.before
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
/usr/bin/openqa-cli api -X post isos?async=1 \
ARCH=aarch64 \
ASSET_256=agama-installer-Leap.aarch64.9.0.0-openSUSE-Build2.4.iso.sha256 \
ASSET_256=agama-installer-Leap.aarch64-9.0.0-openSUSE-Build2.4.iso.sha256 \
BUILD=2.4 \
CHECKSUM_ISO=$(cut -b-64 /var/lib/openqa/factory/other/agama-installer-Leap.aarch64.9.0.0-openSUSE-Build2.4.iso.sha256 | grep -E '[0-9a-f]{5,40}' | head -n1) \
CHECKSUM_ISO=$(cut -b-64 /var/lib/openqa/factory/other/agama-installer-Leap.aarch64-9.0.0-openSUSE-Build2.4.iso.sha256 | grep -E '[0-9a-f]{5,40}' | head -n1) \
DISTRI=opensuse \
FLAVOR=agama-installer-Leap \
ISO=agama-installer-Leap.aarch64.9.0.0-openSUSE-Build2.4.iso \
ISO=agama-installer-Leap.aarch64-9.0.0-openSUSE-Build2.4.iso \
REPO_0=Leap-16.0-aarch64-ppc64le-s390x-x86_64-Build2.4 \
REPO_SLE_LEAP_16_0_AARCH64_PPC64LE_S390X_X86_64=Leap-16.0-aarch64-ppc64le-s390x-x86_64-Build2.4 \
VERSION=16.0 \
_OBSOLETE=1

/usr/bin/openqa-cli api -X post isos?async=1 \
ARCH=x86_64 \
ASSET_256=agama-installer-Leap.x86_64.9.0.0-openSUSE-Build2.4.iso.sha256 \
ASSET_256=agama-installer-Leap.x86_64-9.0.0-openSUSE-Build2.4.iso.sha256 \
BUILD=2.4 \
CHECKSUM_ISO=$(cut -b-64 /var/lib/openqa/factory/other/agama-installer-Leap.x86_64.9.0.0-openSUSE-Build2.4.iso.sha256 | grep -E '[0-9a-f]{5,40}' | head -n1) \
CHECKSUM_ISO=$(cut -b-64 /var/lib/openqa/factory/other/agama-installer-Leap.x86_64-9.0.0-openSUSE-Build2.4.iso.sha256 | grep -E '[0-9a-f]{5,40}' | head -n1) \
DISTRI=opensuse \
FLAVOR=agama-installer-Leap \
ISO=agama-installer-Leap.x86_64.9.0.0-openSUSE-Build2.4.iso \
ISO=agama-installer-Leap.x86_64-9.0.0-openSUSE-Build2.4.iso \
REPO_0=Leap-16.0-aarch64-ppc64le-s390x-x86_64-Build2.4 \
REPO_SLE_LEAP_16_0_AARCH64_PPC64LE_S390X_X86_64=Leap-16.0-aarch64-ppc64le-s390x-x86_64-Build2.4 \
VERSION=16.0 \
_OBSOLETE=1

8 changes: 4 additions & 4 deletions t/obs/openSUSE:Leap:16.0:ToTest/print_rsync_iso.before
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
rsync --timeout=3600 -tlp4 --specials obspublish::openqa/openSUSE:Leap:16.0:ToTest/images/*/*agama-installer-Leap*/*agama-installer-Leap.aarch64.9.0.0-openSUSE-Build2.4.iso /var/lib/openqa/factory/iso/agama-installer-Leap.aarch64.9.0.0-openSUSE-Build2.4.iso
rsync --timeout=3600 -tlp4 --specials obspublish::openqa/openSUSE:Leap:16.0:ToTest/images/*/*agama-installer-Leap*/*agama-installer-Leap.aarch64.9.0.0-openSUSE-Build2.4.iso.sha256 /var/lib/openqa/factory/other/agama-installer-Leap.aarch64.9.0.0-openSUSE-Build2.4.iso.sha256
rsync --timeout=3600 -tlp4 --specials obspublish::openqa/openSUSE:Leap:16.0:ToTest/images/*/*agama-installer-Leap*/*agama-installer-Leap.x86_64.9.0.0-openSUSE-Build2.4.iso /var/lib/openqa/factory/iso/agama-installer-Leap.x86_64.9.0.0-openSUSE-Build2.4.iso
rsync --timeout=3600 -tlp4 --specials obspublish::openqa/openSUSE:Leap:16.0:ToTest/images/*/*agama-installer-Leap*/*agama-installer-Leap.x86_64.9.0.0-openSUSE-Build2.4.iso.sha256 /var/lib/openqa/factory/other/agama-installer-Leap.x86_64.9.0.0-openSUSE-Build2.4.iso.sha256
rsync --timeout=3600 -tlp4 --specials obspublish::openqa/openSUSE:Leap:16.0:ToTest/images/*/*agama-installer-Leap*/*agama-installer-Leap.aarch64-9.0.0-openSUSE-Build2.4.iso /var/lib/openqa/factory/iso/agama-installer-Leap.aarch64-9.0.0-openSUSE-Build2.4.iso
rsync --timeout=3600 -tlp4 --specials obspublish::openqa/openSUSE:Leap:16.0:ToTest/images/*/*agama-installer-Leap*/*agama-installer-Leap.aarch64-9.0.0-openSUSE-Build2.4.iso.sha256 /var/lib/openqa/factory/other/agama-installer-Leap.aarch64-9.0.0-openSUSE-Build2.4.iso.sha256
rsync --timeout=3600 -tlp4 --specials obspublish::openqa/openSUSE:Leap:16.0:ToTest/images/*/*agama-installer-Leap*/*agama-installer-Leap.x86_64-9.0.0-openSUSE-Build2.4.iso /var/lib/openqa/factory/iso/agama-installer-Leap.x86_64-9.0.0-openSUSE-Build2.4.iso
rsync --timeout=3600 -tlp4 --specials obspublish::openqa/openSUSE:Leap:16.0:ToTest/images/*/*agama-installer-Leap*/*agama-installer-Leap.x86_64-9.0.0-openSUSE-Build2.4.iso.sha256 /var/lib/openqa/factory/other/agama-installer-Leap.x86_64-9.0.0-openSUSE-Build2.4.iso.sha256
3 changes: 3 additions & 0 deletions t/obs/openSUSE:Leap:16.0:ToTest/print_rsync_repo.before
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Leap-16.0-aarch64-ppc64le-s390x-x86_64$
rsync --timeout=3600 -rtlp4 --delete --specials obspublish::openqa/openSUSE:Leap:16.0:ToTest/product/local/000productcompose/Leap-16.0-aarch64-ppc64le-s390x-x86_64/ /var/lib/openqa/factory/repo/Leap-16.0-aarch64-ppc64le-s390x-x86_64-CURRENT
rsync --timeout=3600 -rtlp4 --delete --specials --link-dest /var/lib/openqa/factory/repo/Leap-16.0-aarch64-ppc64le-s390x-x86_64-CURRENT/ /var/lib/openqa/factory/repo/Leap-16.0-aarch64-ppc64le-s390x-x86_64-CURRENT/ /var/lib/openqa/factory/repo/Leap-16.0-aarch64-ppc64le-s390x-x86_64-Build2.4/
9 changes: 7 additions & 2 deletions xml/obs/openSUSE:Leap:16.0.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
<openQA
project_pattern="openSUSE:Leap:(?P&lt;version&gt;16.0):ToTest"
dist_path="images"
iso_path="images"
repo_path="product/local/000productcompose"
distri="opensuse"
archs="aarch64 x86_64">
<flavor name="agama-installer-Leap" folder="*/*agama-installer-Leap*" iso="1" media1="0"/>
<flavor name="agama-installer-Leap" folder="*/*agama-installer-Leap*" iso="1" media1="0">
<repos>
<oss name="Leap-16.0-aarch64-ppc64le-s390x-x86_64$" mirror="1"/>
</repos>
</flavor>
</openQA>

0 comments on commit 22377bc

Please sign in to comment.