Upgrade Streamlit to 1.62 - #134
Merged
Merged
Conversation
suung
reviewed
Sep 3, 2026
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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
This PR upgrades Streamlit from 1.54.0 to 1.62.0 and updates the dependencies required by the new version.
It also updates the Streamlit tests for a path-resolution change in
AppTest.from_file()and enables CORS in both Streamlit configurations.Why this upgrade was needed
We wanted to move to the latest Streamlit release instead of staying on 1.54.0.
Streamlit 1.62 has different Python and server dependency requirements. Keeping the previous versions caused dependency incompatibilities and test failures.
The existing configuration also explicitly disabled CORS. Streamlit warned that this allowed cross-origin WebSocket connections. This PR enables CORS so untrusted origins are rejected.
Dependency changes
streamlituvicornitsdangerouswatchdogThe existing Starlette version already satisfies Streamlit 1.62, so it did not need another update.
Test failure after the upgrade
After upgrading Streamlit, the Streamlit
AppTesttests could no longer find the application file.The tests previously used:
Streamlit 1.62 resolves this relative path from the calling test file. That caused it to look for the application under the tests directory instead of the repository root.
Each affected test now builds an absolute path from its own location:
This path is based on the repository structure. It does not contain a username, machine-specific directory, or CI-specific path.
The affected tests now use:
The touched tests also received small lint cleanups.
CORS change
Both Streamlit configuration files previously contained:
They now contain:
XSRF protection remains enabled:
If a deployment intentionally embeds this Streamlit application from another origin, that origin will need to be explicitly allowed through the deployment configuration.
Validation