kwikqa 0.11.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 +16 -0
- package/README.md +35 -1
- package/dist/kwikqa.mjs +173 -166
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
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
|
+
|
|
14
|
+
## 0.12.0 — 2026-11-29
|
|
15
|
+
|
|
16
|
+
### Added
|
|
17
|
+
|
|
18
|
+
- `kwikqa summarize --manifest` can share reconciled suite counts with Failure trends when an
|
|
19
|
+
organization admin enables the repository and the command uses `--share-insights`.
|
|
20
|
+
|
|
5
21
|
## 0.11.0 — 2026-11-29
|
|
6
22
|
|
|
7
23
|
### Added
|
package/README.md
CHANGED
|
@@ -220,7 +220,8 @@ doesn't. It never runs one from outside the repository, so pnpm's global virtual
|
|
|
220
220
|
| `npx kwikqa analyze --capture` | First re-run the failing tests so every failure has full evidence. Playwright runs with full tracing; with Playwright 1.59+ and [Playwright CLI](https://www.npmjs.com/package/@playwright/cli) installed, it also pauses locator failures at the failing line and asks Playwright for locators of the closest elements (`--no-probe` skips this). Cypress and WebdriverIO re-run the failing specs with your own config plus KwikQA's reporter and failure capture, which records each failed attempt's DOM, command log, console, and network. Asks before running anything; `--yes` approves in CI. |
|
|
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
|
-
| `npx kwikqa summarize` | Count results from every participating suite offline. 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). |
|
|
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. |
|
|
@@ -484,6 +485,39 @@ that provides the command. After the workflow ends, use the manifest to include
|
|
|
484
485
|
job and its CI conclusion, including jobs that were canceled before writing their report.
|
|
485
486
|
[GitHub Actions setup and manifest example](docs/architecture/ci-integration.md#suite-coverage-for-the-pilot)
|
|
486
487
|
|
|
488
|
+
To upload reconciled counts to your organization's Failure trends view, an admin enables
|
|
489
|
+
Insights and the GitHub repository in the dashboard. Run the manifest command after the
|
|
490
|
+
workflow attempt ends with a KwikQA credential, such as the team's `KWIKQA_TOKEN`.
|
|
491
|
+
|
|
492
|
+
```bash
|
|
493
|
+
npx kwikqa summarize --manifest coverage/manifest.json --output .kwikqa/suite-coverage.json \
|
|
494
|
+
--share-insights --started-at "$attempt_started_at" --branch "$head_branch"
|
|
495
|
+
```
|
|
496
|
+
|
|
497
|
+
Use the attempt's UTC start time for `--started-at`. Omit `--branch` when the provider has no
|
|
498
|
+
branch name. The explicit `--share-insights` flag uploads only run and suite identifiers,
|
|
499
|
+
branch and start time, shard coverage, and outcome counts. The CLI writes the reconciliation
|
|
500
|
+
before attempting the upload, and a failed upload reports an error. Keep the sharing step
|
|
501
|
+
separate from the tests' CI verdict.
|
|
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
|
+
|
|
487
521
|
### Fix pull requests
|
|
488
522
|
|
|
489
523
|
In GitHub Actions, Azure Pipelines, and GitLab CI/CD, `kwikqa fix` can repair a failure on the
|