@quikit/quikpilot-runner 9.3.0-rc.26 → 9.3.0-rc.27
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 +8 -5
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -150,6 +150,8 @@ it, the callback carries it as `unsuppliedInputs` (at most 10 functions, 5 names
|
|
|
150
150
|
noticed" as a check. This is the shape of a change whose new tests pass only because they hand the function the field themselves. It can be
|
|
151
151
|
wrong (a field that arrives from a database row or a request), so it only warns and never blocks. TypeScript is not covered (QUIKTR-1547).
|
|
152
152
|
|
|
153
|
+
**9.3.0-rc.27 — "no test shows the bug" asks every case (QUIKTR-1608, live runs QUIKSPL-241 and QUIKSPL-246).** rc.26's rule counted only the cases held to the red check (those not labelled Regression). On gemini-3.8-flash the spec labelled two bugs' cases so that the only case held was one that must keep working, while tests of other cases did fail on the old code; both runs failed twice for nothing. Whether any test shows the bug is now asked of every case of the run, whatever its label; the "None of your tests fails" send-back is used only when that is true too. Runner only.
|
|
154
|
+
|
|
153
155
|
**9.3.0-rc.26 — no pull request from tests that prove nothing, and no import of a name that does not exist (QUIKTR-1608, live runs QUIKSPL-220 and QUIKSPL-226).** On rc.24 and rc.25 two pull requests (#118, #123) went out with every test green and the bug not fixed: none of the AI's tests had failed on the code before the change, so they tested nothing. #123 also imported `scaleShares` from `./splits.js`, which does not export it: plain Node cannot load that module, but vitest gives the name as `undefined`. (1) In phase `tests`, when none of the tests for the cases held to the red check has been seen failing on the code before any change, the one send-back says so ("None of your tests fails on the code before any change ... At least one case describes the bug"), and if the next DONE is the same the attempt fails `no_test_shows_bug` (log `codegen.red_check` `no_test_shows_bug`); the second attempt writes the tests again, and if it ends the same way no pull request is opened. A phase 1 whose tests were never run on the change as it stands ends the same way. (2) At DONE outside phase `tests` (the code phase, a fix, the review fix), the runner parses each changed JavaScript file (`importCheck.ts`) and names any name imported, or re-exported, from a module of the repository that the module does not export. The first time the DONE is sent back naming the file and the name (log `codegen.import_check`); after that the attempt ends `syntax_error`. ES modules only, relative imports only, and nothing is reported when it cannot be told for sure (`export *` from elsewhere, a destructured export, CommonJS, a module that cannot be found). Phase `tests` is not checked: a test may import what phase 2 is to write. Runner only.
|
|
154
156
|
|
|
155
157
|
**9.3.0-rc.25 — a corrected test must still show the bug (QUIKTR-1608, live run QUIKSPL-220).** On rc.24 the code phase of Bug 4 could not fix the bug and gave up with exactly one frozen test failing: the one test that proved the bug. The one correction, kept to that test's expected value as rc.24 requires, made it expect what the old code returns, so every test passed and PR #118 fixed nothing. After the correction the runner now runs the tests twice on the code before any change, once with the test as phase 1 froze it and once corrected (its own check, outside the AI's allowances; log `codegen.amend_old_code`). A test that failed there before its correction and passes after it no longer shows the bug: the run fails `test_case_disagree` and no pull request is opened. A test that passed on the old code by design is not held to it, and when either run gives no answer the correction stands. Runner only.
|
package/dist/index.js
CHANGED
|
@@ -14416,6 +14416,10 @@ async function runCodegenLoop(args, deps) {
|
|
|
14416
14416
|
const now2 = versionOfFiles(filesOnDisk());
|
|
14417
14417
|
return redRuns.filter((r) => r.version === now2);
|
|
14418
14418
|
};
|
|
14419
|
+
const anyOwnTestFails = () => {
|
|
14420
|
+
const runs = currentRedRuns();
|
|
14421
|
+
return args.requiredAutomationIds.some((id) => runs.some((r) => r.failing.some((name) => name.includes(`[${id}]`))));
|
|
14422
|
+
};
|
|
14419
14423
|
const redProblem = () => {
|
|
14420
14424
|
const ids = args.redCheckIds ?? [];
|
|
14421
14425
|
if (ids.length === 0) return null;
|
|
@@ -14432,7 +14436,7 @@ async function runCodegenLoop(args, deps) {
|
|
|
14432
14436
|
if (passing.length > 0) {
|
|
14433
14437
|
const one = passing.length === 1;
|
|
14434
14438
|
const named = passing.slice(0, 4).map((id) => `[${id}]`).join(", ");
|
|
14435
|
-
const sentence = passing.length + unrun.length === ids.length ? `None of your tests fails on the code before any change (${named} ${one ? "passes" : "pass"}), so none shows the bug. At least one case describes the bug: make its test fail for the reason the case gives.` : `${named} ${one ? "passes" : "pass"} on the code before any change. A case that shows the bug: make its test fail for the reason the case gives. A case that must keep working: leave its test as it is and answer DONE again.`;
|
|
14439
|
+
const sentence = passing.length + unrun.length === ids.length && !anyOwnTestFails() ? `None of your tests fails on the code before any change (${named} ${one ? "passes" : "pass"}), so none shows the bug. At least one case describes the bug: make its test fail for the reason the case gives.` : `${named} ${one ? "passes" : "pass"} on the code before any change. A case that shows the bug: make its test fail for the reason the case gives. A case that must keep working: leave its test as it is and answer DONE again.`;
|
|
14436
14440
|
return { ids: passing, sentence: sentence.slice(0, 300), kind: "passing" };
|
|
14437
14441
|
}
|
|
14438
14442
|
if (unrun.length > 0) {
|
|
@@ -14647,9 +14651,8 @@ async function runCodegenLoop(args, deps) {
|
|
|
14647
14651
|
continue;
|
|
14648
14652
|
}
|
|
14649
14653
|
const ids = args.redCheckIds ?? [];
|
|
14650
|
-
|
|
14651
|
-
|
|
14652
|
-
log({ event: "codegen.red_check", turn, outcome: "no_test_shows_bug", cases: ids.length });
|
|
14654
|
+
if (ids.length > 0 && !anyOwnTestFails()) {
|
|
14655
|
+
log({ event: "codegen.red_check", turn, outcome: "no_test_shows_bug", cases: args.requiredAutomationIds.length });
|
|
14653
14656
|
const said = "None of the tests failed on the code before any change, so none showed the bug.";
|
|
14654
14657
|
throw new CodegenLoopFailure("no_test_shows_bug", void 0, void 0, said, said);
|
|
14655
14658
|
}
|
|
@@ -16832,7 +16835,7 @@ var FAILURE_ARTIFACT_DIR = "quikpilot-failure";
|
|
|
16832
16835
|
var REPORT_COPY = "final-test-report.xml";
|
|
16833
16836
|
var MAX_REPORT_BYTES = 5 * 1024 * 1024;
|
|
16834
16837
|
var MAX_FILES = 200;
|
|
16835
|
-
var RUNNER_VERSION = true ? "9.3.0-rc.
|
|
16838
|
+
var RUNNER_VERSION = true ? "9.3.0-rc.27" : "dev";
|
|
16836
16839
|
function safeDestination(base, repoPath) {
|
|
16837
16840
|
if (!repoPath || (0, import_node_path15.isAbsolute)(repoPath)) return null;
|
|
16838
16841
|
const destination = (0, import_node_path15.resolve)(base, repoPath);
|