You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
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.