Polish standard output messages#69
Conversation
|
Standard output from Captured stdout from job: |
|
Standard out from Captured stdout from job: |
Currently, `benchcab` outputs stdout from other commands such as `svn` and `./build3.sh`, but does not output anything when running `./cable` or when generating particular directory structures. This commit improves the messages output to stdout by `benchcab` for all sub-commands. We also add a boolean flag to specify verbose output for each sub-command. Write the standard output from CABLE to the `tasks/<task_name>/out.txt` directory instead of writing to `/dev/null` so that it is accessible to the user. Fixes #67
919e4de to
f8c12f0
Compare
|
I've noticed this output in the build part: Do you know where it comes from? I don't see it happening for me. Just checking it is due to your setup and not a problem for users. |
|
I think the error message is due to a custom conda environment being activated and so we cannot |
|
|
||
| src_dir = Path(root_dir, internal.SRC_DIR) | ||
| if not src_dir.exists(): | ||
| print(f"Creating src directory: {src_dir}") |
There was a problem hiding this comment.
| print(f"Creating src directory: {src_dir}") | |
| print(f"Creating {src_dir.relative_to(root_dir)} directory: {src_dir}") |
Should we replace all the relative path in the print statements like above? This means if we change the directory tree, we wouldn't have to change the printed messages.
| #PBS -P {project} | ||
| #PBS -j oe | ||
| #PBS -M {email_address} | ||
| #PBS -l storage=gdata/ks32+gdata/wd9+gdata/hh5+gdata/{project}+{curdir_root}/{curdir_proj} |
There was a problem hiding this comment.
| #PBS -l storage=gdata/ks32+gdata/wd9+gdata/hh5+gdata/{project}+{curdir_root}/{curdir_proj} | |
| #PBS -l storage=gdata/ks32+gdata/hh5+gdata/{project}+{curdir_root}/{curdir_proj} |
Remove wd9 now if we change the formatting here
dc668c7 to
7952f47
Compare
Add verbose standard output when compiling with a custom build script.
f75ecb4 to
c1d5ef1
Compare
|
- Add indentation to verbose output within running a task to improve stdout readability - Add blank line between steps of the workflow in all cases (verbose True/False) to improve stdout readability
Currently,
benchcaboutputs stdout from other commands such assvnand./build3.sh, but does not output anything when running./cableor when generating particular directory structures.This commit improves the messages output to stdout by
benchcabfor all sub-commands. We also add a boolean flag to specify verbose output for each sub-command.Write the standard output from CABLE to the
tasks/<task_name>/out.txtdirectory instead of writing to/dev/nullso that it is accessible to the user.Remove
wd9dependence in source code.Fixes #67 and #64