Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
brave avatar

Check Upstream Flake

  • 7 installs
  • 3.5k repo stars
  • Updated August 5, 2026
  • brave/brave-core

check-upstream-flake is a Claude Code skill that checks whether a failing test is a known upstream flake in Chromium's LUCI Analysis database and reports a verdict and recommendation.

About

This skill checks whether a failing test is a known upstream flake in Chromium's LUCI Analysis database. A developer uses it when investigating intermittent test failures or evaluating test-disable PRs, to see historical flakiness statistics before deciding on a fix. It queries the public LUCI Analysis REST API and reports a verdict and recommendation for filter-file decisions.

  • Checks whether a failing test is a known upstream flake in Chromium's LUCI Analysis database
  • Queries the LUCI Analysis pRPC API for historical pass/fail/flake rates over a lookback window
  • Returns one of five verdicts with a recommendation for filter-file decisions

Check Upstream Flake by the numbers

  • 7 all-time installs (skills.sh)
  • Ranked #1,579 of 2,153 Testing & QA skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

check-upstream-flake capabilities & compatibility

Capabilities
flake detection · test analysis · ci diagnostics
Use cases
testing · debugging
From the docs

What check-upstream-flake says it does

Check if a failing test is a known upstream flake in the Chromium LUCI Analysis database.
SKILL.md
**Flake rate** is calculated as `(failed + flaky) / (passed + failed + flaky)`.
SKILL.md
No authentication is required for public Chromium data.
SKILL.md
npx skills add https://github.com/brave/brave-core --skill check-upstream-flake

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs7
repo stars3.5k
Last updatedAugust 5, 2026
Repositorybrave/brave-core

What it does

Check whether a failing test is a known upstream Chromium flake via LUCI Analysis before deciding to filter it.

Who is it for?

Deciding whether an intermittent Chromium test failure is a known upstream flake before filtering or investigating

Skip if: Brave-specific tests not present in the Chromium LUCI database

When should I use this skill?

On triggers check upstream flake, is this test flaky upstream, check luci flakiness, upstream flake check

What you get

A verdict (one of five) with flakiness statistics and a recommendation for filter-file decisions.

  • flake verdict and recommendation

By the numbers

  • 5 possible verdicts
  • 30-day default lookback (max 90)
  • 5% flake-rate threshold for known flake

Files

SKILL.mdMarkdownGitHub ↗

Check Upstream Flake

Check if a failing test is a known upstream flake in the Chromium LUCI Analysis database. This queries the REST API at analysis.api.luci.app to retrieve historical pass/fail/flake data for a test in the Chromium CI infrastructure.

---

When to Use

  • Investigating intermittent test failures before deciding on a fix approach
  • Evaluating test disable PRs to verify upstream flakiness claims
  • During PR review (via the review skill) when assessing test filter changes
  • Working on "pending" stories that involve Chromium test failures

---

The Job

When invoked with a test name:

1. Search for matching test IDs in the Chromium LUCI Analysis database 2. Retrieve flakiness statistics for each match over the lookback period 3. Analyze pass/fail/flake rates 4. Report a verdict and recommendation

---

Usage

# Basic: check a specific test (default 30-day lookback)
python3 ./script/check-upstream-flake.py "WebUIURLLoaderFactoryTest.RangeRequest"

# Longer lookback window
python3 ./script/check-upstream-flake.py "WebUIURLLoaderFactoryTest.RangeRequest" --days 60

# JSON output (for programmatic use)
python3 ./script/check-upstream-flake.py "WebUIURLLoaderFactoryTest.RangeRequest" --json

# Search by test class name (finds all methods)
python3 ./script/check-upstream-flake.py "WebUIURLLoaderFactoryTest"

Arguments:

  • test_name (required): Test name or substring to search for
  • --days N: Lookback window in days (default: 30, max: 90)
  • --json: Output JSON instead of markdown

Exit codes:

  • 0: Success (results found and reported)
  • 1: Error (network, API, etc.)
  • 2: No matching test IDs found

---

Interpreting Results

The script produces one of five verdicts:

VerdictFlake RateAction
Known upstream flake>= 5%Safe to add to filter file. Document upstream flakiness in the filter comment.
Occasional upstream failures1-5%Consider filtering. Document findings. May still warrant investigation.
Stable upstream< 1%Investigate Brave-specific causes. The test is stable in Chromium, so Brave code changes are likely causing the failure.
Insufficient dataN/A (<10 verdicts)Cannot determine from upstream data. Manual investigation needed.
Not foundN/ATest not in Chromium database. May be Brave-specific or use a different ID format.

Flake rate is calculated as (failed + flaky) / (passed + failed + flaky). Skipped and precluded verdicts are excluded from the rate.

---

How Results Inform Decisions

Known upstream flake or occasional failures

  • Disabling via filter file is appropriate
  • Use the most specific filter file possible (platform/sanitizer-specific)
  • Include in the filter comment: "Known upstream flake (X% flake rate over N

days per LUCI Analysis)"

  • Reference this in commit message and PR body

Stable upstream

  • The test passes reliably in Chromium CI
  • Focus investigation on Brave-specific factors:
  • Check brave/chromium_src/ overrides in related directories
  • Look for Brave features that change timing or behavior
  • Check if Brave adds UI elements that affect the test
  • A filter disable should be a last resort and needs strong justification

Not found or insufficient data

  • The test may use a different ID format in LUCI
  • Try searching with just the class name or a broader substring
  • Check manually at https://ci.chromium.org/ui/p/chromium/test-search
  • Proceed with normal investigation

---

API Details

The script uses the LUCI Analysis REST API (pRPC protocol):

  • QueryTests:

POST https://analysis.api.luci.app/prpc/luci.analysis.v1.TestHistory/QueryTests

  • QueryStats:

POST https://analysis.api.luci.app/prpc/luci.analysis.v1.TestHistory/QueryStats

  • Query (fallback):

POST https://analysis.api.luci.app/prpc/luci.analysis.v1.TestHistory/Query

No authentication is required for public Chromium data.

Test IDs in LUCI follow the format: ninja://{gn_path}:{target}/{TestSuite}.{TestMethod}

---

Limitations

  • Only covers Chromium upstream data (not Brave CI)
  • Test ID format may not match for all tests
  • Historical data limited to ~90 days
  • Does not compare failure logs/output (only counts pass/fail/flake)
  • Cannot distinguish between different failure modes for the same test

Related skills

FAQ

How is flake rate calculated?

Flake rate is (failed + flaky) / (passed + failed + flaky); skipped and precluded verdicts are excluded.

Does it need authentication?

No authentication is required for public Chromium data.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.