@quikit/quikpilot-runner 9.3.0-rc.46 → 9.3.0-rc.48

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 CHANGED
@@ -164,6 +164,10 @@ wrong (a field that arrives from a database row or a request), so it only warns
164
164
 
165
165
  **9.3.0-rc.46 — the existing tests to read first include the ones that reach the code through one file in between (QUIKTR-1845).** On the live bug-6 run (QTRIA-17) the design changed `lib/services/issueFilters.ts`, and the two tests that assert the bug import `app/api/issues/route.ts`, which imports it, so the list of existing tests the AI reads before writing (`testsToCheck`, rc.44) was empty. When fewer than 3 test files are found by name or a direct import, the runner now takes one more step: of the files the tests import (code, not a test, not under a denied path; the 150 most shared first) it keeps the ones that import a changed file, and adds the tests that import them, after the others and up to 10 in all. A file in between imported by more than 12 tests only brings the tests named after it (a route by its folder) or after the changed file. Paths only, as before. With 3 or more found the list is exactly as in rc.45. Also in rc.46: everything in rc.45. Nothing else changes.
166
166
 
167
+ **9.3.0-rc.47 — an approved test change that does not fit is named, and can go back to a person (QUIKTR-1844).** On the live bug-3 re-run (QTRIA-16, 26 Oct) a person approved one change to a table test (`toBe(401)` became `toBe(200)` for all 11 rows); with the code complete, 10 rows still failed, the failure said only "existing tests that may expect the old behaviour", and the fix turn, seeing names only, took the approval as proof the test was right and gave up with a stop left. Now, when rows of a test a person approved changing still fail at the final check: the failure message says so first (`the test change approved for <file>: "<title>" does not fit 10 of its 11 rows (now: "expected 404 to be 200")`); the fix turn lists those rows first and shows the first line of each failure (scrubbed, at most 120 characters; approved tests only, every other existing test is still shown by name only); the test is sent as `stillFailing: true` in `decidedTests` (contract §38.12); and, while stops remain, the AI may report that test once more with a change written against the approved text. The revised proposal's line carries `revises` (the commit it replaces) and `misfit` (counts and up to 3 short lines), its message says "This revises the change approved in <sha>", and when approved it replaces the earlier change instead of being merged with it. A revision is checked like any report (inside the test, expectations only). Needs the AI service with §38.12 (it refuses `stillFailing` otherwise, so release that first). A run with no approved test changes, or whose approved tests pass, is exactly as in rc.46. Also in rc.47: everything in rc.46.
168
+
169
+ **9.3.0-rc.48 - the final test check never passes a change it could not check (QUIKTR-1698).** Until rc.47 the gate compared the JUnit report from before the change with the one after it, and when either was missing it let the change through, even when the tests had failed: the Test command's own result was captured and never read. Now (src/testVerification.ts): with a report on both sides, the test-by-test comparison decides as before; with no report on either side, the Test command's result decides - passed before and after: the change goes through with a note in the pull request that it was checked by the Test command's result only; passed before and failed after: the run fails (no test can be named, so no fix is tried); already failing before: the run fails as "could not check this change". A report on one side only, or no Test command at all, also fails as "could not check this change". Every test run now reads only a report it wrote itself (a report left by an earlier run, or committed to the repository, was read by runs without a time limit). Nothing pushed in any failing case. Test results from any language (QUIKTR-1700): every JUnit report the test run wrote is read, wherever it is and whatever its name (found by being a <testsuites>/<testsuite> document; Maven's one file per class, Gradle's build/test-results, pytest, .NET, RSpec, PHPUnit), merged, and uploaded to QuikTest as one document; dependency folders and QuikPilot's own failure copy are skipped. A new test no longer needs [QP-...] in its name: the AI lists each case's test in caseTests (file and test name) with its DONE answer (src/caseTags.ts), and the runner tags the matching test cases with [QP-...] in the results it reads and the report it uploads, so every existing check and QuikTest match them as before; the reproduce-first and hand-over checks accept a declared test. Failure locations are read from Python, Go, C#, RSpec and PHP output too. A one-file run with no report answers with the Test command's result (no_report with reason test_command_passed/test_command_failed), and a failed one counts as red evidence for the cases declared in that file. A classname is a file only with a source extension (a Go package path is not). Composer/PHP variables reach the project's commands. Needs the AI service with contract 38.13 for caseTests (an older one ignores it). Also in rc.48: everything in rc.47.
170
+
167
171
  **9.3.0-rc.42 — the review check runs only the related tests first (QUIKTR-1812).** After a change passes every check, each changed block is put back on its own to ask whether any test notices. Every one of those runs was the whole suite (on QuikIT about 4 min 50 s, so the 6-minute review checked one block in bug 5's run). Now, where the S4 planner trusts related tests (a suite of three minutes or more, a vitest project), a block's first run is only the tests related to its file: a related test that fails settles "needed" in tens of seconds; anything else goes on exactly as before (the whole suite, and once more before "unneeded"), so every verdict, warning and fix attempt is the same. Each related run gets no more than the time left before the review's deadline, a related run that took as long as the whole suite switches related runs off for the rest of the check, and the `hunk_check` line counts `relatedRuns` and `wholeRuns`. `QUIKPILOT_RELATED_TESTS=off` restores whole-suite runs. Nothing else changes.
168
172
 
169
173
  **9.3.0-rc.41 — a test written once for many rows is said plainly, and the run stops (QUIKTR-1823).** Live run QTRIA-12: after a person approved one test change, the fix broke `still rejects an unauthenticated request`, ONE test inside `describe.each` that runs for 11 routes. The AI reported it four times and was told `title_not_found` each time, because tests inside `describe.each` / `it.each` are left out of the title search on purpose (their names are made at run time); the AI had copied the title right, guessed the shape of its report was wrong, and gave up, and the run said only that the AI could not make the change. Now such a report is turned away with its own word, `generated_test`, whose message tells the AI to answer CANNOT_COMPLETE and name the test. However the loop then ends, it ends `test_conflict_unreportable`: no change is kept for the checks and no second attempt is made (it would meet the same test), and the run says where the test is and which case it contradicts (file, line, case id; never a title) and that a person must change that test or correct the case. If a report of another test stands, the run stops for a decision as before and warns about the generated test. A title in no test of the file is still `title_not_found`. Also in rc.41 (QUIKTR-1824): an answer the AI Service cut off at the output limit (`CODEGEN_OUTPUT_TOO_LARGE`, `OUTPUT_TRUNCATED`) ends the attempt `output_too_large`, "the AI's answer was too long and was cut off", in the code-writing and the targeting loops, instead of `runtime_failed`, "the AI service failed" (live run QTRIA-12: a turn wrote to the limit for 193 s). Every failed attempt keeps the AI Service's own error code in the run's record (`runtimeCode`, a closed word; `other` when it is not shaped like a code), and the run's message names it. Nothing else changes.