← All examples
38 / 100
Jev Flaky test triage Code Example
Separate intermittent infrastructure failures from regressions.
timeout once in 40 runs
Failures timeout once in 40 runs
Retry passed
Code Changed No
Which investigation path fits?
0%
Flaky test review.
Send it to flaky test review.
Code
// Conceptual pseudocode — not Jev SDK syntax
const state = {
"failures": "timeout once in 40 runs",
"retry": "passed",
"code_changed": false
};
const decision = await evaluateDecision({
state,
question: "Which investigation path fits?",
options: ["Flaky test review","Regression review","Environment outage"],
});
// Your adapter normalizes the provider response.
// Tune this example threshold on labelled data.
if (decision.outcome === "Flaky test review"
&& decision.probability >= 0.85) {
labelTestFailure(decision);
} else {
queueForReview(decision);
} This adapter illustrates the decision boundary. Check the official Jev docs for current API syntax.