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

Add workaround for handling unexpected pop ups during redirection maven build to editor #14814

Merged
merged 6 commits into from
Oct 8, 2019

Conversation

musienko-maxim
Copy link
Contributor

@musienko-maxim musienko-maxim commented Oct 8, 2019

What does this PR do?

  • For tracking maven build output in the IDE we redirect output to a file. Then we open file and read log from editor. But after new issues:
  • WorkspaceService not Concurrency-Safe eclipse-theia/theia#5820
  • E2E Happy path tests failed on reading of build-output.txt #14771
    during adding new lines into editor, looks like sometimes filewatcher detect events incorrectly (the file from editor is not changed but filewatcher detect like changed).
    For workaround we changed exec commands in DevFile. After finishing maven build we grep last lines in a log file and check maven build was success or not. In this way, we do not redirect output to the editor and problem is not reproduced.

What issues does this PR fix or reference?

Ohrimenko1988 and others added 6 commits October 7, 2019 16:23
Signed-off-by: Ihor Okhrimenko <iokhrime@redhat.com>
Signed-off-by: Ihor Okhrimenko <iokhrime@redhat.com>
Signed-off-by: Ihor Okhrimenko <iokhrime@redhat.com>
Signed-off-by: Ihor Okhrimenko <iokhrime@redhat.com>
@che-bot che-bot added kind/enhancement A feature request - must adhere to the feature request template. status/code-review This issue has a pull request posted for it and is awaiting code review completion by the community. labels Oct 8, 2019
@che-bot
Copy link
Contributor

che-bot commented Oct 8, 2019

E2E Happy path tests of Eclipse Che Single User on K8S (minikube v1.1.1) has been successful:

@che-bot
Copy link
Contributor

che-bot commented Oct 8, 2019

E2E tests of Eclipse Che Multiuser on OCP has failed:

Copy link
Contributor

@dmytro-ndp dmytro-ndp left a comment

Choose a reason for hiding this comment

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

checked on che-theia PR check build

@dmytro-ndp dmytro-ndp merged commit 9370bbb into master Oct 8, 2019
@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 Oct 8, 2019
@che-bot che-bot added this to the 7.3.0 milestone Oct 8, 2019
@che-bot
Copy link
Contributor

che-bot commented Oct 9, 2019

E2E Happy path tests of Eclipse Che Single User on K8S (minikube v1.1.1) has failed:

@che-bot
Copy link
Contributor

che-bot commented Oct 9, 2019

E2E tests of Eclipse Che Multiuser on OCP has been successful:

// await projectTree.expandPathAndOpenFileInAssociatedWorkspace(projectName, 'build-output.txt');
await projectTree.expandPathAndOpenFileInAssociatedWorkspace(projectName, 'result-build-output.txt', 220000);
await editor.waitText('result-build-output.txt', '[INFO] BUILD SUCCESS');
// await editor.followAndWaitForText('build-output.txt', '[INFO] BUILD SUCCESS', 300000, 10000);
Copy link
Contributor

@Ohrimenko1988 Ohrimenko1988 Oct 10, 2019

Choose a reason for hiding this comment

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

@musienko-maxim Why did you left commented code? In my opinion this is not a very good approach.


//workaround for issue: https://github.com/eclipse/che/issues/14771

/*await projectTree.expandPathAndOpenFileInAssociatedWorkspace(projectName, 'build.txt');
Copy link
Contributor

Choose a reason for hiding this comment

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

The same question #14814 (review)

@musienko-maxim musienko-maxim deleted the che#14771 branch December 2, 2019 13:01
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.

4 participants