Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixbug: #1422 Role's validate_role_extra resets watch in Environment obj deserialization #1433

Merged
merged 8 commits into from
Aug 7, 2024

Conversation

iorisa
Copy link
Collaborator

@iorisa iorisa commented Aug 3, 2024

@codecov-commenter
Copy link

codecov-commenter commented Aug 3, 2024

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 62.59%. Comparing base (22e1009) to head (945c24a).
Report is 17 commits behind head on main.

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1433   +/-   ##
=======================================
  Coverage   62.59%   62.59%           
=======================================
  Files         287      287           
  Lines       17551    17552    +1     
=======================================
+ Hits        10986    10987    +1     
  Misses       6565     6565           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@iorisa iorisa added the bug_fix label Aug 5, 2024
@iorisa iorisa changed the base branch from v0.8-release to main August 6, 2024 08:24
@iorisa iorisa changed the title fixbug: #1422 fixbug: #1422 Role's validate_role_extra resets watch in Environment obj deserialization Aug 6, 2024
@@ -68,7 +68,7 @@ class RoleA(Role):
def __init__(self, **kwargs):
super(RoleA, self).__init__(**kwargs)
self.set_actions([ActionPass])
self._watch([UserRequirement])
self._watch([FixBug])
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you run the all tests under tests/metagpt/serialize_deserialize to test this change.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2024-08-07 14:55:21.127 | WARNING  | tests.mock.mock_llm:_mock_rsp:121 - Use response cache
======================================================================================================= short test summary info ========================================================================================================
PASSED tests/metagpt/serialize_deserialize/test_action.py::test_action_serdeser
PASSED tests/metagpt/serialize_deserialize/test_architect.py::test_architect_serdeser
PASSED tests/metagpt/serialize_deserialize/test_environment.py::test_env_serdeser
PASSED tests/metagpt/serialize_deserialize/test_environment.py::test_environment_serdeser
PASSED tests/metagpt/serialize_deserialize/test_environment.py::test_environment_serdeser_v2
PASSED tests/metagpt/serialize_deserialize/test_environment.py::test_environment_serdeser_save
PASSED tests/metagpt/serialize_deserialize/test_memory.py::test_memory_serdeser
PASSED tests/metagpt/serialize_deserialize/test_memory.py::test_memory_serdeser_save
PASSED tests/metagpt/serialize_deserialize/test_polymorphic.py::test_serialize_as_any
PASSED tests/metagpt/serialize_deserialize/test_polymorphic.py::test_no_serialize_as_any
PASSED tests/metagpt/serialize_deserialize/test_polymorphic.py::test_polymorphic
PASSED tests/metagpt/serialize_deserialize/test_prepare_interview.py::test_action_serdeser
PASSED tests/metagpt/serialize_deserialize/test_product_manager.py::test_product_manager_serdeser
PASSED tests/metagpt/serialize_deserialize/test_project_manager.py::test_project_manager_serdeser
PASSED tests/metagpt/serialize_deserialize/test_reasearcher.py::test_tutorial_assistant_serdeser
PASSED tests/metagpt/serialize_deserialize/test_role.py::test_roles
PASSED tests/metagpt/serialize_deserialize/test_role.py::test_role_subclasses
PASSED tests/metagpt/serialize_deserialize/test_role.py::test_role_serialize
PASSED tests/metagpt/serialize_deserialize/test_role.py::test_engineer_serdeser
PASSED tests/metagpt/serialize_deserialize/test_role.py::test_role_serdeser_save
PASSED tests/metagpt/serialize_deserialize/test_role.py::test_role_serdeser_interrupt
PASSED tests/metagpt/serialize_deserialize/test_schema.py::test_message_serdeser_from_create_model
PASSED tests/metagpt/serialize_deserialize/test_schema.py::test_message_without_postprocess
PASSED tests/metagpt/serialize_deserialize/test_schema.py::test_message_serdeser_from_basecontext
PASSED tests/metagpt/serialize_deserialize/test_sk_agent.py::test_sk_agent_serdeser
PASSED tests/metagpt/serialize_deserialize/test_team.py::test_team_deserialize
PASSED tests/metagpt/serialize_deserialize/test_team.py::test_team_serdeser_save
PASSED tests/metagpt/serialize_deserialize/test_team.py::test_team_recover
PASSED tests/metagpt/serialize_deserialize/test_team.py::test_team_recover_save
PASSED tests/metagpt/serialize_deserialize/test_team.py::test_team_recover_multi_roles_save
PASSED tests/metagpt/serialize_deserialize/test_team.py::test_context
PASSED tests/metagpt/serialize_deserialize/test_tutorial_assistant.py::test_tutorial_assistant_serdeser
PASSED tests/metagpt/serialize_deserialize/test_write_code.py::test_write_design_serdeser
PASSED tests/metagpt/serialize_deserialize/test_write_code.py::test_write_code_serdeser
PASSED tests/metagpt/serialize_deserialize/test_write_code_review.py::test_write_code_review_serdeser
PASSED tests/metagpt/serialize_deserialize/test_write_design.py::test_write_design_serialize
PASSED tests/metagpt/serialize_deserialize/test_write_design.py::test_write_task_serialize
PASSED tests/metagpt/serialize_deserialize/test_write_docstring.py::test_action_serdeser[google]
PASSED tests/metagpt/serialize_deserialize/test_write_docstring.py::test_action_serdeser[numpy]
PASSED tests/metagpt/serialize_deserialize/test_write_docstring.py::test_action_serdeser[sphinx]
PASSED tests/metagpt/serialize_deserialize/test_write_prd.py::test_action_serdeser
PASSED tests/metagpt/serialize_deserialize/test_write_review.py::test_action_serdeser
PASSED tests/metagpt/serialize_deserialize/test_write_tutorial.py::test_write_directory_serdeser[English-Write a tutorial about Python]
PASSED tests/metagpt/serialize_deserialize/test_write_tutorial.py::test_write_content_serdeser[English-Write a tutorial about Python-directory0]
=================================================================================================== 44 passed, 5 warnings in 40.18s ====================================================================================================

@better629
Copy link
Collaborator

lgtm

@better629 better629 merged commit d73cc94 into geekan:main Aug 7, 2024
1 of 3 checks passed
Copy link

@SAIVEERENDER24 SAIVEERENDER24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants