Skip to content

Commit

Permalink
Remove items that only contain space in gcb commands (google#1861)
Browse files Browse the repository at this point in the history
  • Loading branch information
DonggeLiu authored Jun 13, 2023
1 parent cbf9825 commit 59c0c17
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion service/gcbrun_experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ def get_latest_gcbrun_command(comments):
continue
if len(body) == len(RUN_EXPERIMENT_COMMAND_STR):
return None
return body[len(RUN_EXPERIMENT_COMMAND_STR):].strip().split(' ')
command = body[len(RUN_EXPERIMENT_COMMAND_STR):].strip().split(' ')
# Items that only contain space are redundant and will confuse
# `run_experiment_main()` in `experiment/run_experiment.py`
return [word for word in command if word.strip()]
return None


Expand Down

0 comments on commit 59c0c17

Please sign in to comment.