-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
fix subprocess.check_output bug #1409
Conversation
qlib/workflow/recorder.py
Outdated
("git diff", "code_diff.txt"), | ||
("git status", "code_status.txt"), | ||
("git diff --cached", "code_cached.txt"), | ||
(f"cd {str(root_path)} && git diff", "code_diff.txt"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The feature is not designed for logging the uncommitted_code of Qlib
]: | ||
try: | ||
out = subprocess.check_output(cmd, shell=True) | ||
self.client.log_text(self.id, out.decode(), fname) # this behaves same as above | ||
except subprocess.CalledProcessError: | ||
logger.info(f"Fail to log the uncommitted code of $CWD when run `{cmd}`") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
logger.info(f"Fail to log the uncommitted code of $CWD({os.getpwd()}) when run {cmd}
")
* fix_check_output_bug * change_log_info * recover_feature
* fix_check_output_bug * change_log_info * recover_feature
* fix_check_output_bug * change_log_info * recover_feature
Description
Motivation and Context
How Has This Been Tested?
pytest qlib/tests/test_all_pipeline.py
under upper directory ofqlib
.Screenshots of Test Results (if appropriate):
Types of changes