linux: generate tags automatically
Quoted 17 lines · Luis Chamberlain
Quoted 4 lines · Daniel Gomez
Generate a
Kconfigchoice/endchoice menu with a list of the latest git refs (tags and heads) for upstream repositories.Signed-off-by Daniel Gomez <[email protected]>Overall, I think this is pretty awesome! Thoughts below on just loose things we should review to scale / grow so we can have expected behaviour in the future.
Quoted 7 lines
---
workflows/linux/Kconfig +0
-0@@ -220,9 +220,9 @@ config BOOTLINUX_TEST_MESSAGE_ID_INSTALL_B4
Quoted 14 lines
workflows/linux/Kconfig config BOOTLINUX_TEST_MESSAGE_ID_INSTALL_B4 · line 225
Quoted 8 lines
workflows/linux/Kconfig +3
-3config BOOTLINUX_TREE_TAG string - default BOOTLINUX_TREE_LINUS_TAG if BOOTLINUX_TREE_LINUS - default BOOTLINUX_TREE_STABLE_TAG if BOOTLINUX_STABLE - default BOOTLINUX_TREE_NEXT_TAG if BOOTLINUX_TREE_NEXT + default BOOTLINUX_TREE_LINUS_REF if BOOTLINUX_TREE_LINUS + default BOOTLINUX_TREE_STABLE_REF if BOOTLINUX_STABLE + default BOOTLINUX_TREE_NEXT_REF if BOOTLINUX_TREE_NEXTWe should discuss if we want or need a new choice for choosing whether or not we want the a) latest and greatest or b) last boot tested / build tested version. The difference being a) would likely be used to base tests on which move forward, and b) allows you to do less work to test the latest.
I think they don't need to be exclusive. We can have the script to generate
a) and some sort of template including b) that the script uses to generate the final list of options.
I did a prototype of this for mcgrof-next and jlayton trees already. I can polish it and send a v2 for review.
Quoted 14 lines
The issue with keeping a choise for this is then we're back to having to update a tag when a new release is made, but the value for that is that you'd get a sensible default which we know at least works.
I'm inclined to believe not having the option is best for now. It just means we'll also want to somehow extend fstests with a
Kconfig(with the option enabled by default) so that if no baseline is found for a kernel, we'd use the next most recent one to the tree version. Ie if one exists for v6.8-rc2 but not for v6.8-rc3 and the latest tag is v6.8-r3 we'll want this feature to let us use the v6.8-rc2 baseline. It just means we have to write support for this but I think Amir has been dying for something like this for a while.
Quoted 3 lines
Good stuff, excited to try it!
Luis
I also found the script needs to be 'promoted' to the top Makefile to generate the kconfig and have it available when the user selects the bootlinux config option inside menuconfig.
In addition, we probably don't want the script to run always as it delays the make execution.
If you have any additional ideas/problems/suggestions just let me know.
Note: I've also updated the cc list to point to the correct kdevops maillist.
Daniel
Quoted 8 lines · Daniel Gomez
Quoted 6 lines · Luis Chamberlain
We should discuss if we want or need a new choice for choosing whether or not we want the a) latest and greatest or b) last boot tested / build tested version. The difference being a) would likely be used to base tests on which move forward, and b) allows you to do less work to test the latest.
Quoted 6 lines
I think they don't need to be exclusive. We can have the script to generate
a) and some sort of template including b) that the script uses to generate the final list of options.I did a prototype of this for mcgrof-next and jlayton trees already. I can polish it and send a v2 for review.
Sounds good.
Quoted 6 lines
I also found the script needs to be 'promoted' to the top
Makefileto generate the kconfig and have it available when the user selects the bootlinux config option inside menuconfig.In addition, we probably don't want the script to run always as it delays the make execution.
The other option is to have features like these only if a user uses 'make dynconfig', but there seems to be a blury line between some of these simple dynamic kconfig entries and more complex ones like the ones used for PCI passthrough. On the one hand this one seems very valuable at a low expense to users, but PCI passthrough is a clear type of feature not all users want and also it exposes some low level system details not everyone wants grep'd for.
It would seemw we just need to make a judgement call when some dynamic kconfig is always built-in or not. This seems like a good example case to support always being built from the start.
The only other thing I can think of / or ask is that it would be nice for users who have an existing deployment using this to be able to easily update the tags in case a new linux-next tag is out, or Linus rc is out or the next stable extra version exists if one a stable kernel. But that can be done later. The value in having something like this long term is something like 0-day or other CI deployments using kdevops to rev the kernel to a new one so to easily be able to automate ongoing regression testing.
Luis