Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

trivago tech 9 min read Case study mediumAdept

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

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.

Related posts

  • Agents, Randomness, and Receipts: Notes from trivago's QA Meetup

    trivago tech easyNovice

    Recap of three QA meetup talks on verifying testing and delivery. Qase.io measured AI adoption with git-ai, an open-source tool that records per-commit attribution in git notes; teams showed 61–92% AI-authored code, deployment frequency roughly tripled, and MTTR halved, while lead time stayed low because the bottleneck moved to planning and review. Curio IT argued for randomizing test inputs to counter the pesticide effect, using a seeded test data broker for reproducibility and treating flakiness as signal rather than noise. trivago described an AI agent that tests about 200 advertiser API connectors using randomized inputs, a shared CLI, AGENTS.md constraints, two-stage mechanical and LLM validation, and a 0–100 self-audit score.

  • Catching Bugs Before They Land: JiTTesting’s Human-on-the-Loop Approach at Full Scale

    Meta Engineering mediumAdept

    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. A nightly pipeline targets risky diffs, runs a mutation-guided "dodgy diff" workflow alongside an "intent-aware" workflow that infers a change's intent and risks to build mutants, then filters weak catches with an ensemble LLM-as-Judge plus a deterministic rule-based assessor (RubFake). Engineers are contacted only for highly ranked catches under a human-on-the-loop model, where they set criteria and review outcomes in aggregate. The system has drawn engagement from 589 engineers with a 60% true-positive rate and caught 74 serious privacy bugs at diff time, cutting privacy SEVs by 20% in the first half of 2026.

  • Recycle your tests: many shades of green

    trivago tech mediumAdept

    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. The jobs are synthetic monitoring of production every 10 minutes across three GCP regions with Slack alerts, collecting lab-style RUM metrics (CSS/JS/image sizes, GraphQL call counts) after each release, and checking stage stability after backend changes. Running so many tests against stage degraded it, so the lesson is to reuse selectively. Recyclable tests share a few traits: configurable targets, no side effects, safe repetition, meaningful assertions, visible failures, and a small, fast footprint.

  • Agentic Testing: Where Agents Fit in the E2E Testing Stack

    Slack Engineering mediumAdept

    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). Playwright CLI agents failed 12–20%, mostly from auth, navigation timing and session instability. Agent-generated Playwright tests ran fastest (~3 min including generation, ~30–45 s raw) but failed ~48% on the complex flow. Agent runs cost $15–30 each, driven by turn count and retransmitted context such as accessibility-tree snapshots rather than model choice; CLI took ~85 turns versus MCP's ~40. The recommendation is to keep deterministic tests for CI and add agentic testing as a top pyramid layer for exploration, debugging and bug reproduction.

  • ClickGap: Autonomous QA for ClickHouse

    ClickHouse mediumAdept

    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. In five months it filed about 500 issues and 200 coverage PRs, more than half of the issues already closed as completed. Candidate findings must survive an adversarial reviewer and ten gates, eight enforced as plain code, including executed reproducers, valid citations, existing-test searches, mutation kill-tests for coverage claims, and matching against past false positives. Reviews cost a couple of dollars each, smaller models handle recoverable subtasks, and every cost cut must pass a recall benchmark that replays previously confirmed bugs.

The quest for software engineering knowledge.

Look:
Layout: