Answer product-owner round 1: 0 🔴, 1 🟡 (0 misread); say which round commits count and that a recent chunk has had less time to gather fixes
This commit is contained in:
@@ -28,10 +28,11 @@ holds R and S, and C too where its table also had A, G and Goals. The chunk meas
|
||||
it where a change of the later chunk removes or rewrites lines, outside todo.md and the records,
|
||||
that `git blame` traces to a commit this chunk brought to the default branch. The change is the
|
||||
later chunk's whole change where it ships a todo.md item whose Exempt cell is `defect` or
|
||||
`security`, or one of its round commits whose title counts a 🔴 and a misread finding, since a
|
||||
title counts misread 🔴 and 🟡 findings together. A fixing chunk that also ships other items
|
||||
counts all of its change, so the count can run high; a fix that ships no such item, and answers
|
||||
no such round, goes uncounted.
|
||||
`security`, or one of its round commits that may answer a misread 🔴. A title counts misread 🔴
|
||||
and 🟡 findings together, so this takes each round commit whose title counts both a 🔴 and a
|
||||
misread finding. A fixing chunk that also ships other items counts all of its change, so the
|
||||
count can run high; a fix that ships no such item, and answers no such round, goes uncounted. A
|
||||
recent chunk has had less time to gather any.
|
||||
|
||||
A chunk is marked `by rebase` where a commit in it has a committer time apart from its author time,
|
||||
since a rebase replays a pull request's commits at once, and `never replayed` where none does, since
|
||||
@@ -129,7 +130,7 @@ def report_text(results: list[Result], anchored: Anchors | Failure, given: dict[
|
||||
sections.append([f"Anchors in {ANCHORS_PATH}, each level's shipped items:", "", *anchor_lines(anchored, results)])
|
||||
sections.append(["Median outcome at each guessed score, among chunks that shipped one item, never-replayed ones left out:", "", *report(results)])
|
||||
sections.append(["🔴 and 🟡 findings, with how many a reviewer marked `[misread]`, per finished chunk whose round titles count them, newest first:", "", *misreads(results)])
|
||||
sections.append(["Later fixes, the later chunks that fixed code each finished chunk shipped, newest first:", "", *fixed_later(results)])
|
||||
sections.append(["Later fixes: the chunks that fixed code each finished chunk shipped, newest first:", "", *fixed_later(results)])
|
||||
if any(result.landed != "merge" for result in results):
|
||||
sections.append(UNMERGED)
|
||||
return "\n\n".join("\n".join(section) for section in sections)
|
||||
|
||||
@@ -181,7 +181,7 @@ Median outcome at each guessed score, among chunks that shipped one item, never-
|
||||
|
||||
- None: no chunk's round titles count them.
|
||||
|
||||
Later fixes, the later chunks that fixed code each finished chunk shipped, newest first:
|
||||
Later fixes: the chunks that fixed code each finished chunk shipped, newest first:
|
||||
|
||||
- None: no later chunk fixed code a finished chunk shipped.""")
|
||||
|
||||
@@ -194,7 +194,7 @@ Later fixes, the later chunks that fixed code each finished chunk shipped, newes
|
||||
|
||||
def test_lists_each_chunks_later_fixes_newest_first_once_per_chunk_then_counts_the_others(self):
|
||||
found = [result(1, 5, 3, None, merge="bbbbbbb", merged="2026-10-12T10:00:00Z", shipped_with=(2,), fixed_by=("ddddddd",)), result(2, 5, 3, None, merge="bbbbbbb", merged="2026-10-12T10:00:00Z", shipped_with=(1,), fixed_by=("ddddddd",)), result(3, 5, 3, None, merge="ccccccc", merged="2026-10-14T10:00:00Z", fixed_by=("eeeeeee", "ddddddd")), result(4, 5, 3, None), result(5, 5, 3, None, merge="fffffff")]
|
||||
self.assertTrue(report_text(found, [], None).endswith("""Later fixes, the later chunks that fixed code each finished chunk shipped, newest first:
|
||||
self.assertTrue(report_text(found, [], None).endswith("""Later fixes: the chunks that fixed code each finished chunk shipped, newest first:
|
||||
|
||||
- 2026-10-14T10:00:00Z in ccccccc: 2 later fixes, by eeeeeee and ddddddd
|
||||
- 2026-10-12T10:00:00Z in bbbbbbb: 1 later fix, by ddddddd
|
||||
|
||||
Reference in New Issue
Block a user