Sort the shipped-feature imports and type what a bench makes its tasks from

This commit is contained in:
2026-11-24 00:33:08 +01:00
parent 8e43967fac
commit 74ffd6da53
3 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -175,11 +175,11 @@ from claude_code.entries import entry_from, json_objects
from mutate_changes.tool_process import failed, Ran, run_tool
from failure import Failure
from task_bench.feature_tasks import feature_tasks, Features, read_features
from task_bench.shipped_features import read_shipped, shipped_tasks, ShippedFeatures
from task_bench.figures import figures, Result, Side, SIDES, table
from git_cli import git_repo
from review_rules.review_folder import made_review_folder, REPORTS
from larv_review.history_commands import read_places
from task_bench.shipped_features import read_shipped, shipped_tasks, ShippedFeatures
from task_bench.record_figures import recorded_bench
from run_heavy.capped_docker import SHARE_VARIABLE
@@ -274,7 +274,7 @@ def bench(given: dict[str, str], env: typing.Mapping[str, str], read: typing.Cal
# so a fault there stops the bench at once.
kind = KINDS[given[TASKS]]
# Shipped features are read from the base's history, once the base is known.
tasks_from = None if kind is SHIPPED else read(home) if kind is BUG else read_features(home, kind)
tasks_from: str | Features | ShippedFeatures | Failure | None = None if kind is SHIPPED else read(home) if kind is BUG else read_features(home, kind)
if isinstance(tasks_from, Failure):
return tasks_from
git = functools.partial(git_repo.git, env=env)
+5 -5
View File
@@ -9,16 +9,16 @@ import pathlib
import shutil
import typing
from task_bench.feature_tasks import ACCEPTANCE, Feature, PATCH, why_passed_over
from task_bench.tasks import Bench, committed, on_disk, Planned, Task
from branch_chunks.read import cut_with_shipped, unsupported
from failure import Failure
from git_cli.git_repo import Git
from plan.todo_table import Item
from project_config.main import located
from project_config.settings import RECORDS
from task_bench.feature_tasks import ACCEPTANCE, Feature, PATCH, why_passed_over
from task_bench.figures import Side, SIDES
from task_bench.runs import of_tests
from task_bench.tasks import Bench, committed, on_disk, Planned, Task
from git_cli.git_repo import Git
from project_config.settings import RECORDS
from task_bench.figures import Side, SIDES
# The options that keep the checkout's diff config out of a diff. A rename is written as a removal and an addition, which
# `git apply` takes whatever it would have detected.
+4 -4
View File
@@ -10,13 +10,13 @@ import unittest
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
from task_bench.test_task_bench import BASE_CODE, HEAD_CODE
from task_bench.test_feature_tasks import ACCEPTANCE, BenchOfTasksCase
from task_bench.test_task_bench import BASE_CODE, HEAD_CODE
from failure import Failure
from branch_chunks.read import READ_AT
from task_bench import main
from task_bench.shipped_features import read_shipped
from git_cli.git_repo import git
from task_bench import main
from branch_chunks.read import READ_AT
from task_bench.shipped_features import read_shipped
HEADER = "| ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves |\n|---|---|---|---|---|---|---|---|---|---|---|\n"
ROWS = {