Record a task-bench's figures in the comprehension history with larv-review record-bench, and run the bench beside a scoring run
CI / tests (pull_request) Failing after 5m6s

This commit is contained in:
2026-11-23 14:21:56 +01:00
parent 56a82245ad
commit 6b36f43062
7 changed files with 126 additions and 3 deletions
+9
View File
@@ -114,6 +114,13 @@ record-ruling and record-scoring append each entry to the history, created when
heading of the current UTC time and the seats file's first line. Each commit that line names must be
in the checkout. Each exits 1 when the history already holds an entry on what that line reads.
record-bench appends the figures of the task-bench last run in this checkout, a report beside the
panel's entries that no command here reads: the bench's table, cut to its three rows over every bug,
under a heading of the current UTC time and `task-bench of <branch>: head <commit> against base
<commit>`. It reads the digest in the bench's folder, `task-bench` in the chunk's review folder, so
run it before `task-bench gather`, which removes that folder; it waits for a bench that still runs.
It exits 1 where the folder holds no digest, or the history already holds that bench.
places prints the places seats found hard since the newest scored commit: the places of each scoring
run on it, and,
in each later ruling, each place opening with a dimension, or Overall, that its seat voted worse.
@@ -185,6 +192,7 @@ from larv_review.owed import owed_scoring_run
from review_rules.review_passes import PASSES, REVIEWERS
from larv_review.scoring_due import plan_reasons
from larv_review.scoring_setup import prepare_scoring
from larv_review.bench_record import record_bench
from larv_review.history_commands import read_agreement, read_places, record_ruling, record_scoring
from larv_review.round_title import round_title
@@ -234,6 +242,7 @@ COMMANDS = {
"record-ruling": Command("record-ruling <votes file>", lambda given: len(given) == 1, lambda given: printed(record_ruling(pathlib.Path(given[0]), pathlib.Path.home(), time.time()))),
"prepare-scoring": Command("prepare-scoring", no_arguments, lambda given: prepared_scoring()),
"record-scoring": Command("record-scoring <scores file> [<item ID>...]", lambda given: bool(given) and are_ids(given[1:]), run_record_scoring, ids_from=1),
"record-bench": Command("record-bench", no_arguments, lambda given: printed(record_bench(pathlib.Path.home(), time.time()))),
"places": Command("places", no_arguments, lambda given: printed(read_places(pathlib.Path.home()))),
"agreement": Command("agreement", no_arguments, lambda given: printed(read_agreement(pathlib.Path.home()))),
"reviewer-header": Command("reviewer-header <pass> [--rerun]", fits_reviewer_header, run_reviewer_header),