@smoothbricks/nx-plugin 0.5.5 → 0.5.7
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 +59 -11
- package/dist/ensure-built-receipt.d.ts +2 -2
- package/dist/ensure-built-receipt.d.ts.map +1 -1
- package/dist/ensure-built-receipt.js +7 -2
- package/dist/ensure-built-witness.d.ts +12 -1
- package/dist/ensure-built-witness.d.ts.map +1 -1
- package/dist/ensure-built-witness.js +32 -0
- package/dist/ensure-built.d.ts +2 -2
- package/dist/ensure-built.d.ts.map +1 -1
- package/dist/ensure-built.js +27 -5
- package/dist/executors/all-verdicts/executor.d.ts +35 -0
- package/dist/executors/all-verdicts/executor.d.ts.map +1 -0
- package/dist/executors/all-verdicts/executor.js +133 -0
- package/dist/executors/all-verdicts/schema.d.ts +10 -0
- package/dist/executors/all-verdicts/schema.d.ts.map +1 -0
- package/dist/executors/all-verdicts/schema.js +2 -0
- package/dist/executors/bounded-exec/executor.d.ts.map +1 -1
- package/dist/executors/bounded-exec/executor.js +48 -11
- package/dist/executors/bounded-exec/progress.d.ts +1 -3
- package/dist/executors/bounded-exec/progress.d.ts.map +1 -1
- package/dist/executors/bounded-exec/progress.js +1 -2
- package/dist/executors/bounded-exec/runner-hook.d.ts +2 -0
- package/dist/executors/bounded-exec/runner-hook.d.ts.map +1 -0
- package/dist/executors/bounded-exec/runner-hook.js +301 -0
- package/dist/executors/bounded-exec/runner-lifecycle.d.ts +18 -0
- package/dist/executors/bounded-exec/runner-lifecycle.d.ts.map +1 -0
- package/dist/executors/bounded-exec/runner-lifecycle.js +92 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -1
- package/dist/producer-receipts.d.ts +24 -1
- package/dist/producer-receipts.d.ts.map +1 -1
- package/dist/producer-receipts.js +91 -60
- package/executors.json +5 -0
- package/managed/raw/git-format-staged.yml +16 -3
- package/managed/raw/patches/nx@23.2.1.patch +397 -33
- package/package.json +2 -2
- package/src/ensure-built-receipt.ts +8 -2
- package/src/ensure-built-witness.ts +29 -1
- package/src/ensure-built.ts +39 -7
- package/src/executors/all-verdicts/executor.test.ts +135 -0
- package/src/executors/all-verdicts/executor.ts +164 -0
- package/src/executors/all-verdicts/schema.json +22 -0
- package/src/executors/all-verdicts/schema.ts +10 -0
- package/src/executors/bounded-exec/cargo-progress-host.test.ts +332 -0
- package/src/executors/bounded-exec/executor.test.ts +89 -42
- package/src/executors/bounded-exec/executor.ts +45 -11
- package/src/executors/bounded-exec/progress.test.ts +1 -14
- package/src/executors/bounded-exec/progress.ts +2 -5
- package/src/executors/bounded-exec/runner-hook.test.ts +193 -0
- package/src/executors/bounded-exec/runner-hook.ts +292 -0
- package/src/executors/bounded-exec/runner-lifecycle.test.ts +82 -0
- package/src/executors/bounded-exec/runner-lifecycle.ts +102 -0
- package/src/index.test.ts +7 -5
- package/src/index.ts +4 -1
- package/src/nx-daemon-start-never.test.ts +137 -0
- package/src/producer-receipts.test.ts +99 -0
- package/src/producer-receipts.ts +111 -58
- package/test-timings.json +101 -96
package/README.md
CHANGED
|
@@ -54,6 +54,15 @@ JavaScript/TypeScript sources or changing the declared test program updates lint
|
|
|
54
54
|
`@smoothbricks/nx-plugin/eslint-file-set` owns its type and generated validator; an inspector can resolve each file's
|
|
55
55
|
actual ESLint parser program instead of guessing from the project or target name.
|
|
56
56
|
|
|
57
|
+
The `lint` target runs its commands with this plugin's `all-verdicts` executor, not Nx's `run-commands`, which in
|
|
58
|
+
parallel terminates the other commands once one fails and serially never starts the ones after a failure: one tool's
|
|
59
|
+
errors would hide another's until a later run. `all-verdicts` starts every command at once, and none ends another. Each
|
|
60
|
+
command's output prints as one block when it closes, then every command's verdict: `PASS`, `FAIL (exit n)`, or
|
|
61
|
+
`UNJUDGED` with its cause when a signal ended it, it never started, or the run itself was signalled. A signal to the run
|
|
62
|
+
ends each command's process group, and the run then ends by the same signal. The target passes only when every command
|
|
63
|
+
passed; an empty command list is refused, since it could never fail. The options keep `commands` and `cwd`, so each
|
|
64
|
+
tool's command, the inputs that key it and `metadata.eslintFileSet` are what they were.
|
|
65
|
+
|
|
57
66
|
Lint inputs include dependency production inputs because type-aware ESLint reads dependencies' declarations. This uses
|
|
58
67
|
`^production` unless the workspace opts into the versionless production input described below. Keep
|
|
59
68
|
`targetDefaults.lint` limited to shared cache policy or additive inputs such as `["...", "^production"]`. Smoo's
|
|
@@ -1010,6 +1019,23 @@ npm nodes of its project's dependency closure) are Nx's lockfile identities: the
|
|
|
1010
1019
|
`bun.lock` bind them, and no installed closure is resolved for them, since under Bun's isolated linker most of them do
|
|
1011
1020
|
not resolve from the task's project.
|
|
1012
1021
|
|
|
1022
|
+
The pre-task hook stats every node of that installed closure on every run, and that is what lets it skip reading bytes.
|
|
1023
|
+
The census is a function of the nodes' stamps (device, inode, mode, size, and mtime and ctime in nanoseconds), not of
|
|
1024
|
+
the moment it runs: the hook records the census it took in Nx's workspace-data (`producer-installation-census.json`, a
|
|
1025
|
+
hash source, never a proof), and the next run takes the hash of every file whose stamp has not moved and that the record
|
|
1026
|
+
did not read in the tick it changed in. An unchanged closure reads no file bytes; a developer-linked package whose
|
|
1027
|
+
`dist` a rebuild rewrites in place, with no lockfile or `node_modules` change, moves those files' ctimes and they are
|
|
1028
|
+
read again. No cheaper generation (a lockfile, a manifest, an install marker) keys it, since such a rebuild moves none
|
|
1029
|
+
of those. The tool's nodes take the hash the census read instead of reading each file a second time: a write landing
|
|
1030
|
+
between two reads could make them disagree. Nor does the census take a stat pass of its own to prove itself: the tool's
|
|
1031
|
+
nodes stat each of its nodes again, a file whose stamp moved since the census read it is read again, and the capture's
|
|
1032
|
+
stability check refuses a tool node that moves before publication. For a consumer that links this plugin from a checkout
|
|
1033
|
+
(about 28,000 closure nodes) the hook took 9-17 s of synchronous I/O on the plugin worker before, with every file read
|
|
1034
|
+
twice, and 6-9 s after, almost all of it stats; on a host whose disk-image layer is saturated the reads ran for minutes,
|
|
1035
|
+
while the worker's event loop could neither answer Nx nor reap its exited children. The hook's phases are performance
|
|
1036
|
+
measures (`producerReceipts:graph`, `producerReceipts:source`, `producerReceipts:tools`, `producerReceipts:census`),
|
|
1037
|
+
which Nx reports under `NX_PERF_LOGGING=true`.
|
|
1038
|
+
|
|
1013
1039
|
Validity compares the committed tree, not the current HEAD spelling. An empty commit with an identical tree keeps the
|
|
1014
1040
|
receipt valid and its original basis SHA unchanged; the consumer never rewrites that provenance. A genuinely changed
|
|
1015
1041
|
tree invalidates the receipt. Multi-target consumers require one tree and retain each producer's actual basis.
|
|
@@ -1363,13 +1389,31 @@ waits for the event it is waiting for, however long a loaded host makes the work
|
|
|
1363
1389
|
the run through `idleTimeoutMs`. `timeoutMs`, an absolute ceiling, is for commands that report no tests; a target names
|
|
1364
1390
|
at least one of the two.
|
|
1365
1391
|
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
that
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1392
|
+
On POSIX hosts, direct Go and Cargo test commands (including chains joined by `&&`, `||`, or `;`) share one private
|
|
1393
|
+
runner lifecycle: `build`, `active`, and `terminal`. A per-command Node supervisor reports phases over an acknowledged
|
|
1394
|
+
descriptor that its actual tool child and nested fixtures do not inherit. Shell/supervisor startup is bounded; the tool
|
|
1395
|
+
starts only after its build phase is accepted, and native lifecycle-bearing stdout is forwarded only after its phase
|
|
1396
|
+
owns the clock. A malformed or prematurely closed lifecycle channel fails the run rather than silently disabling the
|
|
1397
|
+
watchdog.
|
|
1398
|
+
|
|
1399
|
+
| Runner | Authoritative end of build | End of active execution |
|
|
1400
|
+
| --------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
|
|
1401
|
+
| Go (`go test -json`) | Native package `Action:start`, after that package's build dependencies | Native package `pass`, `fail`, or `skip`; the clock runs while any package executes |
|
|
1402
|
+
| Cargo (`cargo test --message-format=json-render-diagnostics`) | Native `build-finished`, after `compile_tests` and before `run_unit_tests` | The owned Cargo child's close **and drained output**, never a libtest summary; custom harnesses, doctests, and teardown remain bounded |
|
|
1403
|
+
| Bun | No separate authoritative build event; active from command spawn | Command exit |
|
|
1404
|
+
| Unknown shell wrappers, mixed unsupported commands, and nextest | No inferred build exemption; active from command spawn | Command exit |
|
|
1405
|
+
|
|
1406
|
+
The unchanged 180 s interval re-arms on finished tests/packages. Initial Go linking, inter-package Go compilation, and
|
|
1407
|
+
initial or inter-command Cargo compilation spend no test idle budget. **Compiler-process activity is deliberately not a
|
|
1408
|
+
signal:** Go linking and Rust compilation before execution are build work; Bun's cold-compiler fixture (and a Rust test
|
|
1409
|
+
compiling a fixture) is active-test work and must still expire. Build output and heartbeats never reset the bound. Cargo
|
|
1410
|
+
uses its native build declaration without replacing configured target runners; a nested `test result` or
|
|
1411
|
+
`build-finished` line cannot retire the owned process or exempt its teardown. Absolute `timeoutMs`, when supplied, is
|
|
1412
|
+
unchanged.
|
|
1413
|
+
|
|
1414
|
+
Separately building test binaries and then executing them under the unchanged bound is a **workaround** for callers
|
|
1415
|
+
without a native lifecycle hook, not evidence that their combined cold-build command is safe. Direct Go/Cargo commands
|
|
1416
|
+
use the lifecycle channel instead; unknown wrappers retain conservative spawn accounting.
|
|
1373
1417
|
|
|
1374
1418
|
Process-group timeout fixtures retain cleanup authority only until the command leader exits and every descendant closes
|
|
1375
1419
|
its inherited lifetime FIFO. EOF is the terminal ownership event; a later `afterEach` must not signal the retired PGID
|
|
@@ -1387,6 +1431,10 @@ The final-five-second pre-signal snapshot attributes the runner's process tree a
|
|
|
1387
1431
|
incomplete/raced results and no delay to termination. Its timing, visibility and evidence contract is defined in
|
|
1388
1432
|
`specs/cowshed/08_testing.md`, "Integration tests (real substrate)".
|
|
1389
1433
|
|
|
1434
|
+
The snapshot-reset regression orders capture, test completion, and expiry through IPC, not heartbeat cadence. It
|
|
1435
|
+
deliberately holds the first capture's progress publication while another heartbeat arrives; only the observed PASS
|
|
1436
|
+
advances the next capture interval. Its 10 s virtual idle bound remains unchanged.
|
|
1437
|
+
|
|
1390
1438
|
On a macOS host, every `bounded-exec` task runs with its own `TMPDIR` lease: a directory on one RAM-backed APFS volume
|
|
1391
1439
|
per user, so test temp files never reach the SSD. The volume is created lazily by the first task that needs it and
|
|
1392
1440
|
detached when the last live lease ends, since its pages return only on detach. It is a legacy DiskImages RAM disk, so it
|
|
@@ -1596,10 +1644,10 @@ task id and the hash it ran at:
|
|
|
1596
1644
|
`type="test abort"`, `process aborted with signal 15 (SIGTERM)` (SIGKILL once the force-kill follows); they are the
|
|
1597
1645
|
bound's casualties and do not make the run `failed`. A test that dies of any other signal, or that is aborted with no
|
|
1598
1646
|
bound to explain it, does.
|
|
1599
|
-
- `wedged`: `idleTimeoutMs` fired: no test finished
|
|
1600
|
-
|
|
1601
|
-
`SLOW`, libtest's `has been running for over`) and never
|
|
1602
|
-
when the bound stopped it.
|
|
1647
|
+
- `wedged`: `idleTimeoutMs` fired: no test finished during that much active test time. This proves the completion
|
|
1648
|
+
interval was exceeded, not that every process stopped: an oversized fixture can exceed it too. Its `tests` name those
|
|
1649
|
+
the runner reported running (nextest's `SLOW`, libtest's `has been running for over`) and never finished, and those
|
|
1650
|
+
the JUnit report says it aborted when the bound stopped it.
|
|
1603
1651
|
- `no-space`: the command failed after its output said a write found no space (`ENOSPC` or `No space left on device`).
|
|
1604
1652
|
Its tests failed on the disk, not on their own, whatever bound or hang followed: it records that line and, when the
|
|
1605
1653
|
task held a RAM lease, the lease, the volume and its free bytes when the line arrived. A passing run that printed such
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Task } from 'nx/src/config/task-graph';
|
|
2
2
|
import type { expandOutputs, HashInputs } from 'nx/src/native';
|
|
3
3
|
import type { EnsureBuiltOutputReceipt, EnsureBuiltProbeFailure, EnsureBuiltProducerFileInput, EnsureBuiltProducerReceipt, EnsureBuiltReceipt } from './ensure-built.js';
|
|
4
|
-
import { type NodeWitness } from './ensure-built-witness.js';
|
|
4
|
+
import { type NodeWitness, type StampFields } from './ensure-built-witness.js';
|
|
5
5
|
export type ReceiptEvidence<T> = {
|
|
6
6
|
readonly ok: true;
|
|
7
7
|
readonly value: T;
|
|
@@ -44,7 +44,7 @@ export declare function dirtyProviderPaths(status: string): string[];
|
|
|
44
44
|
export declare function receiptNode(path: string, name: string, census?: {
|
|
45
45
|
readonly start: bigint;
|
|
46
46
|
readonly observed: NodeWitness[];
|
|
47
|
-
}): EnsureBuiltOutputReceipt;
|
|
47
|
+
}, recorded?: (path: string, stats: StampFields) => string | undefined): EnsureBuiltOutputReceipt;
|
|
48
48
|
/** Capture every tracked source byte at pre. Unrelated untracked files are not source basis. */
|
|
49
49
|
export declare function captureProducerSource(root: string, outputs: readonly string[]): ReceiptEvidence<ProducerSourceWitness>;
|
|
50
50
|
export declare function producerSourceUnchanged(root: string, before: ProducerSourceWitness): ReceiptEvidence<true>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ensure-built-receipt.d.ts","sourceRoot":"","sources":["../src/ensure-built-receipt.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE/D,OAAO,KAAK,EACV,wBAAwB,EACxB,uBAAuB,EACvB,4BAA4B,EAC5B,0BAA0B,EAC1B,kBAAkB,EACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAA2B,KAAK,WAAW,EAAiB,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"ensure-built-receipt.d.ts","sourceRoot":"","sources":["../src/ensure-built-receipt.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE/D,OAAO,KAAK,EACV,wBAAwB,EACxB,uBAAuB,EACvB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M,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,EAC5C,WAAW,EAAE,SAAS,MAAM,EAAE,EAC9B,KAAK,EAAE,SAAS,MAAM,EAAE,EACxB,kBAAkB,EAAE,OAAO,GAC1B,kBAAkB,CAAC,eAAe,CAAC,CAqBrC"}
|
|
@@ -112,12 +112,17 @@ function sourceFileDigests(path, size, algorithm) {
|
|
|
112
112
|
* One independently read node; absolute paths also serve tool/package closures. A census records the node's stamp as
|
|
113
113
|
* of its `start` (recordedStamp); a re-read against a record records none.
|
|
114
114
|
*/
|
|
115
|
-
export function receiptNode(path, name, census) {
|
|
115
|
+
export function receiptNode(path, name, census, recorded) {
|
|
116
116
|
const stats = lstatSync(path, { bigint: true });
|
|
117
117
|
census?.observed.push({ path, stamp: recordedStamp(stats, census.start) });
|
|
118
118
|
const mode = Number(stats.mode & 4095n);
|
|
119
119
|
if (stats.isFile())
|
|
120
|
-
return {
|
|
120
|
+
return {
|
|
121
|
+
path: name,
|
|
122
|
+
type: 'file',
|
|
123
|
+
mode,
|
|
124
|
+
sha256: recorded?.(path, stats) ?? hashFile(path, Number(stats.size), ['sha256'], false)[0],
|
|
125
|
+
};
|
|
121
126
|
if (stats.isSymbolicLink())
|
|
122
127
|
return { path: name, type: 'symlink', mode, linkText: readlinkSync(path) };
|
|
123
128
|
if (stats.isDirectory()) {
|
|
@@ -63,7 +63,7 @@ export interface GraphWitness {
|
|
|
63
63
|
}
|
|
64
64
|
/** An absent, unreadable or malformed optional witness never authorizes reuse. */
|
|
65
65
|
export declare function readGraphWitness(path: string): GraphWitness | null;
|
|
66
|
-
export declare function writeWitness(path: string, value: GraphWitness | ArtifactWitness): void;
|
|
66
|
+
export declare function writeWitness(path: string, value: GraphWitness | ArtifactWitness | GraphInstallationCensus): void;
|
|
67
67
|
/** Capture exact node identity and rehash new/replaced/rewritten nodes.
|
|
68
68
|
* Nx's Unix archive uses whole-second mtimes, so allFileData alone cannot
|
|
69
69
|
* prove an immediate same-second rewrite. An unbound archive hash is never
|
|
@@ -113,6 +113,17 @@ export declare function installationIdentityOf({ resolutions, nodes, files }: Gr
|
|
|
113
113
|
* one that does not parse: a hash source for {@link graphInstallationCensus}, never a proof.
|
|
114
114
|
*/
|
|
115
115
|
export declare function recordedInstallationCensus(identity: string, unproven: readonly string[]): GraphInstallationCensus | undefined;
|
|
116
|
+
/** The census a caller recorded at `path`, `unproven` included: a hash source for {@link graphInstallationCensus}, never a
|
|
117
|
+
* proof. An absent, unreadable or malformed record is no hash source, and the next census reads every file.
|
|
118
|
+
*/
|
|
119
|
+
export declare function readInstallationCensus(path: string): GraphInstallationCensus | undefined;
|
|
120
|
+
/**
|
|
121
|
+
* The hash `census` read of the file at `path`, while `stats` is the stamp it read the file at and it did not read the
|
|
122
|
+
* file in the tick it changed in ({@link unproven}); otherwise `undefined`, and the caller reads the bytes. A second
|
|
123
|
+
* reader of a file the census holds takes this instead of reading it again: a write landing between two reads could
|
|
124
|
+
* make them disagree, and a write since the census moves the stamp, so it is read again.
|
|
125
|
+
*/
|
|
126
|
+
export declare function censusFileHashes(census: GraphInstallationCensus): (path: string, stats: StampFields) => string | undefined;
|
|
116
127
|
/**
|
|
117
128
|
* A {@link graphInstallationCensus} that no node moved during: every node is read again after the census, and one
|
|
118
129
|
* whose stamp moved fails it, unless only its ctime moved and its bytes are the ones hashed. `previous` is what the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ensure-built-witness.d.ts","sourceRoot":"","sources":["../src/ensure-built-witness.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAe3C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAChE,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAC/E,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,EAAE,OAAO,qCAAqC,EAC5D,MAAM,EAAE,OAAO,aAAa,EAC5B,WAAW,EAAE,uBAAuB,GAAG,IAAI,EAC3C,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,EACrC,QAAQ,CAAC,EAAE,uBAAuB,GACjC,uBAAuB,GAAG,IAAI,CAoLhC;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC;IACpB,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC,WAAW,GAAG;QAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,EAAE,CAAC;CACxE;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,GAAG,IAAI,CAOxE"}
|
|
@@ -423,6 +423,38 @@ export function recordedInstallationCensus(identity, unproven) {
|
|
|
423
423
|
throw error;
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
|
+
/** The census a caller recorded at `path`, `unproven` included: a hash source for {@link graphInstallationCensus}, never a
|
|
427
|
+
* proof. An absent, unreadable or malformed record is no hash source, and the next census reads every file.
|
|
428
|
+
*/
|
|
429
|
+
export function readInstallationCensus(path) {
|
|
430
|
+
try {
|
|
431
|
+
return (() => {
|
|
432
|
+
const _ip0 = input => "string" === typeof input["path"];
|
|
433
|
+
const _io0 = input => Array.isArray(input.resolutions) && input.resolutions.every(elem => Array.isArray(elem) && (elem.length === 3 && "string" === typeof elem[0] && "string" === typeof elem[1] && (null === elem[2] || "string" === typeof elem[2]))) && (Array.isArray(input.nodes) && input.nodes.every(elem => "object" === typeof elem && null !== elem && _io1(elem))) && (Array.isArray(input.files) && input.files.every(elem => "object" === typeof elem && null !== elem && _io2(elem))) && (Array.isArray(input.unproven) && input.unproven.every(elem => "string" === typeof elem));
|
|
434
|
+
const _io1 = input => _ip0(input) && "string" === typeof input.stamp;
|
|
435
|
+
const _io2 = input => _ip0(input) && "string" === typeof input.sha256;
|
|
436
|
+
const __is = input => "object" === typeof input && null !== input && _io0(input);
|
|
437
|
+
return input => { input = JSON.parse(input); return __is(input) ? input : null; };
|
|
438
|
+
})()(readFileSync(path, 'utf8')) ?? undefined;
|
|
439
|
+
}
|
|
440
|
+
catch (error) {
|
|
441
|
+
if (error instanceof SyntaxError || systemError(error))
|
|
442
|
+
return undefined;
|
|
443
|
+
throw error;
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
/**
|
|
447
|
+
* The hash `census` read of the file at `path`, while `stats` is the stamp it read the file at and it did not read the
|
|
448
|
+
* file in the tick it changed in ({@link unproven}); otherwise `undefined`, and the caller reads the bytes. A second
|
|
449
|
+
* reader of a file the census holds takes this instead of reading it again: a write landing between two reads could
|
|
450
|
+
* make them disagree, and a write since the census moves the stamp, so it is read again.
|
|
451
|
+
*/
|
|
452
|
+
export function censusFileHashes(census) {
|
|
453
|
+
const unprovenFiles = new Set(census.unproven);
|
|
454
|
+
const stamps = new Map(census.nodes.map(({ path, stamp }) => [path, stamp]));
|
|
455
|
+
const hashes = new Map(census.files.map(({ path, sha256 }) => [path, sha256]));
|
|
456
|
+
return (path, stats) => unprovenFiles.has(path) || stamps.get(path) !== nodeStamp(stats) ? undefined : hashes.get(path);
|
|
457
|
+
}
|
|
426
458
|
/**
|
|
427
459
|
* A {@link graphInstallationCensus} that no node moved during: every node is read again after the census, and one
|
|
428
460
|
* whose stamp moved fails it, unless only its ctime moved and its bytes are the ones hashed. `previous` is what the
|
package/dist/ensure-built.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ import type { NxJsonConfiguration } from 'nx/src/config/nx-json';
|
|
|
4
4
|
import type { ProjectGraph, ProjectGraphProjectNode } from 'nx/src/config/project-graph';
|
|
5
5
|
import type { Task, TaskGraph } from 'nx/src/config/task-graph';
|
|
6
6
|
import type * as NxDaemonClient from 'nx/src/daemon/client/client';
|
|
7
|
+
import type * as NxCreateTaskHasher from 'nx/src/hasher/create-task-hasher';
|
|
7
8
|
import type * as NxHashTask from 'nx/src/hasher/hash-task';
|
|
8
|
-
import type * as NxTaskHasher from 'nx/src/hasher/task-hasher';
|
|
9
9
|
import type * as NxNative from 'nx/src/native';
|
|
10
10
|
import type * as NxTransformObjects from 'nx/src/native/transform-objects';
|
|
11
11
|
import type * as NxExecutionHooks from 'nx/src/project-graph/plugins/tasks-execution-hooks';
|
|
@@ -26,7 +26,7 @@ interface NxRuntimeModules {
|
|
|
26
26
|
readonly 'nx/src/config/nx-json': typeof NxConfiguration;
|
|
27
27
|
readonly 'nx/src/daemon/client/client': typeof NxDaemonClient;
|
|
28
28
|
readonly 'nx/src/hasher/hash-task': typeof NxHashTask;
|
|
29
|
-
readonly 'nx/src/hasher/task-hasher': typeof
|
|
29
|
+
readonly 'nx/src/hasher/create-task-hasher': typeof NxCreateTaskHasher;
|
|
30
30
|
readonly 'nx/src/native': typeof NxNative;
|
|
31
31
|
readonly 'nx/src/native/transform-objects': typeof NxTransformObjects;
|
|
32
32
|
readonly 'nx/src/project-graph/utils/find-project-for-path': typeof NxProjectRootMappings;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ensure-built.d.ts","sourceRoot":"","sources":["../src/ensure-built.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAe3C,OAAO,KAAK,KAAK,eAAe,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACzF,OAAO,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,KAAK,cAAc,MAAM,6BAA6B,CAAC;AACnE,OAAO,KAAK,KAAK,UA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AAW,WAAW;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,CAAC;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,gGAAgG;AAChG,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC;CAC7B;AAkJD;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,SAAS,YAAY,EAAE,GAAG,MAAM,GAAG,IAAI,CAwBhF;AA6DD,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,GAAG,IAAI,CAAC;CACxC;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,UAAU,EAClB,IAAI,EAAE,SAAS,EACf,YAAY,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,OAAO,GAAG,IAAI,KAAK,MAAM,GACtD,iBAAiB,CAQnB"}
|
package/dist/ensure-built.js
CHANGED
|
@@ -441,8 +441,28 @@ async function withTaskHooks(workspaceRoot, selector, prepared, operation) {
|
|
|
441
441
|
});
|
|
442
442
|
return result;
|
|
443
443
|
}
|
|
444
|
+
/**
|
|
445
|
+
* `work`, or `withoutDaemon` when the daemon it was using stopped under a client
|
|
446
|
+
* that may never start one (NX_DAEMON_START=never): the patched client's error
|
|
447
|
+
* carries `daemonStartForbidden`, and has already turned the daemon off for
|
|
448
|
+
* this process. The probe then answers as it does without a daemon.
|
|
449
|
+
*/
|
|
450
|
+
async function orNoDaemon(work, withoutDaemon) {
|
|
451
|
+
try {
|
|
452
|
+
return await work();
|
|
453
|
+
}
|
|
454
|
+
catch (error) {
|
|
455
|
+
if (error instanceof Error && 'daemonStartForbidden' in error && error.daemonStartForbidden === true) {
|
|
456
|
+
return withoutDaemon();
|
|
457
|
+
}
|
|
458
|
+
throw error;
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
function noDaemonProbe(selector) {
|
|
462
|
+
return { kind: 'no-daemon', reason: { kind: 'no-daemon', taskId: selectorTaskId(selector) } };
|
|
463
|
+
}
|
|
444
464
|
async function ensureBuiltInWorkspace(workspaceRoot, selector) {
|
|
445
|
-
const prepared = await prepareWorkspaceProbe(workspaceRoot, selector, 'build');
|
|
465
|
+
const prepared = await orNoDaemon(() => prepareWorkspaceProbe(workspaceRoot, selector, 'build'), () => noDaemonProbe(selector));
|
|
446
466
|
if (prepared.kind === 'no-daemon')
|
|
447
467
|
return runViaCli(workspaceRoot, selector, prepared.reason);
|
|
448
468
|
return withTaskHooks(workspaceRoot, selector, prepared, buildPreparedTarget);
|
|
@@ -451,7 +471,7 @@ async function buildPreparedTarget(workspaceRoot, selector, prepared) {
|
|
|
451
471
|
const { nxJson, nxArgs, projectGraph, taskGraph, tasks, requireNx } = prepared;
|
|
452
472
|
performance.mark('ensureBuilt:probe:start');
|
|
453
473
|
const reason = missBeforeProbe(process.env, selectorTaskId(selector)) ??
|
|
454
|
-
(await probe(workspaceRoot, nxJson, nxArgs, projectGraph, taskGraph, tasks, requireNx));
|
|
474
|
+
(await orNoDaemon(() => probe(workspaceRoot, nxJson, nxArgs, projectGraph, taskGraph, tasks, requireNx), () => noDaemonProbe(selector).reason));
|
|
455
475
|
performance.measure('ensureBuilt:probe', 'ensureBuilt:probe:start');
|
|
456
476
|
return reason === null ? HIT : runViaCli(workspaceRoot, selector, reason);
|
|
457
477
|
}
|
|
@@ -463,7 +483,7 @@ async function probeBuiltInWorkspace(workspaceRoot, selector) {
|
|
|
463
483
|
// A failed publication proof asks a serving Nx daemon for the authoritative
|
|
464
484
|
// generation, but never hashes against the consumer environment, starts a
|
|
465
485
|
// provider runner or starts the provider's daemon.
|
|
466
|
-
const prepared = await prepareWorkspaceProbe(workspaceRoot, selector, 'read-only');
|
|
486
|
+
const prepared = await orNoDaemon(() => prepareWorkspaceProbe(workspaceRoot, selector, 'read-only'), () => noDaemonProbe(selector));
|
|
467
487
|
const detail = prepared.kind === 'no-daemon'
|
|
468
488
|
? `${receipt.detail}; authoritative graph unavailable: ${describeMiss(prepared.reason)}`
|
|
469
489
|
: receipt.detail;
|
|
@@ -700,7 +720,7 @@ export function workspaceFileChanges(daemonFiles, diskFiles) {
|
|
|
700
720
|
/** `null` when the target is already built; otherwise the first reason it is not. */
|
|
701
721
|
async function probe(workspaceRoot, nxJson, nxArgs, projectGraph, taskGraph, tasks, requireNx, verifyAllArtifacts = false) {
|
|
702
722
|
const { daemonClient } = requireNx('nx/src/daemon/client/client');
|
|
703
|
-
const {
|
|
723
|
+
const { createTaskHasher } = requireNx('nx/src/hasher/create-task-hasher');
|
|
704
724
|
const { getTaskDetails, hashTasks } = requireNx('nx/src/hasher/hash-task');
|
|
705
725
|
const { getTaskSpecificEnv } = requireNx('nx/src/tasks-runner/task-env');
|
|
706
726
|
const { getCache } = requireNx('nx/src/tasks-runner/cache');
|
|
@@ -712,7 +732,9 @@ async function probe(workspaceRoot, nxJson, nxArgs, projectGraph, taskGraph, tas
|
|
|
712
732
|
// flag would add belong to the cloud runner, and the run path calls Nx's own
|
|
713
733
|
// `getRunner` to obtain them.
|
|
714
734
|
const runnerOptions = getRunnerOptions('default', nxJson, nxArgs, false);
|
|
715
|
-
|
|
735
|
+
// Nx's own composition: the daemon's hasher, which continues in this process
|
|
736
|
+
// if the daemon stops under NX_DAEMON_START=never.
|
|
737
|
+
const hasher = createTaskHasher(projectGraph, nxJson, runnerOptions);
|
|
716
738
|
performance.mark('ensureBuilt:hash:start');
|
|
717
739
|
// Every task, each against its own environment — per-project and per-target
|
|
718
740
|
// `.env` files and custom hashers that read env participate in the hash, so
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { AllVerdictsOptions } from './schema.js';
|
|
2
|
+
/**
|
|
3
|
+
* A command's verdict. Only a command that exited reached one. A command a signal ended, one that never started and
|
|
4
|
+
* one still running when the run itself was signalled are unjudged: never a pass, and never left out of the report.
|
|
5
|
+
*/
|
|
6
|
+
export type Verdict = {
|
|
7
|
+
readonly kind: 'pass';
|
|
8
|
+
} | {
|
|
9
|
+
readonly kind: 'fail';
|
|
10
|
+
readonly code: number;
|
|
11
|
+
} | {
|
|
12
|
+
readonly kind: 'unjudged';
|
|
13
|
+
readonly cause: string;
|
|
14
|
+
};
|
|
15
|
+
export interface CommandVerdict {
|
|
16
|
+
readonly command: string;
|
|
17
|
+
readonly verdict: Verdict;
|
|
18
|
+
}
|
|
19
|
+
/** The verdict of a process that closed with exit `code`, or, when `code` is null, was ended by `signal`. */
|
|
20
|
+
export declare function closedVerdict(code: number | null, signal: NodeJS.Signals | null): Verdict;
|
|
21
|
+
/** Every command's verdict, in the order the target lists the commands, under a count of each verdict. */
|
|
22
|
+
export declare function verdictReport(verdicts: readonly CommandVerdict[]): string;
|
|
23
|
+
/**
|
|
24
|
+
* Starts every command at once and lets each reach its own verdict. Nx's run-commands cannot: in parallel it terminates
|
|
25
|
+
* the other commands once one fails, and serially it never starts the ones after a failure, so one tool's errors hide
|
|
26
|
+
* another's until a later run. Here no command ends another. Each command's output prints as one block when it closes,
|
|
27
|
+
* then every command's verdict. A signal to the run ends every command's process group, reports each command still
|
|
28
|
+
* running UNJUDGED, and ends the run by the same signal. The run succeeds only when every command passed.
|
|
29
|
+
*/
|
|
30
|
+
export default function allVerdictsExecutor(options: AllVerdictsOptions, context: {
|
|
31
|
+
readonly root: string;
|
|
32
|
+
}): Promise<{
|
|
33
|
+
success: boolean;
|
|
34
|
+
}>;
|
|
35
|
+
//# sourceMappingURL=executor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../../src/executors/all-verdicts/executor.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEtD;;;GAGG;AACH,MAAM,MAAM,OAAO,GACf;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GACzB;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAChD;IAAE,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAE1D,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;CAC3B;AAED,6GAA6G;AAC7G,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,OAAO,GAAG,IAAI,GAAG,OAAO,CAIzF;AAoBD,0GAA0G;AAC1G,wBAAgB,aAAa,CAAC,QAAQ,EAAE,SAAS,cAAc,EAAE,GAAG,MAAM,CAQzE;AA6DD;;;;;;GAMG;AACH,wBAA8B,mBAAmB,CAC/C,OAAO,EAAE,kBAAkB,EAC3B,OAAO,EAAE;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GACjC,OAAO,CAAC;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAsC/B"}
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { spawn } from 'node:child_process';
|
|
2
|
+
import { resolve } from 'node:path';
|
|
3
|
+
/** The verdict of a process that closed with exit `code`, or, when `code` is null, was ended by `signal`. */
|
|
4
|
+
export function closedVerdict(code, signal) {
|
|
5
|
+
if (code === 0)
|
|
6
|
+
return { kind: 'pass' };
|
|
7
|
+
if (code !== null)
|
|
8
|
+
return { kind: 'fail', code };
|
|
9
|
+
return { kind: 'unjudged', cause: `${signal ?? 'an unreported signal'} ended it before it gave a verdict` };
|
|
10
|
+
}
|
|
11
|
+
/** How much of a command the verdict list quotes; the command's output block names it whole. */
|
|
12
|
+
const LABEL_LENGTH = 120;
|
|
13
|
+
function label(command) {
|
|
14
|
+
return command.length <= LABEL_LENGTH ? command : `${command.slice(0, LABEL_LENGTH - 1)}…`;
|
|
15
|
+
}
|
|
16
|
+
function tag(verdict) {
|
|
17
|
+
switch (verdict.kind) {
|
|
18
|
+
case 'pass':
|
|
19
|
+
return 'PASS';
|
|
20
|
+
case 'fail':
|
|
21
|
+
return `FAIL (exit ${verdict.code})`;
|
|
22
|
+
case 'unjudged':
|
|
23
|
+
return 'UNJUDGED';
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
/** Every command's verdict, in the order the target lists the commands, under a count of each verdict. */
|
|
27
|
+
export function verdictReport(verdicts) {
|
|
28
|
+
const count = (kind) => verdicts.filter(({ verdict }) => verdict.kind === kind).length;
|
|
29
|
+
const lines = verdicts.map(({ command, verdict }) => {
|
|
30
|
+
const line = ` ${tag(verdict).padEnd(15)} ${label(command)}`;
|
|
31
|
+
return verdict.kind === 'unjudged' ? `${line} (${verdict.cause})` : line;
|
|
32
|
+
});
|
|
33
|
+
const counts = `${count('pass')} passed, ${count('fail')} failed, ${count('unjudged')} unjudged`;
|
|
34
|
+
return `\nall-verdicts: ${counts} of ${verdicts.length}\n${lines.join('\n')}\n`;
|
|
35
|
+
}
|
|
36
|
+
/** On POSIX each command leads a process group of its own, so a signal reaches every process the command started. */
|
|
37
|
+
const OWN_GROUP = process.platform !== 'win32';
|
|
38
|
+
function signalCommand(pid, signal) {
|
|
39
|
+
try {
|
|
40
|
+
process.kill(OWN_GROUP ? -pid : pid, signal);
|
|
41
|
+
}
|
|
42
|
+
catch (error) {
|
|
43
|
+
// ESRCH: every process of the command has already exited.
|
|
44
|
+
if (!(error instanceof Error && 'code' in error && error.code === 'ESRCH'))
|
|
45
|
+
throw error;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
const TERMINATION_SIGNALS = ['SIGINT', 'SIGTERM', 'SIGHUP'];
|
|
49
|
+
/** A command's output as one block, headed by the command the way Nx's run-commands heads it. */
|
|
50
|
+
function block(run) {
|
|
51
|
+
return `\n> ${run.command}\n\n${run.output.join('')}`;
|
|
52
|
+
}
|
|
53
|
+
/** Starts `run`'s command and settles with its verdict once it closes; its output prints as one block then. */
|
|
54
|
+
function judge(run, cwd) {
|
|
55
|
+
return new Promise((settle) => {
|
|
56
|
+
const close = (verdict) => {
|
|
57
|
+
// A run the signal handler already judged keeps that verdict: the run is ending by the signal.
|
|
58
|
+
if (run.verdict !== null)
|
|
59
|
+
return;
|
|
60
|
+
run.verdict = verdict;
|
|
61
|
+
process.stdout.write(block(run));
|
|
62
|
+
settle(verdict);
|
|
63
|
+
};
|
|
64
|
+
let child;
|
|
65
|
+
try {
|
|
66
|
+
child = spawn(run.command, {
|
|
67
|
+
cwd,
|
|
68
|
+
shell: true,
|
|
69
|
+
stdio: ['ignore', 'pipe', 'pipe'],
|
|
70
|
+
detached: OWN_GROUP,
|
|
71
|
+
windowsHide: true,
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
catch (error) {
|
|
75
|
+
close({ kind: 'unjudged', cause: `it never ran: ${error instanceof Error ? error.message : String(error)}` });
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
run.pid = child.pid;
|
|
79
|
+
for (const stream of [child.stdout, child.stderr]) {
|
|
80
|
+
stream.setEncoding('utf8');
|
|
81
|
+
stream.on('data', (text) => run.output.push(text));
|
|
82
|
+
}
|
|
83
|
+
child.once('error', (error) => close({ kind: 'unjudged', cause: `it never ran: ${error.message}` }));
|
|
84
|
+
child.once('close', (code, signal) => close(closedVerdict(code, signal)));
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Starts every command at once and lets each reach its own verdict. Nx's run-commands cannot: in parallel it terminates
|
|
89
|
+
* the other commands once one fails, and serially it never starts the ones after a failure, so one tool's errors hide
|
|
90
|
+
* another's until a later run. Here no command ends another. Each command's output prints as one block when it closes,
|
|
91
|
+
* then every command's verdict. A signal to the run ends every command's process group, reports each command still
|
|
92
|
+
* running UNJUDGED, and ends the run by the same signal. The run succeeds only when every command passed.
|
|
93
|
+
*/
|
|
94
|
+
export default async function allVerdictsExecutor(options, context) {
|
|
95
|
+
if (options.commands.length === 0) {
|
|
96
|
+
process.stderr.write('all-verdicts: no commands: an empty set of checks cannot fail, so it cannot pass\n');
|
|
97
|
+
return { success: false };
|
|
98
|
+
}
|
|
99
|
+
const cwd = resolve(context.root, options.cwd);
|
|
100
|
+
const runs = options.commands.map((command) => ({ command, output: [], pid: undefined, verdict: null }));
|
|
101
|
+
const onExit = () => {
|
|
102
|
+
for (const run of runs) {
|
|
103
|
+
if (run.verdict === null && run.pid !== undefined)
|
|
104
|
+
signalCommand(run.pid, 'SIGTERM');
|
|
105
|
+
}
|
|
106
|
+
};
|
|
107
|
+
const onSignal = (signal) => {
|
|
108
|
+
detach();
|
|
109
|
+
const verdicts = runs.map((run) => {
|
|
110
|
+
if (run.verdict === null) {
|
|
111
|
+
if (run.pid !== undefined)
|
|
112
|
+
signalCommand(run.pid, signal);
|
|
113
|
+
run.verdict = { kind: 'unjudged', cause: `the run received ${signal} before it gave a verdict` };
|
|
114
|
+
process.stdout.write(block(run));
|
|
115
|
+
}
|
|
116
|
+
return { command: run.command, verdict: run.verdict };
|
|
117
|
+
});
|
|
118
|
+
process.stdout.write(verdictReport(verdicts), () => process.kill(process.pid, signal));
|
|
119
|
+
};
|
|
120
|
+
const listeners = TERMINATION_SIGNALS.map((signal) => [signal, () => onSignal(signal)]);
|
|
121
|
+
const detach = () => {
|
|
122
|
+
process.removeListener('exit', onExit);
|
|
123
|
+
for (const [signal, listener] of listeners)
|
|
124
|
+
process.removeListener(signal, listener);
|
|
125
|
+
};
|
|
126
|
+
process.on('exit', onExit);
|
|
127
|
+
for (const [signal, listener] of listeners)
|
|
128
|
+
process.on(signal, listener);
|
|
129
|
+
const verdicts = await Promise.all(runs.map(async (run) => ({ command: run.command, verdict: await judge(run, cwd) })));
|
|
130
|
+
detach();
|
|
131
|
+
process.stdout.write(verdictReport(verdicts));
|
|
132
|
+
return { success: verdicts.every(({ verdict }) => verdict.kind === 'pass') };
|
|
133
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** The executor the inferred `lint` target runs its tool commands with. */
|
|
2
|
+
export declare const ALL_VERDICTS_EXECUTOR = "@smoothbricks/nx-plugin:all-verdicts";
|
|
3
|
+
/** Options of `@smoothbricks/nx-plugin:all-verdicts`. */
|
|
4
|
+
export interface AllVerdictsOptions {
|
|
5
|
+
/** Shell commands, all started at once; none ends another. An empty list is refused: it could never fail. */
|
|
6
|
+
readonly commands: readonly string[];
|
|
7
|
+
/** Where every command runs, relative to the workspace root. */
|
|
8
|
+
readonly cwd: string;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../src/executors/all-verdicts/schema.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,eAAO,MAAM,qBAAqB,yCAAyC,CAAC;AAE5E,yDAAyD;AACzD,MAAM,WAAW,kBAAkB;IACjC,6GAA6G;IAC7G,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAC;IACrC,gEAAgE;IAChE,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../../src/executors/bounded-exec/executor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../../src/executors/bounded-exec/executor.ts"],"names":[],"mappings":"AAQA,OAAO,EAKL,KAAK,gBAAgB,EAGtB,MAAM,eAAe,CAAC;AACvB,OAAO,EA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