Sort the shipped-feature imports and type what a bench makes its tasks from
This commit is contained in:
@@ -175,11 +175,11 @@ from claude_code.entries import entry_from, json_objects
|
|||||||
from mutate_changes.tool_process import failed, Ran, run_tool
|
from mutate_changes.tool_process import failed, Ran, run_tool
|
||||||
from failure import Failure
|
from failure import Failure
|
||||||
from task_bench.feature_tasks import feature_tasks, Features, read_features
|
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 task_bench.figures import figures, Result, Side, SIDES, table
|
||||||
from git_cli import git_repo
|
from git_cli import git_repo
|
||||||
from review_rules.review_folder import made_review_folder, REPORTS
|
from review_rules.review_folder import made_review_folder, REPORTS
|
||||||
from larv_review.history_commands import read_places
|
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 task_bench.record_figures import recorded_bench
|
||||||
from run_heavy.capped_docker import SHARE_VARIABLE
|
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.
|
# so a fault there stops the bench at once.
|
||||||
kind = KINDS[given[TASKS]]
|
kind = KINDS[given[TASKS]]
|
||||||
# Shipped features are read from the base's history, once the base is known.
|
# 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):
|
if isinstance(tasks_from, Failure):
|
||||||
return tasks_from
|
return tasks_from
|
||||||
git = functools.partial(git_repo.git, env=env)
|
git = functools.partial(git_repo.git, env=env)
|
||||||
|
|||||||
@@ -9,16 +9,16 @@ import pathlib
|
|||||||
import shutil
|
import shutil
|
||||||
import typing
|
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 branch_chunks.read import cut_with_shipped, unsupported
|
||||||
from failure import Failure
|
from failure import Failure
|
||||||
|
from git_cli.git_repo import Git
|
||||||
from plan.todo_table import Item
|
from plan.todo_table import Item
|
||||||
from project_config.main import located
|
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.runs import of_tests
|
||||||
from task_bench.tasks import Bench, committed, on_disk, Planned, Task
|
from project_config.settings import RECORDS
|
||||||
from git_cli.git_repo import Git
|
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
|
# 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.
|
# `git apply` takes whatever it would have detected.
|
||||||
|
|||||||
@@ -10,13 +10,13 @@ import unittest
|
|||||||
|
|
||||||
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
|
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_feature_tasks import ACCEPTANCE, BenchOfTasksCase
|
||||||
|
from task_bench.test_task_bench import BASE_CODE, HEAD_CODE
|
||||||
from failure import Failure
|
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 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"
|
HEADER = "| ID | Release | Blocked by | Exempt | Item | L | E | I | R | S | Moves |\n|---|---|---|---|---|---|---|---|---|---|---|\n"
|
||||||
ROWS = {
|
ROWS = {
|
||||||
|
|||||||
Reference in New Issue
Block a user