From 84b71cee034586f608e8ca0403ccfcbc6077c666 Mon Sep 17 00:00:00 2001 From: Alex Jones Date: Wed, 13 May 2026 11:28:25 +0100 Subject: [PATCH] feat: add block information to the instrumentation job metadata Although it can currently be inferred/derived from the full name of the job, having the block (& block variant) information explicitly available in the recorded metadata is much more useful. This means that we can make visualizations and calculations of regression results partitioned by block or block variant. Signed-off-by: Alex Jones --- src/dvsim/instrumentation/metadata.py | 2 ++ src/dvsim/instrumentation/records.py | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/dvsim/instrumentation/metadata.py b/src/dvsim/instrumentation/metadata.py index 1b1e549b..457a0514 100644 --- a/src/dvsim/instrumentation/metadata.py +++ b/src/dvsim/instrumentation/metadata.py @@ -41,6 +41,8 @@ def get_job_data(self) -> Mapping[str, JobInstrumentationMetadata]: job_type=spec.job_type, target=spec.target, tool=spec.tool.name, + block=spec.block.name, + block_variant=spec.block.variant, backend=spec.backend, dependencies=list(spec.dependencies), status=status_str, diff --git a/src/dvsim/instrumentation/records.py b/src/dvsim/instrumentation/records.py index 39a1fac0..710d02be 100644 --- a/src/dvsim/instrumentation/records.py +++ b/src/dvsim/instrumentation/records.py @@ -52,6 +52,8 @@ class JobInstrumentationMetadata(JobMetrics): job_type: str target: str tool: str + block: str + block_variant: str | None backend: str | None dependencies: list[str] status: str