Skip to content

Fix rule-variable parsing for numbers

Carlos Yu requested to merge carlosy1/gitlab:CIPLAT-441 into master

What does this MR do and why?

Fixed the issue described in #335138 (closed) (CI job fails to schedule when rule-variables are numbers) by adding a to_string conversion to the variable rules in the seed step of the pipeline. Also added a test case for this scenario.

How to set up and validate locally

Added a test case in seed_spec where rule-variables are numbers, which would fail under the original code base but would pass with the fix. project_spec tests behave the same before & after the fix

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading