Add more fields to gdrive (#285)

Signed-off-by: Merwane Hamadi <merwanehamadi@gmail.com>
This commit is contained in:
merwanehamadi
2023-08-10 12:06:57 -07:00
committed by GitHub
parent 57d44e62d2
commit cfbb11c218

View File

@@ -39,6 +39,12 @@ def process_test(
parts = test_name.split("_", 1) # Split by underscore only once
test_suite = parts[0] if len(parts) > 1 else None
# transform array into string with | as separator
separator = "|"
categories = separator.join(
test_info.get("category", []),
)
row = {
"Agent": agent_name,
"Command": common_data.get("command", ""),
@@ -64,6 +70,12 @@ def process_test(
"Cost": test_info.get("metrics", {}).get("cost", ""),
"Attempted": test_info.get("metrics", {}).get("attempted", ""),
"Test Suite": test_suite,
"Category": categories,
"Task": test_info.get("task", ""),
"Answer": test_info.get("answer", ""),
"Description": test_info.get("description", ""),
"Fail Reason": test_info.get("metrics", {}).get("fail_reason", ""),
"Reached Cutoff": test_info.get("reached_cutoff", ""),
}
rows.append(row)