Allow reading run-single configuration from a config file
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA
What does this MR do?
It allows using a runner specified in a config file for run-single
. Unfortunately, since parsing the arguments happens before the command gets called, this prevents CLI flags from overwriting config values. I'm open to suggestions how to improve this.
Why was this MR needed?
There should be a single source of truth for configuration values between run
and run-single
, not two different ways of setting the same properties.
What's the best way to test this MR?
Either run a test runner with run-single -r runner-name
or run the TestConfigFile
test.
What are the relevant issue numbers?
#37670 (closed), and #37511 (closed) also gets solved indirectly
Edited by Romuald Atchadé