Project

General

Profile

Actions

action #161396

closed

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

openQA Project - 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 27 days ago. Updated 19 days ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Regressions/Crashes
Target version:
Start date:
2024-06-03
Due date:
2024-06-19
% 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 (1 open1 closed)

Copied from openQA Infrastructure - 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 - action #162044: Ensure proper indendation yamllint checks in our salt-states-openqa+salt-pillars-openqaNew2024-06-03

Actions
Actions #1

Updated by okurz 27 days 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 27 days ago

  • Description updated (diff)
Actions #4

Updated by okurz 26 days 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 25 days ago

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

Updated by ybonatakis 25 days 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 24 days 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 24 days ago

This might be blocked by #161393

Actions #9

Updated by ybonatakis 24 days ago

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

Updated by tinita 24 days ago

Why did you delete the due date?

Actions #11

Updated by ybonatakis 24 days 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 24 days 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 24 days 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 20 days ago

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

Updated by ybonatakis 20 days ago

Seems it was fixed by @nick on ac86dba0cc8660a63e7fb8996e19b06883feb809

Actions #17

Updated by tinita 19 days ago

Actions #18

Updated by okurz 19 days 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 19 days ago ยท Edited

  • Status changed from Feedback to Resolved
Actions

Also available in: Atom PDF