Skip to content

feat: add CRE workflow deploy changeset and operation#1

Draft
ecPablo wants to merge 2 commits intomainfrom
ecpablo/cre-deploy-changesets
Draft

feat: add CRE workflow deploy changeset and operation#1
ecPablo wants to merge 2 commits intomainfrom
ecpablo/cre-deploy-changesets

Conversation

@ecPablo
Copy link
Copy Markdown

@ecPablo ecPablo commented Apr 1, 2026

Adds 1 operation and 1 changeset to deploy a CRE workflow. These serve as examples for basic workflow deployment using the CRE CLI. Operation can be composed to create more complex changesets or sequences. The operation will:

  • Resolve the binary location and put it in a local temp dir
  • Resolve the configuration location
  • Resolve the project.yaml location
  • Build the context.yaml file with the provided workflow registries. (It's possible we can drop this when we have the new version of the CLI with api key support, for now we are leaving it as it does not affect the deployment process)
  • Injects deployer key if the registry is on chain.
  • Calls the CRE CLI via the CLIRunner provided by CLDF.

AI Summary

This pull request introduces a new CRE workflow deploy changeset and operation, enabling automated deployment of CRE workflows via the CLI. It includes robust input validation, integration with the deployment framework, and comprehensive unit tests for both the changeset and operation. The documentation is also updated to describe the new package and its structure.

CRE Workflow Deploy Feature

  • Added CREWorkflowDeployChangeset in cre/changesets/workflow_deploy.go to resolve workflow artifacts, validate inputs, and trigger the CRE CLI workflow deploy operation. This includes precondition checks for environment and input validity.
  • Implemented CREWorkflowDeployOp in cre/operations/workflow_deploy.go, which prepares workflow artifacts, builds required config files, and invokes the CRE CLI with appropriate arguments and environment. Handles result reporting and error propagation.

Testing

  • Added unit tests for the changeset in cre/changesets/workflow_deploy_test.go, covering various precondition scenarios and input validation.
  • Added unit tests for the operation in cre/operations/workflow_deploy_test.go, including CLI invocation, argument construction, error handling, and output propagation.

Documentation

  • Updated README.md to document the new cre package, its purpose, main changeset, operation, and package structure.

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.

1 participant