Automate regular x86-64 stable RT kernel Upgrade#345
Conversation
|
Please run flake8 ( python3 -m flake8 ) on all the python files and fix all the issues we can. Some of them could be fixed by running black (python3 -m black ). |
dbeefde to
e0fcb85
Compare
4709c45 to
34fd7ec
Compare
rajendra-desai-ni
left a comment
There was a problem hiding this comment.
- This commit doesn't have a proper title.
- Remove "Finalized" word from the PR title.
- Add AB work item in the PR description.
- You don't have to add 'Updates' section in the PR description. All the updates should go into their respective work items.
- Try to follow 'Summary', 'Justification', and 'Testing' section in the PR description which is cleaner compared to existing sections.
chaitu236
left a comment
There was a problem hiding this comment.
Convention for commit message header is "recipe/subsystem: commit header". This lets us know just by looking at a commit header which files/subsystem/recipe a commit is touching.
Please edit the commit messages to follow this pattern.
E.g., like
upstream_merge: Refactor build logic and clean up scripts
Also we try to keep commit header not too long (50 chars is ideal but we regularly go beyond that if we can't fit in 50 chars).
Following commit will become too long though, try to see if we can shorten it.
upstream_merge: Merge stable RT patches, build kernel, and validate target deployment this will become very long.
- Add automation for stable RT kernel merge from upstream - Implement kernel build, module install and target deployment - Integrate toolchain setup and environment initialization - Add kernel version verification using uname after reboot - Add driver rebuild flow with DKMS and SSHFS support Signed-off-by: Jatin Bharti <jatin.bharti@emerson.com>
- Add defconfig regeneration with change detection logic - Implement gated PR creation after successful workflow - Add PR metadata generation including work item and summary - Ensure PR creation only on successful merge and validation Signed-off-by: Jatin Bharti <jatin.bharti@emerson.com>
- Extract driver rebuild into dedicated helper function - Move PR creation logic into separate function - Remove redundant variables and unify toolchain handling - Improve logging, validation and error handling - Align code and commit structure with project conventions Signed-off-by: Jatin Bharti <jatin.bharti@emerson.com>
Changes
#work item - 3181494
https://dev.azure.com/ni/DevCentral/_workitems/edit/3181494
This PR automates fetching and merging the latest stable‑RT kernel tags into the NI Linux Real‑Time branch. It includes clean repository setup, RT merge, kernel build, deployment, and driver rebuild integration using SSHFS and DKMS. Additionally it also include defconfig regeneration and PR creation automatically once the script ran sucessfully and also sends an email to notify the user about the result status.
Justification
The RT kernel upgrade process involves multiple manual steps and is error-prone. This automation streamlines the workflow, improves reliability, and ensures consistent execution across runs.
Testing
uname -rdkms statusProcess
Suggested Reviewers:
@rajendra-desai-ni
@Shreejit-03
@ni/rtos