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

When integration test does not end properly it leaves minishift running #1157

Closed
agajdosi opened this issue Jul 20, 2017 · 8 comments · Fixed by #2356
Closed

When integration test does not end properly it leaves minishift running #1157

agajdosi opened this issue Jul 20, 2017 · 8 comments · Fixed by #2356

Comments

@agajdosi
Copy link

When integration test runner fails - for example on a timeout then minishift.runner.EnsureDeleted() in afterSuite() is not executed and thus the environment is not left clean - minishift instance is running. This can be little impractical in cases of manual use, but is much more in cases of automated tests. In downstream, when nightly tests fail it this manner, then also next nightly tests will fail as minishift start is then not possible.

Would be nice to add check into beforeSuite() to prevent this issue.

@gbraad
Copy link
Member

gbraad commented Jul 20, 2017

In the BeforeSuite() you would like to detect if a Minishift instance is still running? I believe there is another problem... I would expect that the timeout should trigger a cleanup action, such as an OnTimeout(). I think we should try to keep the integration tests from these startup checks as much as possible,

Who is timing out?

@agajdosi
Copy link
Author

@gbraad Often it is because of a network issue. But some fails were also when there were changes with iso building job. It is fine to fail, but then it is wrong to throw away next day's nightly tests. Sometimes I am doing the clean up manually to save the next day, but I should not do that ideally.

I am fine with OnTimeout() if it will work, but I am still curious, what would pre-flight check cost us, or why you want to avoid them? :)

Another possibility would be to have some option to trigger the clean up through some command, so I could do that just on automated tests - but that is the case only if OnTimeout() plan fails.

@gbraad
Copy link
Member

gbraad commented Jul 23, 2017 via email

@agajdosi
Copy link
Author

@gbraad It can happen on all platforms. Yes, this problem can be handled in jenkins job directly, which would lead me to writing a solution for each platform. But another perspective is also: if for any reason, developer, user, qe has some broken forgotten instance of minishift from previous test run still running, can be from terminating the process because you are impatient, what is the meaning of letting her start the tests and watch how they fail.

@stale
Copy link

stale bot commented Oct 14, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the status/stale label Oct 14, 2017
@hferentschik
Copy link
Member

@agajdosi Is this still an issue?

@stale stale bot removed the status/stale label Oct 14, 2017
@agajdosi
Copy link
Author

@hferentschik Sorry, missed your comment. This issue is less frequent as it was before, also I added some pre-flight checks to the nightly jobs, but still it is here. However in most cases it is caused by application deployment timeout, so I have created an issue: #1703 which should fix it.

I will then report here whether the issue is minimized or we need to add more timeouts to out steps.

@stale
Copy link

stale bot commented Jan 20, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the status/stale label Jan 20, 2018
@stale stale bot closed this as completed Feb 3, 2018
@agajdosi agajdosi reopened this Apr 13, 2018
@stale stale bot removed the status/stale label Apr 13, 2018
@agajdosi agajdosi self-assigned this Apr 20, 2018
@agajdosi agajdosi added this to the v1.17.0 milestone Apr 20, 2018
agajdosi pushed a commit to agajdosi/minishift that referenced this issue May 3, 2018
agajdosi pushed a commit to agajdosi/minishift that referenced this issue May 3, 2018
agajdosi pushed a commit to agajdosi/minishift that referenced this issue May 3, 2018
agajdosi pushed a commit to agajdosi/minishift that referenced this issue May 3, 2018
agajdosi pushed a commit to agajdosi/minishift that referenced this issue May 7, 2018
@LalatenduMohanty LalatenduMohanty modified the milestones: v1.17.0, v1.18.0 May 7, 2018
agajdosi pushed a commit to agajdosi/minishift that referenced this issue May 7, 2018
agajdosi pushed a commit to agajdosi/minishift that referenced this issue May 7, 2018
agajdosi pushed a commit to agajdosi/minishift that referenced this issue May 7, 2018
agajdosi pushed a commit to agajdosi/minishift that referenced this issue May 9, 2018
agajdosi pushed a commit to agajdosi/minishift that referenced this issue May 9, 2018
agajdosi pushed a commit to agajdosi/minishift that referenced this issue May 10, 2018
agajdosi pushed a commit to agajdosi/minishift that referenced this issue May 11, 2018
agajdosi pushed a commit to agajdosi/minishift that referenced this issue May 11, 2018
agajdosi pushed a commit to agajdosi/minishift that referenced this issue May 11, 2018
agajdosi pushed a commit to agajdosi/minishift that referenced this issue May 16, 2018
rhnvrm pushed a commit to rhnvrm/minishift that referenced this issue Oct 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment