Repository navigation
chore(deps): align API and Agent dependency locks - #46210
Open
BeautyyuYanli wants to merge 1 commit into
Open
BeautyyuYanli wants to merge 1 commit into
BeautyyuYanli wants to merge 1 commit into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #46210 +/- ##
========================================
Coverage 90.34% 90.35%
========================================
Files 6309 6310 +1
Lines 394170 394284 +114
Branches 79216 79221 +5
========================================
+ Hits 356126 356246 +120
+ Misses 31930 31927 -3
+ Partials 6114 6111 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
This PR is made with gpt-6.1-sol (Codex) and gemini-4-carbon (Google Antigravity), while I'm responsible for all the changes.
Important
Fixes #<issue number>.Summary
Fixes #44777.
Completes the alignment of dependency declarations and
uv.lockresolutions acrossapianddify-agent(including theserverextra) for the four dependencies tracked in #44777:api(before -> after)dify-agent/serverextra (before -> after)pydantic-ai-slim2.53.0->2.53.02.53.0->2.53.0(==2.53.0on core &server)mainvia #45041Pillow13.0.0->13.0.013.0.0->13.0.0(>=13.0.0,<14onserver)mainvia #44871 & #44917pypdf6.21.4->6.21.46.21.4->6.21.4mainvia #44778, #45215 & #45259filelock3.20.3->4.2.104.2.1->4.2.10<=4.2.0advisories (CVE-2026-112909,CVE-2026-112910) inapi/uv.lockunstructured0.27.5->0.27.370.24.1->0.27.370.27.37natively declaresfilelock>=4.2.1,<5.0.0Changes
dify-agent/pyproject.toml: Remove the temporary[tool.uv]override-dependencies = ["filelock==4.2.1"]block introduced in chore(deps): bump Agent filelock to 4.2.1 #44793, fulfilling itsTODOnow that upstreamunstructured==0.27.37natively permitsfilelock>=4.2.1,<5.0.0.dify-agent/uv.lock&api/uv.lock: Perform targeted upgrades (--upgrade-package unstructured --upgrade-package filelock) so both projects lockunstructured==0.27.37andfilelock==4.2.10with zero unrelated package drift while preservingpydantic-ai-slim==2.53.0,pillow==13.0.0, andpypdf==6.21.4.Verification
uv lock --check --directory apianduv lock --check --directory dify-agentpass cleanly; programmatic diff of all locked packages confirms onlyunstructuredandfilelockchanged.3.13.13,uv 0.12.23):uv sync --directory api --frozen --group devuv sync --directory dify-agent --frozen --extra server --devuv sync --directory dify-agent --frozen --no-devpydantic-ai-slim==2.53.0,pillow==13.0.0,pypdf==6.21.4,filelock==4.2.10,unstructured==0.27.37) acrossapianddify-agent[server], plus clean client-onlydify_agent.Clientimport withoutserverextras.dify-agentlocal suite (pytest tests/local -m 'not integration'with--extra server): 1080 passed, 14 subtests passed (covering packaging contracts,agent_stubknowledge image handling, LLM/runtime layers).apiunit tests (api/tests/unit_tests/core/rag/extractor,test_package_resource_importer.py,knowledge_fsimage tests): 397 passed.FileLockcontention/release,huggingface_hubWeakFileLock, Pillow PNG/JPEG/WebP encode/decode,pypdfwrite/read, andunstructuredDOCX/PPTX/Markdown partitioning all succeeded.ruff checkandpyreflypassed in bothdify-agent(0 errors) and touchedapimodules.Screenshots
N/A (dependency manifest and lockfile alignment only).
Checklist
make lint && make type-check(backend) andvp staged(frontend) to appease the lint gods