ARCHIVED TRAINING / reanahub/reana-client
reanahub__reana-client-701
This is a preserved training example. Membership in the current training wave has not been verified.
Problem statement
cli: duration of stopped workflows is not displayed correctly Similarly to what was happening in reanahub/reana-ui#386, when running `reana-client status --include-duration` for a stopped workflow, the displayed duration is not the time between the moment in which the run was started and the moment in which the run was stopped, but the total time passed from the beginning of the run until the current moment. ```console ❯ reana-client status -w recast --include-duration --json | jq '.[0].status' "stopped" ❯ reana-client status -w recast --include-duration --json | jq '.[0].duration' 2598 # After a few seconds... ❯ reana-client status -w recast --include-duration --json | jq '.[0].duration' 2604 ``` This is very likely because in [`reana_client.utils.get_workflow_duration`](https://github.com/reanahub/reana-client/blob/5b278f131b59d3ecfd3c7f129040a126cd01b60a/reana_client/utils.py#L134) we only look at `run_finished_at`, but not at `run_stopped_at`. ## Hints: codecov[bot]: ## [Codecov](https://app.codecov.io/gh/reanahub/reana-client/pull/701?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=reanahub) Report All modified and coverable lines are covered by tests :white_check_mark: > Comparison is base [(`fa5b7c7`)](https://app.codecov.io/gh/reanahub/reana-client/commit/fa5b7c76eb25bfb1591e6fae4a142d975e14b937?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=reanahub) 58.57% compared to head [(`d3925f2`)](https://app.codecov.io/gh/reanahub/reana-client/pull/701?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=reanahub) 58.62%. <details><summary>Additional details and impacted files</summary> [](https://app.codecov.io/gh/reanahub/reana-client/pull/701?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=reanahub) ```diff @@ Coverage Diff @@ ## master #701 +/- ## ========================================== + Coverage 58.57% 58.62% +0.05% ========================================== Files 24 24 Lines 2390 2393 +3 ========================================== + Hits 1400 1403 +3 Misses 990 990 ``` | [Files](https://app.codecov.io/gh/reanahub/reana-client/pull/701?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=reanahub) | Coverage Δ | | |---|---|---| | [reana\_client/api/client.py](https://app.codecov.io/gh/reanahub/reana-client/pull/701?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=reanahub#diff-cmVhbmFfY2xpZW50L2FwaS9jbGllbnQucHk=) | `45.54% <100.00%> (ø)` | | | [reana\_client/utils.py](https://app.codecov.io/gh/reanahub/reana-client/pull/701?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=reanahub#diff-cmVhbmFfY2xpZW50L3V0aWxzLnB5) | `76.47% <100.00%> (+0.60%)` | :arrow_up: | | [reana\_client/validation/environments.py](https://app.codecov.io/gh/reanahub/reana-client/pull/701?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=reanahub#diff-cmVhbmFfY2xpZW50L3ZhbGlkYXRpb24vZW52aXJvbm1lbnRzLnB5) | `32.50% <ø> (ø)` | | </details> giuseppe-steduto: Note for the reviewer: I chose `status` as the scope of the commit because I think that the commands affected by the PR are a nice user-facing scope for changes to the client. For example, this PR fixes `status`, `list`, and in general the commands that use the `--include-duration` flag, I chose `status` as it is the one most evidently impacted. WDYT? mdonadoni: Regarding the scope, I think `fix(status)` can be a good choice. WDYT @tiborsimko ?
Training membership
opd_e4b_pure_v6b opd_e4b_pure_v7 opd_e4b_pure_v7b
Task issues extracted from preserved verified_rft_messages training examples. This is not a verified current RL wave manifest.
Task and snapshot provenance
Snapshot captured 2026-11-12T17:06:59.476467+00:00 · Autoresearch-Arena/gemma-4-developer-agent
{
"datasets": [
"opd_e4b_pure_v6b",
"opd_e4b_pure_v7",
"opd_e4b_pure_v7b"
],
"examples": 10,
"instance_id": "reanahub__reana-client-701",
"problem_statement": "cli: duration of stopped workflows is not displayed correctly\nSimilarly to what was happening in reanahub/reana-ui#386, when running `reana-client status --include-duration` for a stopped workflow, the displayed duration is not the time between the moment in which the run was started and the moment in which the run was stopped, but the total time passed from the beginning of the run until the current moment.\r\n\r\n```console\r\n❯ reana-client status -w recast --include-duration --json | jq '.[0].status'\r\n\"stopped\"\r\n❯ reana-client status -w recast --include-duration --json | jq '.[0].duration'\r\n2598\r\n# After a few seconds...\r\n❯ reana-client status -w recast --include-duration --json | jq '.[0].duration'\r\n2604\r\n```\r\n\r\nThis is very likely because in [`reana_client.utils.get_workflow_duration`](https://github.com/reanahub/reana-client/blob/5b278f131b59d3ecfd3c7f129040a126cd01b60a/reana_client/utils.py#L134) we only look at `run_finished_at`, but not at `run_stopped_at`.\r\n\n\n## Hints:\ncodecov[bot]: ## [Codecov](https://app.codecov.io/gh/reanahub/reana-client/pull/701?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=reanahub) Report\nAll modified and coverable lines are covered by tests :white_check_mark:\n> Comparison is base [(`fa5b7c7`)](https://app.codecov.io/gh/reanahub/reana-client/commit/fa5b7c76eb25bfb1591e6fae4a142d975e14b937?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=reanahub) 58.57% compared to head [(`d3925f2`)](https://app.codecov.io/gh/reanahub/reana-client/pull/701?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=reanahub) 58.62%.\n\n<details><summary>Additional details and impacted files</summary>\n\n\n[](https://app.codecov.io/gh/reanahub/reana-client/pull/701?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=reanahub)\n\n```diff\n@@ Coverage Diff @@\n## master #701 +/- ##\n==========================================\n+ Coverage 58.57% 58.62% +0.05% \n==========================================\n Files 24 24 \n Lines 2390 2393 +3 \n==========================================\n+ Hits 1400 1403 +3 \n Misses 990 990 \n```\n\n\n| [Files](https://app.codecov.io/gh/reanahub/reana-client/pull/701?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=reanahub) | Coverage Δ | |\n|---|---|---|\n| [reana\\_client/api/client.py](https://app.codecov.io/gh/reanahub/reana-client/pull/701?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=reanahub#diff-cmVhbmFfY2xpZW50L2FwaS9jbGllbnQucHk=) | `45.54% <100.00%> (ø)` | |\n| [reana\\_client/utils.py](https://app.codecov.io/gh/reanahub/reana-client/pull/701?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=reanahub#diff-cmVhbmFfY2xpZW50L3V0aWxzLnB5) | `76.47% <100.00%> (+0.60%)` | :arrow_up: |\n| [reana\\_client/validation/environments.py](https://app.codecov.io/gh/reanahub/reana-client/pull/701?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=reanahub#diff-cmVhbmFfY2xpZW50L3ZhbGlkYXRpb24vZW52aXJvbm1lbnRzLnB5) | `32.50% <ø> (ø)` | |\n\n</details>\ngiuseppe-steduto: Note for the reviewer: I chose `status` as the scope of the commit because I think that the commands affected by the PR are a nice user-facing scope for changes to the client. For example, this PR fixes `status`, `list`, and in general the commands that use the `--include-duration` flag, I chose `status` as it is the one most evidently impacted. WDYT?\nmdonadoni: Regarding the scope, I think `fix(status)` can be a good choice. WDYT @tiborsimko ?",
"repo": "reanahub/reana-client",
"source": "v2/experiments/train_data/opd_e4b_pure_v6b/verified_rft_messages.jsonl",
"source_sha256": "0f62460a9706eea5e1605255896f191ab00cb5706c5f1f2e1c293e9a718218dc"
}{
"captured_at": "2026-11-12T17:06:59.476467+00:00",
"membership": "archived training",
"membership_evidence": "Task issues extracted from preserved verified_rft_messages training examples. This is not a verified current RL wave manifest.",
"name": "Preserved post-training task archive",
"source": "Autoresearch-Arena/gemma-4-developer-agent",
"source_revision": "016496de222aaafca0d4ee4c18efc63ba616f76e",
"sources": [
{
"path": "v2/experiments/train_data/opd_e4b_cispo_v5/verified_rft_messages.jsonl",
"sha256": "a43610ad0dfb6ace95375cfae09000f41afc0338cc925af870a4ade7a9b20c4c"
},
{
"path": "v2/experiments/train_data/opd_e4b_hybrid_v3/verified_rft_messages.jsonl",
"sha256": "bd326303eb127e8e5e08f03daf97bb88d79d19709d59f3f93f348bc56686a8df"
},
{
"path": "v2/experiments/train_data/opd_e4b_onpolicy_v3/verified_rft_messages.jsonl",
"sha256": "960c680e797e823a0d3a22f4b1d5ef60a72971373d703b877340b0c9126aaf68"
},
{
"path": "v2/experiments/train_data/opd_e4b_pure_v6a/verified_rft_messages.jsonl",
"sha256": "f045b7ca5b3883a1e2eaee81e1c02a4a1b53dd7b7b36e98bacb2ba5823a15148"
},
{
"path": "v2/experiments/train_data/opd_e4b_pure_v6b/verified_rft_messages.jsonl",
"sha256": "0f62460a9706eea5e1605255896f191ab00cb5706c5f1f2e1c293e9a718218dc"
},
{
"path": "v2/experiments/train_data/opd_e4b_pure_v7/verified_rft_messages.jsonl",
"sha256": "e37f7bd675322f3f81500b73559d60d5f602ca0537bf19f5cb06332c728c7b72"
},
{
"path": "v2/experiments/train_data/opd_e4b_pure_v7b/verified_rft_messages.jsonl",
"sha256": "b864bdc8695183433eef6e31cb8d33fad44ba3aded2170c1ade4ad5b2944ce23"
},
{
"path": "v2/experiments/train_data/opd_e4b_self_audit_v4/verified_rft_messages.jsonl",
"sha256": "0026023745afb8f3dc1c176dc7f7171157b4ad5a66656b524af218e8e19ceee6"
},
{
"path": "v2/experiments/train_data/rft_e4b_aligned_v2/verified_rft_messages.jsonl",
"sha256": "92a4515fee9d152b0d4c510ee3ce4caaaffe2003ba7584469f8027f174aab18c"
},
{
"path": "v2/experiments/train_data/rft_v1/verified_rft_messages.jsonl",
"sha256": "a42453ccd7ac7680b0a03865e8e7080bc8bf74c8d9d193b440c441ed46f8512b"
},
{
"path": "v2/experiments/train_data/rft_v2/verified_rft_messages.jsonl",
"sha256": "18f4b3bd7e651f83c6acab479c9475e3fa50dc652a384f309e97146983ac85ba"
}
]
}