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

feature(zjow): add trackback log for subprocess env manager #534

Merged
merged 2 commits into from
Nov 2, 2022

Conversation

zjowowen
Copy link
Collaborator

@zjowowen zjowowen commented Nov 1, 2022

@zjowowen zjowowen added the enhancement New feature or request label Nov 1, 2022
@zjowowen zjowowen self-assigned this Nov 1, 2022
@zjowowen zjowowen mentioned this pull request Nov 1, 2022
11 tasks
@codecov
Copy link

codecov bot commented Nov 1, 2022

Codecov Report

Merging #534 (a0671f4) into main (b22589c) will decrease coverage by 0.16%.
The diff coverage is 60.00%.

❗ Current head a0671f4 differs from pull request most recent head aca1e06. Consider uploading reports for the commit aca1e06 to get more accurate results

@@            Coverage Diff             @@
##             main     #534      +/-   ##
==========================================
- Coverage   85.48%   85.32%   -0.17%     
==========================================
  Files         526      526              
  Lines       43300    43305       +5     
==========================================
- Hits        37016    36950      -66     
- Misses       6284     6355      +71     
Flag Coverage Δ
unittests 85.32% <60.00%> (-0.17%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
ding/envs/env_manager/subprocess_env_manager.py 77.19% <60.00%> (-0.17%) ⬇️
ding/framework/message_queue/tests/test_redis.py 26.92% <0.00%> (-73.08%) ⬇️
ding/framework/message_queue/redis.py 32.07% <0.00%> (-50.95%) ⬇️
ding/framework/tests/test_parallel.py 92.52% <0.00%> (-3.74%) ⬇️
ding/worker/learner/comm/flask_fs_learner.py 90.62% <0.00%> (-0.63%) ⬇️
ding/league/player.py 95.31% <0.00%> (+0.78%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@zjowowen zjowowen changed the title zjow(feature): Add trackback log for subprocess env manager feature(zjow): Add trackback log for subprocess env manager Nov 2, 2022
@PaParaZz1 PaParaZz1 changed the title feature(zjow): Add trackback log for subprocess env manager feature(zjow): add trackback log for subprocess env manager Nov 2, 2022
@@ -398,6 +398,7 @@ def reset(self, reset_param: Optional[Dict] = None) -> None:
self._env_seed[env_id] = None # seed only use once
except BaseException as e:
logging.warning("subprocess reset set seed failed, ignore and continue...")
logging.warning("subprocess exception traceback: \n" + traceback.format_exc())
Copy link
Member

Choose a reason for hiding this comment

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

merge two logs

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed.

@@ -439,6 +440,7 @@ def reset_fn():
reset_fn()
return
except BaseException as e:
logging.warning("subprocess exception traceback: \n" + traceback.format_exc())
Copy link
Member

Choose a reason for hiding this comment

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

don't use warning, rather than info, they are catched exception

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed.

@PaParaZz1 PaParaZz1 merged commit 806f133 into opendilab:main Nov 2, 2022
@zjowowen zjowowen deleted the exception-update branch November 10, 2022 03:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants