---
title: "My 2 Cents: I'll gladly spend them to stop staring at test logs"
description: "trivago added a trailing GitHub Actions job that uses an LLM to triage persistent end-to-end test failures in its Selenium-based trupi suite, where a run-level success rate of only 20% forced manual failure analysis 30+ times a day."
url: "https://swe.quest/articles/my-2-cents-i-ll-gladly-spend-them-to-stop-staring-at-test-logs-fd2b2fd0a7e91451"
canonical: "https://tech.trivago.com/post/2026-04-15-my-2-cents-ill-gladly-spend-them-to-stop-staring-at-test-logs/"
source: "trivago tech"
published: "2026-04-15"
difficulty: "medium"
kind: "Case study"
reading_minutes: 9
tags: ["testing","ci-cd","llms","ai-coding"]
---

# My 2 Cents: I'll gladly spend them to stop staring at test logs

A post on [trivago tech](https://swe.quest/sources/trivago.md), published 2026-04-15, 9 min read, Case study. Original: [https://tech.trivago.com/post/2026-04-15-my-2-cents-ill-gladly-spend-them-to-stop-staring-at-test-logs/](https://tech.trivago.com/post/2026-04-15-my-2-cents-ill-gladly-spend-them-to-stop-staring-at-test-logs/)

## Summary

trivago added a trailing GitHub Actions job that uses an LLM to triage persistent end-to-end test failures in its Selenium-based trupi suite, where a run-level success rate of only 20% forced manual failure analysis 30+ times a day. The job skips analysis when everything passes or more than 10 tests fail on a platform. It feeds the model a minimal JSON failure report built from retried failures only, plus cross-platform correlation computed with jq, a layered PR context (commit log, diff stat, filtered diff, each truncated) and 24-hour cross-branch history from Elasticsearch. A 50K-token guard drops the detailed diff when the context gets too large, and Cursor CLI runs gemini-3-flash in single-turn ask mode with a "flaky until proven guilty" priority order. Each run takes mostly under a minute and costs about $0.02–0.03, and it can flag flakiness, likely PR regressions or stale locators.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Testing](https://swe.quest/tags/testing.md) (Engineering practices)
- [CI/CD](https://swe.quest/tags/ci-cd.md) (Reliability & operations)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [AI for coding](https://swe.quest/tags/ai-coding.md) (AI & ML)

## Prerequisites

- GitHub Actions workflows ([easy posts on CI/CD](https://swe.quest/tags/ci-cd.md?difficulty=easy))
- end-to-end testing ([easy posts on Testing](https://swe.quest/tags/testing.md?difficulty=easy))
- LLM prompting basics ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))

## Keywords

GitHub Actions, Selenium, Cursor CLI, Gemini, Elasticsearch, Kibana, jq

## Related posts

- [Agents, Randomness, and Receipts: Notes from trivago's QA Meetup](https://swe.quest/articles/agents-randomness-and-receipts-notes-from-trivago-s-qa-meetup-6bb8ef93642d84a1.md): trivago tech · 2026-08-12 · Easy · 5 min read · Testing, AI agents, AI for coding, Developer productivity
  Recap of three QA meetup talks on verifying testing and delivery.
- [Catching Bugs Before They Land: JiTTesting’s Human-on-the-Loop Approach at Full Scale](https://swe.quest/articles/catching-bugs-before-they-land-jittesting-s-human-on-the-loop-approach-at-full-5ed9a65800ed7e6c.md): Meta Engineering · 2026-10-29 · Medium · 6 min read · Testing, AI for coding, LLMs, Privacy
  Meta has moved Catching Just-in-Time Tests (JiTTests) from research prototype into production: LLMs generate executable tests designed to fail on risky diffs, exposing concrete behavioral changes before code lands rather than reviewing code like a human would.
- [Recycle your tests: many shades of green](https://swe.quest/articles/recycle-your-tests-many-shades-of-green-4564b5fe718b0f4b.md): trivago tech · 2026-11-12 · Medium · 6 min read · Testing, Observability, Web performance, CI/CD
  trivago reuses a small subset of its existing Selenium/Cucumber end-to-end scenarios (via its internal framework trupi) for three extra jobs by adding Gherkin tags rather than new test code.
- [Agentic Testing: Where Agents Fit in the E2E Testing Stack](https://swe.quest/articles/agentic-testing-where-agents-fit-in-the-e2e-testing-stack-fa760680a95bc5c9.md): Slack Engineering · 2026-06-11 · Medium · 11 min read · Testing, AI agents, LLMs, Cost optimization
  Across 200+ agent-driven E2E runs against Slack test workspaces, agents using Playwright MCP were the most reliable (0% failures on a simple thread-reply flow, ~12% on a longer search flow).
- [ClickGap: Autonomous QA for ClickHouse](https://swe.quest/articles/clickgap-autonomous-qa-for-clickhouse-c4c38e14d8c1feef.md): ClickHouse · 2026-08-25 · Medium · 18 min read · AI agents, Testing, LLMs, CI/CD, Databases
  ClickGap is an autonomous QA agent that reviews every pull request merged into ClickHouse, writes and runs tests against real builds, bisects regressions, and files issues and test-only PRs without human sign-off.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
