Start every feature from one committed tree per side, and name the kind of task in each table and digest
CI / tests (pull_request) Successful in 3m44s

This commit is contained in:
2026-11-23 17:08:09 +01:00
parent b053a54989
commit b355a2025c
6 changed files with 43 additions and 39 deletions
+6 -6
View File
@@ -96,7 +96,7 @@ class TableTest(unittest.TestCase):
run(2, "base", 1, False, input_=200, turns=12, seconds=90, reads=4),
run(2, "head", 1, True, input_=100, turns=9, seconds=45, reads=2),
]
self.assertEqual(table(results, {1: "calc.go:4:7 CONDITIONALS_NEGATION", 2: "pick.go:9:3 ARITHMETIC_BASE"}), [
self.assertEqual(table(results, {1: "calc.go:4:7 CONDITIONALS_NEGATION", 2: "pick.go:9:3 ARITHMETIC_BASE"}, "bug"), [
"| Bug | Side | Passed | Input | Cache write | Cache read | Output | Turns | Wall, s | Reads |",
"|---|---|---|---|---|---|---|---|---|---|",
"| 1: calc.go:4:7 CONDITIONALS_NEGATION | base | 2/3 | 200 | 1000 | 5000 | 400 | 12 | 90 | 4 |",
@@ -110,14 +110,14 @@ class TableTest(unittest.TestCase):
def test_the_change_is_a_dash_where_the_base_measured_zero_and_signed_where_it_rose(self):
results = [run(1, "base", 1, True, input_=0, turns=10, seconds=60, reads=0), run(1, "head", 1, False, input_=50, turns=12, seconds=120, reads=2)]
self.assertEqual(table(results, {1: "calc.go:4:7 ARITHMETIC_BASE"})[-1], "| All | change | -1 | - | 0 % | 0 % | 0 % | +2 | +100 % | +2 |")
self.assertEqual(table(results, {1: "calc.go:4:7 ARITHMETIC_BASE"}, "bug")[-1], "| All | change | -1 | - | 0 % | 0 % | 0 % | +2 | +100 % | +2 |")
def test_the_change_is_the_mean_of_the_bugs_own_changes_not_the_change_of_the_pooled_medians(self):
results = [
run(1, "base", 1, True, input_=100, turns=10, seconds=60, reads=3), run(1, "head", 1, True, input_=200, turns=14, seconds=90, reads=5),
run(2, "base", 1, True, input_=1000, turns=20, seconds=60, reads=7), run(2, "head", 1, True, input_=1000, turns=20, seconds=60, reads=7),
]
rows = table(results, {1: "calc.go:4:7 ARITHMETIC_BASE", 2: "pick.go:9:3 ARITHMETIC_BASE"})
rows = table(results, {1: "calc.go:4:7 ARITHMETIC_BASE", 2: "pick.go:9:3 ARITHMETIC_BASE"}, "bug")
self.assertEqual(rows[-3:], [
"| All | base | 2/2 | 550 | 1000 | 5000 | 400 | 15 | 60 | 5 |",
"| All | head | 2/2 | 600 | 1000 | 5000 | 400 | 17 | 75 | 6 |",
@@ -129,11 +129,11 @@ class TableTest(unittest.TestCase):
run(1, "base", 1, True, input_=0), run(1, "head", 1, True, input_=50),
run(2, "base", 1, True, input_=100), run(2, "head", 1, True, input_=150),
]
self.assertEqual(table(results, {1: "a.go:1:1 ARITHMETIC_BASE", 2: "b.go:1:1 ARITHMETIC_BASE"})[-1].split(" | ")[3], "+50 %")
self.assertEqual(table(results, {1: "a.go:1:1 ARITHMETIC_BASE", 2: "b.go:1:1 ARITHMETIC_BASE"}, "bug")[-1].split(" | ")[3], "+50 %")
def test_a_run_without_figures_counts_as_not_passed_and_a_side_without_any_shows_a_dash(self):
results = [Result(1, "base", 1, False, None), run(1, "head", 1, True)]
self.assertEqual(table(results, {1: "calc.go:4:7 ARITHMETIC_BASE"})[2:], [
self.assertEqual(table(results, {1: "calc.go:4:7 ARITHMETIC_BASE"}, "bug")[2:], [
"| 1: calc.go:4:7 ARITHMETIC_BASE | base | 0/1 | - | - | - | - | - | - | - |",
"| 1: calc.go:4:7 ARITHMETIC_BASE | head | 1/1 | 100 | 1000 | 5000 | 400 | 10 | 60 | 3 |",
"| All | base | 0/1 | - | - | - | - | - | - | - |",
@@ -143,4 +143,4 @@ class TableTest(unittest.TestCase):
def test_the_change_is_a_dash_where_only_the_head_has_no_figures(self):
results = [run(1, "base", 1, True), Result(1, "head", 1, False, None)]
self.assertEqual(table(results, {1: "calc.go:4:7 ARITHMETIC_BASE"})[-1], "| All | change | -1 | - | - | - | - | - | - | - |")
self.assertEqual(table(results, {1: "calc.go:4:7 ARITHMETIC_BASE"}, "bug")[-1], "| All | change | -1 | - | - | - | - | - | - | - |")