-
Notifications
You must be signed in to change notification settings - Fork 72
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
submitの際のコマンド実行を追加 #234
submitの際のコマンド実行を追加 #234
Conversation
Codecov Report
@@ Coverage Diff @@
## stable #234 +/- ##
==========================================
+ Coverage 89.73% 90.49% +0.75%
==========================================
Files 62 63 +1
Lines 2612 2651 +39
==========================================
+ Hits 2344 2399 +55
+ Misses 268 252 -16
Continue to review full report at Codecov.
|
atcodertools/tools/submit.py
Outdated
if config.submit_config.exec_before_submit: | ||
run_command(config.submit_config.exec_before_submit, "./") | ||
if not config.submit_config.submit_filename: | ||
print("submit_filename is not specified") |
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.
他のコードみたいにprintではなくlogger使ってくれると統一性とか出力のコントロールが出来て出て嬉しいです。多分errorですかね
atcodertools/tools/submit.py
Outdated
print("submit_filename is not specified") | ||
return False | ||
code_path = config.submit_config.submit_filename | ||
print("changed to submitfile: ", code_path) |
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.
同上です
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"Submit file path overriding happened. new submit file path: {code_path}")とかがいいかなと思います。
主にlog周りでコメントしました。
このあたりが実際にconfigにある状態でsubmitを走らせたらちゃんと正しく動くかどうかのテストって追加できませんか? |
よさそうです!!!!!!!!!!!! |
ACLなどでexpanderを実行してからsubmitできるようにしました。exec_before_submit, exec_after_submit, submit_filenameをconfigのsubmitで指定し、以下の機能があります。