@quikit/quikpilot-runner 9.3.0-rc.50 → 9.3.0-rc.51
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 +2 -0
- package/dist/index.js +479 -49
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -164,6 +164,8 @@ 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.51 - test files and the tests that reach the changed code, in every language (QUIKTR-1854).** Until now "is this a test file" was a JavaScript rule (a `.test.`/`.spec.` name or a `test/`, `tests/`, `__tests__/` folder): in Go (`decimal_test.go` in the root), Java, C#, Ruby, PHP, Rust and Python outside a `tests/` folder a test file was treated as code - not protected from being rewritten, not runnable alone, and no existing test was ever found for a changed file. Now one shared rule (`testFileRules.ts`, by name: `_test.go`, `test_*.py`, `*_test.py`, `*Test(s).java|kt|scala|cs|swift`, `*_spec.rb`, `*_test.rb`, `*Test.php`, `*_test.rs|dart`) decides in `isTestTarget`/`testRule`, so protection, the phase lanes, `run_tests {file}` and the protected set follow; JavaScript answers are unchanged by construction; `QUIKPILOT_TEST_RULES=js` switches the new names off. The existing tests of a changed Go/Python/Java/Kotlin/Scala file are found (`langReach.ts`): the test named after the file, then tests that reach it through imports (up to three steps; a package `__init__` is a re-export, not a step; a file imported by more than 25 files is not walked through), then tests that talk about what the file defines or the early look named; they go to the tests-to-read-first list and the seeded context. A run now also reads the LIVE test list after targeting (widened with the stored one) instead of the stored one alone. When the report is late but test files could be listed by name, the note says so ("the test report was not ready after N seconds, so QuikPilot listed the test files by their names (N found) and skipped the early check") and the log records `method` (`report`, `names`, `none`). A run that gives up because an existing test in a language that cannot be reported yet (anything but JavaScript and TypeScript, QUIKTR-1855) pins the bug now ends with its own reason `test_unsupported_language` instead of a plain give-up. Also in rc.51: everything in rc.50.
|
|
168
|
+
|
|
167
169
|
**9.3.0-rc.50 - the code-writing tool loop is the default on every repository, with a per-project switch (QUIKTR-1888).** Until now a run wrote code through the tool loop (look around, write tests first, run the project's tests, link tests to cases, stop to ask when an existing test pins the bug) only for very large repositories (map mode) or where someone had edited the workflow file by hand; every ordinary repository ran the old way, one AI call per file and no test run, so none of what was built since (tests first, case links, the stop about existing tests) reached it. Now the runner's own default is the loop with tests for writing code (`loop-tests`) and the read-only loop for finding the files (`loop`). Precedence, first known word wins: the run packet's per-project setting (new optional `codegenMode` / `targetingMode`, sent by QuikProjects from the switch "Write code with tools and run my tests"), then the environment variables `QUIKPILOT_CODEGEN_MODE` / `QUIKPILOT_TARGETING_MODE` in the workflow (an override a repository can keep), then the default. `single` turns the loop off. A packet without the fields (an older QuikProjects) gets the default. Large repositories still force the loop, as before. If the loop cannot finish, the run fails with "nothing was written" as it already did (it falls back to the per-file call only when the AI service has no loop at all). Also in rc.50: a Go test file in the repository's root is linked to its case. The live regression check for this change (decimal Mod, Go) wrote two tests that failed on the old code, but the red check saw no failing test: the report names a root-level Go test by the module's import path ("github.com/shopspring/decimal"), which names no folder of the file, so the place check never matched and the test was not tagged to its case. A path-shaped place now matches a root-level file (the test's name must still match). Also in rc.50: everything in rc.49.
|
|
168
170
|
|
|
169
171
|
**9.3.0-rc.49 - Go and Python runs are no longer failed by the test placement check, and a push retries (QUIKTR-1884, QUIKTR-1885).** The placement check (before the write) compared a test file with the files named in the repository's own test report, and took a testcase's classname for a file. In JavaScript a classname is a file path; in Go it is the package path ("github.com/acme/app") and in pytest a dotted module ("tests.test_auth.TestLogin"), so the report held names but no file, and every real Go or Python test file was called "never discovered by the test runner" - found on the first live Go run (decimal). Now only a classname that looks like a file counts; a report with no file in it means "cannot tell" and the check steps aside, as its own description always said (the later check that every claimed case was really run still decides). Also: a push right after the installation token was minted can be answered "Repository not found" by GitHub although the token works seconds later (a test-change proposal failed that way on two live QuikIT runs in a row). The push now waits and tries again up to three more times (3, 6 and 12 seconds), only for that exact answer; any other failure fails at once as before, and each retry is logged (git.push_retry, git.push_retry_ok). Also in rc.49: everything in rc.48.
|