IonRift

CI Agent

A failed job, explained and fixed.

The CI Agent reads the failing log and the diff, says why on the pull request and proposes the fix.

Mender, the CI Agent ship

acme/web · PR #219

test failed, then fixed

test52s

cart.test.ts › applies the discount once
expected 90, received 81

CI Agent14s · $0.009

Why: since #217, applyDiscount() runs in useCart and again in cart.ts:42.

Fix: drop the second call. Proposed as a commit on the PR.

Commit fix

test39s · passed

Sample data

01How it works

Three steps, start to finish.

  1. 1A job failsOn IonRift's runners or GitHub's, it starts within seconds.
  2. 2It reads the log and the diffThe first real error, and the change that caused it.
  3. 3It comments with the fixWhy it failed, and the fix as a suggested change.

02Proof

One comment, with the fix

IonRift CI Agentcommented on #219

test failed: cart.test.ts › applies the discount once expected 90, received 81.

Why: #217 moved applyDiscount() into useCart, and cart.ts:42 still calls it, so the discount is applied twice.

-  total = applyDiscount(total, code)
+  // applied once in useCart (#217)

14 s · $0.009

Sample output