Project

General

Profile

Actions

action #161396

closed

openQA Project (public) - coordination #112862: [saga][epic] Future ideas for easy multi-machine handling: MM-tests as first-class citizens

openQA Project (public) - coordination #111929: [epic] Stable multi-machine tests covering multiple physical workers

gitlab CI jobs do not fail on invalid YAML size:S

Added by okurz 7 months ago. Updated 5 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Regressions/Crashes
Start date:
2024-06-03
Due date:
% Done:

0%

Estimated time:

Description

Motivation

See https://suse.slack.com/archives/C02CANHLANP/p1717381703517509 and #161381 .

As the openqa/workerconf.sls and possibly other files are plain YAML files not using any Jinja templating, we can validate the YAML in a pipeline in merge requests, so a PR with broken YAML will fail and - hopefully - not be merged. We already have the check in the Makefile and we have a CI pipeline but we don't call the check yet in salt pillars on openqa/workerconf.sls even though we treat it as plain YAML file.

Acceptance criteria

  • AC1: The "workerconf" is checked for YAML validity

Suggestions


Related issues 2 (0 open2 closed)

Copied from openQA Infrastructure (public) - action #161393: gitlab CI jobs do not execute salt-lint and do not fail on missing "find" executableResolved2024-06-03

Actions
Copied to openQA Infrastructure (public) - action #162044: Ensure proper indentation yamllint checks in our salt-states-openqa+salt-pillars-openqa size:SResolvedjbaier_cz2024-06-03

Actions
Actions #1

Updated by okurz 7 months ago

  • Copied from action #161393: gitlab CI jobs do not execute salt-lint and do not fail on missing "find" executable added
Actions #3

Updated by tinita 7 months ago

  • Description updated (diff)
Actions #4

Updated by okurz 7 months ago

  • Subject changed from gitlab CI jobs do not fail on invalid YAML to gitlab CI jobs do not fail on invalid YAML size:S
  • Description updated (diff)
  • Status changed from New to Workable
Actions #5

Updated by ybonatakis 7 months ago

  • Status changed from Workable to In Progress
  • Assignee set to ybonatakis
Actions #6

Updated by ybonatakis 7 months ago

https://gitlab.suse.de/openqa/salt-pillars-openqa/-/merge_requests/831 fixes the errors from yamllint. salt-lint still works with disabled 204 rule.

Actions #7

Updated by openqa_review 7 months ago

  • Due date set to 2024-06-20

Setting due date based on mean cycle time of SUSE QE Tools

Actions #8

Updated by tinita 7 months ago

This might be blocked by #161393

Actions #9

Updated by ybonatakis 7 months ago

  • Due date deleted (2024-06-20)
Actions #10

Updated by tinita 7 months ago

Why did you delete the due date?

Actions #11

Updated by ybonatakis 7 months ago

  • Status changed from In Progress to Feedback

Last PR I think, https://gitlab.suse.de/openqa/salt-pillars-openqa/-/merge_requests/832
Enables the yamllint checks against *.sls

salt-states-openqa cant be do the same as the sls files as not single yaml (most use templating).
in theory we can configure it and include/exclude the files which yamllint can check but I think ticket focuses on salt-pillars-openqa

Actions #12

Updated by ybonatakis 7 months ago

tinita wrote in #note-10:

Why did you delete the due date?

I might did it accidentally when I press one of the options which come up when the ticket is already modified while you try to add a comment

Actions #13

Updated by ybonatakis 7 months ago

As a side note: https://github.com/warpnet/salt-lint/issues/240
Upstream work to implement rule for indentation similar to yamllint. This was the one which breaks mainly in our repo. salt-pillars-openqa should be ok now but salt-states-openqa has still this issue, which you can see when sls are checked by yamllint.

Actions #14

Updated by okurz 6 months ago

  • Copied to action #162044: Ensure proper indentation yamllint checks in our salt-states-openqa+salt-pillars-openqa size:S added
Actions #16

Updated by ybonatakis 6 months ago

Seems it was fixed by @nick on ac86dba0cc8660a63e7fb8996e19b06883feb809

Actions #17

Updated by tinita 6 months ago

Actions #18

Updated by okurz 6 months ago

  • Due date set to 2024-06-19

https://gitlab.suse.de/openqa/salt-pillars-openqa/-/merge_requests/838 is a good verification. Anything else that needs to be done here?

Actions #19

Updated by ybonatakis 6 months ago ยท Edited

  • Status changed from Feedback to Resolved
Actions #20

Updated by okurz 5 months ago

  • Due date deleted (2024-06-19)
Actions

Also available in: Atom PDF