Skip to content

test: add coverage for live provisioning gating in @remote decorator#344

Closed
KAJdev wants to merge 2 commits into
mainfrom
zeke/sls-132-test-live-provisioning-gating
Closed

test: add coverage for live provisioning gating in @remote decorator#344
KAJdev wants to merge 2 commits into
mainfrom
zeke/sls-132-test-live-provisioning-gating

Conversation

@KAJdev
Copy link
Copy Markdown
Contributor

@KAJdev KAJdev commented May 27, 2026

Adds test coverage for the three execution paths in the @remote decorator wrapper:

  • Standalone python execution: verifies that get_flash_context() returns a context tuple (routing through sentinel resolution) when FLASH_IS_LIVE_PROVISIONING is not set. Tests the 404 error path that users hit when running python worker.py without a deployed endpoint.
  • flash dev execution: verifies that FLASH_IS_LIVE_PROVISIONING=true causes get_flash_context() to return None, falling through to the ResourceManager live provisioning path.
  • Guard rail: verifies the defensive RuntimeError when get_flash_context() returns None but FLASH_IS_LIVE_PROVISIONING is not set.

SLS-132

@KAJdev KAJdev closed this May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant