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

Increase Cekit Behave tests timeout #1725

Open
ricardozanini opened this issue Dec 29, 2023 · 0 comments
Open

Increase Cekit Behave tests timeout #1725

ricardozanini opened this issue Dec 29, 2023 · 0 comments

Comments

@ricardozanini
Copy link
Member

We have a few tests that need more time to spin up the container in our current environment. They are failing simply because the default timeout is reached:

Failing step: And container log should contain Embedded Postgres started at port ... failed in 30.404s
Location: features/image/data-index/kogito-data-index-ephemeral.feature:17
Traceback (most recent call last):
  File "/home/nonrootuser/.local/lib/python3.11/site-packages/behave/model.py", line 1329, in run
    match.run(runner.context)
  File "/home/nonrootuser/.local/lib/python3.11/site-packages/behave/matchers.py", line 98, in run
    self.func(context, *args, **kwargs)
  File "steps/container_steps.py", line 34, in log_contains_msg
    raise Exception("Message '%s' was not found in the logs" % message)
Exception: Message 'Embedded Postgres started at port' was not found in the logs

Captured logging:
INFO:cekit:Message '-Djava.library.path=/home/kogito/lib -Dquarkus.http.host=0.0.0.0 -Dquarkus.http.port=8080 -jar /home/kogito/bin/quarkus-app/quarkus-run.jar' was found in the logs

In this example, the runtime is taking more time to reach the given log. This timeout is fixed in their code:

https://github.com/cekit/behave-test-steps/blob/v1/steps/steps.py#L15

We should be able to set the env BEHAVE_TIMEOUT in the pipeline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 📋 Backlog
Development

No branches or pull requests

2 participants