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

Fix #280 Unidle Jenkins only if needed #282

Merged
merged 1 commit into from
May 29, 2018
Merged

Fix #280 Unidle Jenkins only if needed #282

merged 1 commit into from
May 29, 2018

Conversation

sthaha
Copy link
Contributor

@sthaha sthaha commented May 28, 2018

This patch refactors un-idling to proxy's startJenkins function
which unildes jenkins only if it the state is "idled"

This patch refactors un-idling to proxy's startJenkins function
which unildes jenkins only if it the state is "idled"
@centos-ci
Copy link

Can one of the admins verify this patch?

@alien-ike
Copy link

Ike Plugins (test-keeper)

Thank you @sthaha for this contribution!

It appears that no tests have been added or updated in this PR.

Automated tests give us confidence in shipping reliable software. Please add some as part of this change.

If you are an admin or the reviewer of this PR and you are sure that no test is needed then you can use the command /ok-without-tests as a comment to make the status green.

For more information please head over to official documentation. You can find there how to configure the plugin - for example exclude certain file types so if PR contains only them it won't be checked.

@sthaha sthaha requested review from concaf and kishansagathiya May 28, 2018 10:55
Copy link
Member

@kishansagathiya kishansagathiya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Haven't run this locally, but code looks good to me. Wait for CI CentOS build to pass, before merging.

return
}

if state == clients.Idled {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I remember you saying that even if jenkins is idling then also we have three states
Running -> Intermediate -> Idled. Is that right?

If the state is Intermediate, it would be worth knowing if Jenkins is idling or un-idling. But let's do that as a different PR, WDYT?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kishansagathiya at present idler does not give us that information. We need to build that logic into idler which should return state like "starting", "running", "idling", "idled" which at the moment, it doesn't and thus can't be built into proxy.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense. Let's create an issue for that?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kishansagathiya
Copy link
Member

kishansagathiya commented May 28, 2018

[test]

1 similar comment
@sthaha
Copy link
Contributor Author

sthaha commented May 28, 2018

[test]

@kishansagathiya
Copy link
Member

/ok-without-tests

@sthaha sthaha merged commit bc66538 into fabric8-services:master May 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants