8000 [SFN] Support for SFN and Sync, reworked exception handling, fixes, tests by MEPalma · Pull Request #8623 · localstack/localstack · GitHub
[go: up one dir, main page]

Skip to content

[SFN] Support for SFN and Sync, reworked exception handling, fixes, tests #8623

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

Merged
merged 43 commits into from
Jul 14, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
3b0c2e9
base
MEPalma May 8, 2023
2f392e7
fixes
MEPalma May 10, 2023
4d63d30
update snap test
MEPalma May 10, 2023
21f10ee
reworked parameters, improved double dep of lambda state tasks, tests
MEPalma May 11, 2023
0b750d2
minor conflicts
MEPalma May 16, 2023
0cd04f9
Merge branch 'MEP-sfn-callbacks' into MEP-sfn-lambda-fix-params
MEPalma May 16, 2023
d2f539b
Merge branch 'master' into MEP-sfn-lambda-fix-params
MEPalma May 24, 2023
a24ee43
timeouts support
MEPalma May 26, 2023
f07015a
Merge branch 'master' into MEP-sfn-lambda-fix-params
MEPalma May 27, 2023
eb5f0ea
task failure support and tests
MEPalma May 29, 2023
1382972
heartbeat base support
MEPalma May 29, 2023
4c75562
provider
MEPalma May 29, 2023
4f83e57
heartbeat tests, fixes
MEPalma Jun 2, 2023
406f3c0
Merge branch 'master' into MEP-sfn-timeout
MEPalma Jun 21, 2023
ae5ee1e
minor
MEPalma Jun 21, 2023
d0a65b1
pr items
MEPalma Jun 22, 2023
2682ffa
minor cleanup
MEPalma Jun 22, 2023
95ee8e0
Merge branch 'master' into MEP-sfn-timeout
MEPalma Jun 22, 2023
07107db
conflicts, minors
MEPalma Jun 22, 2023
de9a320
fix cycle on send success
MEPalma Jun 22, 2023
1ceb08a
fix fail sender machine
MEPalma Jun 23, 2023
387016f
Merge branch 'master' into MEP-sfn-timeout
MEPalma Jun 23, 2023
51a9f84
Merge branch 'MEP-sfn-timeout' into MEP-sfn-taskfailure
MEPalma Jun 23, 2023
157993c
conflicts
MEPalma Jun 25, 2023
03ba9ce
conflicts, iterator in heartbeat_success machine
MEPalma Jun 25, 2023
497186c
conflicts
MEPalma Jun 26, 2023
d55ace6
update heartbeat snapshot tests
MEPalma Jun 26, 2023
44a83eb
base sfn support working
MEPalma Jun 28, 2023
2e3bb6e
input stringification
MEPalma Jun 28, 2023
e77df2b
sync happy path
MEPalma Jul 3, 2023
a73fe68
[]
MEPalma Jul 4, 2023
a90ecb8
timeout error types
MEPalma Jul 4, 2023
840a8a4
Merge branch 'master' into MEP-snf-heartbeat
MEPalma Jul 5, 2023
ad247a5
Merge branch 'MEP-snf-heartbeat' into MEP-sfn-sync-and-sfn
MEPalma Jul 5, 2023
525fae0
reworked exceptinos handling, fixes, tests
MEPalma Jul 5, 2023
7b85932
Merge branch 'master' into MEP-snf-heartbeat
MEPalma Jul 6, 2023
581f46f
cleanup
MEPalma Jul 6, 2023
b8d2526
Merge branch 'MEP-snf-heartbeat' into MEP-sfn-sync-and-sfn
MEPalma Jul 6, 2023
fc69033
Merge branch 'master' into MEP-sfn-sync-and-sfn
MEPalma Jul 6, 2023
0942505
Merge branch 'master' into MEP-sfn-sync-and-sfn
MEPalma Jul 7, 2023
9edad2d
connect_to in sqs
MEPalma Jul 13, 2023
562c236
Merge branch 'master' into MEP-sfn-sync-and-sfn
MEPalma Jul 13, 2023
e4985ee
Merge branch 'master' into MEP-sfn-sync-and-sfn
MEPalma Jul 14, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
heartbeat base support
  • Loading branch information
MEPalma committed May 29, 2023
commit 1382972eee0592bb1908ef10c9632a5bd330f84a
3 changes: 3 additions & 0 deletions localstack/services/stepfunctions/asl/antlr/ASLLexer.g4
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ TIMESTAMP: '"Timestamp"';
TIMEOUTSECONDS: '"TimeoutSeconds"';
TIMEOUTSECONDSPATH: '"TimeoutSecondsPath"';

HEARTBEATSECONDS: '"HeartbeatSeconds"';
HEARTBEATSECONDSPATH: '"HeartbeatSecondsPath"';

PROCESSORCONFIG: '"ProcessorConfig"';
MODE: '"Mode"';
INLINE: '"INLINE"';
Expand Down
9 changes: 9 additions & 0 deletions localstack/services/stepfunctions/asl/antlr/ASLParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ state_stmt
| max_concurrency_decl
| timeout_seconds_decl
| timeout_seconds_path_decl
| heartbeat_seconds_decl
| heartbeat_seconds_path_decl
| branches_decl
| parameters_decl
| retry_decl
Expand Down Expand Up @@ -159,6 +161,13 @@ timeout_seconds_path_decl
: TIMEOUTSECONDSPATH COLON STRINGPATH
;

heartbeat_seconds_decl
: HEARTBEATSECONDS COLON INT
;

heartbeat_seconds_path_decl
: HEARTBEATSECONDSPATH COLON STRINGPATH
;

payload_tmpl_decl
: LBRACE payload_binding (COMMA payload_binding)* RBRACE
Expand Down

Large diffs are not rendered by default.

1,597 changes: 810 additions & 787 deletions localstack/services/stepfunctions/asl/antlr/runtime/ASLLexer.py

Large diffs are not rendered by default.

166 changes: 85 additions & 81 deletions localstack/services/stepfunctions/asl/antlr/runtime/ASLLexer.tokens
Original file line number Diff line number Diff line change
Expand Up @@ -72,50 +72,52 @@ TIMESTAMPPATH=71
TIMESTAMP=72
TIMEOUTSECONDS=73
TIMEOUTSECONDSPATH=74
PROCESSORCONFIG=75
MODE=76
INLINE=77
ITEMPROCESSOR=78
MAXCONCURRENCY=79
RESOURCE=80
INPUTPATH=81
OUTPUTPATH=82
ITEMSPATH=83
RESULTPATH=84
RESULT=85
PARAMETERS=86
RESULTSELECTOR=87
NEXT=88
END=89
CAUSE=90
ERROR=91
RETRY=92
ERROREQUALS=93
INTERVALSECONDS=94
MAXATTEMPTS=95
BACKOFFRATE=96
CATCH=97
ERRORNAMEStatesALL=98
ERRORNAMEStatesHeartbeatTimeout=99
ERRORNAMEStatesTimeout=100
ERRORNAMEStatesTaskFailed=101
ERRORNAMEStatesPermissions=102
ERRORNAMEStatesResultPathMatchFailure=103
ERRORNAMEStatesParameterPathFailure=104
ERRORNAMEStatesBranchFailed=105
ERRORNAMEStatesNoChoiceMatched=106
ERRORNAMEStatesIntrinsicFailure=107
ERRORNAMEStatesExceedToleratedFailureThreshold=108
ERRORNAMEStatesItemReaderFailed=109
ERRORNAMEStatesResultWriterFailed=110
ERRORNAMEStatesRuntime=111
STRINGDOLLAR=112
STRINGPATHCONTEXTOBJ=113
STRINGPATH=114
STRING=115
INT=116
NUMBER=117
WS=118
HEARTBEATSECONDS=75
HEARTBEATSECONDSPATH=76
PROCESSORCONFIG=77
MODE=78
INLINE=79
ITEMPROCESSOR=80
MAXCONCURRENCY=81
RESOURCE=82
INPUTPATH=83
OUTPUTPATH=84
ITEMSPATH=85
RESULTPATH=86
RESULT=87
PARAMETERS=88
RESULTSELECTOR=89
NEXT=90
END=91
CAUSE=92
ERROR=93
RETRY=94
ERROREQUALS=95
INTERVALSECONDS=96
MAXATTEMPTS=97
BACKOFFRATE=98
CATCH=99
ERRORNAMEStatesALL=100
ERRORNAMEStatesHeartbeatTimeout=101
ERRORNAMEStatesTimeout=102
ERRORNAMEStatesTaskFailed=103
ERRORNAMEStatesPermissions=104
ERRORNAMEStatesResultPathMatchFailure=105
ERRORNAMEStatesParameterPathFailure=106
ERRORNAMEStatesBranchFailed=107
ERRORNAMEStatesNoChoiceMatched=108
ERRORNAMEStatesIntrinsicFailure=109
ERRORNAMEStatesExceedToleratedFailureThreshold=110
ERRORNAMEStatesItemReaderFailed=111
ERRORNAMEStatesResultWriterFailed=112
ERRORNAMEStatesRuntime=113
STRINGDOLLAR=114
STRINGPATHCONTEXTOBJ=115
STRINGPATH=116
STRING=117
INT=118
NUMBER=119
WS=120
','=1
':'=2
'['=3
Expand Down Expand Up @@ -190,40 +192,42 @@ WS=118
'"Timestamp"'=72
'"TimeoutSeconds"'=73
'"TimeoutSecondsPath"'=74
'"ProcessorConfig"'=75
'"Mode"'=76
'"INLINE"'=77
'"ItemProcessor"'=78
'"MaxConcurrency"'=79
'"Resource"'=80
'"InputPath"'=81
'"OutputPath"'=82
'"ItemsPath"'=83
'"ResultPath"'=84
'"Result"'=85
'"Parameters"'=86
'"ResultSelector"'=87
'"Next"'=88
'"End"'=89
'"Cause"'=90
'"Error"'=91
'"Retry"'=92
'"ErrorEquals"'=93
'"IntervalSeconds"'=94
'"MaxAttempts"'=95
'"BackoffRate"'=96
'"Catch"'=97
'"States.ALL"'=98
'"States.HeartbeatTimeout"'=99
'"States.Timeout"'=100
'"States.TaskFailed"'=101
'"States.Permissions"'=102
'"States.ResultPathMatchFailure"'=103
'"States.ParameterPathFailure"'=104
'"States.BranchFailed"'=105
'"States.NoChoiceMatched"'=106
'"States.IntrinsicFailure"'=107
'"States.ExceedToleratedFailureThreshold"'=108
'"States.ItemReaderFailed"'=109
'"States.ResultWriterFailed"'=110
'"States.Runtime"'=111
'"HeartbeatSeconds"'=75
'"HeartbeatSecondsPath"'=76
'"ProcessorConfig"'=77
'"Mode"'=78
'"INLINE"'=79
'"ItemProcessor"'=80
'"MaxConcurrency"'=81
'"Resource"'=82
'"InputPath"'=83
'"OutputPath"'=84
'"ItemsPath"'=85
'"ResultPath"'=86
'"Result"'=87
'"Parameters"'=88
'"ResultSelector"'=89
'"Next"'=90
'"End"'=91
'"Cause"'=92
'"Error"'=93
'"Retry"'=94
'"ErrorEquals"'=95
'"IntervalSeconds"'=96
'"MaxAttempts"'=97
'"BackoffRate"'=98
'"Catch"'=99
'"States.ALL"'=100
'"States.HeartbeatTimeout"'=101
'"States.Timeout"'=102
'"States.TaskFailed"'=103
'"States.Permissions"'=104
'"States.ResultPathMatchFailure"'=105
'"States.ParameterPathFailure"'=106
'"States.BranchFailed"'=107
'"States.NoChoiceMatched"'=108
'"States.IntrinsicFailure"'=109
'"States.ExceedToleratedFailureThreshold"'=110
'"States.ItemReaderFailed"'=111
'"States.ResultWriterFailed"'=112
'"States.Runtime"'=113

Large diffs are not rendered by default.

Loading
0