Skip to content

Commit 16a75f2

Browse files
binujpBinu Jose Philip
andauthored
Bphilip/refactor version entangle check add release number (#12910)
MOFED and associated kernel modules did not include kernel minor version in the entangle check. check_entangle script did not provide enough details when it failed. Added a unit test to make sure the script was indeed doing everything as expected. There was some refactoring done to the script to make the workflow more compact. Co-authored-by: Binu Jose Philip <bphilip@microsoft.com>
1 parent 41f8711 commit 16a75f2

12 files changed

Lines changed: 165 additions & 100 deletions

File tree

.github/workflows/check-entangled-specs.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,9 @@ jobs:
3131
- name: Get Python dependencies
3232
run: python3 -m pip install -r toolkit/scripts/requirements.txt
3333

34-
- name: Run entanglement checking script
34+
# Run unit test for check_entangled_specs.py before invoking it
35+
- name: Unit test for spec entanglement check
36+
run: PYTHONPATH=toolkit/scripts python3 toolkit/scripts/tests/test_check_entangled_specs.py
37+
38+
- name: Run spec entanglement checking script
3539
run: python3 toolkit/scripts/check_entangled_specs.py .

SPECS/fwctl/fwctl.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
# SOFTWARE.
3131
#
3232

33-
%global last-known-kernel 6.6.82.1
33+
%global last-known-kernel 6.6.82.1-1
3434

3535
%{!?_name: %define _name fwctl}
3636
%{!?_version: %define _version 24.10}

SPECS/iser/iser.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#
2727
#
2828

29-
%global last-known-kernel 6.6.82.1
29+
%global last-known-kernel 6.6.82.1-1
3030

3131
%if 0%{azl}
3232
%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{VERSION}-%{RELEASE}' kernel-headers)

SPECS/isert/isert.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#
2727
#
2828

29-
%global last-known-kernel 6.6.82.1
29+
%global last-known-kernel 6.6.82.1-1
3030

3131
%if 0%{azl}
3232
%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{VERSION}-%{RELEASE}' kernel-headers)

SPECS/knem/knem.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
# KMP is disabled by default
2727
%{!?KMP: %global KMP 0}
2828

29-
%global last-known-kernel 6.6.82.1
29+
%global last-known-kernel 6.6.82.1-1
3030

3131
%if 0%{azl}
3232
%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{VERSION}-%{RELEASE}' kernel-headers)

SPECS/mft_kernel/mft_kernel.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
%global last-known-kernel 6.6.82.1
1+
%global last-known-kernel 6.6.82.1-1
22

33
%if 0%{azl}
44
%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{VERSION}-%{RELEASE}' kernel-headers)

SPECS/mlnx-nfsrdma/mlnx-nfsrdma.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#
2727
#
2828

29-
%global last-known-kernel 6.6.82.1
29+
%global last-known-kernel 6.6.82.1-1
3030

3131
%if 0%{azl}
3232
%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{VERSION}-%{RELEASE}' kernel-headers)

SPECS/mlnx-ofa_kernel/mlnx-ofa_kernel.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
# and/or other materials provided with the distribution.
2626
#
2727
#
28-
%global last-known-kernel 6.6.82.1
28+
%global last-known-kernel 6.6.82.1-1
2929

3030
%if 0%{azl}
3131
%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{VERSION}-%{RELEASE}' kernel-headers)

SPECS/srp/srp.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#
2727
#
2828

29-
%global last-known-kernel 6.6.82.1
29+
%global last-known-kernel 6.6.82.1-1
3030

3131
%if 0%{azl}
3232
%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{VERSION}-%{RELEASE}' kernel-headers)

SPECS/xpmem/xpmem.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
%{!?KMP: %global KMP 0}
22

3-
%global last-known-kernel 6.6.82.1
3+
%global last-known-kernel 6.6.82.1-1
44

55
%if 0%{azl}
66
%global target_kernel_version_full %(/bin/rpm -q --queryformat '%{VERSION}-%{RELEASE}' kernel-headers)

0 commit comments

Comments
 (0)