mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
When testing a series of commits that also includes changes to the Linux tools directory, it is useless to test the changes in tools as they may not affect the kernel itself. Doing tests on the kernel for changes that do not affect the kernel is a waste of time. Add a PATCHCHECK_SKIP that takes a series of shas that will be skipped while doing the individual commit tests. For example, the runtime verification may have a series of commits like: $ git log --abbrev-commit --pretty=oneline fac5493251a6~1..HEAD3d3800b4f7rv: Remove rv_reactor's reference counter3d3c376118rv: Merge struct rv_reactor_def into struct rv_reactor24cbfe18d5rv: Merge struct rv_monitor_def into struct rv_monitorb0c08dd534rv: Remove unused field in struct rv_monitor_def58d5f0d437(debiantesting-x86-64/trace/rv/core) rv: Return init error when registering monitors560473f2e2verification/rvgen: Organise Kconfig entries for nested monitors9efcf59082tools/dot2c: Fix generated files going over 100 column limit1160ccaf77tools/rv: Stop gracefully also on SIGTERMf60227f344tools/rv: Do not skip idle in tracef3735df628verification/rvgen: Do not generate unused variables6fb37c2a27verification/rvgen: Generate each variable definition only once8cfcf9b0e9verification/rvgen: Support the 'next' operatorfac5493251rv: Allow to configure the number of per-task monitor Where the first commit touches the kernel followed by a series of commits that do not, and ends with commits that do. Instead of having to add multiple patchcheck tests to handle the gaps, just include the commits that should not be tested: $ git log --abbrev-commit --pretty=oneline fac5493251a6~1..HEAD | grep -e verification -e tools/ | cut -d' ' -f1 | while read a ; do echo -n "$a "; done560473f2e29efcf590821160ccaf77f60227f344f3735df6286fb37c2a278cfcf9b0e9Then set PATCHCHECK_SKIP to that, and those commits will be skipped. PATCHCHECK_SKIP =560473f2e29efcf590821160ccaf77f60227f344f3735df6286fb37c2a278cfcf9b0e9Cc: John 'Warthog9' Hawley <warthog9@kernel.org> Cc: Dhaval Giani <dhaval.giani@gmail.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Link: https://lore.kernel.org/20250725112153.1dd06b84@gandalf.local.home Signed-off-by: Steven Rostedt <rostedt@goodmis.org>