-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
rename metrics_server to listen_address #46
Conversation
According to official documentation - https://docs.gitlab.com/runner/monitoring/README.html#configuration-of-the-metrics-http-server
@tipmg can you fix the failing tests? Looks like it is just some linting issues. Other than that, this one LGTM 👍 |
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.
Hi @tipmg . Thank you for the PR.
Can you have a look to inline comments ?
@@ -92,7 +92,7 @@ | |||
} | |||
} | |||
default: { | |||
fail ("gitlab_ci_runner::manage_repo parameter for ${::osfamily} is not supported.") | |||
fail("gitlab_ci_runner::manage_repo parameter for ${::osfamily} is not supported.") |
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.
This change does not look related to this PR.
If this line is changed we needs to call the fact via $facts and remove leading ::
.
IMO this should be in an other PR.
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.
Yes, you are right. Thanks. I fixed it too.
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.
It is interesting case. Test will be fail. I returned ${::osfamily}
I recommend to use $facts['os']['family']
It is decision by author.
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.
It is strange when i run tests locally with fail("gitlab_ci_runner::manage_repo parameter for ${facts['os']['family']} is not supported.")
the command bundle exec rake test
does not fail.
Perhaps if we want to be more preservative without structured facts, we can use $facts['osfamily']
What was the problem you encountered ?
Hello, @LongLiveCHIEF I fixed tests. |
Hello, @Dan33l Please review changes. |
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.
Not sure about this one. The option was called metrics_server
up until gitlab runner v11.
See https://gitlab.com/gitlab-org/gitlab-runner/merge_requests/838 and https://gitlab.com/gitlab-org/gitlab-ce/issues/46527
This change would make the module incompatible with v10 of the runner. (in v11 both options currently work, but metrics_server
is deprecated).
Would it be better to add listen_address
as a new parameter, but keep metrics_server
for now?
Perhaps throw an error if a user tries to set both?
Also this looks like a breaking-change. I'm not sure if that move is required. |
@alexjfisher @bastelfreak We deal with this a bit in the
One of the reasons I broke this out into its own module however, was to give flexibility to make different support strategy decisions for the runners. Just because someone is using this module, does not mean they're using the This opens up the discussion of what the support strategy should be for this module. I will open a discussion issue for that discussion, but in the meantime, I don't think we can leave both, and make a note in the README that users should be aware and use the correct parameters for their version. @tipmg can you ammend the PR to leave in the |
+1 |
I think we should keep the While I don't think we should be that aggressive, we should discourage the use of major releases older than 18-24 months (or less). Each Gitlab major release is yearly, so that should be simple enough. Additionally, we should only support latest stable minor release, aside from critical bugfixes (that shouldn't be difficult since Gitlab only usually introduces breaking changes in major releases) |
Any update on this? :) |
Dear @tipmg, thanks for the PR! This is pccibot, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase? You can find my sourcecode at voxpupuli/vox-pupuli-tasks |
1 similar comment
Dear @tipmg, thanks for the PR! This is pccibot, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase? You can find my sourcecode at voxpupuli/vox-pupuli-tasks |
Closes voxpupuli#46. Fixes voxpupuli#26.
Closes voxpupuli#46. Fixes voxpupuli#26.
Closes voxpupuli#46. Fixes voxpupuli#26.
Closes voxpupuli#46. Fixes voxpupuli#26.
According to official documentation - https://docs.gitlab.com/runner/monitoring/README.html#configuration-of-the-metrics-http-server
Pull Request (PR) description
This Pull Request (PR) fixes the following issues