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

Con duct ls #224

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
Draft

Con duct ls #224

wants to merge 12 commits into from

Conversation

asmacdo
Copy link
Member

@asmacdo asmacdo commented Nov 12, 2024

Fixes #185

summaries

Command: sleep 0.11
	Wall Clock Time: 0.112 sec
	Memory Peak Usage (RSS): 2.0 MB
	Virtual Memory Peak Usage (VSZ): 232.4 MB
	Memory Peak Percentage: 0.00%
	CPU Peak Usage: 0.00%

Command: sleep 0.1
	Wall Clock Time: 0.102 sec
	Memory Peak Usage (RSS): 2.0 MB
	Virtual Memory Peak Usage (VSZ): 232.4 MB
	Memory Peak Percentage: 0.00%
	CPU Peak Usage: 0.00%

yaml

command: sleep 0.11
duct_version: 0.8.0
env: {}
execution_summary:
  average_pcpu: 0.0
  average_pmem: 0.0
  average_rss: 1961984
  average_vsz: 232374272
  command: sleep 0.11
  end_time: 1731385053.3107307
  exit_code: 0
  logs_prefix: .duct/logs/2024.11.11T22.17.33-130359_
  num_reports: 2
  num_samples: 1
  peak_pcpu: 0.0
  peak_pmem: 0.0
  peak_rss: 1961984
  peak_vsz: 232374272
  start_time: 1731385053.198443
  wall_clock_time: 0.11228775978088379
gpu: null
output_paths:
  info: .duct/logs/2024.11.11T22.17.33-130359_info.json
  prefix: .duct/logs/2024.11.11T22.17.33-130359_
  stderr: .duct/logs/2024.11.11T22.17.33-130359_stderr
  stdout: .duct/logs/2024.11.11T22.17.33-130359_stdout
  usage: .duct/logs/2024.11.11T22.17.33-130359_usage.json
schema_version: 0.2.0
system:
  cpu_total: 20
  hostname: fancy
  memory_total: 33336127488
  uid: 1000
  user: austin

command: sleep 0.1
duct_version: 0.8.0
env: {}
execution_summary:
  average_pcpu: 0.0
  average_pmem: 0.0
  average_rss: 1978368
  average_vsz: 232374272
  command: sleep 0.1
  end_time: 1731385056.415762
  exit_code: 0
  logs_prefix: .duct/logs/2024.11.11T22.17.36-130380_
  num_reports: 2
  num_samples: 1
  peak_pcpu: 0.0
  peak_pmem: 0.0
  peak_rss: 1978368
  peak_vsz: 232374272
  start_time: 1731385056.3133166
  wall_clock_time: 0.10244536399841309
gpu: null
output_paths:
  info: .duct/logs/2024.11.11T22.17.36-130380_info.json
  prefix: .duct/logs/2024.11.11T22.17.36-130380_
  stderr: .duct/logs/2024.11.11T22.17.36-130380_stderr
  stdout: .duct/logs/2024.11.11T22.17.36-130380_stdout
  usage: .duct/logs/2024.11.11T22.17.36-130380_usage.json
schema_version: 0.2.0
system:
  cpu_total: 20
  hostname: fancy
  memory_total: 33336127488
  uid: 1000
  user: austin

json

{"command": "sleep 0.11", "system": {"cpu_total": 20, "memory_total": 33336127488, "hostname": "fancy", "uid": 1000, "user": "austin"}, "env": {}, "gpu": null, "duct_version": "0.8.0", "schema_version": "0.2.0", "execution_summary": {"exit_code": 0, "command": "sleep 0.11", "logs_prefix": ".duct/logs/2024.11.11T22.17.33-130359_", "wall_clock_time": 0.11228775978088379, "peak_rss": 1961984, "average_rss": 1961984, "peak_vsz": 232374272, "average_vsz": 232374272, "peak_pmem": 0.0, "average_pmem": 0.0, "peak_pcpu": 0.0, "average_pcpu": 0.0, "num_samples": 1, "num_reports": 2, "start_time": 1731385053.198443, "end_time": 1731385053.3107307}, "output_paths": {"stdout": ".duct/logs/2024.11.11T22.17.33-130359_stdout", "stderr": ".duct/logs/2024.11.11T22.17.33-130359_stderr", "usage": ".duct/logs/2024.11.11T22.17.33-130359_usage.json", "info": ".duct/logs/2024.11.11T22.17.33-130359_info.json", "prefix": ".duct/logs/2024.11.11T22.17.33-130359_"}}
{"command": "sleep 0.1", "system": {"cpu_total": 20, "memory_total": 33336127488, "hostname": "fancy", "uid": 1000, "user": "austin"}, "env": {}, "gpu": null, "duct_version": "0.8.0", "schema_version": "0.2.0", "execution_summary": {"exit_code": 0, "command": "sleep 0.1", "logs_prefix": ".duct/logs/2024.11.11T22.17.36-130380_", "wall_clock_time": 0.10244536399841309, "peak_rss": 1978368, "average_rss": 1978368, "peak_vsz": 232374272, "average_vsz": 232374272, "peak_pmem": 0.0, "average_pmem": 0.0, "peak_pcpu": 0.0, "average_pcpu": 0.0, "num_samples": 1, "num_reports": 2, "start_time": 1731385056.3133166, "end_time": 1731385056.415762}, "output_paths": {"stdout": ".duct/logs/2024.11.11T22.17.36-130380_stdout", "stderr": ".duct/logs/2024.11.11T22.17.36-130380_stderr", "usage": ".duct/logs/2024.11.11T22.17.36-130380_usage.json", "info": ".duct/logs/2024.11.11T22.17.36-130380_info.json", "prefix": ".duct/logs/2024.11.11T22.17.36-130380_"}}

jsonpp

{'command': 'sleep 0.11',
 'duct_version': '0.8.0',
 'env': {},
 'execution_summary': {'average_pcpu': 0.0,
                       'average_pmem': 0.0,
                       'average_rss': 1961984,
                       'average_vsz': 232374272,
                       'command': 'sleep 0.11',
                       'end_time': 1731385053.3107307,
                       'exit_code': 0,
                       'logs_prefix': '.duct/logs/2024.11.11T22.17.33-130359_',
                       'num_reports': 2,
                       'num_samples': 1,
                       'peak_pcpu': 0.0,
                       'peak_pmem': 0.0,
                       'peak_rss': 1961984,
                       'peak_vsz': 232374272,
                       'start_time': 1731385053.198443,
                       'wall_clock_time': 0.11228775978088379},
 'gpu': None,
 'output_paths': {'info': '.duct/logs/2024.11.11T22.17.33-130359_info.json',
                  'prefix': '.duct/logs/2024.11.11T22.17.33-130359_',
                  'stderr': '.duct/logs/2024.11.11T22.17.33-130359_stderr',
                  'stdout': '.duct/logs/2024.11.11T22.17.33-130359_stdout',
                  'usage': '.duct/logs/2024.11.11T22.17.33-130359_usage.json'},
 'schema_version': '0.2.0',
 'system': {'cpu_total': 20,
            'hostname': 'fancy',
            'memory_total': 33336127488,
            'uid': 1000,
            'user': 'austin'}}
{'command': 'sleep 0.1',
 'duct_version': '0.8.0',
 'env': {},
 'execution_summary': {'average_pcpu': 0.0,
                       'average_pmem': 0.0,
                       'average_rss': 1978368,
                       'average_vsz': 232374272,
                       'command': 'sleep 0.1',
                       'end_time': 1731385056.415762,
                       'exit_code': 0,
                       'logs_prefix': '.duct/logs/2024.11.11T22.17.36-130380_',
                       'num_reports': 2,
                       'num_samples': 1,
                       'peak_pcpu': 0.0,
                       'peak_pmem': 0.0,
                       'peak_rss': 1978368,
                       'peak_vsz': 232374272,
                       'start_time': 1731385056.3133166,
                       'wall_clock_time': 0.10244536399841309},
 'gpu': None,
 'output_paths': {'info': '.duct/logs/2024.11.11T22.17.36-130380_info.json',
                  'prefix': '.duct/logs/2024.11.11T22.17.36-130380_',
                  'stderr': '.duct/logs/2024.11.11T22.17.36-130380_stderr',
                  'stdout': '.duct/logs/2024.11.11T22.17.36-130380_stdout',
                  'usage': '.duct/logs/2024.11.11T22.17.36-130380_usage.json'},
 'schema_version': '0.2.0',
 'system': {'cpu_total': 20,
            'hostname': 'fancy',
            'memory_total': 33336127488,
            'uid': 1000,
            'user': 'austin'}}

TODO

  • pyout

Copy link

codecov bot commented Nov 12, 2024

Codecov Report

Attention: Patch coverage is 40.00000% with 21 lines in your changes missing coverage. Please review.

Project coverage is 92.43%. Comparing base (50a711e) to head (38bf3de).

Files with missing lines Patch % Lines
src/con_duct/suite/ls.py 30.00% 21 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #224      +/-   ##
==========================================
- Coverage   95.36%   92.43%   -2.94%     
==========================================
  Files           4        5       +1     
  Lines         626      661      +35     
  Branches       70       76       +6     
==========================================
+ Hits          597      611      +14     
- Misses         15       36      +21     
  Partials       14       14              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

=== Do not change lines below ===
{
 "chain": [],
 "cmd": "./.update-readme-help.py",
 "exit": 0,
 "extra_inputs": [],
 "inputs": [],
 "outputs": [],
 "pwd": "."
}
^^^ Do not change lines above ^^^
@asmacdo asmacdo added the semver-minor Increment the minor version when merged label Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver-minor Increment the minor version when merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

con-duct ls [-f pyout,summary,json,json_pp,yaml]
2 participants