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

CODENVY-1392: fix sync agent start check #1434

Merged
merged 1 commit into from
Dec 27, 2016

Conversation

garagatyi
Copy link
Contributor

@garagatyi garagatyi commented Dec 27, 2016

What does this PR do?

Change way of verification that sync agent is launched in machine.

What issues does this PR fix or reference?

Fixes #1392

Previous Behavior

Start of WS sometimes failed when ssh or/and rsync are not installed in container.

New Behavior

Start of WS finishes successfully when ssh or/and rsync are not installed in container.

Tests written?

No

Change way of verification that sync agent is launched in machine.
super(agentMaxStartTimeMs,
agentPingDelayMs,
new CompositeAgentLaunchingChecker(new CommandExistsAgentChecker("rsync"),
AgentLaunchingChecker.DEFAULT));
Copy link
Contributor

Choose a reason for hiding this comment

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

are you sure it's good idea to create objects here, may be we should delegate it to container?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you suggest to create ExternalRsyncAgentLauncherImpl in module instead or smth else?

@garagatyi garagatyi merged commit 5e22094 into codenvy:master Dec 27, 2016
@garagatyi garagatyi deleted the fixNoSShStacks branch December 27, 2016 13:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Workspace start occasionally fails if docker image doesn't contain ssh and rsync
3 participants