Session
FOSDEM Schedule 2021
Testing and Automation

Interactive debugging inside CI systems

Genesis and future of the spread tool
D.testing
Zygmunt Krynicki
<p>Commonly used CI systems operate as SAAS solutions, where the user is not running the CI stack locally. This lends itself to debugging pitfall as developers cannot easily reproduce the problem locally and cannot interactively examine it. This talk proposes an inverted design, where self-operated CI tool can be used both in the cloud as well as locally, supporting interactive debugging sessions.</p>

The recent surge of CI systems has created an interesting new problem, where a failure occurs in a specific test environment but does not appear in the familiar environment used by the developer.

This problem is compounded by the batch nature of such systems, where a developer can merely push additional patches to some branch to trigger an asynchronous execution process.

During the development of Ubuntu Core operating system, this problem was amplified by the fact building and testing a full OS image is a time-consuming process, leading to cycles that spanned hours and lead to frustration. Snapd developers created the spread program to solve this, among other, problem.

The SAAS solution became a thin wrapper around spread, which allocates, provisions, uses and finally discards the test environment. Crucially, almost all errors can be reproduced locally, as spread runs as a standalone tool, using QEMU, LXD, Google Compute Engine or Linode as executors.

This allows anyone to run spread locally, in interactive mode, and explore the problem without putting additional load on the centralized CI system, greatly improving the debugging process.

Additional information

Type devroom

More sessions

2/6/21
Testing and Automation
D.testing
<p>A warm welcome from your devroom managers, practical information, lineup and administrivia. Let's make this edition of FOSDEM count!</p> <p>Happy Testing!</p>
2/6/21
Testing and Automation
Guillaume Tucker
D.testing
<p>KernelCI has now been a Linux Foundation project for just over a year. During that time, it has set the basis needed to fulfil its mission of being the de facto upstream kernel test system. We can now build many more kernels, run many more tests and collate results from many more test labs. We also have a growing team of core contributors, an on-going commitment from our member companies as well as more presence in the kernel community. Together, we are gathering the momentum needed to start ...
2/6/21
Testing and Automation
Richard Palethorpe
D.testing
<p>Introduction to the Linux Test Project <em>Fuzzy Sync</em> C library, developed for reproducing data races in the Kernel from user land. Will cover a simple contrived data race, entirely in user land, to demonstrate the basics. Then we will move onto real world examples within the kernel, including when a <em>delay bias</em> is required to ensure a particular chronological order of events.</p> <p>Fuzzy Sync was developed for reproducing Linux kernel bugs, however it may be used to collide ...
2/6/21
Testing and Automation
D.testing
<p>Tracing is awesome. Full stop. But what tracing? In fact, even just on Linux, there are quite a few tracing solutions, aren't there they? In this session we'll show off and compare ftrace and LTTng and, for visualizing the collected data, KernelShark and Trace Compass when tracing both baremetal and virtualized systems.</p>
2/6/21
Testing and Automation
Chris Fiege
D.testing
<p>Embedded development is complex enough. By automating repetitive parts during development and employing testing, a lot of time can be saved and human errors avoided. Additionally, embedded development is usually a team effort: scarce hardware must often be shared between developers and sometimes even with automated testing. labgrid is an open source tool for remote control and testing of Embedded Linux Devices in a distributed lab. In this talk the presenter takes a look at how labgrid can be ...
2/6/21
Testing and Automation
Nacho Cougil
D.testing
<p>Have you heard of TDD? Are you interested or familiar with this practice but have never been able to understand it?</p> <p>In this session I'd like to present the benefits of Test-Driven Development (TDD), explaing how it works and what the benefits are of using it. We will see in a more detailed approach this way of developing software, where our software is always built guided by tests.</p> <p>We will go over some history about TDD, which is the main process we must follow when we work with ...
2/6/21
Testing and Automation
Lionel LONKAP TSAMBA
D.testing
<p>It brings the concept of roles that help classify your automation tasks/playbooks and group them by purpose.</p> <p>But :</p> <p>When should we use Ansible roles? How to create and test Ansible roles? What tools do we have to ease the process? How can we apply best practices of software development (TDD) to ensure your roles are doing what they are intended to? This talk will introduce you to Ansible Roles testing will Ansible Molecule; a tool used to drive ansible roles testing. Moreover, we ...