kwikqa 0.12.0 → 0.13.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  What's new in each release of the KwikQA CLI.
4
4
 
5
+ ## 0.13.0 — 2026-11-29
6
+
7
+ ### Added
8
+
9
+ - `kwikqa flakes` reviews runner-local Playwright retry history from saved GitHub Actions suite
10
+ manifests. It flags a recurring retry pass after two distinct complete runs of the same test,
11
+ commit, and environment within 30 days. Collect retry history with `summarize --suite` and the
12
+ `--flake-revision` and `--flake-environment` options.
13
+
5
14
  ## 0.12.0 — 2026-11-29
6
15
 
7
16
  ### Added
package/README.md CHANGED
@@ -221,6 +221,7 @@ doesn't. It never runs one from outside the repository, so pnpm's global virtual
221
221
  | `npx kwikqa analyze --html` | Also write the [failure report](#failure-report), `kwikqa-report.html`; `--output <path>` writes it elsewhere. |
222
222
  | `npx kwikqa report` | Write a report from a recorded analysis. Choose HTML (default), JSON or Markdown with `--format`. Use `--run <id>` to select a run and `--output <path>` to choose the file. |
223
223
  | `npx kwikqa summarize` | Count results from every participating suite offline by default. Use `--suite <id>` and, for parallel jobs, `--shard <id>`. Use `--manifest <path>` to reconcile the shard summaries with CI. Both modes write JSON to stdout or the file given by `--output`. See [Suite coverage](#suite-coverage). |
224
+ | `npx kwikqa flakes` | Review recurring Playwright retry passes across saved CI manifests. Use `--as-of <utc>` to reproduce the 30-day window and `--output <path>` to save the JSON. See [Runner-local retry history](#runner-local-retry-history). |
224
225
  | `npx kwikqa ci` | In a CI job: analyze as `analyze --yes --html` does, then publish a summary. On GitHub Actions that is the job summary and one pull-request comment, on Azure Pipelines a build summary and one pull-request thread, on GitLab CI/CD the job's log and one merge-request note, and on Jenkins the console log and one comment on a GitHub or GitLab pull request; with your webhooks, also a Slack or Teams message. See [CI](#ci). Without a KwikQA token it analyzes locally. It takes `--report`, `--framework`, `--local`, `--no-changes`, and `--output` as `analyze` does, and `--notify always` to post to chat after every run, not only failed ones. |
225
226
  | `npx kwikqa fix` | Propose a repair for a test-side cause, show the diff and validation commands, and apply it if you approve. First it offers to re-run the failing tests once: a test that passes now is flaky, so KwikQA reports it and requests no repair. It starts with the failure group whose test-side diagnosis is strongest; if the model declines, or its proposal fails KwikQA's checks, it asks about the next such group, at most three, each with its own preview. One `fix` counts as one fix however many groups it tries. `--group <n>` repairs only group n, as `analyze` numbered it. `--propose-only` stops after the proposal. A repair of shared test support, such as a page object, fixture, or helper, is validated over every test that uses it: first those tests run once on the current code, after you approve, and afterwards each must pass again, three times in a row for Playwright, Cypress, and WebdriverIO and once for Maven, Gradle, and pytest, so a test the patch breaks is caught. In GitHub Actions, Azure Pipelines, and GitLab CI/CD, a committed `ci.fix` policy lets it run without a terminal and open a draft pull request; see [Fix pull requests](#fix-pull-requests). |
226
227
  | `npx kwikqa validate` | Run the approved validation. The repaired test must pass three times in a row, with retries off (once, for a shared Maven, Gradle, pytest, or Cucumber-JVM repair). Passing keeps the patch; failing rolls it back. When other tests failed with the same cause, it then offers to re-run them once and names any that still fail, so you can run `fix` again for them; the patch stays either way. |
@@ -499,6 +500,24 @@ branch and start time, shard coverage, and outcome counts. The CLI writes the re
499
500
  before attempting the upload, and a failed upload reports an error. Keep the sharing step
500
501
  separate from the tests' CI verdict.
501
502
 
503
+ ### Runner-local retry history
504
+
505
+ Set `--flake-revision` to the exact tested commit and `--flake-environment` to a stable ID for
506
+ the environment. Use the original Playwright JSON report from the GitHub Actions test job.
507
+
508
+ ```bash
509
+ npx kwikqa summarize --suite browser --shard 1 --report test-results/results.json \
510
+ --flake-revision "$(git rev-parse HEAD)" --flake-environment linux-chromium \
511
+ --output .kwikqa/suite-summary-with-retries.json
512
+ npx kwikqa flakes runs/*/manifest.json --output .kwikqa/flake-history.json
513
+ ```
514
+
515
+ Retain the manifests and their referenced shard files in your CI artifact store. A recurrent
516
+ flake has ordered failure and retry-pass evidence from at least two distinct complete workflow
517
+ runs of the same test, commit, and environment in the last 30 days. Retry artifacts include test
518
+ titles and source paths and stay in your artifact store. The Insights upload carries aggregate
519
+ counts. [Retry history setup](docs/architecture/ci-integration.md#review-runner-local-retry-history)
520
+
502
521
  ### Fix pull requests
503
522
 
504
523
  In GitHub Actions, Azure Pipelines, and GitLab CI/CD, `kwikqa fix` can repair a failure on the