feat: [2/3] add provider-agnostic deploy package for preview environments#183
Open
alexvcodesphere wants to merge 2 commits intocodesphere-cloud:mainfrom
Open
feat: [2/3] add provider-agnostic deploy package for preview environments#183alexvcodesphere wants to merge 2 commits intocodesphere-cloud:mainfrom
alexvcodesphere wants to merge 2 commits intocodesphere-cloud:mainfrom
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>
Add pkg/deploy with a Deployer that orchestrates workspace lifecycle: find, create, update, delete, and run pipeline stages. Uses DevDomain from the workspace API for deployment URLs instead of hardcoding. - Deployer embeds pipeline.Client for pipeline operations - Config is provider-agnostic (no GitHub/GitLab references) - 11 ginkgo test cases covering all code paths - Generated mocks via mockery Signed-off-by: Alex <132889147+alexvcodesphere@users.noreply.github.com>
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 2/3: Deploy Package
Add
pkg/deploywith aDeployerthat orchestrates workspace lifecycle for preview environments.Changes
pkg/deploy/deploy.go— Provider-agnostic deployer: find/create/update/delete workspaces, run pipeline, useDevDomainfor URLspkg/deploy/deploy_test.go— 11 ginkgo test cases covering all code pathspkg/deploy/mocks.go— Generated mocksMerge Order
pkg/deploypackagecs deploy githubCLI command