[OS-BUILD PATCHv4] Add new os-build targets: rt-devel and automotive-devel

2024-01-15 Thread Don Zickus (via Email Bridge)
From: Don Zickus 

Add new os-build targets: rt-devel and automotive-devel

This is an attempt to automate the rt and automotive devel branches
using the upstream linux-rt-devel tree as the base combined with
os-build.

The overall process isn't too complicated but there are enough steps to
make it compilicated.

Steps:
* map upstream linux-rt-devel to master-rt branch
* update os-build
* grab linux version from master-rt and os-build
* if version the same then merge os-build and master-rt to
  os-build-rt-automated
* else merge linux-stable and master-rt to os-build-rt-automated until
  master-rt is update to os-build
* merge os-build-rt-automated into os-build-rt-devel
* merge os-build-rt-automated into os-build-automotive-devel
* run the generate pending-rhel config scripts on rt-devel and
  automotive-devel

The script has beginning logic to handle rebasing if necessary when the
rt-devel branch transitions from linux-stable to linux master again.

The script has no effect on the day-to-day operations of os-build.  They
are designed to be run from a gitlab cron job and update in the
background.  Once they are deemed stable, adding ARK MRs that target
either os-build-rt-devel or os-build-automotive-devel will be possible
and those branches can start proper parallel developement with os-build.

Signed-off-by: Don Zickus 

diff --git a/redhat/scripts/ci/ark-ci-env.sh b/redhat/scripts/ci/ark-ci-env.sh
index blahblah..blahblah 100644
--- a/redhat/scripts/ci/ark-ci-env.sh
+++ b/redhat/scripts/ci/ark-ci-env.sh
@@ -19,6 +19,156 @@ ci_pre_check()
 git diff-index --quiet HEAD || die "Dirty tree, please clean before 
merging."
 }
 
+# GitLab can only mirror one project at a time.  This wrapper function does
+# the mirroring for any other branches.
+ark_git_mirror()
+{
+   target_branch=$1
+   upstream_tree=$2
+   source_branch=$3
+   reset_branch=$4
+
+   prev_branch="$(git rev-parse --abbrev-ref HEAD)"
+   remote_branch="$upstream_tree/$source_branch"
+   git checkout "$target_branch"
+   git fetch "$upstream_tree" "$source_branch"
+   if test -z "$reset_branch"; then
+   git merge "$remote_branch" || die "git merge $remote_branch 
failed"
+   else
+   git reset --hard "$remote_branch" || die "git reset 
$remote_branch failed"
+   fi
+   git checkout "$prev_branch"
+}
+
+# Merge wrapper in case issues arise
+ark_git_merge()
+{
+   source_branch=$1
+   target_branch=$2
+   reset_branch=$3
+
+   prev_branch="$(git rev-parse --abbrev-ref HEAD)"
+   git checkout "${target_branch}"
+   if test -n "$reset_branch"; then
+   # there are cases when the initial merge is a reset
+   git reset --hard "$source_branch"  || die "git reset 
$source_branch failed"
+   elif ! git merge -m "Merge '$source_branch' into '$target_branch'" 
"$source_branch"; then
+   git merge --abort
+   printf "Merge conflict; halting!\n"
+   printf "To reproduce:\n"
+   printf "* git checkout %s\n" "${target_branch}"
+   printf "* git merge %s\n" "${source_branch}"
+   die "Merge conflicts"
+   fi
+
+   git checkout "$prev_branch"
+   return 0
+}
+
+ark_git_rebase()
+{
+   branch=$1
+   upstream=$2
+   base=$3
+
+   prev_branch="$(git rev-parse --abbrev-ref HEAD)"
+   git checkout "${branch}"
+   if ! git rebase --onto "$base" "$upstream"; then
+   git rebase --abort
+   printf "Rebase conflict; halting!\n"
+   printf "To reproduce:\n"
+   printf "* git checkout %s\n" "${branch}"
+   printf "* git rebase --onto %s %s\n" "${base}" "${upstream}"
+   die "Rebase conflicts"
+   fi
+   git checkout "$prev_branch"
+   return 0
+}
+
+ark_update_configs()
+{
+   branch=$1
+   skip_configs=$2
+
+   prev_branch="$(git rev-parse --abbrev-ref HEAD)"
+   git checkout "${branch}"
+
+   # Generates and commits all the pending configs
+   make -j FLAVOR=fedora dist-configs-commit
+   # Skip executing gen_config_patches.sh for new Fedora configs
+
+   old_head="$(git rev-parse HEAD)"
+   make -j FLAVOR=rhel dist-configs-commit
+   new_head="$(git rev-parse HEAD)"
+
+
+   # Converts each new pending config from above into its finalized git
+   # configs// branch.  These commits are used for Merge
+   # Requests.
+   [ "$old_head" != "$new_head" ] && CONFIGS_ADDED="1" || CONFIGS_ADDED=""
+
+   if test "$CONFIGS_ADDED"; then
+   if test -z "$skip_configs"; then
+   git checkout "$prev_branch"
+   ./redhat/scripts/genspec/gen_config_patches.sh "$branch"
+   fi
+   else
+   printf "No new configuration values exposed from "
+   printf "merging %s into $BRANCH\n" "$UPSTREAM_REF"
+   fi
+
+   git 

Re: [OS-BUILD PATCHv3 0/0] Add new os-build targets: rt-devel and automotive-devel

2024-01-15 Thread Don Zickus (via Email Bridge)
From: Don Zickus on gitlab.com
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2732#note_1728267647

/block

Need to figure out how to make os-build-stable from upstream stable.  linux-
rolling-stable??
--
___
kernel mailing list -- kernel@lists.fedoraproject.org
To unsubscribe send an email to kernel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/kernel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue


Re: [OS-BUILD PATCHv3 0/0] Add new os-build targets: rt-devel and automotive-devel

2024-01-15 Thread Don Zickus (via Email Bridge)
From: Don Zickus on gitlab.com
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2732#note_1728267406

Updated script to handle -rc0 versioning.
--
___
kernel mailing list -- kernel@lists.fedoraproject.org
To unsubscribe send an email to kernel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/kernel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue


Re: [OS-BUILD PATCH] redhat: filter-modules.sh.rhel: add dell-smm-hwmon

2024-01-15 Thread Andreas Gruenbacher (via Email Bridge)
From: Andreas Gruenbacher on gitlab.com
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2880#note_1728162012

I assume that this fixes these build errors we're running into currently:
```
depmod: WARNING: /srv/workspace/ark_kernel-ark-pipeline_os-build/kernel-
ark/ci-test-rpms/BUILDROOT/kernel-6.8.0-0.rc0.052d534373b7.6.test.el9.x86_64/.
/lib/modules/6.8.0-0.rc0.052d534373b7.6.test.el9.x86_64/kernel/drivers/hwmon/d
ell-smm-hwmon.ko needs unknown symbol wmidev_evaluate_method
depmod: WARNING: /srv/workspace/ark_kernel-ark-pipeline_os-build/kernel-
ark/ci-test-rpms/BUILDROOT/kernel-6.8.0-0.rc0.052d534373b7.6.test.el9.x86_64/.
/lib/modules/6.8.0-0.rc0.052d534373b7.6.test.el9.x86_64/kernel/drivers/hwmon/d
ell-smm-hwmon.ko needs unknown symbol wmi_driver_unregister
depmod: WARNING: /srv/workspace/ark_kernel-ark-pipeline_os-build/kernel-
ark/ci-test-rpms/BUILDROOT/kernel-6.8.0-0.rc0.052d534373b7.6.test.el9.x86_64/.
/lib/modules/6.8.0-0.rc0.052d534373b7.6.test.el9.x86_64/kernel/drivers/hwmon/d
ell-smm-hwmon.ko needs unknown symbol __wmi_driver_register
```
--
___
kernel mailing list -- kernel@lists.fedoraproject.org
To unsubscribe send an email to kernel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/kernel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue


[OS-BUILD PATCH] redhat: filter-modules.sh.rhel: add dell-smm-hwmon

2024-01-15 Thread Scott Weaver (via Email Bridge)
From: Scott Weaver 

redhat: filter-modules.sh.rhel: add dell-smm-hwmon

The dell-smm-hwmon module depends on wmi.ko which is packaged in
kernel-modules so move dell-smm-hwmon.ko to the module package as well.

Signed-off-by: Scott Weaver 

diff --git a/redhat/rhel_files/filter-modules.sh.rhel 
b/redhat/rhel_files/filter-modules.sh.rhel
index blahblah..blahblah 100755
--- a/redhat/rhel_files/filter-modules.sh.rhel
+++ b/redhat/rhel_files/filter-modules.sh.rhel
@@ -39,7 +39,7 @@ netprots="6lowpan appletalk atm ax25 batman-adv bluetooth can 
dccp dsa ieee80215
 
 drmdrvs="amd ast gma500 i2c i915 mgag200 nouveau radeon via "
 
-singlemods="ntb_netdev iscsi_ibft iscsi_boot_sysfs megaraid pmcraid qedi 
qla1280 9pnet_rdma rpcrdma nvmet-rdma nvme-rdma hid-picolcd hid-prodikeys 
hwa-hc hwpoison-inject hid-sensor-hub target_core_user sbp_target cxgbit 
iw_cxgb3 iw_cxgb4 cxgb3i cxgb3i cxgb3i_ddp cxgb4i chcr chtls parport_serial ism 
regmap-sdw regmap-sdw-mbq arizona-micsupp hid-asus nct6775 ntc_thermistor video 
apple_bl kasan_test intel-m10-bmc-hwmon"
+singlemods="ntb_netdev iscsi_ibft iscsi_boot_sysfs megaraid pmcraid qedi 
qla1280 9pnet_rdma rpcrdma nvmet-rdma nvme-rdma hid-picolcd hid-prodikeys 
hwa-hc hwpoison-inject hid-sensor-hub target_core_user sbp_target cxgbit 
iw_cxgb3 iw_cxgb4 cxgb3i cxgb3i cxgb3i_ddp cxgb4i chcr chtls parport_serial ism 
regmap-sdw regmap-sdw-mbq arizona-micsupp hid-asus nct6775 ntc_thermistor video 
apple_bl kasan_test intel-m10-bmc-hwmon dell-smm-hwmon"
 
 # Grab the arch-specific filter list overrides
 source ./filter-$2.sh

--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2880
--
___
kernel mailing list -- kernel@lists.fedoraproject.org
To unsubscribe send an email to kernel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/kernel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue


Re: [OS-BUILD PATCHv2 0/6] secure boot signing updates

2024-01-15 Thread Jan Stancek (via Email Bridge)
From: Jan Stancek on gitlab.com
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2849#note_1727995985

@jmflinuxtx Do you have a way to try this without merge? (In brew, I used to
test MRs like these  with --skip-tag parameter, so they don't get used
anywhere)
--
___
kernel mailing list -- kernel@lists.fedoraproject.org
To unsubscribe send an email to kernel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/kernel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue


[OS-BUILD PATCH] redhat: filter-modules.sh.rhel: add dell-smm-hwmon

2024-01-15 Thread Scott Weaver (via Email Bridge)
From: Scott Weaver 

redhat: filter-modules.sh.rhel: add dell-smm-hwmon

The dell-smm-hwmon module depends on wmi.ko which is packaged in
kernel-modules so move dell-smm-hwmon.ko to the module package as well.

Signed-off-by: Scott Weaver 

diff --git a/redhat/rhel_files/filter-modules.sh.rhel 
b/redhat/rhel_files/filter-modules.sh.rhel
index blahblah..blahblah 100755
--- a/redhat/rhel_files/filter-modules.sh.rhel
+++ b/redhat/rhel_files/filter-modules.sh.rhel
@@ -39,7 +39,7 @@ netprots="6lowpan appletalk atm ax25 batman-adv bluetooth can 
dccp dsa ieee80215
 
 drmdrvs="amd ast gma500 i2c i915 mgag200 nouveau radeon via "
 
-singlemods="ntb_netdev iscsi_ibft iscsi_boot_sysfs megaraid pmcraid qedi 
qla1280 9pnet_rdma rpcrdma nvmet-rdma nvme-rdma hid-picolcd hid-prodikeys 
hwa-hc hwpoison-inject hid-sensor-hub target_core_user sbp_target cxgbit 
iw_cxgb3 iw_cxgb4 cxgb3i cxgb3i cxgb3i_ddp cxgb4i chcr chtls parport_serial ism 
regmap-sdw regmap-sdw-mbq arizona-micsupp hid-asus nct6775 ntc_thermistor video 
apple_bl kasan_test intel-m10-bmc-hwmon"
+singlemods="ntb_netdev iscsi_ibft iscsi_boot_sysfs megaraid pmcraid qedi 
qla1280 9pnet_rdma rpcrdma nvmet-rdma nvme-rdma hid-picolcd hid-prodikeys 
hwa-hc hwpoison-inject hid-sensor-hub target_core_user sbp_target cxgbit 
iw_cxgb3 iw_cxgb4 cxgb3i cxgb3i cxgb3i_ddp cxgb4i chcr chtls parport_serial ism 
regmap-sdw regmap-sdw-mbq arizona-micsupp hid-asus nct6775 ntc_thermistor video 
apple_bl kasan_test intel-m10-bmc-hwmon dell-smm-hwmon"
 
 # Grab the arch-specific filter list overrides
 source ./filter-$2.sh

--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2879
--
___
kernel mailing list -- kernel@lists.fedoraproject.org
To unsubscribe send an email to kernel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/kernel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue


Re: Kernel 6.7 Test Week Invitation

2024-01-15 Thread Luna Jernberg
Hey!

And happy new year too you too and all other Fedora testers, should be
able to help out with this :)

Den mån 15 jan. 2024 kl 13:29 skrev Sumantro Mukherjee :
>
> Hey All,
>
> I would like to invite all of you to participate in the Kernel 6.7
> Test week is happening from 2024-01-21 to 2024-01-28. It's
> fairly simple, head over to the wiki [0] and read in detail about the
> test week and simply run the test case mentioned in[1] and enter your
> results.
>
> As usual, the Fedora QA team will hangout at #fedora-test-...@libera.chat
> for questions and discussion.
>
> Happy New Year :)
>
> [0] http://fedoraproject.org/wiki/Test_Day:2024-01-21_Kernel_6.7_Test_Week
> [1] https://testdays.fedoraproject.org/events/173
>
> --
> //sumantro
> Fedora QE
> TRIED AND PERSONALLY TESTED, ERGO TRUSTED
> --
> ___
> test mailing list -- t...@lists.fedoraproject.org
> To unsubscribe send an email to test-le...@lists.fedoraproject.org
> Fedora Code of Conduct: 
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: 
> https://lists.fedoraproject.org/archives/list/t...@lists.fedoraproject.org
> Do not reply to spam, report it: 
> https://pagure.io/fedora-infrastructure/new_issue
--
___
kernel mailing list -- kernel@lists.fedoraproject.org
To unsubscribe send an email to kernel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/kernel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue


Kernel 6.7 Test Week Invitation

2024-01-15 Thread Sumantro Mukherjee
Hey All,

I would like to invite all of you to participate in the Kernel 6.7
Test week is happening from 2024-01-21 to 2024-01-28. It's
fairly simple, head over to the wiki [0] and read in detail about the
test week and simply run the test case mentioned in[1] and enter your
results.

As usual, the Fedora QA team will hangout at #fedora-test-...@libera.chat
for questions and discussion.

Happy New Year :)

[0] http://fedoraproject.org/wiki/Test_Day:2024-01-21_Kernel_6.7_Test_Week
[1] https://testdays.fedoraproject.org/events/173

-- 
//sumantro
Fedora QE
TRIED AND PERSONALLY TESTED, ERGO TRUSTED
--
___
kernel mailing list -- kernel@lists.fedoraproject.org
To unsubscribe send an email to kernel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/kernel@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue