From 300a45c888b50f6ca8019175abcacabcd733a24f Mon Sep 17 00:00:00 2001 From: Nikolay Petrov Date: Mon, 20 Apr 2026 10:31:51 +0300 Subject: [PATCH 1/2] fix: bug introduced in `7f6c3cda` --- src/helpers/resolution.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/helpers/resolution.py b/src/helpers/resolution.py index 24cfa69f..c1d6ddb6 100644 --- a/src/helpers/resolution.py +++ b/src/helpers/resolution.py @@ -29,15 +29,24 @@ def make_columns_hashable(df): return BaseSource._make_columns_hashable(df) -def get_resolution_values() -> dict[str, dict[str, pd.DataFrame]]: - """Get resolution values from GCP. Delegates to orchestration._io.load_question_bank(). +def get_and_unpack_question_bank( + sources_to_get: list[str] | None = None, +) -> dict[str, dict[str, pd.DataFrame]]: + """Download and unpack the question bank. + + Backward-compat wrapper around `orchestration._io.load_question_bank()` that + converts `SourceQuestionBank` objects back to the plain-dict shape consumed + by the not-yet-refactored baseline evals job. + + Args: + sources_to_get: List of source names. Defaults to all sources. Returns: {source: {"dfq": pd.DataFrame, "dfr": pd.DataFrame}} by source. """ from orchestration._io import load_question_bank - question_bank = load_question_bank() + question_bank = load_question_bank(sources_to_get=sources_to_get) return {source: {"dfq": sqb.dfq, "dfr": sqb.dfr} for source, sqb in question_bank.items()} From 36cefc1884c683d8704b0f87b181b0cfaae9cef5 Mon Sep 17 00:00:00 2001 From: Nikolay Petrov Date: Mon, 20 Apr 2026 10:38:57 +0300 Subject: [PATCH 2/2] fix: bring in submodules in actions --- .github/workflows/makefile.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/makefile.yml b/.github/workflows/makefile.yml index 2f1012c5..d3644482 100644 --- a/.github/workflows/makefile.yml +++ b/.github/workflows/makefile.yml @@ -11,6 +11,8 @@ jobs: steps: - uses: actions/checkout@v3 + with: + submodules: true - name: Set up Python uses: actions/setup-python@v3