AutoMerge is generally available

AutoMerge can now read your production health

AutoMerge can now judge a pull request by its code and by the live state of the component it changes. Criteria can read your Dash0 check rules and SLOs before AutoMerge approves or merges.

AutoMerge holds a pull request that changes components/checkout-api. The checkout-latency check rule of checkout-api is critical and its Checkout availability SLO burns at 14.4 times the safe rate, so Production health scores 0After checkout-api recovers, checkout-latency did not fire and the Checkout availability SLO burns at 0.7 times the safe rate. Production health scores 96 and AutoMerge merges the pull request

A small, well-tested change can still be the wrong change to ship right now. If the service it touches is already failing a check or burning through its error budget, a merge adds one more moving part to an incident.

AutoMerge can now tell the difference. Give a criterion the two new tools, and next to the code it reads the live health of the component the pull request changes, straight from the check rules and SLOs you already run in Dash0. Your code and your production state finally meet in one decision.

Two new evaluator tools

Criteria get two tools under Production health in the Tools picker.

  • Check rule status finds the check rules in the repository's datasets, including the ones failing right now, and reads whether the rules a criterion names are enabled and failing, worst first.
  • SLO status finds the repository's SLOs and reads the remaining error budget, the fast and slow burn rates and the success ratio of the ones a criterion names.

You don't have to list a single rule or SLO. Tell the criterion to find the components a pull request changes, and AutoMerge works out the rest. It maps each changed path to its component, reads the service name that component reports under, and searches your check rules and SLOs by that name. A change under components/checkout-api/ gets checked against the rules and SLOs that watch checkout-api. Give the criterion a floor, and AutoMerge holds the pull request whenever that component is unhealthy, however clean the diff.

A Production health criterion in a repository's AutoMerge configuration, with a 40% share and a rejection floor of 50. Its prompt maps each changed path to its component, searches that component's SLOs and check rules by its service name, and scores near 0 for a fast burn or a critical rule. The SLO status and Check rule status tools are selected under Production health

Merge when the service is ready

Low-risk code can still merge on its own. AutoMerge just waits for a healthy moment. When the check rule resolves and the burn rate settles, run the evaluation again on the same commit, and AutoMerge approves and merges it with the full picture.

Each decision on the Pull requests tab shows the evidence behind the Production health score, so your reviewers see which rule or SLO held a change back.

Read Evaluator Tools to add the tools to a criterion, or open AutoMerge to set up your first Production health criterion.