Project

General

Profile

Actions

action #88195

open

Full test of salt states including DBus on CI

Added by livdywan over 3 years ago. Updated 3 months ago.

Status:
Workable
Priority:
Low
Assignee:
-
Category:
-
Target version:
Start date:
2021-01-22
Due date:
% Done:

0%

Estimated time:
Tags:

Description

Motivation

Currently our salt states use this jinja template a lot:

{%- if not grains.get('noservices', False) %}

The purpose of it is to allow sanity checks of salt states without spinning up a full system which has DBus services and potentially other components running. Currently other types of problems won't be caught. So the CI should be extended to have a more complete approach.

Acceptance criteria

  • AC1: CI can test salt states without special conditions in definitions

Suggestions

Actions #1

Updated by livdywan over 3 years ago

  • Description updated (diff)
Actions #2

Updated by okurz over 3 years ago

  • Priority changed from Normal to Low
  • Target version set to future

nice idea. Unfortunately currently no place on our backlog yet.

Actions #3

Updated by okurz over 3 years ago

  • Target version changed from future to Ready

let's try that now.

Actions #4

Updated by okurz over 3 years ago

also https://docs.saltproject.io/en/latest/ref/modules/all/salt.modules.saltcheck.html looks very promising. Likely we should start with that.

Actions #5

Updated by okurz over 3 years ago

  • Target version changed from Ready to future

before following up with that I suggest to do #90167 first as it will change our CI environment

Actions #6

Updated by okurz about 3 years ago

  • Description updated (diff)
Actions #7

Updated by okurz about 3 years ago

  • Description updated (diff)
Actions #8

Updated by okurz over 1 year ago

  • Tags set to infra
Actions #9

Updated by crameleon 3 months ago

Heya,

in our openSUSE infrastructure we use a container image with systemd for full highstate tests in the GitLab CI - maybe it's interesting for you as a reference:
https://build.opensuse.org/package/show/openSUSE:infrastructure/container-heroes-salt-testing-systemd

Actions #10

Updated by okurz 3 months ago

Great. Thanks for the hint.

Actions

Also available in: Atom PDF