Skip to content

Latest commit

 

History

History
354 lines (266 loc) · 15.9 KB

README.md

File metadata and controls

354 lines (266 loc) · 15.9 KB

Table of Contents

kdevops

The master git repo for kdevops is:

kdevops logo

kdevops provides a framework for automation for optimal Linux kernel development and testing. It is intended to help you both be able to ramp up with any complex Linux kernel development environment super fast, and to also let you ramp up an entire lab for Linux kernel testing for a complex subsystem in a jiffy.

It makes use of local ansible roles and optionally lets you use libguestfs with libvirt or terraform in order to support an cloud provider. Support for vagrant in kdevops exists but is now deprecated in favor of libguestfs since vagrant lacks any active maintenance, new development should use and focus on libguestfs.

Variability is provided through the same variability language used in the Linux kernel, kconfig. It is written by Linux kernel developers, for Linux kernel developers. The project aims to enable support for all Linux distributions.

kdevops supports PCIe passthrough when using virtualization and allows you to pick and choose onto which guest any PCIe device gets passed onto. This could be all devices to one guest or you get to pick what device goes to a specific guest. You can for example even end up with many guests and each guest gets one PCIe passthrough device assigned, all through kconfig.

kdevops PCIe passthrough support is supported using kdevops dynamic kconfig, a new target is provided 'make dynconfig' which let's kdevops generate Kconfig files dynamically based on your system environment. This mechanism will be expanded in the future to make kdevops even more dynamic to support even more features.

Quick kdevops demos

To give you an idea of the power and goals behind kdevops we provide a few quick demos of what you can do below. More workflows will be added with time. Additional documentation detailing how to get started as well as how to add new workflows follows the quick demos.

Start kernel hacking in just 4 commands

Configure kdevops to use bare metal, cloud or a local vm based solution, pick your distribution of choice, enable the Linux kernel workflow, select target git tree, and get up and running on a freshly compiled Linux git tree in just 4 commands:

  • make menuconfig
  • make
  • make bringup
  • make linux
  • make linux HOSTS="kdevops-xfs-crc kdevops-xfs-reflink" for example if you wanted to restrict running the above command only to the two hosts listed

To uninstall the "6.6.0-rc2" kernel from all nodes:

  • make linux-uninstall KVER="6.6.0-rc2"

Start running fstests in 2 commands

To test a kernel against fstests, for example, if you enable the fstests workflow you can just run:

  • make fstests
  • make fstests-baseline
  • make fstests-results

For more details see kdevops fstests docs

Start running blktests in 2 commands

To test a kernel against fstests, for example, if you enable the blktests workflow you can just run:

  • make blktests
  • make blktests-baseline
  • make blktests-results

For more details see kdevops blktests docs

Start testing NFS in 2 commands

To test the kernel's nfs server with the pynfs testsuite, enable the pynfs workflow and then run:

  • make pynfs
  • make pynfs-baseline

For more details see kdevops nfs docs

Start running the git regression suite in 2 commands

To test a kernel using the git regression suite, enable the gitr workflow and then run:

  • make gitr
  • make gitr-baseline

For more details see kdevops gitr docs

Start running the ltp suite in 2 commands

To test a kernel using the ltp suite, enable the ltp workflow and then run:

  • make ltp
  • make ltp-baseline

For more details see kdevops ltp docs

Start running the nfstest suite in 2 commands

To test a kernel using the nfstest suite, enable the nfstest workflow and then run:

  • make nfstest
  • make nfstest-baseline

For more details see kdevops nfstest docs

Runs some kernel selftests in a parallel manner

kdevops supports running Linux kernel selftests in parallel, this is as easy as:

  • make selftests
  • make selftests-baseline

You can also run specific tests:

  • make selftests-firmware
  • make selftests-kmod
  • make selftests-sysctl

For more details see kdevops nfs docs

CXL

There is CXL support. You can either use virtualized CXL devices or with PCIe passthrough you can assign devices to guests and create custom topologies. kdevops let you build and install the latest CXL enabled qemu version as well for you. For more details refer to kdevops cxl docs

kdevops chats

We use discord and IRC. Right now we have more folks on discord than on IRC.

kdevops on discord

We have a public chat server up, for now we use discord:

kdevops IRC

We are also on irc.oftc.net on #kdevops

Parts to kdevops

It is best to think about kdevops in phases of your desired target workflow. The first thing you need to do is get systems up. You either are going to use baremetal hosts, use a cloud solution, or spawn local virtualized guests.

The phases of use of kdevops can be split into:

  • Bring up
  • Make systems easily accessible, and install generic developer preferences
  • Run defined workflows

kdevops-diagram


kdevops workflow documentation

A kdevops workflow is a type of target work environment you want to run in. Different workflows have different kernel requirements, sometimes cloud or qemu requirements and also enable new make targets for building things or test targets. Some workflows are generic and may be shared such as that for Linux to configure and build it. Building and installing Linux is however optional if you want to just use the kernel that comes with your Linux distribution.

kdevops shared workflows

kdevops workflows which may be dedicated

kdevops general documentation

Below is kdevops' recommended documentation reading.

kdevops kernel-ci support

kdevops supports its own kernel continous integration support, so to allow Linux developers and Linux distributions to keep track of issues present in any of supported kdevops workflows and be able to tell when new regressions are detected. Note though that kernel-ci for kdevops is only implemented on a few workflows, such as fstestse and blktests. In order to support a kernel-ci part of the hard task is to come up with what a baseline is, and in kdevops style, be able go easily git diff and read a regression with one line per regression. This requires a bit of time and work. And it is why some other workflows do not yet support a kernel-ci.

Documentation for this follows:

kdevops organization

kdevops was put under the linux-kdevops organization to enable other developers to commit / push updates without any bottlenecks.

kdevops tests results

kdevops has started to enable users / developers to also push results for tests. This goes beyond just collecting baseline rusults for known failures, this aims to collect within all dmesg / bad log files for each test that failed.

An arbitrary namespace is provided so to enable developers, part of the linux-kdevops organization to contribute findings.

See viewing kdevops archived results to see more details about how to see results. We should add simple wrappers for this in the future.

Video presentations on kdevops or related

Underneath the kdevops hood

Below are sections which get into technical details of how kdevops works.

License

This work is licensed under the copyleft-next-0.3.1, refer to the LICENSE file for details. Please stick to SPDX annotations for file license annotations. If a file has no SPDX annotation the copyleft-next-0.3.1 applies. We keep SPDX annotations with permissive licenses to ensure upstream projects we embraced under permissive licenses can benefit from our changes to their respective files. Likewise GPLv2 files are allowed as copyleft-next-0.3.1 is GPLv2 compatible.