Bench features in task-bench with --tasks features, from the folder the config names as bench-tasks
CI / tests (pull_request) Has been cancelled

This commit is contained in:
2026-11-23 16:31:27 +01:00
parent 28537b5aa3
commit cdeb66bf6e
17 changed files with 735 additions and 199 deletions
+6 -1
View File
@@ -8,7 +8,7 @@ import unittest
sys.path.insert(0, str(pathlib.Path(__file__).resolve().parents[1]))
from task_bench.record_figures import bench_appended, recorded_bench
from task_bench.record_figures import bench_appended, bench_entry, recorded_bench
from review_rules.comprehension_history import entries
from failure import Failure
from record_store.held import Held
@@ -105,6 +105,11 @@ class RecordFiguresTest(unittest.TestCase):
self.assertEqual(self.recorded(), self.unrecorded(f"{self.history} already holds task-bench of item-7: head bbbbbbbb against base aaaaaaaa; record each bench once"))
self.assertEqual(self.history.read_text(), held)
def test_names_a_bench_of_features_as_one_so_the_history_holds_it_beside_the_bugs_of_the_same_commits(self):
name, entry = bench_entry(DIGEST.replace("| Bug |", "| Feature |"), "item-7", 0)
self.assertEqual(name, "task-bench features of item-7: head bbbbbbbb against base aaaaaaaa")
self.assertTrue(entry.startswith(f"## 1970-01-01T00:00:00Z, {name}\n\n| Feature | Side |"))
def test_refuses_a_digest_without_its_commits_or_without_its_three_rows_over_every_bug(self):
for digest in (DIGEST.replace("Base ", "From "), DIGEST.replace("| All | change | +1 | -22% |\n", "")):
with self.subTest(digest=digest):