Skip to content

Perf regression bisect

Modulecraft.16 · practice · docs · Pass 11 · 1 to 2 h
You builddocs/maintenance/perf-bisect.md
Testscourse/tests/craft.16 (named below, with why each exists)
Needsnone
Used byno code call site; this is an independent artifact
MilestoneMS-P11
  • Tie each claim to the exact platform evidence that Perf regression bisect produces.
  • State the owner, success condition, and recovery action before declaring the work complete.
  • Record unresolved assumptions so the next review can test them.
Terminal window
ol start craft.16
ol tests craft.16
ol check craft.16

A latency regression costs users and capacity. A bisect turns “it got slower” into a reproducible change range.

Use a stable workload, fixed machine and configuration, warm-up, repeated samples, and a threshold chosen before inspecting commits. Validate both endpoints before trusting the midpoint result.

Reproduce a 20% TTFT regression with the saved request fixture. Run the same benchmark at the base and head, then use git bisect run with a script that exits nonzero only when the median exceeds the agreed bound. Re-run the identified commit.

TestKINDChecksWhy it matters downstream
test_artifact_paths_are_declaredartifactConfirms the submitted paths and required evidence exist, so a plausible narrative cannot pass without the reviewable deliverable.
#PitfallSymptomCaught by
1The artifact names a decision without the evidence that supports itReviewers cannot verify the claim against the repository or system.test_artifact_paths_are_declared
2The failure or rollback case is omittedThe happy path passes while an operator has no safe response under failure.test_artifact_paths_are_declared
3The owner, threshold, or scope is implicitTwo reviewers can reach different release or risk decisions from the same evidence.test_artifact_paths_are_declared
DirectionModuleConnection
Backcraft.06Read this declared prerequisite before producing the artifact; use it to verify the relevant contract or evidence.
Backops.07Read this declared prerequisite before producing the artifact; use it to verify the relevant contract or evidence.
ResourceWhat to inspect
C4 model and architecture rules, section 2.3Compare the submitted views with the course system boundary and its process/file interfaces.