Skip to content
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

Closed
wants to merge 11 commits into from
Closed

rename metrics_server to listen_address #46

wants to merge 11 commits into from

Conversation

tipmg
Copy link

@tipmg tipmg commented May 31, 2019

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

@LongLiveCHIEF
Copy link
Contributor

@tipmg can you fix the failing tests? Looks like it is just some linting issues. Other than that, this one LGTM 👍

Copy link
Member

@Dan33l Dan33l left a 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 ?

manifests/init.pp Outdated Show resolved Hide resolved
@@ -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.")
Copy link
Member

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.

Copy link
Author

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.

Copy link
Author

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.

Copy link
Member

@Dan33l Dan33l Jun 4, 2019

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 ?

@tipmg
Copy link
Author

tipmg commented Jun 3, 2019

Hello, @LongLiveCHIEF I fixed tests.

@tipmg
Copy link
Author

tipmg commented Jun 4, 2019

Hello, @Dan33l Please review changes.

Copy link
Member

@alexjfisher alexjfisher left a 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?

@Dan33l Dan33l removed the tests-fail label Jun 4, 2019
@bastelfreak
Copy link
Member

Also this looks like a breaking-change. I'm not sure if that move is required.

@bastelfreak bastelfreak added backwards-incompatible needs-feedback Further information is requested labels Jun 4, 2019
@LongLiveCHIEF
Copy link
Contributor

LongLiveCHIEF commented Jun 21, 2019

@alexjfisher @bastelfreak We deal with this a bit in the puppet-gitlab module also, and so we came up with the following strategy, taken from puppet-gitlab/README.md/#description:

This module is designed to support the most recent versions of the gitlab-omnibus package (both ce and ee). Gitlab will support and release patches for the last 3 releases. This module can typically support the most recent major version, as well as the previous major version, but is currently only tested in the gitlab-supported versions of the module.

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 puppet-gitlab module, and it is very likely someone could use a v10 runner with v11 of GitLab. (I've actually seen it a lot).

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 metrics_server param, while still adding the listen_address?

@alexjfisher
Copy link
Member

alexjfisher commented Jun 22, 2019

can you amend the PR to leave in the metrics_server param, while still adding the listen_address?

+1

@dhollinger
Copy link
Member

I think we should keep the metrics_server param in for now, but revisit it soon. After spending some time in the Gitlab docs, they seem to imply that (aside from critical security fixes and certain pay levels) they primarily only support latest stable, which is a monthly release.

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)

@baurmatt
Copy link
Contributor

Any update on this? :)

@pccibot
Copy link
Member

pccibot commented Oct 31, 2019

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
@pccibot
Copy link
Member

pccibot commented Oct 31, 2019

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

baurmatt added a commit to syseleven/puppet-gitlab_ci_runner that referenced this pull request Dec 3, 2019
baurmatt added a commit to syseleven/puppet-gitlab_ci_runner that referenced this pull request Dec 3, 2019
baurmatt added a commit to syseleven/puppet-gitlab_ci_runner that referenced this pull request Dec 3, 2019
baurmatt added a commit to syseleven/puppet-gitlab_ci_runner that referenced this pull request Jan 9, 2020
cegeka-jenkins pushed a commit to cegeka/puppet-gitlab_ci_runner that referenced this pull request May 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants