-
Notifications
You must be signed in to change notification settings - Fork 255
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
Add support for post_get_sources_script
, replace deprecated pre_clone_script
with pre_get_sources_script
#279
Conversation
LGTM. @fkleon I think we should somehow manage old |
Or just push a release and add a note of a breaking change. Microsoft does it all the time ;)
Verzonden vanuit Outlook voor iOS<https://aka.ms/o0ukef>
…________________________________
Van: Günther Grill ***@***.***>
Verzonden: Tuesday, August 15, 2023 7:23:31 PM
Aan: riemers/ansible-gitlab-runner ***@***.***>
CC: Subscribed ***@***.***>
Onderwerp: Re: [riemers/ansible-gitlab-runner] Add support for `post_get_sources_script`, replace deprecated `pre_clone_script` with `pre_get_sources_script` (PR #279)
LGTM.
@fkleon<https://github.com/fkleon> I think we should somehow manage old pre_clone_script variables in case people are not aware of this change. Maybe we just let this role fail in case the old variable is still defined... What do you think?
—
Reply to this email directly, view it on GitHub<#279 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAFGQOKSJOQP2CBGFJLUXQTXVOWBHANCNFSM6AAAAAA3QNFU7Y>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Thanks for reviewing this! I thought about backwards-compatibility but wasn't sure what your preferred way of implementing this is. There are a few options - and of course it also depends on the GitLab runner version the user decides to install (for which I believe there are no checks in this role yet).
@guenhter As a user of this Ansible role I'd probably prefer this to break loudly (instead of silently) together with a breaking change notice in the changelogs. I can add this to the MR if you're happy with that approach. |
I'm happy with every approach. If you just add one this is fine. |
This allows to highlight upcoming deprecations to the user, or to fail execution when deprecated/unsupported settings are used instead of silently ignoring the setting.
Hi @guenhter and @riemers, I've added a commit that adds basic runner config validation via In the future that could be extended to perform additional validation; or to alert the user to upcoming deprecations. |
@guenhter Just checking whether you've got any thoughts on this latest addition? |
For me it's fine. @riemers any objections? |
LGTM, if your good just merge it |
@fkleon thanks for your contribution |
post_get_sources_script
in the runner config.pre_clone_script
config option has been deprecated for a while now and is replaced bypre_get_sources_script
.See GitLab 16.2 docs: Advanced Configuration / The [[runners]] section