openQA has a well earned reputation as a 'full system' testing tool, able to test a system end-to-end from the operating system to it's applications on a number of different platforms and architectures, including VM's & Bare Metal.

But one area of weakness is it's usefulness as a testing tool for developers or packagers. openQA can easily test a package once it's INSIDE a distribution, but how do you test that package BEFORE submitting it to the distribution?

openSUSE/SLE has the concept of 'staging', where we utilise OBS and openQA to basically create 'what-if' builds's for the whole OS where we can do basic validation tests to ensure a proposed check-in doesn't break the OS or it's basic functionality, but staging doesn't test the package itself

This hackweek project will experiment with solutions to this problem.

Concepts to be investigated include

  • Providing reference disk images for package-specific tests for each OS (SLE, Tumbleweed, Leap)
  • Injecting test code into openQA without needing it to be submitted via github. This might include openQA tests being stored as part of the OBS package.
  • Loading package-specific tests in openQA by feeding openQA variables over its REST API
  • Booting these reference images to either a console or X11 as required by the test
  • Testing and providing the results in a meaningful way to the Developer

I will try to find solutions to the above which will work in the following contexts

  • a Developer working 'packageless' with just a git repo and a local compiler (unlikely, but still want to think about it)
  • a Developer working on a package in their OBS Home/Devel project
  • Release Management/Devel Project reviewers of an OBS submit request wanting to see the results of Package Testing BEFORE deciding whether or not the package can be checked-in or forwarded to staging

Looking for hackers with the skills:

perl openqa obs

This project is part of:

Hack Week 15

Activity

  • over 5 years ago: tjyrinki_suse liked this project.
  • over 5 years ago: cdywan liked this project.
  • over 7 years ago: tbechtold liked this project.
  • over 7 years ago: pgeorgiadis liked this project.
  • over 7 years ago: szarate liked this project.
  • over 7 years ago: bchou liked this project.
  • over 7 years ago: okurz liked this project.
  • over 7 years ago: pluskalm liked this project.
  • over 7 years ago: osukup liked this project.
  • over 7 years ago: diegoakechi liked this project.
  • over 7 years ago: Knurpht liked this project.
  • over 7 years ago: aaronluna75 liked this project.
  • over 7 years ago: RBrownSUSE added keyword "openqa" to this project.
  • over 7 years ago: RBrownSUSE added keyword "obs" to this project.
  • over 7 years ago: RBrownSUSE added keyword "perl" to this project.
  • over 7 years ago: RBrownSUSE liked this project.
  • over 7 years ago: RBrownSUSE started this project.
  • over 7 years ago: RBrownSUSE originated this project.

  • Comments

    • RBrownSUSE
      over 7 years ago by RBrownSUSE | Reply

      Part 2 - Autogenerate X11 tests from Desktop files in packages - including booting the image for the first time, running the app for the first time, and autoneedling for the first time

    • tbechtold
      over 7 years ago by tbechtold | Reply

      Maybe interessting is the system Debian/Ubuntu uses called autopkgtest. See also https://ci.debian.net/

      • pgeorgiadis
        over 7 years ago by pgeorgiadis | Reply

        I watched the relevant talk at FOSDEM and it seems really great the fact that they are running all the upstream testsuites plus the fact that they trigger these testsuites against the package's reverse dependencies... (!) But autopkgtest it's tighten only to Debian, which means we can't just take it and use it as it is. We have to come up with our own equivalent system. But the most important part here is that the developers/maintainer has to take care about these upstream tests, so IMHO there has to be an agreement that the src rpm should include the tests into them, and build service has to have the resources + the knowledge on how to run them; then either reject or forward the update up to openQA.

    Similar Projects

    Create object oriented API for perl's YAML::XS module by tinita

    Description

    [YAML::XS](https://metacpan.o...


    Make more sense of openQA test results using AI by livdywan

    Description

    AI has the potential to help wi...


    New features in openqa-trigger-from-obs for openQA by jlausuch

    Description

    Implement new features in openq...


    Setup a new openQA on more powerful server by JNa

    Description

    • currently local openQA storag...


    Learn obs/ibs sync tool by xlai

    Description

    Once images/repo are built from...


    Hack on isotest-ng - a rust port of isotovideo (os-autoinst aka testrunner of openQA) by szarate

    Description

    Some time ago, I managed to c...


    Fix RSpec tests in order to replace the ruby-ldap rubygem in OBS by enavarro_suse

    Description

    _"LDAP mode is not official s...


    New features in openqa-trigger-from-obs for openQA by jlausuch

    Description

    Implement new features in openq...


    Learn about OSB and contribute to `kustomize` and `k9s` packages to add ARM arch by dpock

    Description

    There are already k9s and `ku...


    Automation of ABI compatibility checks by ateixeira

    Description

    ABI compatibility checks could ...


    Explore the integration between OBS and GitHub by pdostal

    Project Description

    The goals:

    1) When...