Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tool for using the aws stepfunctions simulator #244

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

Fryguy
Copy link
Member

@Fryguy Fryguy commented Jul 8, 2024

@kbrock @agrare Please take a look. I mostly just use this for testing .asl files and had a special helper for intrinsic functions, but we can expand it as needed in future PRs.

$ tools/step_functions
Run the aws stepfunctions simulator.

Notes:
  This tool requires the stepfunctions simulator to be installed locally and running.
  Installation instructions can be found at https://docs.aws.amazon.com/step-functions/latest/dg/sfn-local.html.

Commands:
  execute       Execute an .asl file through the stepfunctions simulator.
  intrinsic     Execute an intrinsic function or JSONPath standalone.

  For more help with a specific command use tools/step_functions <command> --help

Global Options:
  -h, --help    Show this message
$ tools/step_functions execute --help
Execute an .asl file through the stepfunctions simulator.

  -f, --file=<s>     The .asl file to execute (default: definition.asl)
  -i, --input=<s>    Input to the execution
  -h, --help         Show this message
$  tools/step_functions intrinsic --help
Execute an intrinsic function or JSONPath standalone.

  -f, --function=<s>    The intrinsic function or JSONPath to run
  -i, --input=<s>       Input to the execution
  -h, --help            Show this message

@Fryguy Fryguy requested a review from agrare as a code owner July 8, 2024 21:29
@Fryguy Fryguy added the tools label Jul 8, 2024
.gitignore Outdated Show resolved Hide resolved
@Fryguy Fryguy added the enhancement New feature or request label Jul 10, 2024
@Fryguy
Copy link
Member Author

Fryguy commented Sep 24, 2024

@agrare @kbrock As discussed I removed the stuff around managing the simulator itself, so now it's just a prereq to have it installed and running.

@miq-bot
Copy link
Member

miq-bot commented Sep 24, 2024

Checked commit Fryguy@4d2ff74 with ruby 3.1.5, rubocop 1.56.3, haml-lint 0.51.0, and yamllint
0 files checked, 0 offenses detected
Everything looks fine. ⭐

@agrare agrare merged commit 4ff172c into ManageIQ:master Sep 24, 2024
4 of 5 checks passed
@Fryguy Fryguy deleted the stepfunctions_tool branch September 24, 2024 21:05
agrare added a commit that referenced this pull request Oct 28, 2024
Added
- Add WorkflowBase base class for Workflow (#279)
- Add tool for using the aws stepfunctions simulator (#244)
- Implement Map state (#184)
- Add Map State Tolerated Failure (#282)
- Run Map iterations in parallel up to MaxConcurrency (#283)
- Implement Parallel State (#291)

Changed
- More granular compare_key and determine path at initialization time (#274)
- For Choice validation, use instance variables and not payload (#277)
- Return ExceedToleratedFailureThreshold if ToleratedFailureCount/Percentage is present (#285)

Fixed
- Fix case on log messages (#280)
- Handle either ToleratedFailureCount or ToleratedFailurePercentage (#284)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request tools
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants