Skip to content

Commit 1187906

Browse files
author
CKI KWF Bot
committed
Merge: [redhat] gitlab-ci: change automotive_disttag to .el9_6iv
MR: https://gitlab.com/redhat/rhel/src/kernel/rhel-9/-/merge_requests/3499 JIRA: INTERNAL Upstream status: RHEL only The pipeline unfortunately bumped into a `redhat/self-test/2001-dist-r‎elease.bats` bug addressed in cki-project/kernel-ark!2142+ and cki-project/kernel-ark!2837+. I've pulled them in here to get this MR across the line. Signed-off-by: Patrick Talbert <[email protected]> Approved-by: Michael Hofmann <[email protected]> Approved-by: Bruno Goncalves <[email protected]> Approved-by: Jan Stancek <[email protected]> Approved-by: CKI KWF Bot <[email protected]> Merged-by: CKI KWF Bot <[email protected]>
2 parents 6708d42 + 28fc3f7 commit 1187906

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.gitlab-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ workflow: !reference [.workflow]
4444

4545
.automotive_disttag:
4646
variables:
47-
disttag_override: '.el9iv'
47+
disttag_override: '.el9_6iv'
4848

4949
.automotive_branch:
5050
variables:

redhat/self-test/2001-dist-release.bats

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
# Purpose: These are general dist-release tests. They are run from a git
33
# worktree created by the first test.
44

5+
DIST_RELEASE_REGEX="^\[redhat\] kernel-[0-9.]*"
6+
57
load test-lib.bash
68

79
@test "dist-release setup worktree" {
@@ -36,7 +38,7 @@ _dist-release_test_2() {
3638
# release number in Makefile.rhelver.
3739
# and above in prologue.
3840
cd $BATS_TMPDIR/distrelease
39-
title="$(git log --oneline --all --grep "\[redhat\] kernel" -n 1 --pretty="format:%s")"
41+
title="$(git log --oneline --grep "${DIST_RELEASE_REGEX}" -n 1 --pretty="format:%s")"
4042
# title = ... [redhat] kernel-5.11.0-0.rc0.20201220git467f8165a2b0.104
4143
# Just the title message part AFTER "[redhat] ":
4244
title=${title##*\[redhat\] }
@@ -60,15 +62,20 @@ _dist-release_test_3() {
6062
# Test whether the version in the commit message matches
6163
# the version in the change log.
6264
cd $BATS_TMPDIR/distrelease
65+
6366
# Extract just the version part (the part between [ ]) on the first line of
6467
# the change log:
6568
changelog=$(head -1 ./redhat/kernel.changelog-${RHEL_MAJOR}.${RHEL_MINOR} | sed -e 's/.*\[\(.*\)\].*/\1/')
66-
commit="$(git log --oneline --all --grep "\[redhat\] kernel" -n 1 --pretty="format:%s")"
69+
70+
# Extract the tag in the latest [redhat] kernel commit message
71+
commit="$(git log --oneline --grep "${DIST_RELEASE_REGEX}" -n 1 --pretty="format:%s")"
6772
# Extract just the commit message part AFTER "[redhat] ":
6873
gitlog=${commit##*\[redhat\] }
6974
# This time, strip off "kernel-" also:
7075
gitlog=${gitlog/kernel-/}
76+
7177
echo "The kernel version in the changelog-${RHEL_MAJOR}.${RHEL_MINOR} ("${changelog}") differs from the version in the git log ($gitlog)"
78+
7279
run _dist-release_test_3
7380
check_status
7481
}

0 commit comments

Comments
 (0)