@smoothbricks/nx-plugin 0.6.2 → 0.7.0
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 +417 -171
- package/dist/.build-inputs.json +39 -28
- package/dist/bin/smoo-nx-go-test-build.d.ts +3 -0
- package/dist/bin/smoo-nx-go-test-build.d.ts.map +1 -0
- package/dist/bin/smoo-nx-go-test-build.js +79 -0
- package/dist/bin/smoo-nx-go-test-run.d.ts +3 -0
- package/dist/bin/smoo-nx-go-test-run.d.ts.map +1 -0
- package/dist/bin/smoo-nx-go-test-run.js +129 -0
- package/dist/bin/smoo-nx-publish.d.ts +3 -0
- package/dist/bin/smoo-nx-publish.d.ts.map +1 -0
- package/dist/bin/smoo-nx-publish.js +3 -0
- package/dist/bounded-test-policy.d.ts +1 -1
- package/dist/bounded-test-policy.d.ts.map +1 -1
- package/dist/bounded-test-policy.js +9 -8
- package/dist/cargo-retention-hook.d.ts +6 -2
- package/dist/cargo-retention-hook.d.ts.map +1 -1
- package/dist/cargo-retention-hook.js +13 -7
- package/dist/cargo-workspace.d.ts +10 -20
- package/dist/cargo-workspace.d.ts.map +1 -1
- package/dist/cargo-workspace.js +12 -22
- package/dist/cross-check-policy.d.ts +2 -2
- package/dist/cross-check-policy.js +2 -2
- package/dist/deploy-policy.d.ts +6 -0
- package/dist/deploy-policy.d.ts.map +1 -1
- package/dist/deploy-policy.js +11 -0
- package/dist/eslint-file-set.d.ts +4 -1
- package/dist/eslint-file-set.d.ts.map +1 -1
- package/dist/eslint-sources.d.ts +25 -0
- package/dist/eslint-sources.d.ts.map +1 -0
- package/dist/eslint-sources.js +99 -0
- package/dist/executors/all-verdicts/executor.d.ts +2 -1
- package/dist/executors/all-verdicts/executor.d.ts.map +1 -1
- package/dist/executors/all-verdicts/executor.js +48 -2
- package/dist/executors/all-verdicts/schema.d.ts +13 -0
- package/dist/executors/all-verdicts/schema.d.ts.map +1 -1
- package/dist/executors/all-verdicts/schema.js +7 -0
- package/dist/executors/bounded-exec/bounds.d.ts +57 -8
- package/dist/executors/bounded-exec/bounds.d.ts.map +1 -1
- package/dist/executors/bounded-exec/bounds.js +100 -11
- package/dist/executors/bounded-exec/executor.d.ts +2 -1
- package/dist/executors/bounded-exec/executor.d.ts.map +1 -1
- package/dist/executors/bounded-exec/executor.js +289 -34
- package/dist/executors/bounded-exec/hang-diagnostics.d.ts +2 -0
- package/dist/executors/bounded-exec/hang-diagnostics.d.ts.map +1 -1
- package/dist/executors/bounded-exec/hang-diagnostics.js +2 -2
- package/dist/executors/bounded-exec/mbx-pool.d.ts +56 -10
- package/dist/executors/bounded-exec/mbx-pool.d.ts.map +1 -1
- package/dist/executors/bounded-exec/mbx-pool.js +145 -11
- package/dist/executors/bounded-exec/mbx-queue.d.ts +30 -0
- package/dist/executors/bounded-exec/mbx-queue.d.ts.map +1 -0
- package/dist/executors/bounded-exec/mbx-queue.js +229 -0
- package/dist/executors/bounded-exec/progress.d.ts +9 -2
- package/dist/executors/bounded-exec/progress.d.ts.map +1 -1
- package/dist/executors/bounded-exec/progress.js +151 -25
- package/dist/executors/bounded-exec/runner-sizing.d.ts +40 -2
- package/dist/executors/bounded-exec/runner-sizing.d.ts.map +1 -1
- package/dist/executors/bounded-exec/runner-sizing.js +55 -4
- package/dist/executors/bounded-exec/runtime-pin.js +1 -1
- package/dist/executors/bounded-exec/test-result-writer.d.ts +30 -0
- package/dist/executors/bounded-exec/test-result-writer.d.ts.map +1 -0
- package/dist/executors/bounded-exec/test-result-writer.js +126 -0
- package/dist/executors/bounded-exec/test-results.d.ts +33 -0
- package/dist/executors/bounded-exec/test-results.d.ts.map +1 -0
- package/dist/executors/bounded-exec/test-results.js +33 -0
- package/dist/executors/bounded-exec/verdict.d.ts +26 -2
- package/dist/executors/bounded-exec/verdict.d.ts.map +1 -1
- package/dist/executors/bounded-exec/verdict.js +108 -4
- package/dist/executors/wrangler-deploy/deploy-hash.d.ts +10 -0
- package/dist/executors/wrangler-deploy/deploy-hash.d.ts.map +1 -0
- package/dist/executors/wrangler-deploy/deploy-hash.js +14 -0
- package/dist/executors/wrangler-deploy/executor.d.ts +24 -0
- package/dist/executors/wrangler-deploy/executor.d.ts.map +1 -0
- package/dist/executors/wrangler-deploy/executor.js +43 -0
- package/dist/executors/wrangler-deploy/hasher.d.ts +27 -0
- package/dist/executors/wrangler-deploy/hasher.d.ts.map +1 -0
- package/dist/executors/wrangler-deploy/hasher.js +90 -0
- package/dist/executors/wrangler-deploy/schema.d.ts +5 -0
- package/dist/executors/wrangler-deploy/schema.d.ts.map +1 -0
- package/dist/go-tests.d.ts +30 -0
- package/dist/go-tests.d.ts.map +1 -0
- package/dist/go-tests.js +43 -0
- package/dist/index.d.ts +12 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +338 -295
- package/dist/managed-files/files.d.ts.map +1 -1
- package/dist/managed-files/files.js +5 -0
- package/dist/nx-publish.d.ts +24 -0
- package/dist/nx-publish.d.ts.map +1 -0
- package/dist/nx-publish.js +150 -0
- package/dist/process-group.js +2 -2
- package/dist/runtime-input-policy.d.ts +17 -3
- package/dist/runtime-input-policy.d.ts.map +1 -1
- package/dist/runtime-input-policy.js +4 -4
- package/dist/test-timings.d.ts +23 -4
- package/dist/test-timings.d.ts.map +1 -1
- package/dist/test-timings.js +72 -12
- package/dist/tool-bins.d.ts +6 -8
- package/dist/tool-bins.d.ts.map +1 -1
- package/dist/tool-bins.js +7 -5
- package/dist/version-actions.cjs +10 -11
- package/dist/version-actions.d.cts.map +1 -1
- package/dist/workspace-config-policy.d.ts.map +1 -1
- package/dist/workspace-config-policy.js +17 -22
- package/dist/workspace-index.d.ts +7 -0
- package/dist/workspace-index.d.ts.map +1 -1
- package/dist/workspace-index.js +11 -0
- package/dist/workspace-manifest.js +3 -3
- package/executors.json +7 -6
- package/managed/raw/patches/nx@23.2.1.patch +118 -24
- package/managed/raw/patches/ttsc@0.34.1.patch +139 -0
- package/managed/raw/tooling/devenv +1 -2
- package/managed/raw/tooling/direnv/developer-links.ts +124 -51
- package/managed/raw/tooling/direnv/devenv.smoo.nix +34 -15
- package/managed/raw/tooling/direnv/github-actions-bootstrap.sh +20 -10
- package/managed/raw/tooling/direnv/installed-bun-links.ts +7 -6
- package/managed/raw/tooling/direnv/setup-environment.ts +49 -24
- package/managed/raw/tooling/direnv/ttsc-env.sh +8 -6
- package/managed/raw/tooling/git-hooks/pinned-revisions-served.ts +252 -0
- package/managed/raw/tooling/git-hooks/pre-push.sh +34 -32
- package/managed/templates/github/actions/cache-node-modules/action.yml +1 -1
- package/managed/templates/github/actions/cache-ttsc-plugins/action.yml +12 -11
- package/package.json +277 -11
- package/runtime/nx-publish/.build-inputs.json +11 -0
- package/runtime/nx-publish/cache_adapter.js +45 -0
- package/runtime/nx-publish/nx_publish.js +60 -0
- package/runtime-input.sh +62 -26
- package/src/bin/smoo-nx-go-test-build.ts +83 -0
- package/src/bin/smoo-nx-go-test-run.ts +140 -0
- package/src/bin/smoo-nx-publish.ts +4 -0
- package/src/bounded-test-policy.ts +9 -8
- package/src/cargo-retention-hook.ts +16 -10
- package/src/cargo-workspace.ts +12 -24
- package/src/cross-check-policy.ts +2 -2
- package/src/deploy-policy.ts +11 -0
- package/src/eslint-file-set.ts +4 -1
- package/src/eslint-sources.ts +134 -0
- package/src/executors/all-verdicts/executor.ts +58 -3
- package/src/executors/all-verdicts/schema.json +4 -0
- package/src/executors/all-verdicts/schema.ts +14 -0
- package/src/executors/bounded-exec/bounds.ts +132 -15
- package/src/executors/bounded-exec/executor.ts +329 -34
- package/src/executors/bounded-exec/hang-diagnostics.ts +3 -2
- package/src/executors/bounded-exec/mbx-pool.ts +158 -17
- package/src/executors/bounded-exec/mbx-queue.ts +170 -0
- package/src/executors/bounded-exec/progress.ts +171 -18
- package/src/executors/bounded-exec/runner-sizing.ts +73 -7
- package/src/executors/bounded-exec/runtime-pin.ts +1 -1
- package/src/executors/bounded-exec/test-result-writer.ts +152 -0
- package/src/executors/bounded-exec/test-results.ts +39 -0
- package/src/executors/bounded-exec/verdict.ts +115 -5
- package/src/executors/wrangler-deploy/deploy-hash.ts +15 -0
- package/src/executors/wrangler-deploy/executor.ts +63 -0
- package/src/executors/wrangler-deploy/hasher.ts +111 -0
- package/src/executors/wrangler-deploy/schema.json +16 -0
- package/src/executors/wrangler-deploy/schema.ts +4 -0
- package/src/go-tests.ts +67 -0
- package/src/index.ts +368 -323
- package/src/managed-files/files.ts +5 -0
- package/src/nx-publish.ts +157 -0
- package/src/process-group.ts +2 -2
- package/src/runtime-input-policy.ts +4 -4
- package/src/test-timings.ts +72 -14
- package/src/tool-bins.ts +13 -9
- package/src/version-actions.cts +10 -11
- package/src/workspace-config-policy.ts +20 -29
- package/src/workspace-index.ts +12 -0
- package/src/workspace-manifest.ts +3 -3
- package/test-timings.json +131 -125
- package/dist/executors/clean-outputs/executor.d.ts +0 -26
- package/dist/executors/clean-outputs/executor.d.ts.map +0 -1
- package/dist/executors/clean-outputs/executor.js +0 -83
- package/dist/executors/clean-outputs/schema.d.ts +0 -4
- package/dist/executors/clean-outputs/schema.d.ts.map +0 -1
- package/src/executors/clean-outputs/executor.ts +0 -131
- package/src/executors/clean-outputs/schema.json +0 -15
- package/src/executors/clean-outputs/schema.ts +0 -3
- /package/dist/executors/{clean-outputs → wrangler-deploy}/schema.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.d.ts","sourceRoot":"","sources":["../../src/managed-files/files.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,aAAa,EACb,6BAA6B,EAC7B,uBAAuB,EACvB,wBAAwB,EACxB,iBAAiB,EACjB,6BAA6B,EAC7B,2BAA2B,EAC5B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,KAAK,kBAAkB,EAAmD,MAAM,kBAAkB,CAAC;AAI5G,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAa7C,MAAM,WAAW,kBAAkB;IACjC,kBAAkB,EAAE,OA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',
|
|
148
148
|
executable: true,
|
|
149
149
|
},
|
|
150
|
+
{
|
|
151
|
+
kind: 'raw',
|
|
152
|
+
source: 'tooling/git-hooks/pinned-revisions-served.ts',
|
|
153
|
+
target: 'tooling/git-hooks/pinned-revisions-served.ts',
|
|
154
|
+
},
|
|
150
155
|
{
|
|
151
156
|
kind: 'raw',
|
|
152
157
|
source: 'tooling/git-reword-commit',
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/** A refusal says why: a malformed summary or hash list is never guessed at. */
|
|
2
|
+
export type HashList = {
|
|
3
|
+
readonly kind: 'hashes';
|
|
4
|
+
readonly hashes: readonly string[];
|
|
5
|
+
} | {
|
|
6
|
+
readonly kind: 'refused';
|
|
7
|
+
readonly why: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function isRecord(value: unknown): value is Record<string, unknown>;
|
|
10
|
+
/**
|
|
11
|
+
* Why a run summary's `run` is not of the invocation that began at `since` (epoch milliseconds), or undefined when it
|
|
12
|
+
* is. A summary Nx began before the gate is an earlier invocation's: its tasks are not the gate's.
|
|
13
|
+
*/
|
|
14
|
+
export declare function staleSummary(run: Record<string, unknown>, since: number): string | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* The distinct hashes of the run's succeeded tasks (status 0), in run order, from a summary Nx began at or after
|
|
17
|
+
* `since` (epoch milliseconds). Every task must be well formed, failed or not.
|
|
18
|
+
*/
|
|
19
|
+
export declare function succeededHashes(since: number, summaryJson: string): HashList;
|
|
20
|
+
/** The hash list 'hashes' printed: a JSON array of distinct, well-formed task hashes. 'publish' checks it before spawning. */
|
|
21
|
+
export declare function hashList(text: string): HashList;
|
|
22
|
+
/** Run the packaged publisher, returning a failure status and diagnostic for operational refusals. */
|
|
23
|
+
export declare function runNxPublish(argv: readonly string[]): Promise<number>;
|
|
24
|
+
//# sourceMappingURL=nx-publish.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nx-publish.d.ts","sourceRoot":"","sources":["../src/nx-publish.ts"],"names":[],"mappings":"AAiBA,gFAAgF;AAChF,MAAM,MAAM,QAAQ,GAChB;IAAE,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,GAC/D;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAAC;AAQvD,wBAAgB,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAEzE;AAMD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAM5F;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,QAAQ,CAwB5E;AAED,8HAA8H;AAC9H,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,CAY/C;AA0DD,sGAAsG;AACtG,wBAAsB,YAAY,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAM3E"}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
// Accepted-task publication for declared gates (specs/cowshed/05_gateway.md, "Publication").
|
|
2
|
+
// Capture each successful Nx invocation before another overwrites run.json; publish the captured lists only after
|
|
3
|
+
// the entire gate passes. Ordinary shed clients remain read-only.
|
|
4
|
+
import { spawn } from 'node:child_process';
|
|
5
|
+
import { readFileSync } from 'node:fs';
|
|
6
|
+
import { isAbsolute, join } from 'node:path';
|
|
7
|
+
import { fileURLToPath } from 'node:url';
|
|
8
|
+
const USAGE = 'usage: smoo-nx-publish hashes RUN_JSON SINCE_EPOCH | publish CHECKOUT HASHES_JSON\n';
|
|
9
|
+
/** A task hash as the gateway's cache route takes it (05_gateway.md). */
|
|
10
|
+
const TASK_HASH = /^[A-Za-z0-9_-]{1,128}$/;
|
|
11
|
+
// One cached producer copies the unchanged canonical cowshed scripts outside the TypeScript output tree.
|
|
12
|
+
const PUBLISH_ASSETS = fileURLToPath(new URL('../runtime/nx-publish/', import.meta.url));
|
|
13
|
+
const refusal = (why) => ({ kind: 'refused', why });
|
|
14
|
+
function errorMessage(error) {
|
|
15
|
+
return error instanceof Error ? error.message : String(error);
|
|
16
|
+
}
|
|
17
|
+
export function isRecord(value) {
|
|
18
|
+
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
19
|
+
}
|
|
20
|
+
function isTaskHash(value) {
|
|
21
|
+
return typeof value === 'string' && TASK_HASH.test(value);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Why a run summary's `run` is not of the invocation that began at `since` (epoch milliseconds), or undefined when it
|
|
25
|
+
* is. A summary Nx began before the gate is an earlier invocation's: its tasks are not the gate's.
|
|
26
|
+
*/
|
|
27
|
+
export function staleSummary(run, since) {
|
|
28
|
+
const started = run.startTime;
|
|
29
|
+
const startedAt = typeof started === 'string' ? Date.parse(started) : Number.NaN;
|
|
30
|
+
if (Number.isNaN(startedAt))
|
|
31
|
+
return `the run summary has no start time: ${JSON.stringify(started)}`;
|
|
32
|
+
if (startedAt >= since)
|
|
33
|
+
return undefined;
|
|
34
|
+
return `the run summary is of an invocation that began at ${started}, before this gate began at ${new Date(since).toISOString()}`;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* The distinct hashes of the run's succeeded tasks (status 0), in run order, from a summary Nx began at or after
|
|
38
|
+
* `since` (epoch milliseconds). Every task must be well formed, failed or not.
|
|
39
|
+
*/
|
|
40
|
+
export function succeededHashes(since, summaryJson) {
|
|
41
|
+
let summary;
|
|
42
|
+
try {
|
|
43
|
+
summary = JSON.parse(summaryJson);
|
|
44
|
+
}
|
|
45
|
+
catch (error) {
|
|
46
|
+
return refusal(`the run summary is not JSON: ${errorMessage(error)}`);
|
|
47
|
+
}
|
|
48
|
+
if (!isRecord(summary) || !isRecord(summary.run) || !Array.isArray(summary.tasks)) {
|
|
49
|
+
return refusal('the run summary has no run object or no tasks array');
|
|
50
|
+
}
|
|
51
|
+
const stale = staleSummary(summary.run, since);
|
|
52
|
+
if (stale !== undefined)
|
|
53
|
+
return refusal(stale);
|
|
54
|
+
const tasks = summary.tasks;
|
|
55
|
+
const hashes = new Set();
|
|
56
|
+
for (const task of tasks) {
|
|
57
|
+
if (!isRecord(task) || typeof task.status !== 'number') {
|
|
58
|
+
return refusal(`the run summary has a task without a numeric status: ${JSON.stringify(task)}`);
|
|
59
|
+
}
|
|
60
|
+
if (!isTaskHash(task.hash)) {
|
|
61
|
+
return refusal(`the run summary has an invalid task hash: ${JSON.stringify(task.hash)}`);
|
|
62
|
+
}
|
|
63
|
+
if (task.status === 0)
|
|
64
|
+
hashes.add(task.hash);
|
|
65
|
+
}
|
|
66
|
+
return { kind: 'hashes', hashes: [...hashes] };
|
|
67
|
+
}
|
|
68
|
+
/** The hash list 'hashes' printed: a JSON array of distinct, well-formed task hashes. 'publish' checks it before spawning. */
|
|
69
|
+
export function hashList(text) {
|
|
70
|
+
let value;
|
|
71
|
+
try {
|
|
72
|
+
value = JSON.parse(text);
|
|
73
|
+
}
|
|
74
|
+
catch (error) {
|
|
75
|
+
return refusal(`the hash list is not JSON: ${errorMessage(error)}`);
|
|
76
|
+
}
|
|
77
|
+
if (!Array.isArray(value) || !value.every(isTaskHash)) {
|
|
78
|
+
return refusal('the hash list is not a JSON array of valid task hashes');
|
|
79
|
+
}
|
|
80
|
+
if (new Set(value).size !== value.length)
|
|
81
|
+
return refusal('the hash list repeats a task hash');
|
|
82
|
+
return { kind: 'hashes', hashes: value };
|
|
83
|
+
}
|
|
84
|
+
/** cache_adapter.js first: it defines the cache nx_publish.js calls. Both go to 'node -' as one program. */
|
|
85
|
+
function bridgeProgram() {
|
|
86
|
+
const adapter = readFileSync(join(PUBLISH_ASSETS, 'cache_adapter.js'), 'utf8');
|
|
87
|
+
const publisher = readFileSync(join(PUBLISH_ASSETS, 'nx_publish.js'), 'utf8');
|
|
88
|
+
return `${adapter}\n${publisher}`;
|
|
89
|
+
}
|
|
90
|
+
/** Runs the bridge as 'node - ARGS' with the program on stdin. Its stderr is ours; its stdout comes back. */
|
|
91
|
+
function runBridge(args) {
|
|
92
|
+
// Read before spawning: a read that threw after the spawn would leave node waiting on a stdin that never closes.
|
|
93
|
+
const program = bridgeProgram();
|
|
94
|
+
// eslint-disable-next-line deadline/no-unbounded-wait -- WHY unbounded: the accepted-result archive command lasts as long as its work; node close/error settles this wait, and the operator's interrupt or the enclosing cowshed job or test-runner lifecycle ends a hung one (05_gateway.md, "Deadlines", "Enforcement")
|
|
95
|
+
return new Promise((resolve, reject) => {
|
|
96
|
+
const child = spawn('node', ['-', ...args], { stdio: ['pipe', 'pipe', 'inherit'] });
|
|
97
|
+
let stdout = '';
|
|
98
|
+
child.stdout.setEncoding('utf8');
|
|
99
|
+
child.stdout.on('data', (chunk) => {
|
|
100
|
+
stdout += chunk;
|
|
101
|
+
});
|
|
102
|
+
child.on('error', reject);
|
|
103
|
+
child.on('close', (status, signal) => {
|
|
104
|
+
if (status === null)
|
|
105
|
+
reject(new Error(`node ended by signal ${String(signal)}`));
|
|
106
|
+
else
|
|
107
|
+
resolve({ status, stdout });
|
|
108
|
+
});
|
|
109
|
+
child.stdin.on('error', reject);
|
|
110
|
+
child.stdin.end(program);
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
function fail(why) {
|
|
114
|
+
process.stderr.write(`smoo-nx-publish: ${why}\n`);
|
|
115
|
+
return 1;
|
|
116
|
+
}
|
|
117
|
+
async function main(argv) {
|
|
118
|
+
const [verb, first, second] = argv;
|
|
119
|
+
if (verb === 'hashes' && argv.length === 3 && first !== undefined && second !== undefined) {
|
|
120
|
+
const since = Number(second);
|
|
121
|
+
if (!Number.isInteger(since))
|
|
122
|
+
return fail(`SINCE must be whole epoch seconds, not ${second}`);
|
|
123
|
+
const result = succeededHashes(since * 1000, readFileSync(first, 'utf8'));
|
|
124
|
+
if (result.kind === 'refused')
|
|
125
|
+
return fail(result.why);
|
|
126
|
+
process.stdout.write(`${JSON.stringify(result.hashes)}\n`);
|
|
127
|
+
return 0;
|
|
128
|
+
}
|
|
129
|
+
if (verb === 'publish' && argv.length === 3 && first !== undefined && second !== undefined) {
|
|
130
|
+
if (!isAbsolute(first))
|
|
131
|
+
return fail(`the checkout must be an absolute path, not ${first}`);
|
|
132
|
+
const list = hashList(readFileSync(second, 'utf8'));
|
|
133
|
+
if (list.kind === 'refused')
|
|
134
|
+
return fail(list.why);
|
|
135
|
+
const bridge = await runBridge([first, JSON.stringify(list.hashes)]);
|
|
136
|
+
process.stdout.write(bridge.stdout);
|
|
137
|
+
return bridge.status;
|
|
138
|
+
}
|
|
139
|
+
process.stderr.write(USAGE);
|
|
140
|
+
return 64;
|
|
141
|
+
}
|
|
142
|
+
/** Run the packaged publisher, returning a failure status and diagnostic for operational refusals. */
|
|
143
|
+
export async function runNxPublish(argv) {
|
|
144
|
+
try {
|
|
145
|
+
return await main(argv);
|
|
146
|
+
}
|
|
147
|
+
catch (error) {
|
|
148
|
+
return fail(errorMessage(error));
|
|
149
|
+
}
|
|
150
|
+
}
|
package/dist/process-group.js
CHANGED
|
@@ -137,8 +137,8 @@ export function killProcessGroupNow(pgid, patience) {
|
|
|
137
137
|
* Waits `ms` of host time without blocking this thread, so that the event loop serves everything else meanwhile and
|
|
138
138
|
* reaps the group's leader. Two waits, and whichever ends first ends the pause: a timer, which keeps the process alive
|
|
139
139
|
* while it waits, and `Atomics.waitAsync`, which does not (a process with nothing else pending exits under it, as
|
|
140
|
-
* measured on Node 26 and Bun 1.4.3) but is not a timer. A timer alone is its caller's clock, and a test
|
|
141
|
-
* clock stops it for good, while what a kill waits for is the kernel.
|
|
140
|
+
* measured on Node 26 and Bun 1.4.3 and 1.4.4) but is not a timer. A timer alone is its caller's clock, and a test
|
|
141
|
+
* that fakes the clock stops it for good, while what a kill waits for is the kernel.
|
|
142
142
|
*/
|
|
143
143
|
function pause(ms) {
|
|
144
144
|
return new Promise((resolve) => {
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
type Token = {
|
|
2
|
+
readonly kind: 'word';
|
|
3
|
+
readonly text: string;
|
|
4
|
+
} | {
|
|
5
|
+
readonly kind: 'separator';
|
|
6
|
+
} | {
|
|
7
|
+
readonly kind: 'redirect';
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* The shell tokens of `script`. A command substitution is part of its word, and the programs it runs are appended to
|
|
11
|
+
* `nested`; quoting is removed from the words, which are only inspected, never run.
|
|
12
|
+
*/
|
|
13
|
+
export declare function shellTokens(script: string, nested: string[]): Token[];
|
|
1
14
|
/**
|
|
2
15
|
* The programs `script` runs by name or path: the program of each simple command, through `env`, `exec`,
|
|
3
16
|
* `command`, `sh -c` and command substitutions, and the command a `runtime-input.sh` input runs. Shell builtins are
|
|
@@ -52,9 +65,10 @@ export declare function hostProgramReason(host: HostProgram): string;
|
|
|
52
65
|
export declare const RUNTIME_INPUT_FAILURES = ".runtime-input-failures";
|
|
53
66
|
/**
|
|
54
67
|
* The report of every failure runtime-input.sh retained under `root` at or after `sinceMs`, oldest first, each headed
|
|
55
|
-
* by its path. Nx
|
|
56
|
-
* drops the input's stderr, so a headless run prints these after Nx fails: they name the command,
|
|
57
|
-
* its stderr. A record without a report (its evidence could not be written) is named as such.
|
|
68
|
+
* by its path. Nx names a failed runtime input's tasks and their runtime inputs (`Could not hash …`), not which one
|
|
69
|
+
* failed or why, and drops the input's stderr, so a headless run prints these after Nx fails: they name the command,
|
|
70
|
+
* its exit status and its stderr. A record without a report (its evidence could not be written) is named as such.
|
|
58
71
|
*/
|
|
59
72
|
export declare function runtimeInputFailureReports(root: string, sinceMs: number): string[];
|
|
73
|
+
export {};
|
|
60
74
|
//# sourceMappingURL=runtime-input-policy.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runtime-input-policy.d.ts","sourceRoot":"","sources":["../src/runtime-input-policy.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"runtime-input-policy.d.ts","sourceRoot":"","sources":["../src/runtime-input-policy.ts"],"names":[],"mappings":"AA2EA,KAAK,KAAK,GACN;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAChD;IAAE,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAA;CAAE,GAC9B;IAAE,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC;AA2BlC;;;GAGG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,CAwFrE;AAiCD;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAiBxD;AAED,uHAAuH;AACvH,MAAM,WAAW,aAAa;IAC5B,2EAA2E;IAC3E,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,4FAA4F;IAC5F,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;CACvB;AAED,iGAAiG;AACjG,MAAM,MAAM,WAAW;AACrB,sFAAsF;AACpF;IAAE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE;AAChF,mCAAmC;GACjC;IAAE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,QAAQ,CAAA;CAAE;AAC1D;;;;GAIG;GACD;IAAE,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,eAAe,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC;AA+CrH;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,GAAG,WAAW,EAAE,CAiBlF;AAED,iFAAiF;AACjF,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,WAAW,GAAG,MAAM,CAY3D;AAED,+FAA+F;AAC/F,eAAO,MAAM,sBAAsB,4BAA4B,CAAC;AAWhE;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM,EAAE,CAYlF"}
|
|
@@ -99,7 +99,7 @@ function closingBracket(text, from, open, close) {
|
|
|
99
99
|
* The shell tokens of `script`. A command substitution is part of its word, and the programs it runs are appended to
|
|
100
100
|
* `nested`; quoting is removed from the words, which are only inspected, never run.
|
|
101
101
|
*/
|
|
102
|
-
function shellTokens(script, nested) {
|
|
102
|
+
export function shellTokens(script, nested) {
|
|
103
103
|
const tokens = [];
|
|
104
104
|
let word;
|
|
105
105
|
const flush = () => {
|
|
@@ -360,9 +360,9 @@ function absentAsUndefined(read) {
|
|
|
360
360
|
}
|
|
361
361
|
/**
|
|
362
362
|
* The report of every failure runtime-input.sh retained under `root` at or after `sinceMs`, oldest first, each headed
|
|
363
|
-
* by its path. Nx
|
|
364
|
-
* drops the input's stderr, so a headless run prints these after Nx fails: they name the command,
|
|
365
|
-
* its stderr. A record without a report (its evidence could not be written) is named as such.
|
|
363
|
+
* by its path. Nx names a failed runtime input's tasks and their runtime inputs (`Could not hash …`), not which one
|
|
364
|
+
* failed or why, and drops the input's stderr, so a headless run prints these after Nx fails: they name the command,
|
|
365
|
+
* its exit status and its stderr. A record without a report (its evidence could not be written) is named as such.
|
|
366
366
|
*/
|
|
367
367
|
export function runtimeInputFailureReports(root, sinceMs) {
|
|
368
368
|
const directory = join(root, RUNTIME_INPUT_FAILURES);
|
package/dist/test-timings.d.ts
CHANGED
|
@@ -57,12 +57,31 @@ export interface TimingManifest {
|
|
|
57
57
|
* Bun's test discovery for `args` in `cwd`, replayed without running a test: files named `*.test.*`, `*_test.*`,
|
|
58
58
|
* `*.spec.*` or `*_spec.*` with a JavaScript extension, in any letter case, under bunfig's `test.root`, outside
|
|
59
59
|
* `node_modules` and hidden directories. A symlink counts as its target, a directory entered and a file matched, and a
|
|
60
|
-
* link to nothing
|
|
61
|
-
* the cwd-relative path as written and replace bunfig's
|
|
62
|
-
* bunfig; `.gitignore` plays no part. These are the rules
|
|
63
|
-
* files `bun test --update-timings` writes for a fixture,
|
|
60
|
+
* link to nothing is skipped; any other link it cannot resolve refuses the replay. The link's own name is the one the
|
|
61
|
+
* name rules see. `--path-ignore-patterns` globs match the cwd-relative path as written and replace bunfig's
|
|
62
|
+
* `pathIgnorePatterns` when given; `--config=` names another bunfig; `.gitignore` plays no part. These are the rules
|
|
63
|
+
* of Bun 1.4.4: `test-timings.test.ts` compares them with the files `bun test --update-timings` writes for a fixture,
|
|
64
|
+
* so a Bun release that changes them fails there.
|
|
64
65
|
*/
|
|
65
66
|
export declare function timingsCoverage(workspaceRoot: string, suite: Pick<TimingsShardedSuite, 'cwd' | 'args'>): Promise<TimingsCoverageResult>;
|
|
67
|
+
/**
|
|
68
|
+
* What the shard-timings check reads, as Nx inputs: its timing manifests and its bunfig as files, and the names Bun's
|
|
69
|
+
* discovery would find as {@link bunTestFileNamesInput}. Files alone cannot key the last: discovery finds gitignored
|
|
70
|
+
* files too, and Nx hashes no ignored file.
|
|
71
|
+
*/
|
|
72
|
+
export declare function timingsSuiteInputs(suite: Pick<TimingsShardedSuite, 'cwd' | 'args'>): (string | {
|
|
73
|
+
runtime: string;
|
|
74
|
+
})[];
|
|
75
|
+
/**
|
|
76
|
+
* The names of the files under `cwd` (workspace-relative) Bun's discovery could run, sorted, as a runtime input. It is a
|
|
77
|
+
* superset of {@link timingsCoverage}'s rules (any extension, the whole tree whatever bunfig's `test.root`, no ignore
|
|
78
|
+
* glob), so every file discovery would find changes the value, and a name discovery skips costs at most a cache miss.
|
|
79
|
+
* Like Bun, it skips `node_modules` and hidden directories, follows symlinks (each directory once, by its real path),
|
|
80
|
+
* skips a link to nothing, and reads no `.gitignore`. It walks with Bun, which every workspace declares.
|
|
81
|
+
*/
|
|
82
|
+
export declare function bunTestFileNamesInput(cwd: string): {
|
|
83
|
+
runtime: string;
|
|
84
|
+
};
|
|
66
85
|
/**
|
|
67
86
|
* The failure an untimed file earns: every such file, and the one command that refreshes the manifest. `cwd` is the
|
|
68
87
|
* suite's workspace-relative directory, so the operator can find the files from the repository root.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-timings.d.ts","sourceRoot":"","sources":["../src/test-timings.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"test-timings.d.ts","sourceRoot":"","sources":["../src/test-timings.ts"],"names":[],"mappings":"AASA;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,kBAAkB,CAAC;AACpD,eAAO,MAAM,sBAAsB,0CAA0C,CAAC;AAE9E,iHAAiH;AACjH,wBAAgB,yBAAyB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAErE;AAED,6EAA6E;AAC7E,MAAM,WAAW,mBAAmB;IAClC,wDAAwD;IACxD,QAAQ,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IACpC,mGAAmG;IACnG,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,uFAAuF;IACvF,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAC;CAClC;AAED,MAAM,MAAM,yBAAyB,GACjC;IAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,mBAAmB,GAAG,IAAI,CAAA;CAAE,GAC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C,EAAE,CAOrH;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,CAEtE;AAqBD;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,eAAe,GAAG,MAAM,CAQ1G"}
|
package/dist/test-timings.js
CHANGED
|
@@ -6,7 +6,7 @@ import { readdir, readFile, stat } from 'node:fs/promises';
|
|
|
6
6
|
import { join, posix } from 'node:path';
|
|
7
7
|
import { parse as parseToml } from 'smol-toml';
|
|
8
8
|
import typia from 'typia';
|
|
9
|
-
import { shellWord } from './runtime-input.js';
|
|
9
|
+
import { runtimeInput, shellWord } from './runtime-input.js';
|
|
10
10
|
import { isRecord } from './type-guards.js';
|
|
11
11
|
/**
|
|
12
12
|
* The check inferred beside a Bun suite that `--shard=N/M` targets split and a `--timings` manifest balances. Bun
|
|
@@ -276,10 +276,11 @@ const validateBunfigDiscovery = (() => {
|
|
|
276
276
|
* Bun's test discovery for `args` in `cwd`, replayed without running a test: files named `*.test.*`, `*_test.*`,
|
|
277
277
|
* `*.spec.*` or `*_spec.*` with a JavaScript extension, in any letter case, under bunfig's `test.root`, outside
|
|
278
278
|
* `node_modules` and hidden directories. A symlink counts as its target, a directory entered and a file matched, and a
|
|
279
|
-
* link to nothing
|
|
280
|
-
* the cwd-relative path as written and replace bunfig's
|
|
281
|
-
* bunfig; `.gitignore` plays no part. These are the rules
|
|
282
|
-
* files `bun test --update-timings` writes for a fixture,
|
|
279
|
+
* link to nothing is skipped; any other link it cannot resolve refuses the replay. The link's own name is the one the
|
|
280
|
+
* name rules see. `--path-ignore-patterns` globs match the cwd-relative path as written and replace bunfig's
|
|
281
|
+
* `pathIgnorePatterns` when given; `--config=` names another bunfig; `.gitignore` plays no part. These are the rules
|
|
282
|
+
* of Bun 1.4.4: `test-timings.test.ts` compares them with the files `bun test --update-timings` writes for a fixture,
|
|
283
|
+
* so a Bun release that changes them fails there.
|
|
283
284
|
*/
|
|
284
285
|
export async function timingsCoverage(workspaceRoot, suite) {
|
|
285
286
|
const cwd = join(workspaceRoot, suite.cwd);
|
|
@@ -296,7 +297,14 @@ export async function timingsCoverage(workspaceRoot, suite) {
|
|
|
296
297
|
const ignores = cliIgnores.length > 0 ? cliIgnores : typeof bunfigIgnores === 'string' ? [bunfigIgnores] : bunfigIgnores;
|
|
297
298
|
const root = posix.normalize(bunfig.test?.root ?? '.');
|
|
298
299
|
const files = [];
|
|
299
|
-
|
|
300
|
+
try {
|
|
301
|
+
await collectTestFiles(cwd, root === '.' ? '' : root.replace(/\/$/, ''), ignores, files);
|
|
302
|
+
}
|
|
303
|
+
catch (error) {
|
|
304
|
+
if (!(error instanceof Error && 'code' in error))
|
|
305
|
+
throw error;
|
|
306
|
+
return { ok: false, error: `cannot replay Bun's discovery under ${posix.join(suite.cwd, root)}: ${error.message}` };
|
|
307
|
+
}
|
|
300
308
|
files.sort();
|
|
301
309
|
const timed = new Set();
|
|
302
310
|
for (const manifest of manifests) {
|
|
@@ -308,6 +316,47 @@ export async function timingsCoverage(workspaceRoot, suite) {
|
|
|
308
316
|
}
|
|
309
317
|
return { ok: true, coverage: { manifests, files, untimed: files.filter((file) => !timed.has(file)) } };
|
|
310
318
|
}
|
|
319
|
+
/**
|
|
320
|
+
* What the shard-timings check reads, as Nx inputs: its timing manifests and its bunfig as files, and the names Bun's
|
|
321
|
+
* discovery would find as {@link bunTestFileNamesInput}. Files alone cannot key the last: discovery finds gitignored
|
|
322
|
+
* files too, and Nx hashes no ignored file.
|
|
323
|
+
*/
|
|
324
|
+
export function timingsSuiteInputs(suite) {
|
|
325
|
+
const inCwd = (file) => `{workspaceRoot}/${posix.join(suite.cwd, file)}`;
|
|
326
|
+
return [
|
|
327
|
+
...flagValues(suite.args, '--timings').map(inCwd),
|
|
328
|
+
inCwd(flagValues(suite.args, '--config').at(-1) ?? 'bunfig.toml'),
|
|
329
|
+
bunTestFileNamesInput(suite.cwd),
|
|
330
|
+
];
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* The names of the files under `cwd` (workspace-relative) Bun's discovery could run, sorted, as a runtime input. It is a
|
|
334
|
+
* superset of {@link timingsCoverage}'s rules (any extension, the whole tree whatever bunfig's `test.root`, no ignore
|
|
335
|
+
* glob), so every file discovery would find changes the value, and a name discovery skips costs at most a cache miss.
|
|
336
|
+
* Like Bun, it skips `node_modules` and hidden directories, follows symlinks (each directory once, by its real path),
|
|
337
|
+
* skips a link to nothing, and reads no `.gitignore`. It walks with Bun, which every workspace declares.
|
|
338
|
+
*/
|
|
339
|
+
export function bunTestFileNamesInput(cwd) {
|
|
340
|
+
return runtimeInput(`bun -e ${shellWord(LIST_TEST_FILE_NAMES)} ${shellWord(cwd)}`);
|
|
341
|
+
}
|
|
342
|
+
const LIST_TEST_FILE_NAMES = [
|
|
343
|
+
'const { readdirSync, realpathSync, statSync } = require("node:fs");',
|
|
344
|
+
'const names = []; const seen = new Set();',
|
|
345
|
+
'const walk = (dir) => {',
|
|
346
|
+
' const real = realpathSync(dir); if (seen.has(real)) return; seen.add(real);',
|
|
347
|
+
' for (const entry of readdirSync(dir, { withFileTypes: true })) {',
|
|
348
|
+
' const path = dir === "." ? entry.name : dir + "/" + entry.name; const name = entry.name.toLowerCase();',
|
|
349
|
+
' let directory = entry.isDirectory();',
|
|
350
|
+
' if (entry.isSymbolicLink()) {',
|
|
351
|
+
' try { directory = statSync(path).isDirectory(); }',
|
|
352
|
+
' catch (error) { if (error?.code !== "ENOENT") throw error; continue; }',
|
|
353
|
+
' }',
|
|
354
|
+
' if (directory) { if (!name.startsWith(".") && name !== "node_modules") walk(path); }',
|
|
355
|
+
' else if (/[._](test|spec)[.]/.test(name)) names.push(path);',
|
|
356
|
+
' }',
|
|
357
|
+
'};',
|
|
358
|
+
'process.chdir(process.argv[1]); walk("."); names.sort(); for (const name of names) console.log(name);',
|
|
359
|
+
].join(' ');
|
|
311
360
|
/**
|
|
312
361
|
* The failure an untimed file earns: every such file, and the one command that refreshes the manifest. `cwd` is the
|
|
313
362
|
* suite's workspace-relative directory, so the operator can find the files from the repository root.
|
|
@@ -327,16 +376,16 @@ async function collectTestFiles(cwd, dir, ignores, files) {
|
|
|
327
376
|
const path = dir === '' ? entry.name : `${dir}/${entry.name}`;
|
|
328
377
|
// Bun matches every name in lower case, and its ignore globs see the path as written.
|
|
329
378
|
const name = entry.name.toLowerCase();
|
|
330
|
-
// Bun follows a symlink to what it points at and
|
|
331
|
-
const resolved = entry.isSymbolicLink() ? await
|
|
332
|
-
if (resolved
|
|
379
|
+
// Bun follows a symlink to what it points at and skips one that points at nothing.
|
|
380
|
+
const resolved = entry.isSymbolicLink() ? await statUnlessMissing(join(cwd, path)) : entry;
|
|
381
|
+
if (resolved === null)
|
|
382
|
+
continue;
|
|
383
|
+
if (resolved.isDirectory()) {
|
|
333
384
|
if (!name.startsWith('.') && name !== 'node_modules') {
|
|
334
385
|
await collectTestFiles(cwd, path, ignores, files);
|
|
335
386
|
}
|
|
336
387
|
}
|
|
337
|
-
else if ((
|
|
338
|
-
TEST_FILE.test(name) &&
|
|
339
|
-
!ignores.some((glob) => posix.matchesGlob(path, glob))) {
|
|
388
|
+
else if (resolved.isFile() && TEST_FILE.test(name) && !ignores.some((glob) => posix.matchesGlob(path, glob))) {
|
|
340
389
|
files.push(path);
|
|
341
390
|
}
|
|
342
391
|
}
|
|
@@ -378,6 +427,17 @@ async function readTimingManifest(path) {
|
|
|
378
427
|
}
|
|
379
428
|
return { ok: true, files: validated.data.files };
|
|
380
429
|
}
|
|
430
|
+
/** What a symlink at `path` leads to, or null when it leads nowhere; any other failure to resolve it is thrown. */
|
|
431
|
+
async function statUnlessMissing(path) {
|
|
432
|
+
try {
|
|
433
|
+
return await stat(path);
|
|
434
|
+
}
|
|
435
|
+
catch (error) {
|
|
436
|
+
if (error instanceof Error && 'code' in error && error.code === 'ENOENT')
|
|
437
|
+
return null;
|
|
438
|
+
throw error;
|
|
439
|
+
}
|
|
440
|
+
}
|
|
381
441
|
async function readOptionalFile(path) {
|
|
382
442
|
try {
|
|
383
443
|
return await readFile(path, 'utf-8');
|
package/dist/tool-bins.d.ts
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import type { TargetConfiguration } from 'nx/src/devkit-exports.js';
|
|
2
|
-
/** The tool packages whose
|
|
3
|
-
declare const NATIVE_TOOL_PACKAGES: readonly ['build-inputs', 'cargo-retain', 'nextest-extract'];
|
|
2
|
+
/** The tool packages whose native artifacts inferred commands consume. */
|
|
3
|
+
declare const NATIVE_TOOL_PACKAGES: readonly ['build-inputs', 'cargo-retain', 'nextest-extract', 'cowshed'];
|
|
4
4
|
export type NativeToolPackage = (typeof NATIVE_TOOL_PACKAGES)[number];
|
|
5
5
|
type TargetDependency = NonNullable<TargetConfiguration['dependsOn']>[number];
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* that is a project of the workspace being inferred (a checkout of the repository that builds it) has only what its
|
|
10
|
-
* `scriptc-<arch>-<family>` target last wrote, so a command running it depends on that target.
|
|
7
|
+
* Native tools as the inferring host consumes them. Installed packages already ship their artifacts; a workspace
|
|
8
|
+
* package needs its declared producer. Scriptc tools use the host platform target, cowshed its napi-native addon.
|
|
11
9
|
*/
|
|
12
10
|
export interface NativeTools {
|
|
13
11
|
/** The host's directory under a tool package's `dist/bin`. */
|
|
@@ -27,7 +25,7 @@ export declare function resolveNativeTools(workspaceRoot: string, projectManifes
|
|
|
27
25
|
* where no tool package carries an executable to run.
|
|
28
26
|
*/
|
|
29
27
|
export declare function nativeToolCommand(tools: Pick<NativeTools, 'platform'> | null, cwd: string, tool: NativeToolPackage, bin: string): string;
|
|
30
|
-
/** The task
|
|
31
|
-
export declare function nativeToolDependsOn(tools: NativeTools | null, tool: NativeToolPackage): TargetDependency[];
|
|
28
|
+
/** The task producing a tool artifact, only when this workspace owns its package. */
|
|
29
|
+
export declare function nativeToolDependsOn(tools: NativeTools | null, tool: NativeToolPackage, target?: string): TargetDependency[];
|
|
32
30
|
export {};
|
|
33
31
|
//# sourceMappingURL=tool-bins.d.ts.map
|
package/dist/tool-bins.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-bins.d.ts","sourceRoot":"","sources":["../src/tool-bins.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAsBpE,
|
|
1
|
+
{"version":3,"file":"tool-bins.d.ts","sourceRoot":"","sources":["../src/tool-bins.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAsBpE,0EAA0E;AAC1E,QAAA,MAAM,oBAAoB,YAAI,cAAc,EAAE,cAAc,EAAE,iBAAiB,EAAE,SAAS,CAAU,CAAC;AAErG,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtE,KAAK,gBAAgB,GAAG,WAAW,CAAC,mBAAmB,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9E;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B,8DAA8D;IAC9D,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,6EAA6E;IAC7E,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,kFAAkF;IAClF,QAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC;CAC3D;AAED;;;GAGG;AACH,wBAAsB,kBAAkB,CACtC,aAAa,EAAE,MAAM,EACrB,gBAAgB,EAAE,SAAS,MAAM,EAAE,EACnC,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,WAAW,CAAC,CAmBtB;AAUD;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,UAAU,CAAC,GAAG,IAAI,EAC3C,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,iBAAiB,EACvB,GAAG,EAAE,MAAM,GACV,MAAM,CAOR;AAED,qFAAqF;AACrF,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,WAAW,GAAG,IAAI,EACzB,IAAI,EAAE,iBAAiB,EACvB,MAAM,CAAC,EAAE,MAAM,GACd,gBAAgB,EAAE,CAKpB"}
|
package/dist/tool-bins.js
CHANGED
|
@@ -18,8 +18,8 @@ const PLUGIN_LINK = 'node_modules/@smoothbricks/nx-plugin';
|
|
|
18
18
|
function toolCommand(cwd, tool, file) {
|
|
19
19
|
return `${posix.join(posix.relative(cwd, '.'), PLUGIN_LINK)}/../${tool}/${file}`;
|
|
20
20
|
}
|
|
21
|
-
/** The tool packages whose
|
|
22
|
-
const NATIVE_TOOL_PACKAGES = ['build-inputs', 'cargo-retain', 'nextest-extract'];
|
|
21
|
+
/** The tool packages whose native artifacts inferred commands consume. */
|
|
22
|
+
const NATIVE_TOOL_PACKAGES = ['build-inputs', 'cargo-retain', 'nextest-extract', 'cowshed'];
|
|
23
23
|
/**
|
|
24
24
|
* The tools of the workspace at `workspaceRoot`, whose project manifests are `projectManifests` (workspace-relative):
|
|
25
25
|
* a tool package is a project when the plugin's link resolves beside one of them.
|
|
@@ -65,8 +65,10 @@ export function nativeToolCommand(tools, cwd, tool, bin) {
|
|
|
65
65
|
}
|
|
66
66
|
return toolCommand(cwd, tool, `dist/bin/${tools.platform}/${bin}`);
|
|
67
67
|
}
|
|
68
|
-
/** The task
|
|
69
|
-
export function nativeToolDependsOn(tools, tool) {
|
|
68
|
+
/** The task producing a tool artifact, only when this workspace owns its package. */
|
|
69
|
+
export function nativeToolDependsOn(tools, tool, target) {
|
|
70
70
|
const project = tools?.projects.get(tool);
|
|
71
|
-
return project === undefined || tools === null
|
|
71
|
+
return project === undefined || tools === null
|
|
72
|
+
? []
|
|
73
|
+
: [{ projects: [project], target: target ?? (tool === 'cowshed' ? 'napi-native' : tools.target) }];
|
|
72
74
|
}
|
package/dist/version-actions.cjs
CHANGED
|
@@ -9,19 +9,18 @@ const baseVersionActions = nxJsVersionActions.default ?? nxJsVersionActions;
|
|
|
9
9
|
const PUBLISHED_DEPENDENCY_FIELDS = ['dependencies', 'peerDependencies', 'optionalDependencies'];
|
|
10
10
|
const afterAllProjectsVersioned = async (cwd, options) => {
|
|
11
11
|
const result = await nxJsVersionActions.afterAllProjectsVersioned(cwd, options);
|
|
12
|
-
// Temporary Bun workaround. Delete this hook together with the CLI lockfile
|
|
13
|
-
// sync/validation code once supported Bun versions fix all three issues:
|
|
14
|
-
// - https://github.com/oven-sh/bun/issues/18906
|
|
15
|
-
// - https://github.com/oven-sh/bun/issues/20477
|
|
16
|
-
// - https://github.com/oven-sh/bun/issues/20829
|
|
17
|
-
//
|
|
18
12
|
// After ANY version bump (release or prepare-next), bun.lock workspace versions
|
|
19
|
-
// must match package.json exactly
|
|
20
|
-
//
|
|
13
|
+
// must match package.json exactly, unpublished -next included, and
|
|
14
|
+
// `smoo monorepo validate` refuses a lock that does not. The Bun bugs this hook
|
|
15
|
+
// began as a workaround for are closed (oven-sh/bun#18906, #20477, #20829):
|
|
16
|
+
// measured on Bun 1.4.4, `bun install --lockfile-only`, the lock update Nx runs
|
|
17
|
+
// after versioning, writes a bumped package.json version into bun.lock. But
|
|
18
|
+
// `bun install --frozen-lockfile` still accepts an entry the manifest moved
|
|
19
|
+
// past, so the release commit's lock is made exact here whatever ran before.
|
|
21
20
|
//
|
|
22
|
-
// Publish-time
|
|
23
|
-
// `smoo release publish
|
|
24
|
-
//
|
|
21
|
+
// Publish-time pins (-next → last stable tag) go only into the packed manifest
|
|
22
|
+
// of `smoo release publish`, never into bun.lock. Rewriting the lock that way
|
|
23
|
+
// on prepare-next is what left it at 0.x.y while package.json said
|
|
25
24
|
// 0.x.y-next.0 and blew up monorepo validate / packed-package-manifest.
|
|
26
25
|
const updated = syncBunLockfileVersionsToPackageJson(cwd);
|
|
27
26
|
if (updated === 0) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version-actions.d.cts","sourceRoot":"","sources":["../src/version-actions.cts"],"names":[],"mappings":"AAEA,OAAO,KAAK,gBAAgB,MAAM,oCAAoC,CAAC;AACvE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,KAAK,EAAgB,sBAAsB,EAA2B,MAAM,6BAA6B,CAAC;AAMjH,KAAK,qBAAqB,GAAG,OAAO,gBAAgB,GAAG;IACrD,yBAAyB,EAAE,yBAAyB,CAAC;CACtD,CAAC;AAEF,4EAA4E;AAC5E,KAAK,+BAA+B,GAAG,qBAAqB,GAAG;IAC7D,qBAAqB,CACnB,YAAY,EAAE,SAAS,sBAAsB,EAAE,EAC/C,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjC,aAAa,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,GACpD,sBAAsB,EAAE,CAAC;CAC7B,CAAC;
|
|
1
|
+
{"version":3,"file":"version-actions.d.cts","sourceRoot":"","sources":["../src/version-actions.cts"],"names":[],"mappings":"AAEA,OAAO,KAAK,gBAAgB,MAAM,oCAAoC,CAAC;AACvE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,KAAK,EAAgB,sBAAsB,EAA2B,MAAM,6BAA6B,CAAC;AAMjH,KAAK,qBAAqB,GAAG,OAAO,gBAAgB,GAAG;IACrD,yBAAyB,EAAE,yBAAyB,CAAC;CACtD,CAAC;AAEF,4EAA4E;AAC5E,KAAK,+BAA+B,GAAG,qBAAqB,GAAG;IAC7D,qBAAqB,CACnB,YAAY,EAAE,SAAS,sBAAsB,EAAE,EAC/C,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjC,aAAa,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,GACpD,sBAAsB,EAAE,CAAC;CAC7B,CAAC;AAuGF,QAAA,MAAM,cAAc,EAAE,+BAA4D,CAAC;SAE1E,cAAc"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-config-policy.d.ts","sourceRoot":"","sources":["../src/workspace-config-policy.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAQrD,eAAO,MAAM,4BAA4B,0CAA0C,CAAC;AAGpF,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,yBAAyB,YACpC,MAAM,EACN,OAAO,EACP,QAAQ,EACR,OAAO,EACP,WAAW,EACX,UAAU,EACV,QAAQ,EACR,OAAO,EACP,QAAQ,CACA,CAAC;AAEX,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,uBAAuB,CAAC;AAI/B;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE7D;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAI/D;AAQD;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE5D;
|
|
1
|
+
{"version":3,"file":"workspace-config-policy.d.ts","sourceRoot":"","sources":["../src/workspace-config-policy.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,0BAA0B,CAAC;AAQrD,eAAO,MAAM,4BAA4B,0CAA0C,CAAC;AAGpF,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB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