wicked-core-ts 0.15.7 → 0.15.9
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/index.d.ts +119 -0
- package/package.json +6 -6
package/index.d.ts
CHANGED
|
@@ -1230,6 +1230,13 @@ export declare class Subscription {
|
|
|
1230
1230
|
* previousOutcome, outcome, passed} — an operator retry (a plain approve at an escalated unit's
|
|
1231
1231
|
* gate) re-ran the unit's failed floor once on the SAME tree its last floor judged; it follows the
|
|
1232
1232
|
* fresh repoChecksEvaluated, `reason` is `'operator retry'`.
|
|
1233
|
+
* DES-FLOOR-V2 (additive; see {@link RepoChecksEvaluatedEventJson}): every repoChecksEvaluated
|
|
1234
|
+
* `checks[]` entry carries `decision` — the floor's machine-readable outcome (`pass` |
|
|
1235
|
+
* `pass_excluded` | `new_failure` | `base_red_unseparated` | `flaky_twice` | `timed_out` |
|
|
1236
|
+
* `could_not_run`), decided by exit codes and the base's own inventory, never by head text;
|
|
1237
|
+
* `classification` gains `'base_red_unseparated'` (denies) and no longer produces
|
|
1238
|
+
* `'env_cannot_run'` / `'unclassified_red_base'`; `envCannotRun` is always `[]`; libtest ids
|
|
1239
|
+
* lose their `[<target>]` qualifier and `preExisting` holds the runner-native names excluded.
|
|
1233
1240
|
* Judge re-run (additive, new event): `judgeRerunRequested` {session, ord, attempt, fromAttempt,
|
|
1234
1241
|
* seats, previousReason, by} — the operator answered a `judge_unavailable` gate with action
|
|
1235
1242
|
* `rejudge`: attempt `attempt` re-reads attempt `fromAttempt`'s captured output with a judge drawn
|
|
@@ -1342,4 +1349,116 @@ export interface RecordedEventJson extends CoreEventJson {
|
|
|
1342
1349
|
/** Present, and `true`, only on the first entry a restarted engine recorded for this run. */
|
|
1343
1350
|
daemonRestarted?: true
|
|
1344
1351
|
}
|
|
1352
|
+
|
|
1353
|
+
/**
|
|
1354
|
+
* The `repoChecksEvaluated` event — the engine ran the repository's own checks for a unit — as
|
|
1355
|
+
* delivered to the {@link Core.subscribe} callback once `type === 'repoChecksEvaluated'`. Only the
|
|
1356
|
+
* fields a consumer keys on are typed here; the rest of the frame is documented on
|
|
1357
|
+
* {@link CoreEventJson}. Pinned against wicked-core's `event_to_json` by the binding's own tests.
|
|
1358
|
+
*/
|
|
1359
|
+
export interface RepoChecksEvaluatedEventJson extends CoreEventJson {
|
|
1360
|
+
type: 'repoChecksEvaluated'
|
|
1361
|
+
session: string
|
|
1362
|
+
ord: number
|
|
1363
|
+
attempt: number
|
|
1364
|
+
/** `false` ⇒ the unit is denied. */
|
|
1365
|
+
passed: boolean
|
|
1366
|
+
outcome: 'passed' | 'failed' | 'timed_out' | 'not_run'
|
|
1367
|
+
floor: 'creator' | 'verify'
|
|
1368
|
+
checks: RepoCheckRunJson[]
|
|
1369
|
+
skipped: string[]
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
/** One check the floor ran ({@link RepoChecksEvaluatedEventJson.checks}). */
|
|
1373
|
+
export interface RepoCheckRunJson {
|
|
1374
|
+
name: string
|
|
1375
|
+
argv: string[]
|
|
1376
|
+
source: string
|
|
1377
|
+
exitCode: number | null
|
|
1378
|
+
timedOut: boolean
|
|
1379
|
+
spawnError: string | null
|
|
1380
|
+
durationMs: number
|
|
1381
|
+
/** The effective bound in seconds (base × host-load factor) and how it was derived. */
|
|
1382
|
+
boundS: number
|
|
1383
|
+
boundNote: string | null
|
|
1384
|
+
/** The same check on the run base, when the floor ran (or cached) it. */
|
|
1385
|
+
base: { head: string; cached: boolean; run: RepoCheckRunJson | null; error: string | null } | null
|
|
1386
|
+
/** How this run itself ended — NOT the floor's decision (see `decision`). */
|
|
1387
|
+
outcome: 'passed' | 'failed' | 'timed_out' | 'could_not_run'
|
|
1388
|
+
/** The compatible token of `decision` for older readers (`'pre_existing_in_sandbox'` and
|
|
1389
|
+
* `'flaky_under_load'` do not deny). */
|
|
1390
|
+
classification: string | null
|
|
1391
|
+
/** The 4 KB display tails; the whole streams are behind `decision.logRefs`. */
|
|
1392
|
+
stdoutTail: string
|
|
1393
|
+
stderrTail: string
|
|
1394
|
+
/** The runner-native names the head's excluded run deselected. */
|
|
1395
|
+
preExisting: string[]
|
|
1396
|
+
/** Head failure ids — an annotation; never what decided. */
|
|
1397
|
+
failureIds: string[]
|
|
1398
|
+
regressions: string[]
|
|
1399
|
+
/** DEPRECATED: always `[]`. */
|
|
1400
|
+
envCannotRun: string[]
|
|
1401
|
+
/** The further runs: the excluded run, then the identical retry. */
|
|
1402
|
+
reruns: RepoCheckRunJson[]
|
|
1403
|
+
/** The floor's decision; `null` on a nested run (a re-run, a base run). */
|
|
1404
|
+
decision: FloorCheckDecisionJson | null
|
|
1405
|
+
}
|
|
1406
|
+
|
|
1407
|
+
/**
|
|
1408
|
+
* (DES-FLOOR-V2) The floor's machine-readable decision on one check. Trusted inputs only: the base
|
|
1409
|
+
* tree, the base's own inventory (its TOC) and the exit codes of the processes the floor launched.
|
|
1410
|
+
* Only `pass` and `pass_excluded` pass.
|
|
1411
|
+
*/
|
|
1412
|
+
export interface FloorCheckDecisionJson {
|
|
1413
|
+
outcome:
|
|
1414
|
+
| 'pass'
|
|
1415
|
+
| 'pass_excluded'
|
|
1416
|
+
| 'new_failure'
|
|
1417
|
+
| 'base_red_unseparated'
|
|
1418
|
+
| 'flaky_twice'
|
|
1419
|
+
| 'timed_out'
|
|
1420
|
+
| 'could_not_run'
|
|
1421
|
+
/** The base commit compared against, when the base ran or was read from the run's cache. */
|
|
1422
|
+
baseSha: string | null
|
|
1423
|
+
/** The base's failing tests its own inventory lists verbatim. */
|
|
1424
|
+
baseFailing: string[]
|
|
1425
|
+
/** The names actually deselected on the head's excluded run. */
|
|
1426
|
+
excluded: string[]
|
|
1427
|
+
/** Every stream of every process the decision ran, by hash. */
|
|
1428
|
+
logRefs: FloorLogRefJson[]
|
|
1429
|
+
/** The deciding run failed on an oversubscribed host and passed its identical retry. */
|
|
1430
|
+
flaky: boolean
|
|
1431
|
+
/** In words: what was excluded, why a base red could not be separated. */
|
|
1432
|
+
reason: string | null
|
|
1433
|
+
/** (DES-BUILD-GUIDE) The base's build guide for this check; `null` on a record from before it. */
|
|
1434
|
+
guide: FloorGuideStatusJson | null
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
/** (DES-BUILD-GUIDE) The base tree's `.wicked/build-guide.json` for one check: whether it has a check
|
|
1438
|
+
* with this argv and cwd, whether its pieces may be relied on for this head, and why not. */
|
|
1439
|
+
export interface FloorGuideStatusJson {
|
|
1440
|
+
present: boolean
|
|
1441
|
+
usable: boolean
|
|
1442
|
+
reason: string | null
|
|
1443
|
+
}
|
|
1444
|
+
|
|
1445
|
+
/** One stored stream ({@link FloorCheckDecisionJson.logRefs}): its blob is named by its sha256 in the
|
|
1446
|
+
* run's log store, so any range of it verifies against this hash. */
|
|
1447
|
+
export interface FloorLogRefJson {
|
|
1448
|
+
attempt:
|
|
1449
|
+
| 'head'
|
|
1450
|
+
| 'base'
|
|
1451
|
+
| 'toc-base'
|
|
1452
|
+
| 'toc-head'
|
|
1453
|
+
| 'toc-excluded'
|
|
1454
|
+
| 'alone-base'
|
|
1455
|
+
| 'excluded'
|
|
1456
|
+
| 'retry'
|
|
1457
|
+
| 'results'
|
|
1458
|
+
stream: 'stdout' | 'stderr' | 'file'
|
|
1459
|
+
sha256: string
|
|
1460
|
+
bytes: number
|
|
1461
|
+
/** The process wrote past the per-stream cap, or held its pipe open: the blob is a prefix. */
|
|
1462
|
+
truncated: boolean
|
|
1463
|
+
}
|
|
1345
1464
|
// ─── end hand-authored ───
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wicked-core-ts",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.9",
|
|
4
4
|
"description": "Node/TypeScript bindings (napi-rs) for wicked-core: drive the in-process orchestration engine from JS/TS.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"typecheck": "tsc --noEmit -p types-test/tsconfig.json"
|
|
44
44
|
},
|
|
45
45
|
"optionalDependencies": {
|
|
46
|
-
"wicked-core-ts-darwin-arm64": "0.15.
|
|
47
|
-
"wicked-core-ts-darwin-x64": "0.15.
|
|
48
|
-
"wicked-core-ts-linux-arm64-gnu": "0.15.
|
|
49
|
-
"wicked-core-ts-linux-x64-gnu": "0.15.
|
|
50
|
-
"wicked-core-ts-win32-x64-msvc": "0.15.
|
|
46
|
+
"wicked-core-ts-darwin-arm64": "0.15.9",
|
|
47
|
+
"wicked-core-ts-darwin-x64": "0.15.9",
|
|
48
|
+
"wicked-core-ts-linux-arm64-gnu": "0.15.9",
|
|
49
|
+
"wicked-core-ts-linux-x64-gnu": "0.15.9",
|
|
50
|
+
"wicked-core-ts-win32-x64-msvc": "0.15.9"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@napi-rs/cli": "^2.18.4",
|