Skip to main content

Module accept

Module accept 

Source
Expand description

Declared, intentional regressions: which benchmarks a change says it made more expensive on purpose, and who said so.

The only other way past a failing gate is --no-gate, which stops gating every benchmark at once. A team with one deliberate cost increase then either loosens the threshold for everything or stops requiring the check — both of which leave the next, unintended regression unguarded. An acceptance names one benchmark, and it is always reported with where it came from, so the override is as visible in the report as the regression it covers.

Two sources, deliberately no more:

  • tak compare --accept, for a CI integration that maps something outside the commits — a pull-request label only maintainers can apply, say — onto an acceptance. This is the one honoured by default, because whoever decides it is not necessarily whoever wrote the change; and
  • a Tak-Accept: trailer on a commit in the compared range, which is how a change carries its own justification into history. Opt-in through the accept_trailers setting: those commits are the change being gated, and by default a change must not be able to waive its own gate.

Names only, no bound such as startup<=5%. A bound invites arguing about the number in the trailer rather than looking at the change, and a second syntax is a second thing to get wrong in a line nobody tests. An accepted benchmark still shows its full change in the report.

Structs§

Acceptances
Accepted benchmark names, each with every source that accepted it.

Enums§

Source
Where an acceptance came from. Always shown beside it: an override nobody can trace is exactly the kind of quiet gate-weakening this exists to avoid.

Constants§

TRAILER
The trailer key. git matches trailer keys case-insensitively, so tak-accept: works too; this is the spelling the docs and report use.