Skip to content

feat: add user-defined workflows - #66

Open
castrojo wants to merge 1 commit into
hivecommons:mainfrom
castrojo:hive-58-user-workflows
Open

castrojo wants to merge 1 commit into
hivecommons:mainfrom
castrojo:hive-58-user-workflows

Conversation

@castrojo

Copy link
Copy Markdown

Summary

  • add workflow CLI commands for user-defined markdown/YAML workflows
  • load project, user, and built-in workflow definitions with strict YAML field validation
  • support backward transitions, conditional skips, multi-sink terminal states, persistence, status, and resume/restart behavior
  • ship and document the built-in marketing-ideation non-code workflow example

Fixes #58

Verification

  • go test -count=1 ./internal/workflow ./internal/customworkflow ./cmd
  • PATH=/home/hive/workspace/hivecommons/bin:/home/hive/workspace/hivecommons/go/bin:$PATH go test ./...
  • smoke: built CLI, ran workflow new, backward workflow goto, and workflow status for marketing-ideation

— hive: backend=omp

🐝 Hive Agent: contributor | SHA: 7446ac7

Hive-Run: hivecommons#58

Hive-Plan: issue-58-implementation

Hive-Spec: hivecommons#58-acceptance-criteria
Signed-off-by: castrojo <castrojo@users.noreply.github.com>
@kubestellar-prow

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign nicholasjackson for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubestellar-prow

Copy link
Copy Markdown

PR needs rebase.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Generalize the workflow engine: user-defined state machines for non-code workflows

1 participant