@rightkit/release 0.6.37 → 0.6.38
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/deterministic-scans.mjs
CHANGED
|
@@ -1775,6 +1775,10 @@ export function defaultSpawnAsync(command, args, options = {}) {
|
|
|
1775
1775
|
/** null when a test summary is evidence of a pass; otherwise { code, detail }. Used for fresh and cached test rows alike. */
|
|
1776
1776
|
export function testResultsProblem(results) {
|
|
1777
1777
|
if (!results) return { code: "NO_TEST_SUMMARY", detail: "no test counts recorded" };
|
|
1778
|
+
// End-to-end tests only (Adrian, 2026-11-03: "End to end tests ONLY any unit tests need strict approval along with evidence and
|
|
1779
|
+
// reason"): a Rust crate whose test build runs no test is a pass, recorded with its zero counts. A test that failed still fails, and a
|
|
1780
|
+
// run whose tests were all skipped or ignored still proves nothing (ALL_SKIPPED below). node:test and vitest rows are unchanged.
|
|
1781
|
+
if (results.runner === "libtest" && !(results.tests > 0) && !(results.fail > 0)) return null;
|
|
1778
1782
|
if (!(results.tests > 0)) return { code: "NO_TESTS", detail: "the test scan executed no test" };
|
|
1779
1783
|
if (results.fail > 0) return { code: "SUMMARY_FAILED", detail: `the test runner exited 0 but its summary reports ${results.fail} failed test(s)` };
|
|
1780
1784
|
// A suite that ran tests but passed none of them (every test skipped or todo) proves nothing (D17, rightkit#1236).
|
|
@@ -3045,8 +3049,10 @@ export async function runScans(plan, options = {}) {
|
|
|
3045
3049
|
if (listingCut) fail("TEST_LISTING", `${s.id}: the compile listing was cut at the kept output tail, so the test executables cannot be enumerated`);
|
|
3046
3050
|
else if (listing.buildFinished !== true) fail("TEST_LISTING", `${s.id}: the compile exited 0 but its listing has no successful build-finished record (${listing.buildFinished === false ? "a build-finished record said failure" : "none found"})`);
|
|
3047
3051
|
else if (listing.binaries.length === 0) {
|
|
3048
|
-
//
|
|
3049
|
-
|
|
3052
|
+
// End-to-end tests only (Adrian, 2026-11-03): a crate whose test build lists no test executable has no test to run; the row passes
|
|
3053
|
+
// with zero libtest counts, the same as a test build that runs none (testResultsProblem).
|
|
3054
|
+
row.results = { runner: "libtest", tests: 0, pass: 0, fail: 0, skipped: 0, todo: 0, binaries: 0 };
|
|
3055
|
+
detail = `${s.id}: no test executable (${listing.artifacts} artifact record(s)); end-to-end tests only, nothing to run`;
|
|
3050
3056
|
} else {
|
|
3051
3057
|
let boundDirs; let generationRoots = null;
|
|
3052
3058
|
if (viaSnapshotBroker) { boundDirs = row.snapshotEvidence?.outputDir ? [row.snapshotEvidence.outputDir] : []; generationRoots = deps.snapshotBroker.outputRoots ?? []; }
|
package/package.json
CHANGED
package/rightkit-versions.json
CHANGED
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@rightkit/qa": "0.6.2",
|
|
50
50
|
"@rightkit/qa-chrome": "0.1.12",
|
|
51
51
|
"@rightkit/react-shell": "0.7.2",
|
|
52
|
-
"@rightkit/release": "0.6.
|
|
52
|
+
"@rightkit/release": "0.6.38",
|
|
53
53
|
"@rightkit/settings-ui": "0.7.0",
|
|
54
54
|
"@rightkit/social-ui": "0.1.0",
|
|
55
55
|
"@rightkit/system-ui": "0.1.0",
|