build(deps): update uvicorn requirement from ^0.44.0 to >=0.44,<0.47 - #22
build(deps): update uvicorn requirement from ^0.44.0 to >=0.44,<0.47#22dependabot[bot] wants to merge 1 commit into
Conversation
Updates the requirements on [uvicorn](https://github.com/Kludex/uvicorn) to permit the latest version. - [Release notes](https://github.com/Kludex/uvicorn/releases) - [Changelog](https://github.com/Kludex/uvicorn/blob/main/docs/release-notes.md) - [Commits](Kludex/uvicorn@0.44.0...0.46.0) --- updated-dependencies: - dependency-name: uvicorn dependency-version: 0.46.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
LabelsThe following labels could not be found: Please fix the above issues or remove invalid values from |
WalkthroughThe uvicorn dependency version constraint in ChangesDependency Version Constraint
🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@pyproject.toml`:
- Line 12: The uvicorn version constraint was broadened to ">=0.44,<0.47" (the
uvicorn spec in pyproject.toml); add CI/test matrix entries to run the test
suite against 0.44.*, 0.45.*, and 0.46.* and add or update unit/integration
tests covering the http.disconnect event handling and ASGI run-context/lifespan
behaviors (simulate client disconnects and ensure background tasks/contexts
behave as expected) so any incompatibility introduced in 0.45.0 is caught; if
tests fail, either add compatibility shims where the code handles
http.disconnect and ASGI run context or restrict the version constraint
accordingly.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: a01f3704-bdd0-4c28-bd10-c044fcac1531
📒 Files selected for processing (1)
pyproject.toml
| python = "^3.11" | ||
| fastapi = "^0.135.1" | ||
| uvicorn = {extras = ["standard"], version = "^0.44.0"} | ||
| uvicorn = {extras = ["standard"], version = ">=0.44,<0.47"} |
There was a problem hiding this comment.
🧹 Nitpick | 🔵 Trivial
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Description: Verify uvicorn versions and security advisories
# Check PyPI for available uvicorn versions in the 0.44-0.46 range
echo "=== Available uvicorn versions ==="
curl -s https://pypi.org/pypi/uvicorn/json | jq -r '.releases | keys[]' | grep -E '^0\.(44|45|46)\.' | sort -V
# Check latest version
echo -e "\n=== Latest uvicorn version ==="
curl -s https://pypi.org/pypi/uvicorn/json | jq -r '.info.version'
# Check for security advisories
echo -e "\n=== Security advisories for uvicorn ==="
gh api graphql -f query='
{
securityVulnerabilities(first: 10, ecosystem: PIP, package: "uvicorn") {
nodes {
advisory {
summary
severity
publishedAt
}
vulnerableVersionRange
firstPatchedVersion {
identifier
}
}
}
}'Repository: cryptoxdog/l9-codegraph
Length of output: 639
Broadened uvicorn version constraint is valid; test for compatibility with reverted changes.
The versions in the constraint >=0.44,<0.47 (0.44.0, 0.45.0, 0.46.0) all exist on PyPI and have no known security vulnerabilities. However, since this broadens the allowed range from patch updates only to minor updates through 0.46.x, ensure your test suite verifies compatibility with the reverted changes in 0.45.0 (http.disconnect emission, ASGI run context modifications) to avoid runtime issues.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@pyproject.toml` at line 12, The uvicorn version constraint was broadened to
">=0.44,<0.47" (the uvicorn spec in pyproject.toml); add CI/test matrix entries
to run the test suite against 0.44.*, 0.45.*, and 0.46.* and add or update
unit/integration tests covering the http.disconnect event handling and ASGI
run-context/lifespan behaviors (simulate client disconnects and ensure
background tasks/contexts behave as expected) so any incompatibility introduced
in 0.45.0 is caught; if tests fail, either add compatibility shims where the
code handles http.disconnect and ASGI run context or restrict the version
constraint accordingly.
|
Superseded by #23. |
Updates the requirements on uvicorn to permit the latest version.
Release notes
Sourced from uvicorn's releases.
Changelog
Sourced from uvicorn's changelog.
... (truncated)
Commits
b224045Version 0.46.0 (#2918)7375b5bUsebytearrayfor incoming WebSocket message buffer in websockets-sansio (#...d438fb1Supportws_ping_intervalandws_ping_timeoutinwsprotoimplementation ...3e6b964Supportws_max_sizeinwsprotoimplementation (#2915)2c423bdVersion 0.45.0 (#2914)7f027f8Revert "Emithttp.disconnecton server shutdown for streaming responses" (#...73a80c3Add--reset-contextvarsflag to isolate ASGI request context (#2912)45c0b56Revert empty context for ASGI runs (#2911)850d926Raise helpfulImportErrorwhen PyYAML is missing for YAML log config (#2906)fdcacb4Acceptlog_levelstrings case-insensitively (#2907)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)Summary by CodeRabbit