feat(ci): adds to the GitHub QA Dashboard another dimension crossing flakies & failures#778
Merged
Merged
Conversation
daniel-herrero
force-pushed
the
dherrero/piweek/qa-dashboard-flakies
branch
from
July 16, 2026 13:14
bde108f to
e3890e3
Compare
daniel-herrero
marked this pull request as ready for review
July 16, 2026 13:17
estefafdez
self-requested a review
July 17, 2026 07:59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Done Definition Checks
Taiga URL
Taiga Ticket: 1623
Description
This PR adds a second dimension to the GitHub QA Dashboard from #772: cross-referencing the automated regression suite against which of those tests are actually reliable in CI.
What problem are you trying to solve?
The coverage-vs-bugs dashboard answers "do we have a test here?" but not "can we trust it?" — a flaky or chronically-failing test inflates the automated-coverage numbers without actually giving the confidence those numbers imply. There was also no easy way to see, at a glance, which regression tests are the noisiest/most prone to false failures, even though that data effectively already existed in the daily Playwright
results.jsonreports — it just wasn't being aggregated or surfaced anywhere.Solution
How did you solve the problem?
flaky-tally.ts— dependency-free script that walks a Playwrightresults.json, extracts the Qase ID for every test that flaked or failed (same annotation/title parsing astriage.ts), and merges the day's occurrences into a rollingflaky-history.jsonaggregate. Only tests that actually flaked or failed get an entry, so the file stays proportional to the tests that are a problem, not the full Qase inventory; occurrences older than the (default 30-day) window are dropped on every merge.playwright_pre_daily.yml— new "Update flaky-test history" step runsflaky-tally.tsright after each daily run, pulling/pushingflaky-history.jsontos3://kaleidos-qa-reports/(public GET, no credentials needed to read it back).github_dashboard.ts— fetches that aggregate and joins it against the regression tests by Qase ID (buildReliabilityRows), writing a newflaky-tests.csvand areliabilityblock in the dashboard's data payload. Default sort is most-failed-first, ties broken by most-flaky.dashboard_template.html— new "Test reliability" section: click-to-sort columns, a KPI tile, and a "Last seen" link straight to that occurrence's run report (best-effort — raw run reports expire off S3 after ~10 days, so older links may 404).How to test
QASE_TOKEN=... GITHUB_TOKEN=... npx tsx scripts/github-dashboard/github_dashboard.ts) and confirm the "Test reliability" section renders with real datagithub-dashboard.ymlmanually against this branch withs3_prefix: github-dashboard-testto sanity-check the live-rendered dashboard without touching the reallatest/outputScreenshots 📸 (optional)
Anything Else? (optional)