Fix CI checks: update dependencies and resolve Pydantic V2.11 deprecations #526
+492
−381
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.
FedRAG Pull Request Template
Thanks for contributing to FedRAG!
Please fill out the sections below to help us review your PR efficiently.
Summary
What does this PR do? Please provide a brief summary of the changes introduced.
Description
CI checks were failing due to outdated lock file and Pydantic V2.11 deprecation warnings.
Changes
Dependency synchronization
uv.lockto resolve version drift across CI environments (Python 3.10, 3.11, 3.12)Pydantic V2.11 compatibility
self.model_fields→self.__class__.model_fieldsin:base/trainer_config.py:__init__,__getattr__,__setattr__fl_tasks/pytorch.py:__getattr__fl_tasks/huggingface.py:__getattr__Accessing
model_fieldsfrom instances is deprecated in Pydantic V2.11. The fix maintains identical runtime behavior while eliminating 76 deprecation warnings.Testing
Describe how you tested your changes. Include the steps to reproduce, commands run, and any relevant outputs.
make test)Checklist
Before submitting your PR, please check off the following:
make lint)Related Issues or PRs
If this PR addresses or relates to existing issues or pull requests, link them here:
N/A
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
astral.sh/usr/bin/curl curl -LsSf REDACTED(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.