GithubHelp home page GithubHelp logo

zhilinlinlin / kdevops Goto Github PK

View Code? Open in Web Editor NEW

This project forked from linux-kdevops/kdevops-history

0.0 0.0 0.0 35.03 MB

kdevops main repository: Generalized devops infrastructure for Linux kernel development

License: Other

Shell 10.96% Ruby 1.76% Python 9.11% C 24.35% Awk 0.04% Makefile 8.11% Smarty 0.01% Yacc 13.99% Lex 0.73% HCL 3.27% Roff 26.37% Vim Script 0.02% Jinja 1.27%

kdevops's Introduction

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 vagrant for different virtualization technologies or terraform in order to support any cloud provider, if you're into that sort of stuff. 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, and even has some support for OS X.

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

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 with 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

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.

kdevops's People

Contributors

amir73il avatar dagmcr avatar fredlawl avatar joelgranados avatar josefbacik avatar jtlayton avatar luis-henrix avatar mcgrof avatar nmtadam avatar panky-codes avatar pwyoung avatar vadorovsky avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.