From bc3ed88d9a95be6382b71ea3d11368ac08fb9f27 Mon Sep 17 00:00:00 2001 From: Robrecht Cannoodt Date: Thu, 30 Jul 2026 11:23:22 +0200 Subject: [PATCH 1/2] read the task commit from task_info.yaml --- CHANGELOG.md | 2 ++ src/reporting/get_task_info/script.R | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 16d6e18e7..095576c07 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -56,6 +56,8 @@ ## Bug fixes +- Read the task commit from `task_info.yaml` in `get_task_info`, instead of always writing a null (PR #943). + - Fix metric direction (`maximize`/`minimize`) handling in `generate_qc` and `render_report` components of the `process_task_results` workflow (PR #936). - Fix bug in metric maximize handling and add raw scores table to the benchmark report (PR #937). diff --git a/src/reporting/get_task_info/script.R b/src/reporting/get_task_info/script.R index eedf4557e..9601e97c8 100644 --- a/src/reporting/get_task_info/script.R +++ b/src/reporting/get_task_info/script.R @@ -42,7 +42,7 @@ cat("Using timestamp:", timestamp, "\n") cat("\n>>> Creating JSON list...\n") task_info_json <- list( name = jsonlite::unbox(sub("^task_", "", task_info_yaml$name)), # Remove "task_" prefix - commit = jsonlite::unbox(NA_character_), # TODO: Add when available in task_info.yaml + commit = jsonlite::unbox(task_info_yaml$commit %||% NA_character_), label = task_info_yaml$label %||% # Create label from task name if missing ( From 45b8e6ec3f8ee4dab30adea5d611739ae83a0b75 Mon Sep 17 00:00:00 2001 From: Robrecht Cannoodt Date: Thu, 13 Aug 2026 10:12:48 +0200 Subject: [PATCH 2/2] fix get_task_info test run_and_check_output.py only turns an `example` into a cli argument for file arguments, so `--timestamp` was never passed and the script stopped on the missing timestamp. Set it through `info.test_default` instead. --- src/reporting/get_task_info/config.vsh.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/reporting/get_task_info/config.vsh.yaml b/src/reporting/get_task_info/config.vsh.yaml index 18f156c47..60552f821 100644 --- a/src/reporting/get_task_info/config.vsh.yaml +++ b/src/reporting/get_task_info/config.vsh.yaml @@ -18,6 +18,8 @@ argument_groups: the `timestamp` field from the input task info YAML is used. If neither is available, the component fails. example: "2024-10-10T00:00:00Z" + info: + test_default: "2024-10-10T00:00:00Z" - name: Outputs arguments: