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

Enhanced pre/post test job hung/leftover process checking #4185

Merged
merged 11 commits into from
Dec 9, 2022

Conversation

andrew-m-leonard
Copy link
Contributor

@andrew-m-leonard andrew-m-leonard commented Dec 5, 2022

Fixes: #4184

Enhances the pre/post PROCESSCATCH logic checking for more left over processes, in particular:

  • "make" : stops repetitive process killing at end of failed/aborted test jobs
  • "jck" extended processes
  • more specific "java" process selection

Enhanced to better filter Jenkins Agent process, and utilise Windows enhanced powershell queries.

Signed-off-by: Andrew Leonard <anleonar@redhat.com>
Signed-off-by: Andrew Leonard <anleonar@redhat.com>
Signed-off-by: Andrew Leonard <anleonar@redhat.com>
Signed-off-by: Andrew Leonard <anleonar@redhat.com>
Signed-off-by: Andrew Leonard <anleonar@redhat.com>
@andrew-m-leonard andrew-m-leonard self-assigned this Dec 5, 2022
@andrew-m-leonard
Copy link
Contributor Author

andrew-m-leonard commented Dec 5, 2022

Signed-off-by: Andrew Leonard <anleonar@redhat.com>
Signed-off-by: Andrew Leonard <anleonar@redhat.com>
@andrew-m-leonard andrew-m-leonard requested review from sxa and llxia December 5, 2022 20:40
@andrew-m-leonard
Copy link
Contributor Author

@llxia @sxa ready for review please

@llxia
Copy link
Contributor

llxia commented Dec 7, 2022

@AdamBrousseau could you also review this PR? Thanks

Signed-off-by: Andrew Leonard <anleonar@redhat.com>
Copy link
Member

@sxa sxa left a comment

Choose a reason for hiding this comment

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

The Windows process check in particular is going to need checking, the others are suggestions and superfluous clauses.

Signed-off-by: Andrew Leonard <anleonar@redhat.com>
@andrew-m-leonard andrew-m-leonard requested a review from sxa December 7, 2022 16:40
Signed-off-by: Andrew Leonard <anleonar@redhat.com>
Signed-off-by: Andrew Leonard <anleonar@redhat.com>
@andrew-m-leonard andrew-m-leonard requested a review from sxa December 8, 2022 16:05
@andrew-m-leonard
Copy link
Contributor Author

@AdamBrousseau Hi Adam, if you could take a look as well please, as another CI user, thanks

@llxia
Copy link
Contributor

llxia commented Dec 8, 2022

zos Grinder

Copy link
Contributor

@karianna karianna left a comment

Choose a reason for hiding this comment

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

LGTM

} else {
sh(script:'ps -fu '+"${env.USER}"+' | grep java | egrep -v "remoting.jar|agent.jar|grep"', returnStatus:true)
}
def statusCode=sh(script:"aqa-tests/terminateTestProcesses.sh ${env.USER} 2>&1", returnStatus:true)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
def statusCode=sh(script:"aqa-tests/terminateTestProcesses.sh ${env.USER} 2>&1", returnStatus:true)
def statusCode = sh(script:"aqa-tests/terminateTestProcesses.sh ${env.USER} 2>&1", returnStatus:true)

Copy link
Contributor

@llxia llxia left a comment

Choose a reason for hiding this comment

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

LGTM

@andrew-m-leonard andrew-m-leonard merged commit 2eca94e into adoptium:master Dec 9, 2022
@AdamBrousseau
Copy link
Contributor

Sorry I didn't get a chance to finish reviewing before merge. I am happy with it assuming it's been tested on all the platforms. We'll keep an eye out. We have a "sanitize" job we run a few times a day. This might allow us to disable that. Thanks!

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.

End of test job PROCESSCATCH does not terminate all hung/leftover processes
5 participants