StackStorm / StackStorm/st2

`st2 execution rehearse` command to output workflow test fixture

Open
#5,829 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature
Dominant language
Python
Stars
6.5k
Forks
787
PR merge metrics
No merged PRs in 30d

Description

Create a new subcommand for st2 execution that will export an orquesta rehearsal workflow test from an execution id.

st2 execution rehearsal [execution id]

This would dump the following:
sample rehearsal workflow test

This would make it very simple to write a correctly formatted rehearsal workflow test.
Currently, it takes a significant amount of time to generate one by hand.
Also, I first test the workflow in StackStorm before writing the rehearsal workflow unit test.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the existing st2 execution command and compare its output needs with the sample fixture at orquesta/tests/fixtures/rehearsals/tests/sequential_failure.yaml. Define the rehearsal export for st2 execution rehearsal [execution id], then verify that it produces a correctly formatted Orquesta rehearsal workflow test from an execution.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.