-
Notifications
You must be signed in to change notification settings - Fork 117
[feat] Add --mode option to GitLab CI pipeline command
#2514
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
vkarak
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't add a configuration parameter to select the mode. Given that we already define the modes having another parameter to control which mode to select can be confusing. I suggest removing that and instead passing the mode options to the emit_pipeline() function with an argument named child_pipeline_opts. We will also need to expand the documentation of the --ci-generate option and feature and explain which options are passed through always and how a user can options to the reframe invocation in the child pipeline.
|
|
||
|
|
||
| def _emit_gitlab_pipeline(testcases): | ||
| def _emit_gitlab_pipeline(testcases, child_pipeline_opts): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| def _emit_gitlab_pipeline(testcases, child_pipeline_opts): | |
| def _emit_gitlab_pipeline(testcases, child_pipeline_opts=None): |
And avoid having to change the unit test.
Closes #2467