Skip to content

Releases

Flakeprint v0.10.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 21:49
41956fd

Added

  • POST /api/v1/fix (backend): an AI fix proposal for one flaky test. The caller sends the recorded facts, the test file's path and its content, and gets back { summary, edits: [{ search, replace }], rationale, confidence } with aiStatus. It uses the same models as explanations (local model first, then Gemini) and a JSON schema. It is public like /api/v1/explain and counts against the ai limit; cached proposals don't count. Every request is audited as fix-proposal. The backend writes nothing: the caller checks that the edits apply and opens any pull request itself.
  • Repo actions in the dashboard, for signed-in users with write (push) access to the repository. Everything runs with the user's own GitHub token, and every Server Action re-checks the session and push permission on the server. Users without push access see a note instead of the buttons.
    • Sync (Runs page): asks the backend (FLAKEPRINT_BACKEND_URL) to re-read the data branch.
    • Run stress (Runs page): dispatches stress.yml with runs (1–10, default 5) on a validated ref (default: the default branch).
    • Propose fix (test page, flaky tests only, button only): sends the facts and the test file (≤ 400 lines, ≤ 40,000 characters) to the backend's POST /api/v1/fix. If every edit applies cleanly, it opens a draft PR labelled flakeprint-fix from a flakeprint/fix-<idHash> branch. Otherwise it opens an issue. It does nothing if the test was already proposed (marker <!-- flakeprint-fix:<idHash> -->), if the user has reached their open fix PR limit, or if the AI is down. Nothing is ever merged automatically.
    • Max open fix PRs (Repositories page): each user sets their own limit (0–50, default 10), stored in the fp_prefs cookie.
    • Runs page logs: the latest stress runs and the PRs and issues labelled flakeprint-fix.
    • The open-fix-PR limit counts the user's open flakeprint-fix PRs in every repository, not just the current one.
    • Model text in PR and issue bodies is neutralised: @-mentions don't ping anyone, and HTML comments can't plant a fake "already proposed" marker.

Changed

  • The dashboard's GitHub App now needs Read & write for Contents, Pull requests, Issues and Actions (Metadata: Read). See BUILD_STATUS.md → "Owner setup". Without the upgrade, reading still works and the actions say which permission is missing.

Flakeprint v0.9.1

Choose a tag to compare

@github-actions github-actions released this 28 Nov 21:13
3786776

Fixed

  • Self-hosted model (LOCAL_LLM_URL): requests now send think: false. Hybrid-thinking models such as MiniCPM5 otherwise spent the whole token budget on hidden reasoning and never produced the JSON answer, so most explanations fell back to Gemini after a long wait.
  • Self-hosted answers are capped at 3072 tokens, so a model that starts repeating itself fails fast (about 30 s on a laptop GPU) and falls back, instead of holding the request until the 120 s timeout.

Flakeprint v0.9.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 17:46
37009c6

Added

  • Self-hosted AI model. Set LOCAL_LLM_URL (plus LOCAL_LLM_KEY, LOCAL_LLM_MODEL) and explanations come from your own model through Ollama's /api/chat, with the same JSON schema enforced. If it is unreachable or its answer does not fit the schema, Gemini is used; with neither, the facts still come back with "AI is down".
  • scripts/local-llm-proxy.mjs: bearer-key gate in front of a local Ollama for exposing it through a tunnel. Only POST /api/chat is forwarded, always to the configured model.
  • Explanations can include suggestedChanges: code or config changes worth trying, each tied to a hypothesis. Shown in the web app and MCP output for a human to review; nothing is applied or merged automatically.

Flakeprint v0.8.1

Choose a tag to compare

@github-actions github-actions released this 28 Nov 14:59

Fixed

  • analyze_reports (MCP) and POST /api/v1/analyze: each report can carry attempt (1, 2, …). Attempts become separate executions of the same commit and settings, so a failed run and its passing re-run are a same-commit FAIL→PASS flip (confirmed flaky). Before, all uploaded reports were merged into one attempt and the flip was missed.
  • explain_test (MCP) no longer times out when Gemini is slow (it can take over a minute, longer than many MCP clients wait). It waits at most 40 s, then returns the observed facts with aiStatus: "pending"; generation continues and is cached, so asking again returns the hypotheses. Concurrent requests for the same evidence share one Gemini call. REST: POST …/tests/{idHash}/explain?wait=N (seconds, up to 55).

Flakeprint v0.8.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 14:35

Added

  • MCP server, so AI assistants can call Flakeprint directly. Tool definitions are shared (packages/mcp) by two transports:
    • Hosted: POST /mcp on the backend (Streamable HTTP, stateless JSON, CORS). Public like the REST API: it goes through the same handlers, so validation, rate limits and the audit log (actor mcp) are the same. Cookies are ignored, so MCP calls are never admin calls.
    • Local: flakeprint mcp (stdio), with --cwd, --backend URL / FLAKEPRINT_BACKEND_URL and --no-run.
  • Hosted tools: list_repos, analyze_reports, repo_overview, list_tests, get_test, explain_test (observed facts plus optional Gemini hypotheses in a separate section; "AI is down" still returns the facts), repo_report (Markdown/JSON reliability report), repo_analytics, org_overview, sync_repo, start_stress_run, get_job, create_ticket. Prompts: flaky_test_report, explain_flaky_test. Tests can be named by idHash or by part of their name.
  • Local tools: analyze_local_reports, local_report (Markdown/JSON/PDF), run_tests (stress or retry on your machine), doctor, setup_workflow, propose_quarantine.
  • flakeprint-mcp.mcpb (MCP Bundle for Claude Desktop), its SHA-256 and a server.json for the official MCP Registry (io.github.raunaksahahere/flakeprint) are attached to each release. docs/mcp.md has client setup for Claude, Cursor, VS Code and ChatGPT.

Flakeprint v0.7.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 14:08

Added

  • PDF reliability report: summary tiles, tests that need attention (broken, flaky, recovered) ranked by severity with flake rate and 90% credible interval, where CI time goes, and every tracked test, with page numbers. Dashboard: PDF report next to the CSV/JSON export (/api/repos/{owner}/{repo}/export?format=pdf, same access rules). CLI: flakeprint report --format pdf --out report.pdf.
  • Built-in, dependency-free PDF writer in @flakeprint/core (standard Helvetica fonts, compressed pages; non-Latin characters are transliterated or replaced).

Flakeprint v0.6.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 13:10

Changed

  • The backend API is public: no API keys. Anyone can analyse reports, read history, ask for AI explanations, start stress runs and open tickets. FLAKEPRINT_API_KEYS and the dashboard's FLAKEPRINT_BACKEND_KEY are gone.
  • Admin is Sign in with GitHub (/admin, OAuth App via GITHUB_OAUTH_CLIENT_ID / GITHUB_OAUTH_CLIENT_SECRET), limited to the logins in FLAKEPRINT_ADMINS. The backend stores no users or GitHub tokens, only a signed 12-hour cookie. Admin writes need a per-session CSRF token. The admin page shows the audit log and runs retention.
  • AI is optional: without GEMINI_API_KEY, or when Gemini fails, explanations say "AI is down" (aiStatus: "down") and still return the recorded facts instead of an error.

Security

  • Hourly limits per client IP and overall for AI, stress, tickets, sync and analyze (429 with Retry-After). Admins are not limited.
  • Public stress runs may set only runs (1–10) and ref; a custom command, directory or report glob needs an admin, because it runs on the repository's Actions runners.
  • Storing uploaded results (analyze with store, ingest) is admin-only.
  • Ticket requests are deduplicated per test and provider.

Flakeprint v0.5.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 11:05

Changed

  • AI explanations now use Google Gemini (gemini-3.8-flash by default, set FLAKEPRINT_AI_MODEL to change) through the official @google/genai SDK with a JSON response schema. Configure GEMINI_API_KEY instead of ANTHROPIC_API_KEY. Facts and AI hypotheses stay separate, and explanations are still cached per evidence hash.

Flakeprint v0.4.1

Choose a tag to compare

@github-actions github-actions released this 28 Nov 10:43

Fixes

  • flakeprint stress on macOS: per-run temp directories are resolved through /private/var, so test IDs no longer differ between runs (found on the live demo's macOS stress leg).

Flakeprint v0.4.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 10:39

Backend (backend/, deployable on Render via render.yaml)

  • POST /api/v1/analyze: analyse uploaded reports in any supported format with the same detector, optionally against mirrored history, plus a flake-risk estimate.
  • GitHub webhook ingestion (X-Hub-Signature-256 verified, idempotent per delivery) and on-demand sync mirror the flakeprint-data branch into SQLite; direct shard ingestion for other CI systems.
  • REST API: repo overview, per-test stats and advice, analytics; org-wide overview across repositories.
  • Stress orchestration: dispatches the reusable stress.yml matrix on GitHub runners and tracks the run.
  • Optional AI explanations (Claude Opus 5.5, structured output, server-side fallbacks): hypotheses with evidence for and against, investigation steps and caveats — kept separate from the observed facts, never presented as a diagnosis, cached per evidence hash.
  • Jira and Linear issue creation; API keys with roles (viewer/analyst/maintainer/admin) and repository scopes, stored as hashes; audit log of every write and AI call; retention.
  • Status page, /healthz, Docker image checked in CI.

Dashboard

  • Explain page per test: observed facts, then the optional AI explanation from the backend (FLAKEPRINT_BACKEND_URL, FLAKEPRINT_BACKEND_KEY).

Fixes

  • The reusable stress workflow downloads the latest CLI release when called with a major tag (@v0).