Repository navigation
Releases
Releases · raunaksahahere/flakeprint
Flakeprint v0.10.0
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 }withaiStatus. It uses the same models as explanations (local model first, then Gemini) and a JSON schema. It is public like/api/v1/explainand counts against theailimit; cached proposals don't count. Every request is audited asfix-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.ymlwithruns(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 labelledflakeprint-fixfrom aflakeprint/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_prefscookie. - 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-fixPRs 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.
- Sync (Runs page): asks the backend (
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
Fixed
- Self-hosted model (
LOCAL_LLM_URL): requests now sendthink: 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
Added
- Self-hosted AI model. Set
LOCAL_LLM_URL(plusLOCAL_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. OnlyPOST /api/chatis 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
Fixed
analyze_reports(MCP) andPOST /api/v1/analyze: each report can carryattempt(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 withaiStatus: "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
Added
- MCP server, so AI assistants can call Flakeprint directly. Tool definitions are shared (
packages/mcp) by two transports:- Hosted:
POST /mcpon 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 (actormcp) are the same. Cookies are ignored, so MCP calls are never admin calls. - Local:
flakeprint mcp(stdio), with--cwd,--backend URL/FLAKEPRINT_BACKEND_URLand--no-run.
- Hosted:
- 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 aserver.jsonfor the official MCP Registry (io.github.raunaksahahere/flakeprint) are attached to each release.docs/mcp.mdhas client setup for Claude, Cursor, VS Code and ChatGPT.
Flakeprint v0.7.0
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
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_KEYSand the dashboard'sFLAKEPRINT_BACKEND_KEYare gone. - Admin is Sign in with GitHub (
/admin, OAuth App viaGITHUB_OAUTH_CLIENT_ID/GITHUB_OAUTH_CLIENT_SECRET), limited to the logins inFLAKEPRINT_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 (
429withRetry-After). Admins are not limited. - Public stress runs may set only
runs(1–10) andref; a custom command, directory or report glob needs an admin, because it runs on the repository's Actions runners. - Storing uploaded results (
analyzewithstore,ingest) is admin-only. - Ticket requests are deduplicated per test and provider.
Flakeprint v0.5.0
Changed
- AI explanations now use Google Gemini (
gemini-3.8-flashby default, setFLAKEPRINT_AI_MODELto change) through the official@google/genaiSDK with a JSON response schema. ConfigureGEMINI_API_KEYinstead ofANTHROPIC_API_KEY. Facts and AI hypotheses stay separate, and explanations are still cached per evidence hash.
Flakeprint v0.4.1
Fixes
flakeprint stresson 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
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-256verified, idempotent per delivery) and on-demand sync mirror theflakeprint-databranch 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.ymlmatrix 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).