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

Stores logs of test workspaces which do not have RUNNING status #11233

Merged
merged 11 commits into from
Sep 18, 2018

Conversation

dmytro-ndp
Copy link
Contributor

@dmytro-ndp dmytro-ndp commented Sep 14, 2018

What does this PR do?

It improves test workspace logs storing:

  • stores logs of workspaces which do not have RUNNING status;
  • stores logs of injecting workspaces which did not start, packs such logs into the target/site/workspaces-logs/injecting_workspaces_which_did_not_start, and adds link into the 'Summary' section of failsafe report;
  • handle exception when verifying condition in WaitUtils.waitSuccessCondition();
  • not to wait 6 minutes if start of test workspace failed;
  • gets rid of AbstractTestWorkspaceProvider;
  • remakes WorkspaceTemplate to enum;
  • minor improvements.

What issues does this PR fix or reference?

#11200

Dmytro Nochevnov added 6 commits September 14, 2018 19:27
Signed-off-by: Dmytro Nochevnov <dnochevnov@codenvy.com>
…dition()

Signed-off-by: Dmytro Nochevnov <dnochevnov@codenvy.com>
Signed-off-by: Dmytro Nochevnov <dnochevnov@codenvy.com>
Signed-off-by: Dmytro Nochevnov <dnochevnov@codenvy.com>
Signed-off-by: Dmytro Nochevnov <dnochevnov@codenvy.com>
Signed-off-by: Dmytro Nochevnov <dnochevnov@codenvy.com>
@dmytro-ndp dmytro-ndp added kind/enhancement A feature request - must adhere to the feature request template. team/che-qe labels Sep 14, 2018
@dmytro-ndp
Copy link
Contributor Author

ci-test

@riuvshin
Copy link
Contributor

ci-test build report:
Build details
Test report
docker image: eclipseche/che-server:11233
https://github.com/orgs/eclipse/teams/eclipse-che-qa please check this report.

@dmytro-ndp
Copy link
Contributor Author

ci-test

@riuvshin
Copy link
Contributor

ci-test build report:
Build details
Test report
docker image: eclipseche/che-server:11233
https://github.com/orgs/eclipse/teams/eclipse-che-qa please check this report.

@dmytro-ndp
Copy link
Contributor Author

ci-test

@riuvshin
Copy link
Contributor

ci-test build report:
Build details
Test report
docker image: eclipseche/che-server:11233
https://github.com/orgs/eclipse/teams/eclipse-che-qa please check this report.

@dmytro-ndp
Copy link
Contributor Author

ci-test

@riuvshin
Copy link
Contributor

ci-test build report:
Build details
Test report
docker image: eclipseche/che-server:11233
https://github.com/orgs/eclipse/teams/eclipse-che-qa please check this report.

@dmytro-ndp
Copy link
Contributor Author

ci-test

@riuvshin
Copy link
Contributor

ci-test build report:
Build details
Test report
docker image: eclipseche/che-server:11233
https://github.com/orgs/eclipse/teams/eclipse-che-qa please check this report.

@dmytro-ndp
Copy link
Contributor Author

ci-test

@riuvshin
Copy link
Contributor

ci-test build report:
Build details
Test report
docker image: eclipseche/che-server:11233
https://github.com/orgs/eclipse/teams/eclipse-che-qa please check this report.

@dmytro-ndp
Copy link
Contributor Author

ci-test

@riuvshin
Copy link
Contributor

ci-test build report:
Build details
Test report
docker image: eclipseche/che-server:11233
https://github.com/orgs/eclipse/teams/eclipse-che-qa please check this report.

@riuvshin
Copy link
Contributor

ci-test

@riuvshin
Copy link
Contributor

ci-test build report:
Build details
Test report
docker image: eclipseche/che-server:11233
https://github.com/orgs/eclipse/teams/eclipse-che-qa please check this report.

…o enum

Signed-off-by: Dmytro Nochevnov <dnochevnov@codenvy.com>
@dmytro-ndp dmytro-ndp added the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Sep 17, 2018
docker rm $(docker ps -qa --filter="name=selenium_*")
echo "[TEST] Stopping and removing selenium docker containers..."
docker stop $(docker ps -qa --filter="name=selenium_*") > /dev/null
docker rm $(docker ps -qa --filter="name=selenium_*") > /dev/null
Copy link
Contributor

Choose a reason for hiding this comment

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

what about remove

docker stop $(docker ps -qa --filter="name=selenium_*") > /dev/null

and use

docker rm $(docker ps -qa --filter="name=selenium_*") > /dev/null

with "-f" flag:

docker rm -f $(docker ps -qa --filter="name=selenium_*") > /dev/null

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch! Thank you!

Dmytro Nochevnov added 2 commits September 17, 2018 17:57
Signed-off-by: Dmytro Nochevnov <dnochevnov@codenvy.com>
Signed-off-by: Dmytro Nochevnov <dnochevnov@codenvy.com>
@dmytro-ndp
Copy link
Contributor Author

ci-test

@dmytro-ndp
Copy link
Contributor Author

dmytro-ndp commented Sep 17, 2018

@rhopp, @Katka92, @ScrewTSW: I need you feedback about commit 9cc5ad4

Some prerequisites: this PR was going to add new dependencies into AbstractTestWorkspaceProvider and this would affect RhCheTestWorkspaceProvider.

At the same time it looks like RhCheTestWorkspaceProvider doesn't really use workspace pool to get test workspace, so, IMHO, it would not make sense to have implementation of RhCheTestWorkspaceProvider.java::initializePool() there.

Given circumstances above, it was decided to get rid of AbstractTestWorkspaceProvider to decouple RhCheTestWorkspaceProvider from CheTestWorkspaceProvider specific staff.

To implement the changes into Rhche functional tests, it will be needed:

  • to remove RhCheTestWorkspaceProvider::initializePool() method;
  • to simplify RhCheTestWorkspaceProvider constructor;
  • to implement RhCheTestWorkspaceProvider::shutdown() method.

@riuvshin
Copy link
Contributor

Results of automated E2E tests of Eclipse Che Multiuser on OCP:
Build details
Test report
docker image: eclipseche/che-server:11233
https://github.com/orgs/eclipse/teams/eclipse-che-qa please check this report.

@rhopp
Copy link
Contributor

rhopp commented Sep 18, 2018

@dmytro-ndp Thanks for letting us know! I think this change is good for both sides. looking into RhCheTestWorkspaceProvider we have lot of not needed stuff there and this change will simplify our code a lot. +1 for merging this PR. We will do changes on our side once we update the dependency to upstream che.

@dmytro-ndp
Copy link
Contributor Author

@rhopp: thank you for feedback!

@dmytro-ndp dmytro-ndp merged commit 1bbdee3 into master Sep 18, 2018
@dmytro-ndp dmytro-ndp deleted the che-11200 branch September 18, 2018 15:28
@benoitf benoitf added this to the 6.12.0 milestone Sep 18, 2018
@benoitf benoitf removed the status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. label Sep 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement A feature request - must adhere to the feature request template.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants