• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

localstack / localstack / 21891233725
87%

Build:
DEFAULT BRANCH: main
Ran 11 Feb 2026 04:07AM UTC
Jobs 1
Files 1099
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Feb 2026 10:59PM UTC coverage: 86.883% (+0.01%) from 86.871%
21891233725

push

github

web-flow
SFN: Fix Local mock iterations for states without retry (#13693)

Co-authored-by: Hernan <hernaner28@gmail.com>

The Step Functions Local mock configuration was using RetryCount to index numbered mock responses. In case of successful invocations or states without retry configuration this caused all invocations to return the same response ("0") instead of iterating through the sequence ("0", "1", "2", etc.).

RetryCount only increments on actual retry attempts (failures), not on successful invocations. This made the mock iteration feature unusable for testing state transition scenarios with multiple invocations of the same state.

- Added next_local_mock_invocation_number dict to execution environment to track mock invocations.
- Modified get_current_local_mocked_response() to use next_local_mock_invocation_number instead of retry_count.
- Shared next_local_mock_invocation_number between parent and child frames to maintain consistent counting across execution context

An existing `aws.services.stepfunctions.v2.local_mocking.test_base_scenarios.TestBaseScenarios.test_map_state_lambda test` was giving a false positive. It used a mock response with only one mocked invocation and should have failed when 2 invocations were done. Effectively, it started to fail after the fix and mocked response has been adjusted.

Also, adds `test_numbered_mock_responses_multiple_success_invocations` that tests multiple success invocations in a regular top-level state, outside of map configuration.

7 of 7 new or added lines in 1 file covered. (100.0%)

255 existing lines in 12 files now uncovered.

69977 of 80542 relevant lines covered (86.88%)

0.87 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
97.51
0.13% localstack-core/localstack/services/sns/provider.py
1
97.69
0.02% localstack-core/localstack/services/stepfunctions/asl/component/state/state_execution/state_task/service/state_task_service_callback.py
1
95.0
0.11% localstack-core/localstack/services/stepfunctions/asl/eval/environment.py
2
81.82
-6.06% localstack-core/localstack/aws/handlers/internal.py
3
97.28
-0.06% localstack-core/localstack/services/events/models.py
4
88.1
0.0% localstack-core/localstack/runtime/analytics.py
6
82.22
5.08% localstack-core/localstack/services/cloudformation/analytics.py
9
64.67
0.0% localstack-core/localstack/services/cloudformation/resource_provider.py
11
90.08
0.0% localstack-core/localstack/services/kinesis/provider.py
17
92.74
0.06% localstack-core/localstack/services/cloudformation/engine/v2/change_set_model_executor.py
54
83.66
0.13% localstack-core/localstack/services/secretsmanager/provider.py
146
89.14
-0.05% localstack-core/localstack/services/lambda_/provider.py
Jobs
ID Job ID Ran Files Coverage
1 21891233725.1 11 Feb 2026 04:07AM UTC 1099
86.88
GitHub Action Run
Source Files on build 21891233725
  • Tree
  • List 1099
  • Changed 17
  • Source Changed 0
  • Coverage Changed 17
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 55625822 on github
  • Prev Build on main (#21810945741)
  • Next Build on main (#22048723723)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc