feat: [1/3] refactor pipeline into shared package with step-aware log streaming#182
Open
alexvcodesphere wants to merge 1 commit intocodesphere-cloud:mainfrom
Open
Conversation
…ming Extract pipeline stage execution from cli/cmd/start_pipeline.go into a reusable pkg/pipeline package with a Runner that orchestrates stage execution, discovers sub-steps from the IDE server's pipeline status API, and streams logs per-step via SSE. - Add pkg/pipeline with Runner, Client interface, and step discovery - Add StreamLogs SSE method to api/workspace.go for real-time log output - Add StreamLogs to cli/cmd Client interface - Refactor start_pipeline.go to delegate to pipeline.Runner - Add pipeline streaming unit tests (single/multi-step, no-stream cases) - Update .mockery.yml for pipeline mock generation Signed-off-by: Alex <132889147+alexvcodesphere@users.noreply.github.com>
This was referenced Feb 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR 1/3: Pipeline Refactor + Streaming
Extract pipeline stage execution from
cli/cmd/start_pipeline.gointo a reusablepkg/pipelinepackage.Changes
pkg/pipeline/pipeline.go—Runnerorchestrates stage execution, discovers sub-steps from IDE server's pipeline status API, streams logs per-step via SSEapi/workspace.go—StreamLogsSSE method for real-time log outputcli/cmd/start_pipeline.go— Refactored to delegate topipeline.Runnercli/cmd/client.go— AddedStreamLogsto Client interfacepkg/pipeline/pipeline_test.go— 4 streaming unit testsMerge Order
pkg/deploypackagecs deploy githubCLI command