Skip to content

[System test runner] Assign to the deployed service context#99

Merged
mtojek merged 1 commit intoelastic:masterfrom
ycombinator:system-test-runner-fix-ctxt-assignment
Sep 16, 2020
Merged

[System test runner] Assign to the deployed service context#99
mtojek merged 1 commit intoelastic:masterfrom
ycombinator:system-test-runner-fix-ctxt-assignment

Conversation

@ycombinator
Copy link
Copy Markdown
Contributor

This PR fixes a subtle bug where we were setting the STDOUT and STDERR fields on the context passed in to a ServiceDeployer's SetUp method. Instead we should be setting these on the context of the DeployedService returned from this method.

@ycombinator ycombinator requested a review from mtojek September 16, 2020 00:21
@elasticmachine
Copy link
Copy Markdown
Collaborator

💚 Build Succeeded

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #99 opened]

  • Start Time: 2020-09-16T00:21:32.629+0000

  • Duration: 8 min 50 sec

}
service.stdout = outFile
ctxt.STDOUT = agentLogsFolder + stdoutFileName
service.ctxt.STDOUT = agentLogsFolder + stdoutFileName
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

In general we shouldn't modify the context as service property, but rather build the new context first and then assign to the service.

Let's keep it here for now as we're in the middle of debugging the issue.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor

@mtojek mtojek left a comment

Choose a reason for hiding this comment

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

LGTM

@mtojek
Copy link
Copy Markdown
Contributor

mtojek commented Sep 16, 2020

Let me merge this one.

@mtojek mtojek merged commit 5cfc68c into elastic:master Sep 16, 2020
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.

3 participants