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

cleanup before workspace start #16498

Merged
merged 3 commits into from
Apr 1, 2020
Merged

cleanup before workspace start #16498

merged 3 commits into from
Apr 1, 2020

Conversation

sparkoo
Copy link
Member

@sparkoo sparkoo commented Mar 31, 2020

Signed-off-by: Michal Vala mvala@redhat.com

What does this PR do?

Cleanup workspace objects before start to avoid failures when creating.

What issues does this PR fix or reference?

#16418

Release Notes

Docs PR

Signed-off-by: Michal Vala <mvala@redhat.com>
@che-bot che-bot added status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. kind/bug Outline of a bug - must adhere to the bug report template. labels Mar 31, 2020
Signed-off-by: Michal Vala <mvala@redhat.com>
@sparkoo sparkoo changed the title 🚧 cleanup before workspace start cleanup before workspace start Mar 31, 2020
@@ -410,6 +410,7 @@ public void startsKubernetesEnvironment() throws Exception {
verify(services).create(any());
verify(secrets).create(any());
verify(configMaps).create(any());
verify(namespace).cleanUp();
Copy link
Member

Choose a reason for hiding this comment

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

I know, currently, the test does not respect the order but still, it would be better to put this call where it's expected to be called, somewhere before verify(deployments).deploy(any(Pod.class))

Copy link
Member Author

Choose a reason for hiding this comment

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

I've added an extra test for this case, to not increase complexity of this one...

Signed-off-by: Michal Vala <mvala@redhat.com>
@che-bot
Copy link
Contributor

che-bot commented Apr 1, 2020

✅ E2E Happy path tests succeed 🎉

See Details

Tested with Eclipse Che Multiuser User on K8S (minikube v1.1.1)

@sparkoo sparkoo merged commit 983d0a5 into eclipse-che:master Apr 1, 2020
@sparkoo sparkoo deleted the gh16418-cleanupBeforeWsStart branch April 1, 2020 12:03
@che-bot che-bot removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Apr 1, 2020
skabashnyuk added a commit to skabashnyuk/che that referenced this pull request Apr 6, 2020
This reverts commit 983d0a5.

Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants