-
Notifications
You must be signed in to change notification settings - Fork 4.5k
[BEAM-13156][Playground] Implement streaming output for the run code logs #15996
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
Conversation
…tions (#83) * Update workflows for playground * Attempt to fix tests * Remove continue on error to catch errors * Fix linter problem for backend dockerfile * Update folder to run backend go linter * Moved flutter test to execution via gradle tasks
|
R: @pabloem |
implementation of streaming output for run code output
2a9a4f1 to
f71e454
Compare
pabloem
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this LGTM. I just added a request, and a question to clarify for me.
| } | ||
|
|
||
| // concat prevValue and new value | ||
| str := fmt.Sprintf("%s%s", prevOutput.(string), string(p)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it seems like redis supports an "append" operation that would save us having to get the last value (https://redis.io/commands/append). Maybe we should add this capability? (it's fine to leave for later)
| runCmd := executor.Run(ctxWithTimeout) | ||
|
|
||
| var runError bytes.Buffer | ||
| runOutput := &streaming.RunOutputWriter{Ctx: ctxWithTimeout, CacheService: cacheService, PipelineId: pipelineId} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am a little confused. I think RunOutputWriter fails if there has not been any output, right? what happens at the very begining when there's no output at all? what adds the very first output?
[BEAM-13156]
implementation of streaming output for run code output
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
R: @username).[BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replaceBEAM-XXXwith the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.CHANGES.mdwith noteworthy changes.See the Contributor Guide for more tips on how to make review process smoother.
ValidatesRunnercompliance status (on master branch)Examples testing status on various runners
Post-Commit SDK/Transform Integration Tests Status (on master branch)
Pre-Commit Tests Status (on master branch)
See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.
GitHub Actions Tests Status (on master branch)
See CI.md for more information about GitHub Actions CI.