8000 output: refactor to use go.bobheadxi.dev/streamline under the hood by bobheadxi · Pull Request #48 · sourcegraph/run · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@bobheadxi
Copy link
Member
@bobheadxi bobheadxi commented Jan 27, 2023

This change swaps out run.Output's internals with go.bobheadxi.dev/streamline. The interface is unchanged except for the addition of WithPipeline that allows compatibility with streamline/pipeline, and all tests pass with some minor adjustments (such as correctly returning io.EOF on reads that reach the end of input).

streamline is a library I've been working on on the side to generalize some of the ideas of run.Output for arbitrary input. The code is simpler and easier to maintain (I wrote a lot of weird stuff into the initial run.Output implementation), and I'll probably continue working on it to improve the performance and fix issues and whatnot :)

Copy link
Member
@michaellzc michaellzc left a comment

Choose a reason for hiding this comment

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

lgtm

@codecov-commenter
Copy link

Codecov Report

Merging #48 (a433255) into main (9f0a46a) will decrease coverage by 3.36%.
The diff coverage is 79.41%.

@@            Coverage Diff             @@
##             main      #48      +/-   ##
==========================================
- Coverage   79.12%   75.76%   -3.36%     
==========================================
  Files          11       10       -1     
  Lines         388      326      -62     
==========================================
- Hits          307      247      -60     
+ Misses         66       65       -1     
+ Partials       15       14       -1     
Impacted Files Coverage Δ
output_error.go 15.38% <0.00%> (-1.29%) ⬇️
map.go 65.38% <78.57%> (-9.62%) ⬇️
output.go 91.85% <100.00%> (-1.40%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@bobheadxi bobheadxi merged commit 1361dc9 into main Jan 30, 2023
@bobheadxi bobheadxi deleted the output-streamline branch January 30, 2023 19:32
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.

4 participants

0