This repository was archived by the owner on Nov 10, 2026. It is now read-only.
Repository navigation
feat(cli): add runpod-flash deprecation notice - #387
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Root help paths miss the notice, and CLI notices are not suppressed in deployed worker environments.
2 open findings
What changed in this PR
Adds user-facing deprecation notices for the CLI and public SDK APIs while suppressing worker and CI noise.
Changes:
- Adds centralized sunset messaging and suppression logic.
- Integrates notices into CLI and lazy SDK imports.
- Adds comprehensive notice tests.
| File | Description |
|---|---|
src/runpod_flash/sunset.py |
Implements notice behavior. |
src/runpod_flash/cli/main.py |
Displays the CLI notice. |
src/runpod_flash/__init__.py |
Warns on public API access. |
tests/unit/test_sunset.py |
Tests notice and suppression behavior. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Flash is moving into the Runpod Python SDK 2.0. runpod-flash is deprecated on October 29, 2026 and receives no fixes or updates after that date. Surface this to users before the cutover. - CLI prints the notice to stderr on every flash command; stdout stays parseable (flash --version) - SDK emits a one-time FutureWarning on first public API access, attributed to the caller's import line. FutureWarning instead of DeprecationWarning because the latter is hidden by default - Notice fires once per process across both channels - Skipped on deployed workers (RUNPOD_ENDPOINT_ID / RUNPOD_POD_ID) to avoid per-cold-start log noise - RUNPOD_FLASH_SILENCE_DEPRECATION=1 silences both channels for CI Refs SLS-684
The app callback runs only after Click parses the root command, so `flash`, `flash --help`, and invalid commands exited without the notice. Print it from a custom root group's main() instead, which runs before parsing for both the installed entry point and CliRunner. Refs SLS-684
deanq
force-pushed
the
deanq/sls-684-flash-deprecation-notice
branch
from
October 13, 2026 18:48
c2b2bdc to
6b7c613
Compare
KAJdev
approved these changes
Oct 13, 2026
Merged
1 of 2 tasks
deanq
added a commit
that referenced
this pull request
Oct 14, 2026
Mirror the CLI/SDK sunset notice from #387 at the top of the README so the deprecation is visible on GitHub and PyPI, and document the RUNPOD_FLASH_SILENCE_DEPRECATION escape hatch. Refs SLS-684
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Flash is moving into the Runpod Python SDK 2.0.
runpod-flashis deprecated on October 29, 2026 and receives no fixes or updates after that date. This adds the user-facing notice ahead of the cutover.Notice text:
Behavior
flash <any invocation>flash,flash --help, and invalid commands show it too; stdout stays parseable (flash --version)from runpod_flash import Endpoint)FutureWarningRUNPOD_ENDPOINT_ID/RUNPOD_POD_ID)RUNPOD_FLASH_SILENCE_DEPRECATION=1FutureWarningrather thanDeprecationWarning: Python hidesDeprecationWarningby default unless triggered from__main__, so most users would never see it. Standard filters still work (PYTHONWARNINGS=ignore::FutureWarning).pip install runpod: until 2.0 is GA that resolves to 1.x (2.0 is currently2.0.0rc1). The migration guide carries install instructions.Notes for review
sunset.pyif it changes.flash devserves user code in a separate process the CLI does not control, so users may see the CLI banner plus one import warning from that process.flash initskeleton templates still referencerunpod_flash; left as is since the package works until the 29th.Test plan
tests/unit/test_sunset.py(24 tests): message content, once-per-process, caller attribution, worker skip, CLI stderr vs stdout, parse-time exits (no args,--help, subcommand help, invalid command), CLI-suppresses-import, silence env var truthy/falsy valuesflash,flash --help,flash bogus(notice on stderr),flash --version(notice on stderr, version on stdout),python user_script.py(FutureWarning at import line), same withRUNPOD_ENDPOINT_IDset (silent)make quality-check: 2704 passed, coverage 86.67%Refs SLS-684
🤖 Generated with Claude Code