Quality System Design Around ReportPortal and AI Triage

Many teams install ReportPortal, point their reporters at it, and call it observability. What they get is a prettier test history, not a quality system. The difference shows up months later, when someone is still triaging failures by hand every day, the same flaky tests appear in every retrospective, and nobody can say with data whether quality is getting better or worse.

ReportPortal is a test-results aggregation platform with launch-level analytics, a defect-type taxonomy and built-in auto-analysis that suggests defect types from previously triaged failures. That last feature is a form of AI-assisted triage, and teams increasingly add LLM-based triage and coding agents on top. Each of them labels failures, and every label they get wrong flows into the metrics leaders read. Agent and LLM evaluations also produce results that need a home, with the model and prompt version attached.

This article covers ReportPortal's role in a test architecture, how to build the triage pipeline from CI to downstream analytics, where the integration breaks down at scale, how to measure and contain automated triage, and the myths that keep teams stuck.

Build an API Automation Framework With Node.js

Learn Node.js, Cucumber, GitHub Copilot, APIs, CI/CD, and modern automation by building a complete framework.

Learn more

ReportPortal's Role in a Modern Test Architecture

ReportPortal organizes test results into a three-tier hierarchy: Projects → Launches → Test Items. A Launch maps to a CI pipeline run; Test Items are suites, cases, and steps. Every item carries a status, a defect type (Product Bug, Automation Bug, System Issue, No Defect, To Investigate), and a log payload. The defect type taxonomy is the system's most underused feature — it's the schema that lets you answer "how much of our red is broken product vs. broken automation?"

In a modern quality architecture, ReportPortal occupies the aggregation and triage layer between raw CI artifacts and the analytics/dashboards layer. It receives results from Pytest, JUnit XML, Playwright, Selenium, and k6 via official agents or the REST API; it exposes a REST API downstream to Grafana, BigQuery, or ClickHouse for trend analysis. That positioning means its data quality directly determines the fidelity of every KPI above it.

Building the Triage Pipeline: CI Integration to Closing the Loop

Start with structured launch attributes. Every launch should carry build_id, branch, env, and team as attributes — not embedded in the launch name. This lets you filter and group in the ReportPortal UI and in downstream queries without string parsing. Set them in your GitHub Actions workflow:

- name: Run tests and report to ReportPortal
  env:
    RP_ENDPOINT: ${{ secrets.RP_ENDPOINT }}
    RP_API_KEY: ${{ secrets.RP_API_KEY }}
  run: |
    pytest tests/ \
      --reportportal \
      -o rp_endpoint="$RP_ENDPOINT" \
      -o rp_api_key="$RP_API_KEY" \
      -o rp_project=platform-services \
      -o rp_launch="API Suite" \
      -o rp_launch_attributes="build_id:${{ github.run_id }} branch:${{ github.ref_name }} env:staging team:platform"

With attributes in place, the ReportPortal ML-based Auto-Analysis engine has enough context to cluster failures by pattern. Enable it per-project under Project Settings → Auto-Analysis and set the minimum similarity threshold to 95% initially — lower values generate false-positive clusters that erode trust faster than manual triage does. Once analysts have triaged ~500 items, drop to 90% and measure cluster precision over two weeks.

Closing the Loop in Quality Improvement

The triage loop only closes if defect-type data flows back to the teams who own the failures. Wire ReportPortal webhooks to a Slack channel per team using the built-in integration, but filter on defect type — TO_INVESTIGATE items go to the QE channel, PRODUCT_BUG items go to the squad's engineering channel. Routing by defect type puts each failure in front of the people who can act on it, instead of one shared queue. For closing the loop from production back to tests, map ReportPortal's SYSTEM_ISSUE defect type to PagerDuty incident IDs using a custom attribute — that correlation is what lets you answer "did this production incident have a corresponding test signal before it fired?"

Feeding Downstream Analytics

ReportPortal's REST API is the bridge to your analytics layer. Pull launch-level defect statistics into ClickHouse or BigQuery on a nightly schedule for trend queries that the ReportPortal UI can't run efficiently at scale:

-- ClickHouse: defect type trend over 30 days, by team
SELECT
    toDate(launch_start_time)       AS day,
    team_attr                        AS team,
    defect_type,
    count()                          AS failures
FROM rp_test_items
WHERE launch_start_time >= now() - INTERVAL 30 DAY
  AND status = 'FAILED'
GROUP BY day, team, defect_type
ORDER BY day, team, defect_type;

This query powers the Automation Bug % and Product Bug % panels that engineering leaders actually care about. Add Loki log links to each row, so clicking a defect jumps directly to the correlated container log stream.

Where the Integration Breaks Down at Scale

The most common failure mode is launch pollution: teams run retries as separate launches instead of using ReportPortal's retry-merge feature. You end up with three launches for one CI run, double-counted failures, and AI Analysis that trains on noise. Report retries inside the original launch, marked as retries, rather than as new launches; check your agent's documentation for its retry and rerun options, because the setting differs between agents and versions. The second failure mode is ignoring the To Investigate backlog. Teams configure the tool, get overwhelmed by the initial volume, and stop triaging. Within two weeks the ML model is starved of labeled data and Auto-Analysis stops firing reliably. Assign a rotating triage rotation — 15 minutes per engineer per day — and treat the backlog as a first-class metric on your quality KPI dashboard.

A subtler issue is project granularity. One ReportPortal project per monorepo feels tidy until you have 12 teams writing to the same project and the defect-type statistics are meaningless aggregates. Separate projects by team or domain boundary, mirror that in your attribute schema, and use the cross-project API endpoints for org-level rollups. Retrofitting this after 6 months of data is painful.

Automated triage in ReportPortal: measure it before you trust it

Auto-Analysis, an LLM triage bot and a coding agent asked to "look at the failures" all do the same job: they assign a defect type. The danger is that their labels look exactly like a human's. If an automated triager marks a real product bug as SYSTEM_ISSUE, the Product Bug % panel improves and the bug stays unfixed. Treat every automated label as a suggestion with a measurable error rate.

  • Keep the source of each label. Record whether a defect type was set by a person, by Auto-Analysis or by an LLM or agent, for example with an item attribute such as triaged_by:agent, and carry it into your analytics export.
  • Measure the override rate. Sample automated labels each week and count how many a person changed. Report that rate per triager next to the defect-type trend. A rising override rate means the automated labels, and every chart built from them, are drifting.
  • Leave product bugs to people. Let automation move items out of To Investigate only into types that do not hide product risk, or require human confirmation for anything that closes an item.

Agent and LLM evaluations can live in ReportPortal too. Report each eval run as a launch with attributes for model, prompt_version and eval_suite, and each repeated run of a case as its own test item, so the downstream export can compute a pass rate per case per version. Do not let auto-analysis classify eval failures as flaky: a model-calling case that passes 7 of 10 times is a measured rate, not noise. Keep its threshold and trend in the analytics layer. For scoring how far to trust a classifier's labels, see confidence scoring for AI failure classifiers.

Myths That Stall Quality Engineering in 2026 — Test Execution Edition

Myth 1: ReportPortal replaces your test management tool. It doesn't. ReportPortal owns execution history and triage; a tool like TestRail owns the test case lifecycle, coverage mapping, and manual test plans. If you're wondering where the boundary sits, the rule is simple: if it has a "Run ID" from a CI system, it belongs in ReportPortal. If it has a "Test Case ID" authored by a human, it belongs in your test management hub. Conflating the two leads to either a bloated ReportPortal with thousands of manually created items, or a test management tool drowning in automated execution noise.

Myth 2: High pass rate means the quality system is working. A 98% pass rate with a 15% flake rate and a 400-item "To Investigate" backlog is a system that has learned to ignore its own signal. The defect-type distribution — specifically the ratio of AUTOMATION_BUG to PRODUCT_BUG over time — is a far more honest indicator of suite health. Teams that track only pass rate optimize for green dashboards, not for the engineering information that quality systems exist to produce.

ReportPortal earns its place in a quality system when the defect-type taxonomy is maintained, the triage loop is closed with real ownership, and launch attributes are structured enough to support downstream analytics. Start by auditing your current launch attribute schema and your "To Investigate" backlog age — those two numbers will tell you exactly where the system is leaking signal. For the broader architecture context, the full quality system design walkthrough covers how ReportPortal fits alongside observability tooling, coverage tracking, and org-level KPIs.

Note: This article is for informational purposes only and is not a substitute for professional advice. If you need guidance on specific situations described in this article, consider consulting a qualified professional.

Understanding how systems actually work is the first step toward navigating them effectively.

Browse all articles