keptn-contrib / job-executor-service

Running customizable tasks with Keptn as Kubernetes Jobs
Apache License 2.0
20 stars 12 forks source link

Keptn test task successful when test duration is few seconds but fails to poll when duration is few minutes #406

Closed JJena closed 1 year ago

JJena commented 1 year ago

jes version: 0.3.0, keptn v 1.2.0

I'm running a jmeter test from Keptn. When I try test duration 30 seconds, I get jmeter summary in keptn job sequence log. But when I try 300s I don't see the test summary. The job fails with error:

"Error while creating job: polling for job job-executor-service-job-0c6ae285-0aca-472d-a237--000-001 timing out after 5m0.403875056s: max poll count reached for job"

But when I check the pod logs I see the test is running fine.

jes pod logs:

image

jes task logs:

image image
JJena commented 1 year ago

Found the knowledge gap. Default max poll is 5 min and my test was also 5 min, hence polling period finished before test and error happened. Increased maxPollDuration in the job config yaml and now its fine