kwikqa 0.3.0 → 0.4.0
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/README.md +152 -30
- package/dist/THIRD_PARTY_NOTICES.md +78 -0
- package/dist/kwikqa.mjs +166 -126
- package/dist/parse-check.mjs +12 -8
- package/dist/tree-sitter/tree-sitter-java.wasm +0 -0
- package/dist/tree-sitter/tree-sitter-python.wasm +0 -0
- package/dist/tree-sitter/web-tree-sitter.wasm +0 -0
- package/package.json +5 -2
package/README.md
CHANGED
|
@@ -22,8 +22,10 @@ Using pnpm, Yarn, or Bun? See [Package managers and monorepos](#package-managers
|
|
|
22
22
|
- **Repairs only test code.** It edits specs, page objects, fixtures, and helpers that your
|
|
23
23
|
`kwikqa.config.json` allows. It never edits application code, dependencies, or lockfiles.
|
|
24
24
|
- **Never weakens a test.** It refuses edits that skip or focus tests, add fixed waits
|
|
25
|
-
(`waitForTimeout`, `cy.wait(1000)`, `browser.pause`) or retries, force actions past Cypress's
|
|
26
|
-
checks, remove or swap assertions and `should` chainers, or swallow errors.
|
|
25
|
+
(`waitForTimeout`, `cy.wait(1000)`, `browser.pause`) or retries (including `expect(...).toPass()`), force actions past Cypress's
|
|
26
|
+
checks, remove or swap assertions and `should` chainers, or swallow errors. It replaces an exact
|
|
27
|
+
expected value with a pattern, such as a regular expression or `expect.any`, only with evidence
|
|
28
|
+
that the value really varies.
|
|
27
29
|
- **Nothing happens without you.** You see each AI request and each patch before it happens. Applying a
|
|
28
30
|
patch always asks, even in CI mode.
|
|
29
31
|
- **Keeps a repair only if it validates.** `validate` reruns the failing test in a fresh process with
|
|
@@ -40,8 +42,9 @@ Using pnpm, Yarn, or Bun? See [Package managers and monorepos](#package-managers
|
|
|
40
42
|
pnpm, Yarn, or Bun. KwikQA runs your project's own copy and never installs packages or browsers.
|
|
41
43
|
- A git repository
|
|
42
44
|
|
|
43
|
-
For repairs, KwikQA needs
|
|
44
|
-
|
|
45
|
+
For repairs, KwikQA needs a framework listed under [supported frameworks](#supported-frameworks).
|
|
46
|
+
Maven, Gradle, and pytest runs also need the project's own tools, already on the machine. KwikQA
|
|
47
|
+
reads and diagnoses the [other reports](#reports-kwikqa-reads) too.
|
|
45
48
|
|
|
46
49
|
## Setup
|
|
47
50
|
|
|
@@ -97,9 +100,26 @@ failing specs and records each failure's page (see below).
|
|
|
97
100
|
|
|
98
101
|
`login` signs you in with GitHub; the free plan needs no payment details.
|
|
99
102
|
|
|
100
|
-
###
|
|
103
|
+
### Supported frameworks
|
|
101
104
|
|
|
102
|
-
KwikQA
|
|
105
|
+
KwikQA repairs and validates these runs, and only these:
|
|
106
|
+
|
|
107
|
+
- Playwright Test, Cypress, and WebdriverIO (Mocha or Jasmine): diagnosed, repaired, and validated.
|
|
108
|
+
- Selenium Java, with Maven or Gradle, and TestNG or JUnit 5: diagnosed, repaired, and validated.
|
|
109
|
+
- pytest, with Selenium or Playwright: diagnosed, repaired, and validated.
|
|
110
|
+
- Cucumber-JVM, with Maven or Gradle: diagnosed, repaired, and validated.
|
|
111
|
+
|
|
112
|
+
Everything else is report-only: KwikQA diagnoses it, and never repairs or validates it.
|
|
113
|
+
|
|
114
|
+
Maven and Gradle runs need a JDK already in `JAVA_HOME`, and a Maven or Gradle wrapper whose
|
|
115
|
+
distribution is already unpacked under `MAVEN_USER_HOME` (or `~/.m2`) or `GRADLE_USER_HOME` (or
|
|
116
|
+
`~/.gradle`). pytest runs need the project's `.venv` or `venv`. KwikQA never installs or downloads
|
|
117
|
+
any of these, and Maven and Gradle validation is unavailable on Windows.
|
|
118
|
+
|
|
119
|
+
### Reports KwikQA reads
|
|
120
|
+
|
|
121
|
+
KwikQA reads the reports these write and diagnoses the run. Only the runs named under
|
|
122
|
+
[supported frameworks](#supported-frameworks) are repaired:
|
|
103
123
|
|
|
104
124
|
- Vitest (`--reporter=junit`);
|
|
105
125
|
- Jest (`jest-junit`);
|
|
@@ -166,12 +186,11 @@ This page uses npm's commands. With another package manager, install and run Kwi
|
|
|
166
186
|
| Yarn | `yarn add -D kwikqa` | `yarn kwikqa analyze` |
|
|
167
187
|
| Bun | `bun add -d kwikqa` | `bunx kwikqa analyze` |
|
|
168
188
|
|
|
169
|
-
The commands KwikQA suggests use the same form as the one you ran.
|
|
170
|
-
|
|
171
189
|
In a monorepo, install KwikQA in the package that holds your tests, and run it from that package's
|
|
172
190
|
folder, where its `kwikqa.config.json` goes. KwikQA finds that package's Playwright, Cypress, or
|
|
173
|
-
WebdriverIO
|
|
174
|
-
|
|
191
|
+
WebdriverIO in its own `node_modules` or in the `node_modules` of a folder above it, up to the
|
|
192
|
+
repository root. So the root's `node_modules` works, but a copy installed only in another package
|
|
193
|
+
doesn't. It never runs one from outside the repository, so pnpm's global virtual store
|
|
175
194
|
(`enableGlobalVirtualStore`) isn't supported.
|
|
176
195
|
|
|
177
196
|
## Commands
|
|
@@ -183,9 +202,10 @@ WebdriverIO wherever your package manager installed it inside the repository, in
|
|
|
183
202
|
| `npx kwikqa analyze --html` | Also write the [failure report](#failure-report), `kwikqa-report.html`; `--output <path>` writes it elsewhere. |
|
|
184
203
|
| `npx kwikqa report` | Write the failure report of the latest analysis without analyzing again or sending anything. `--run <id>` picks an earlier run under `.kwikqa/runs/`; `--output <path>` picks the file. |
|
|
185
204
|
| `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. |
|
|
186
|
-
| `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. 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). |
|
|
205
|
+
| `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 three times in a row, 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). |
|
|
187
206
|
| `npx kwikqa validate` | Run the approved validation. The repaired test must pass three times in a row, with retries off. 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. |
|
|
188
207
|
| `npx kwikqa fix --retry` | After a failed validation, re-diagnose from the new evidence and propose one revised patch. |
|
|
208
|
+
| `npx kwikqa check` | Check test changes KwikQA didn't write, such as an agent's or Playwright's healer's, with the gates KwikQA's own repairs get. **Scope and policy:** only the test paths the committed `kwikqa.config.json` makes editable, with no skips, `fixme`, fixed waits, retries, forced actions, or removed, swapped, or loosened assertions. **Ownership:** the failing tests the change touches must be diagnosed as the test's fault, by an analysis of the code before the change, so run `analyze` before the agent edits the test. **Validation:** each touched failing test must pass three times in a row with retries off, and the static checks must pass; for a change to a shared page object, fixture, or helper, so must every test that uses it, compared with how it did in the analyzed run; it asks before running anything (`--yes` approves). Selenium Java and pytest changes get the same gates, validated with the project's own Maven, Gradle, or pytest; a Cucumber-JVM change is validated under Maven or Gradle. Each finding names its file and line. It exits 0 only when every gate passed. After a failed check of uncommitted changes, it offers to put the changed files back as `HEAD` has them, keeping a copy of the change in `.kwikqa/adopted/`; only a yes at the terminal restores anything. `--base <ref>` checks a branch's changes since it left `<ref>`; `--analysis <path>` names the failing run's record. It sends nothing to KwikQA; in CI it publishes its verdict, see [Checking an agent's pull request](#checking-an-agents-pull-request). |
|
|
189
209
|
| `npx kwikqa status` | Show your plan, team, and this month's usage. |
|
|
190
210
|
| `npx kwikqa upgrade [plan]` | Show plans, or get a checkout link for one. `--annual` bills yearly; `--seats <n>` sets seats on team plans. On a paid plan it points you to Billing in the dashboard. While the paid plans are coming soon, it lists them without a link. |
|
|
191
211
|
| `npx kwikqa billing` | Open Paddle's customer portal to update your payment method or download invoices. |
|
|
@@ -219,18 +239,27 @@ replaces a file it wrote itself, and `init` offers to add `kwikqa-report.html` t
|
|
|
219
239
|
|
|
220
240
|
| Plan | Monthly | Annual | Analyses / month | Fixes / month |
|
|
221
241
|
| --- | --- | --- | --- | --- |
|
|
222
|
-
|
|
|
223
|
-
| Pro | $
|
|
224
|
-
|
|
|
225
|
-
|
|
|
226
|
-
| BYOK
|
|
242
|
+
| Hobby | $0 | – | 10 | 3 |
|
|
243
|
+
| Pro | $29 | $290 | 120 | 30 |
|
|
244
|
+
| BYOK | $19 | $190 | 200 | 50 |
|
|
245
|
+
| Teams (3+ seats) | $39 / seat | $390 / seat | 150 / seat, pooled | 40 / seat, pooled |
|
|
246
|
+
| BYOK Teams (3+ seats) | $29 / seat | $290 / seat | 250 / seat, pooled | 65 / seat, pooled |
|
|
247
|
+
| Enterprise (12+ seats) | $69 / seat | $690 / seat | 300 / seat, pooled | 75 / seat, pooled |
|
|
248
|
+
| BYOK Enterprise (12+ seats) | $49 / seat | $490 / seat | 500 / seat, pooled | 150 / seat, pooled |
|
|
249
|
+
|
|
250
|
+
No plan is unlimited, and `--local` analysis is free on every plan. Hobby analyzes CI runs
|
|
251
|
+
locally; Pro and BYOK run hosted analysis in CI on one repository of your own. CI on an
|
|
252
|
+
organization's repositories, `ci.fix` beyond your own repository, and Slack and Teams alerts need a
|
|
253
|
+
team plan, and a seat is an active committer: each person whose pull request ran KwikQA in CI that
|
|
254
|
+
month. The Enterprise plans add single sign-on and SCIM, an audit log, and an
|
|
255
|
+
[SLA](https://kwikqa.com/sla/). [Plans](https://kwikqa.com/docs/plans/) has the details.
|
|
227
256
|
|
|
228
257
|
One analysis is one diagnosis sent to the AI. One fix is one repair attempt, validated by
|
|
229
258
|
`npx kwikqa validate`, and its one retry is included. Local-only analysis is free, and so is any
|
|
230
259
|
request you decline or that stops before sending. `fix` reuses the diagnosis `analyze` already
|
|
231
260
|
produced for the same run, so it doesn't use another analysis.
|
|
232
261
|
|
|
233
|
-
The paid plans are coming soon: until they open, every account uses
|
|
262
|
+
The paid plans are coming soon: until they open, every account uses Hobby.
|
|
234
263
|
|
|
235
264
|
Annual billing gives two months free. Cancel within 14 days of your first payment, monthly or
|
|
236
265
|
annual, and it is refunded in full, once in any 12 months. After that, cancelling an annual plan from the dashboard refunds
|
|
@@ -239,7 +268,7 @@ Paddle, the merchant of record.
|
|
|
239
268
|
|
|
240
269
|
### Teams
|
|
241
270
|
|
|
242
|
-
On
|
|
271
|
+
On the team plans, the owner invites people by GitHub username at
|
|
243
272
|
https://kwikqa.com/dashboard/team/. Everyone, including CI tokens they create, draws from one
|
|
244
273
|
monthly pool.
|
|
245
274
|
|
|
@@ -251,17 +280,42 @@ says so after each command. It never shares evidence, source, diffs, or error me
|
|
|
251
280
|
|
|
252
281
|
### Bring your own key
|
|
253
282
|
|
|
254
|
-
On the BYOK plans, KwikQA sends requests straight to
|
|
255
|
-
never passes through KwikQA's servers. The CLI reports each
|
|
256
|
-
KwikQA so it counts toward your plan
|
|
283
|
+
On the BYOK plans, KwikQA sends requests straight to your own model endpoint with your
|
|
284
|
+
credentials, and your evidence never passes through KwikQA's servers. The CLI reports each
|
|
285
|
+
request's kind, model, and provider to KwikQA so it counts toward your plan. `KWIKQA_ENDPOINT`
|
|
286
|
+
chooses the endpoint, OpenRouter unless set, and everything else comes from the environment too,
|
|
287
|
+
so a CI job sets it from its own secrets:
|
|
288
|
+
|
|
289
|
+
| `KWIKQA_ENDPOINT` | Credentials | Models (`KWIKQA_DIAGNOSIS_MODEL`) |
|
|
290
|
+
| --- | --- | --- |
|
|
291
|
+
| `openrouter` (default) | `OPENROUTER_API_KEY` | Optional: `author/model@provider` routes |
|
|
292
|
+
| `anthropic` | `ANTHROPIC_API_KEY` | Anthropic model ID, e.g. `claude-sonnet-4-5` |
|
|
293
|
+
| `openai` | `OPENAI_API_KEY`, optional `OPENAI_ORG_ID`, `OPENAI_PROJECT_ID` | OpenAI model ID, e.g. `gpt-4.1` |
|
|
294
|
+
| `azure-openai` | `AZURE_OPENAI_ENDPOINT` (https), `AZURE_OPENAI_API_KEY`, optional `AZURE_OPENAI_API_VERSION` | Your deployment's name |
|
|
295
|
+
| `bedrock` | `AWS_REGION`, and `AWS_BEARER_TOKEN_BEDROCK` or `AWS_ACCESS_KEY_ID`/`AWS_SECRET_ACCESS_KEY` (`AWS_SESSION_TOKEN`) | Bedrock model ID or inference profile |
|
|
296
|
+
| `github-models` | `GITHUB_TOKEN` with `models: read`, optional `KWIKQA_GITHUB_MODELS_ORG` | e.g. `openai/gpt-4.1` |
|
|
257
297
|
|
|
258
298
|
```sh
|
|
259
|
-
export
|
|
260
|
-
|
|
261
|
-
export
|
|
262
|
-
export
|
|
299
|
+
export KWIKQA_ENDPOINT=azure-openai
|
|
300
|
+
export AZURE_OPENAI_ENDPOINT=https://acme.openai.azure.com
|
|
301
|
+
export AZURE_OPENAI_API_KEY=...
|
|
302
|
+
export KWIKQA_DIAGNOSIS_MODEL=kwikqa-gpt-5 # your deployment
|
|
303
|
+
export KWIKQA_REPAIR_MODEL=kwikqa-gpt-5 # optional: repair uses the diagnosis model unless set
|
|
263
304
|
```
|
|
264
305
|
|
|
306
|
+
Except on OpenRouter, the diagnosis model is required, since KwikQA can't know what your endpoint
|
|
307
|
+
serves. Optional: `KWIKQA_MODEL_CONTEXT` (the context window, 128000 unless set),
|
|
308
|
+
`KWIKQA_MODEL_MAX_OUTPUT`, `KWIKQA_MODEL_REASONING=true` for a reasoning model, and
|
|
309
|
+
`KWIKQA_MODEL_PRICING=3,15` (your USD price per million prompt and completion tokens) so the
|
|
310
|
+
preview's cost estimate is yours. A subscription login, such as Claude Code, Codex, or Copilot, is
|
|
311
|
+
not an endpoint: use an API key.
|
|
312
|
+
|
|
313
|
+
Your tests never see KwikQA's credentials. Capture, probing, and validation run them without
|
|
314
|
+
`KWIKQA_TOKEN`, `OPENROUTER_API_KEY`, and the model key of the endpoint you chose
|
|
315
|
+
(`ANTHROPIC_API_KEY`, `OPENAI_API_KEY`, `AZURE_OPENAI_API_KEY`, or `AWS_BEARER_TOKEN_BEDROCK`).
|
|
316
|
+
`GITHUB_TOKEN` and AWS access keys are general credentials that tests often need, so they are
|
|
317
|
+
passed through: give KwikQA a model-only credential, such as a Bedrock API key, where you can.
|
|
318
|
+
|
|
265
319
|
## What is sent, and where
|
|
266
320
|
|
|
267
321
|
Before any request, KwikQA builds a bounded evidence packet on your machine from your failing tests
|
|
@@ -291,10 +345,18 @@ many changed hunks a request carries. `--no-changes` on `analyze` and `fix` leav
|
|
|
291
345
|
to an endpoint that would keep it. The service keeps only account, usage, token, and cost
|
|
292
346
|
metadata and a hash of the request. It never stores your evidence, your source, or the model's
|
|
293
347
|
answer, which it holds in memory until your CLI collects it, for at most 15 minutes.
|
|
294
|
-
- **BYOK, BYOK Team:** the packet goes from your machine directly to
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
348
|
+
- **BYOK, BYOK Team, BYOK Enterprise:** the packet goes from your machine directly to your
|
|
349
|
+
endpoint, under your account there and its data-retention settings, and the preview names the
|
|
350
|
+
endpoint. On OpenRouter, KwikQA's default routes ask for zero data retention; a route you set with
|
|
351
|
+
`KWIKQA_DIAGNOSIS_MODEL` or `KWIKQA_REPAIR_MODEL` does not. The CLI reports only the request's
|
|
352
|
+
kind, model, provider, and test framework to KwikQA, to count it.
|
|
353
|
+
|
|
354
|
+
- **In CI, on every plan:** each request that counts toward your plan also says where the job runs:
|
|
355
|
+
the CI system, the repository's host, owner, and name, its visibility when the CI system gives
|
|
356
|
+
it, and the pull request author's login (on Azure Pipelines, the requester's id). The service
|
|
357
|
+
uses it to hold CI use to your plan: personal CI on the solo plans, and repositories, active
|
|
358
|
+
committers, and concurrent CI jobs on the team plans. It stores the repository and the author
|
|
359
|
+
only as keyed hashes, for the month they count in, never the names.
|
|
298
360
|
|
|
299
361
|
Run records, transaction journals, captures, and validation output stay on your machine in
|
|
300
362
|
`.kwikqa/`. [Security and data handling](https://kwikqa.com/security/) and the
|
|
@@ -358,7 +420,7 @@ pull request. Nothing lands until a person reviews and merges it. Opt in by comm
|
|
|
358
420
|
|
|
359
421
|
```json
|
|
360
422
|
{
|
|
361
|
-
"ci": { "fix": { "pullRequests": "draft", "retry": false } }
|
|
423
|
+
"ci": { "fix": { "pullRequests": "draft", "maxPullRequestsPerRun": 1, "retry": false } }
|
|
362
424
|
}
|
|
363
425
|
```
|
|
364
426
|
|
|
@@ -390,6 +452,12 @@ organization's Actions settings.
|
|
|
390
452
|
and applies it to the runner's checkout. The repaired test must pass three times in a row, with
|
|
391
453
|
retries off. A failure is rolled back, and retried once only with `"retry": true`. One CI fix
|
|
392
454
|
counts as one fix, and it reuses the diagnosis `kwikqa ci` made.
|
|
455
|
+
- **How many.** `maxPullRequestsPerRun` is 1 to 5, and left out it is 1. With more than one, a run
|
|
456
|
+
repairs up to that many failure groups, one fix each, and opens a draft pull request for each one
|
|
457
|
+
that validates. Your plan sets the most: the run uses the smaller of the two, and says so when your
|
|
458
|
+
policy asks for more than your plan allows. Each fix is built from the failing commit, so a later
|
|
459
|
+
fix that changes a file an earlier one changed names it in its description; rebase whichever is
|
|
460
|
+
merged second.
|
|
393
461
|
- **The pull request.** A draft labeled `kwikqa`, from a new branch `kwikqa/fix-<id>` named after
|
|
394
462
|
the failure group. For a pull request's run, it goes into that pull request's branch, as a change
|
|
395
463
|
to the change; for any other branch's run, such as a nightly suite on `main`, into that branch.
|
|
@@ -415,6 +483,44 @@ organization's Actions settings.
|
|
|
415
483
|
drafts. Azure Pipelines and GitLab CI/CD work the same way, as below; Jenkins still needs a
|
|
416
484
|
terminal for `fix`.
|
|
417
485
|
|
|
486
|
+
### Checking an agent's pull request
|
|
487
|
+
|
|
488
|
+
`kwikqa check` can be a required check on pull requests that change tests, such as those an agent
|
|
489
|
+
opens. In CI it publishes its verdict where `kwikqa ci` publishes its summary: the job summary,
|
|
490
|
+
and one pull-request comment of its own.
|
|
491
|
+
|
|
492
|
+
```yaml
|
|
493
|
+
on:
|
|
494
|
+
pull_request:
|
|
495
|
+
paths: ["tests/**"]
|
|
496
|
+
permissions:
|
|
497
|
+
contents: read
|
|
498
|
+
pull-requests: write # only for the comment
|
|
499
|
+
jobs:
|
|
500
|
+
kwikqa-check:
|
|
501
|
+
runs-on: ubuntu-latest
|
|
502
|
+
steps:
|
|
503
|
+
- uses: actions/checkout@v7
|
|
504
|
+
with:
|
|
505
|
+
fetch-depth: 0 # check compares with the base branch
|
|
506
|
+
- run: npm ci && npx playwright install --with-deps
|
|
507
|
+
- run: npx kwikqa check --base origin/${{ github.base_ref }} --analysis failing-run/result.json --yes
|
|
508
|
+
env:
|
|
509
|
+
GITHUB_TOKEN: ${{ github.token }}
|
|
510
|
+
```
|
|
511
|
+
|
|
512
|
+
- **The failing run's analysis.** Ownership is judged by the analysis of the run that failed. In
|
|
513
|
+
the job that ran `kwikqa ci`, upload `.kwikqa/runs/*/result.json` as an artifact, then download
|
|
514
|
+
it into `failing-run/` here. Take it only from a run on your default branch: a record from the
|
|
515
|
+
pull request's own runs, or a fork's, proves nothing about who is at fault. Without it, the check
|
|
516
|
+
is `incomplete` and the job fails.
|
|
517
|
+
- **`--yes`** approves re-running the touched tests. A restore is never offered in CI.
|
|
518
|
+
- **The comment.** It names each finding's file and line. A pass only updates an earlier comment.
|
|
519
|
+
- **Exit code.** `passed` is 0; `failed` and `incomplete` are 1, so branch protection can require
|
|
520
|
+
the job.
|
|
521
|
+
- **Other systems.** The same command publishes in Azure Pipelines, GitLab CI/CD, and Jenkins, as
|
|
522
|
+
`kwikqa ci` does there.
|
|
523
|
+
|
|
418
524
|
### Azure Pipelines
|
|
419
525
|
|
|
420
526
|
```yaml
|
|
@@ -555,6 +661,22 @@ stage('e2e') {
|
|
|
555
661
|
name, under Manage Jenkins → System → "Serve resource files from another domain". Don't loosen
|
|
556
662
|
Jenkins' Content-Security-Policy instead.
|
|
557
663
|
|
|
664
|
+
### Sharded suites
|
|
665
|
+
|
|
666
|
+
A suite split across several CI jobs can be analyzed in two ways:
|
|
667
|
+
|
|
668
|
+
- **One analysis after the shards, on every plan.** Download every shard's report into one
|
|
669
|
+
directory and run `kwikqa ci --report <directory>` in a final job. KwikQA reads every report
|
|
670
|
+
file in the directory as one run, so a cause the shards share is one failure group and one
|
|
671
|
+
analysis. Playwright's blob reports are merged with `npx playwright merge-reports` first. On
|
|
672
|
+
GitHub Actions, `actions/download-artifact` with `merge-multiple: true` puts the files together.
|
|
673
|
+
- **Each shard analyzes itself, on the Enterprise plans.** When every shard job runs `kwikqa ci`,
|
|
674
|
+
each one asks the service which of its failure groups another job of the same run already
|
|
675
|
+
diagnoses. A group already taken isn't sent or counted again, and the summary links the run. The
|
|
676
|
+
run and job come from the CI system. Set `KWIKQA_SHARD`, such as `${{ matrix.shard }}`, where a
|
|
677
|
+
job's own id isn't unique per shard, for example a matrix on self-hosted runners. The service
|
|
678
|
+
keeps only keyed hashes of the run, the job, and each group, for 24 hours.
|
|
679
|
+
|
|
558
680
|
### Slack and Microsoft Teams
|
|
559
681
|
|
|
560
682
|
`kwikqa ci` posts the run to the incoming webhooks you store as CI secrets. KwikQA keeps no webhook
|
|
@@ -52,3 +52,81 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
52
52
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
53
53
|
SOFTWARE.
|
|
54
54
|
```
|
|
55
|
+
|
|
56
|
+
## tree-sitter-java 0.23.5 (MIT)
|
|
57
|
+
|
|
58
|
+
```text
|
|
59
|
+
MIT License
|
|
60
|
+
|
|
61
|
+
Copyright (c) 2017 Ayman Nadeem
|
|
62
|
+
|
|
63
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
64
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
65
|
+
in the Software without restriction, including without limitation the rights
|
|
66
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
67
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
68
|
+
furnished to do so, subject to the following conditions:
|
|
69
|
+
|
|
70
|
+
The above copyright notice and this permission notice shall be included in all
|
|
71
|
+
copies or substantial portions of the Software.
|
|
72
|
+
|
|
73
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
74
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
75
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
76
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
77
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
78
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
79
|
+
SOFTWARE.
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## tree-sitter-python 0.25.0 (MIT)
|
|
83
|
+
|
|
84
|
+
```text
|
|
85
|
+
The MIT License (MIT)
|
|
86
|
+
|
|
87
|
+
Copyright (c) 2016 Max Brunsfeld
|
|
88
|
+
|
|
89
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
90
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
91
|
+
in the Software without restriction, including without limitation the rights
|
|
92
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
93
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
94
|
+
furnished to do so, subject to the following conditions:
|
|
95
|
+
|
|
96
|
+
The above copyright notice and this permission notice shall be included in all
|
|
97
|
+
copies or substantial portions of the Software.
|
|
98
|
+
|
|
99
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
100
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
101
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
102
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
103
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
104
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
105
|
+
SOFTWARE.
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
## web-tree-sitter 0.27.1 (MIT)
|
|
109
|
+
|
|
110
|
+
```text
|
|
111
|
+
The MIT License (MIT)
|
|
112
|
+
|
|
113
|
+
Copyright (c) 2018 Max Brunsfeld
|
|
114
|
+
|
|
115
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
116
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
117
|
+
in the Software without restriction, including without limitation the rights
|
|
118
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
119
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
120
|
+
furnished to do so, subject to the following conditions:
|
|
121
|
+
|
|
122
|
+
The above copyright notice and this permission notice shall be included in all
|
|
123
|
+
copies or substantial portions of the Software.
|
|
124
|
+
|
|
125
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
126
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
127
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
128
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
129
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
130
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
131
|
+
SOFTWARE.
|
|
132
|
+
```
|