Increase contrib/components test coverage (marketplace, day_in_the_life_initializer, death, situation_representation, spaceship_system)#237
Open
NandiniDhanrale wants to merge 4 commits into
Conversation
Author
|
Follow-up fix for failing checks:
Validation:
Note:
|
Author
|
Addressed the
Local validation:
|
Author
|
The test-concordia pull_request job failed in the Typecheck Concordia step. Local focused tests and the targeted pytype check for situation_representation_via_narrative are green. Could a maintainer please rerun the failed workflow job when convenient? |
Author
|
Validation update Aligned with the current scope, I'm stopping here—no wider sweep.
|
- Add markdown_stripper.py: strips triple backticks, inline code, and whitespace - Add resilient_model.py: combines retry wrapper (exponential backoff) with markdown stripping - Add markdown_stripper_test.py with 6 test cases This resolves issue google-deepmind#255 by making LLM calls resilient to rate limits and markdown-formatted responses from LLM providers.
d130076 to
a645c49
Compare
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
contrib/componentsmodules with low or missing coverage:agent/choice_of_component.pyagent/situation_representation_via_narrative.pygame_master/spaceship_system.pygame_master/death.pygame_master/marketplace.pygame_master/day_in_the_life_initializer.pycontrib/components/conftest.pyfor Python 3.11 (typing.override).Coverage impact (focused modules)
situation_representation_via_narrative.py: 100%spaceship_system.py: 93%death.py: 94%day_in_the_life_initializer.py: 89%marketplace.py: 81%choice_of_component.py: 95%Validation
pytest -n 0 concordia/contrib/components/agent/choice_of_component_test.py concordia/contrib/components/agent/situation_representation_via_narrative_test.py concordia/contrib/components/game_master/spaceship_system_test.py concordia/contrib/components/game_master/death_test.py concordia/contrib/components/game_master/marketplace_test.py concordia/contrib/components/game_master/day_in_the_life_initializer_test.pypytest concordia/contrib/components/agent/choice_of_component_test.py concordia/contrib/components/agent/situation_representation_via_narrative_test.py concordia/contrib/components/game_master/spaceship_system_test.py concordia/contrib/components/game_master/death_test.py concordia/contrib/components/game_master/marketplace_test.py concordia/contrib/components/game_master/day_in_the_life_initializer_test.pyPart of #205