@smoothbricks/nx-plugin 0.5.6 → 0.6.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 +1095 -360
- package/dist/.build-inputs.json +138 -0
- package/dist/bin/smoo-nx-cargo-toolchain.d.ts +3 -0
- package/dist/bin/smoo-nx-cargo-toolchain.d.ts.map +1 -0
- package/dist/bin/smoo-nx-cargo-toolchain.js +8 -0
- package/dist/bin/smoo-nx-forbidden-spellings.d.ts +3 -0
- package/dist/bin/smoo-nx-forbidden-spellings.d.ts.map +1 -0
- package/dist/bin/smoo-nx-forbidden-spellings.js +32 -0
- package/dist/bin/smoo-nx-nextest-timings.d.ts +3 -0
- package/dist/bin/smoo-nx-nextest-timings.d.ts.map +1 -0
- package/dist/bin/smoo-nx-nextest-timings.js +28 -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 +14 -15
- package/dist/build-state-output-policy.d.ts +95 -1
- package/dist/build-state-output-policy.d.ts.map +1 -1
- package/dist/build-state-output-policy.js +368 -30
- package/dist/bun-lock-scope.d.ts +44 -0
- package/dist/bun-lock-scope.d.ts.map +1 -0
- package/dist/bun-lock-scope.js +97 -0
- package/dist/cargo-build-script-env.d.ts +49 -0
- package/dist/cargo-build-script-env.d.ts.map +1 -0
- package/dist/cargo-build-script-env.js +324 -0
- package/dist/cargo-closure-input.d.ts +31 -4
- package/dist/cargo-closure-input.d.ts.map +1 -1
- package/dist/cargo-closure-input.js +66 -6
- package/dist/cargo-retention-hook.d.ts +17 -0
- package/dist/cargo-retention-hook.d.ts.map +1 -0
- package/dist/cargo-retention-hook.js +85 -0
- package/dist/cargo-source-hash.d.ts +25 -7
- package/dist/cargo-source-hash.d.ts.map +1 -1
- package/dist/cargo-source-hash.js +108 -43
- package/dist/cargo-toolchain-paths.d.ts +40 -0
- package/dist/cargo-toolchain-paths.d.ts.map +1 -0
- package/dist/cargo-toolchain-paths.js +84 -0
- package/dist/cargo-toolchain-policy.d.ts +25 -8
- package/dist/cargo-toolchain-policy.d.ts.map +1 -1
- package/dist/cargo-toolchain-policy.js +39 -5
- package/dist/cargo-workspace.d.ts +10 -4
- package/dist/cargo-workspace.d.ts.map +1 -1
- package/dist/cargo-workspace.js +65 -95
- package/dist/cross-check-policy.d.ts +9 -9
- package/dist/cross-check-policy.d.ts.map +1 -1
- package/dist/cross-check-policy.js +11 -11
- package/dist/disk-command-policy.d.ts.map +1 -1
- package/dist/disk-command-policy.js +1 -0
- package/dist/ensure-built-receipt.d.ts +13 -5
- package/dist/ensure-built-receipt.d.ts.map +1 -1
- package/dist/ensure-built-receipt.js +126 -47
- package/dist/ensure-built-witness.d.ts +27 -8
- package/dist/ensure-built-witness.d.ts.map +1 -1
- package/dist/ensure-built-witness.js +45 -15
- package/dist/ensure-built.d.ts.map +1 -1
- package/dist/ensure-built.js +9 -1
- package/dist/eslint-config-closure.d.ts +7 -0
- package/dist/eslint-config-closure.d.ts.map +1 -0
- package/dist/eslint-config-closure.js +346 -0
- 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/bounds.d.ts +56 -0
- package/dist/executors/bounded-exec/bounds.d.ts.map +1 -0
- package/dist/executors/bounded-exec/bounds.js +43 -0
- package/dist/executors/bounded-exec/cpu-pool.d.ts +33 -36
- package/dist/executors/bounded-exec/cpu-pool.d.ts.map +1 -1
- package/dist/executors/bounded-exec/cpu-pool.js +54 -119
- package/dist/executors/bounded-exec/executor.d.ts +19 -12
- package/dist/executors/bounded-exec/executor.d.ts.map +1 -1
- package/dist/executors/bounded-exec/executor.js +371 -239
- package/dist/executors/bounded-exec/gateway-lease.d.ts +22 -19
- package/dist/executors/bounded-exec/gateway-lease.d.ts.map +1 -1
- package/dist/executors/bounded-exec/gateway-lease.js +81 -28
- package/dist/executors/bounded-exec/hang-diagnostics.d.ts +18 -1
- package/dist/executors/bounded-exec/hang-diagnostics.d.ts.map +1 -1
- package/dist/executors/bounded-exec/hang-diagnostics.js +148 -30
- package/dist/executors/bounded-exec/lease-wait.d.ts +43 -0
- package/dist/executors/bounded-exec/lease-wait.d.ts.map +1 -0
- package/dist/executors/bounded-exec/lease-wait.js +68 -0
- package/dist/executors/bounded-exec/lock-wait.d.ts +51 -0
- package/dist/executors/bounded-exec/lock-wait.d.ts.map +1 -0
- package/dist/executors/bounded-exec/lock-wait.js +108 -0
- package/dist/executors/bounded-exec/owned-subtree.d.ts +84 -0
- package/dist/executors/bounded-exec/owned-subtree.d.ts.map +1 -0
- package/dist/executors/bounded-exec/owned-subtree.js +178 -0
- package/dist/executors/bounded-exec/progress.d.ts +4 -1
- package/dist/executors/bounded-exec/progress.d.ts.map +1 -1
- package/dist/executors/bounded-exec/progress.js +5 -2
- package/dist/executors/bounded-exec/ram-attach.d.ts +19 -0
- package/dist/executors/bounded-exec/ram-attach.d.ts.map +1 -0
- package/dist/executors/bounded-exec/ram-attach.js +207 -0
- package/dist/executors/bounded-exec/ram-detach.d.ts +25 -0
- package/dist/executors/bounded-exec/ram-detach.d.ts.map +1 -0
- package/dist/executors/bounded-exec/ram-detach.js +207 -0
- package/dist/executors/bounded-exec/ram-temp-fixtures.d.ts +76 -0
- package/dist/executors/bounded-exec/ram-temp-fixtures.d.ts.map +1 -1
- package/dist/executors/bounded-exec/ram-temp-fixtures.js +296 -0
- package/dist/executors/bounded-exec/ram-temp.d.ts +388 -88
- package/dist/executors/bounded-exec/ram-temp.d.ts.map +1 -1
- package/dist/executors/bounded-exec/ram-temp.js +1213 -399
- package/dist/executors/bounded-exec/run-cpu-pool.d.ts +4 -4
- package/dist/executors/bounded-exec/run-cpu-pool.d.ts.map +1 -1
- package/dist/executors/bounded-exec/run-cpu-pool.js +20 -30
- package/dist/executors/bounded-exec/runner-hook.js +14 -5
- package/dist/executors/bounded-exec/runner-lifecycle.d.ts +14 -1
- package/dist/executors/bounded-exec/runner-lifecycle.d.ts.map +1 -1
- package/dist/executors/bounded-exec/runner-lifecycle.js +27 -6
- package/dist/executors/bounded-exec/{cpu-tokens.d.ts → runner-sizing.d.ts} +14 -42
- package/dist/executors/bounded-exec/runner-sizing.d.ts.map +1 -0
- package/dist/executors/bounded-exec/{cpu-tokens.js → runner-sizing.js} +5 -35
- package/dist/executors/bounded-exec/runtime-pin.d.ts +73 -0
- package/dist/executors/bounded-exec/runtime-pin.d.ts.map +1 -0
- package/dist/executors/bounded-exec/runtime-pin.js +167 -0
- package/dist/executors/bounded-exec/schema.d.ts +18 -1
- package/dist/executors/bounded-exec/schema.d.ts.map +1 -1
- package/dist/executors/bounded-exec/verdict.d.ts +40 -11
- package/dist/executors/bounded-exec/verdict.d.ts.map +1 -1
- package/dist/executors/bounded-exec/verdict.js +88 -19
- package/dist/executors/cargo-zigbuild/executor.d.ts +21 -0
- package/dist/executors/cargo-zigbuild/executor.d.ts.map +1 -1
- package/dist/executors/cargo-zigbuild/executor.js +67 -12
- package/dist/executors/clean-outputs/executor.js +1 -0
- package/dist/executors/scriptc-native/executor.d.ts +79 -0
- package/dist/executors/scriptc-native/executor.d.ts.map +1 -0
- package/dist/executors/scriptc-native/executor.js +367 -0
- package/dist/executors/scriptc-native/ffi-paths.d.ts +9 -0
- package/dist/executors/scriptc-native/ffi-paths.d.ts.map +1 -0
- package/dist/executors/scriptc-native/ffi-paths.js +25 -0
- package/dist/executors/scriptc-native/schema.d.ts +34 -0
- package/dist/executors/scriptc-native/schema.d.ts.map +1 -0
- package/dist/executors/scriptc-native/schema.js +1 -0
- package/dist/executors/typescript-emit/executor.d.ts +3 -1
- package/dist/executors/typescript-emit/executor.d.ts.map +1 -1
- package/dist/executors/typescript-emit/executor.js +164 -33
- package/dist/forbidden-spelling-policy.d.ts +56 -0
- package/dist/forbidden-spelling-policy.d.ts.map +1 -0
- package/dist/forbidden-spelling-policy.js +176 -0
- package/dist/generators/create-package/generator.d.ts.map +1 -1
- package/dist/generators/create-package/generator.js +3 -4
- package/dist/graph-input-contract.d.ts +14 -0
- package/dist/graph-input-contract.d.ts.map +1 -1
- package/dist/graph-input-contract.js +67 -2
- package/dist/index.d.ts +23 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +676 -215
- package/dist/managed-assets.d.ts +2 -0
- package/dist/managed-assets.d.ts.map +1 -1
- package/dist/managed-files/files.d.ts +3 -3
- package/dist/managed-files/files.d.ts.map +1 -1
- package/dist/managed-files/files.js +28 -3
- package/dist/managed-files/managed-format.d.ts.map +1 -1
- package/dist/managed-files/managed-format.js +1 -0
- package/dist/nextest-code-bound.js +1 -0
- package/dist/nextest-timings.d.ts +35 -0
- package/dist/nextest-timings.d.ts.map +1 -0
- package/dist/nextest-timings.js +168 -0
- package/dist/owned-installation.d.ts +6 -5
- package/dist/owned-installation.d.ts.map +1 -1
- package/dist/owned-installation.js +150 -26
- package/dist/package-target-policy.d.ts.map +1 -1
- package/dist/package-target-policy.js +2 -3
- package/dist/process-children.d.ts +7 -0
- package/dist/process-children.d.ts.map +1 -0
- package/dist/process-children.darwin.d.ts +7 -0
- package/dist/process-children.darwin.d.ts.map +1 -0
- package/dist/process-children.darwin.js +13 -0
- package/dist/process-children.js +14 -0
- package/dist/process-children.linux.d.ts +8 -0
- package/dist/process-children.linux.d.ts.map +1 -0
- package/dist/process-children.linux.js +25 -0
- package/dist/process-group.d.ts +108 -0
- package/dist/process-group.d.ts.map +1 -0
- package/dist/process-group.js +171 -0
- package/dist/process-listing.d.ts +7 -0
- package/dist/process-listing.d.ts.map +1 -0
- package/dist/process-listing.js +51 -0
- package/dist/producer-receipts.d.ts +8 -2
- package/dist/producer-receipts.d.ts.map +1 -1
- package/dist/producer-receipts.js +75 -48
- package/dist/task-graph-policy.d.ts +21 -0
- package/dist/task-graph-policy.d.ts.map +1 -0
- package/dist/task-graph-policy.js +91 -0
- package/dist/test-timings.js +4 -4
- package/dist/test-walk-policy.d.ts +14 -5
- package/dist/test-walk-policy.d.ts.map +1 -1
- package/dist/test-walk-policy.js +8 -2
- package/dist/testing.d.ts +73 -28
- package/dist/testing.d.ts.map +1 -1
- package/dist/testing.js +217 -223
- package/dist/tool-bins.d.ts +33 -0
- package/dist/tool-bins.d.ts.map +1 -0
- package/dist/tool-bins.js +72 -0
- package/dist/typecheck-test-policy.d.ts.map +1 -1
- package/dist/typecheck-test-policy.js +3 -4
- package/dist/wait-why-policy.d.ts +28 -0
- package/dist/wait-why-policy.d.ts.map +1 -0
- package/dist/wait-why-policy.js +223 -0
- package/dist/workspace-config-policy.d.ts +14 -8
- package/dist/workspace-config-policy.d.ts.map +1 -1
- package/dist/workspace-config-policy.js +60 -16
- package/dist/workspace-manifest.d.ts +41 -6
- package/dist/workspace-manifest.d.ts.map +1 -1
- package/dist/workspace-manifest.js +57 -0
- package/executors.json +21 -1
- package/loader.js +2 -0
- package/managed/raw/envrc +11 -0
- package/managed/raw/patches/nx@23.2.1.patch +2840 -199
- package/managed/raw/patches/ttsc@0.34.1.patch +119 -0
- package/managed/raw/tooling/direnv/cargo-fetch-bound.ts +245 -0
- package/managed/raw/tooling/direnv/cargo-fetch-run.ts +299 -0
- package/managed/raw/tooling/direnv/compiler-variables.sh +42 -0
- package/managed/raw/tooling/direnv/developer-links.ts +464 -25
- package/managed/raw/tooling/direnv/devenv.smoo.nix +78 -38
- package/managed/raw/tooling/direnv/github-actions-bootstrap.sh +14 -12
- package/managed/raw/tooling/direnv/installed-bun-links.ts +308 -0
- package/managed/raw/tooling/direnv/linked-snapshots.ts +62 -3
- package/managed/raw/tooling/direnv/nx-socket-dir.sh +56 -17
- package/managed/raw/tooling/direnv/repo-path +68 -6
- package/managed/raw/tooling/direnv/secret-references.ts +13 -4
- package/managed/raw/tooling/direnv/setup-environment.ts +128 -537
- package/managed/raw/tooling/direnv/toolchain-stamp.ts +4 -2
- package/managed/raw/tooling/direnv/ttsc-env.sh +9 -0
- package/managed/raw/tooling/direnv/uv-relocation.ts +227 -0
- package/managed/raw/tooling/git-hooks/commit-msg.sh +2 -1
- package/managed/raw/tooling/git-hooks/pre-commit.sh +2 -1
- package/managed/raw/tooling/git-hooks/pre-push.sh +2 -1
- package/managed/templates/github/actions/cache-ttsc-plugins/action.yml +85 -7
- package/managed/templates/github/actions/save-nix-devenv/action.yml +12 -2
- package/managed/templates/github/actions/setup-devenv/action.yml +2 -0
- package/package.json +77 -13
- package/src/bin/smoo-nx-cargo-toolchain.ts +11 -0
- package/src/bin/smoo-nx-forbidden-spellings.ts +33 -0
- package/src/bin/smoo-nx-nextest-timings.ts +31 -0
- package/src/bounded-test-policy.ts +12 -14
- package/src/build-state-output-policy.ts +458 -34
- package/src/bun-lock-scope.ts +108 -0
- package/src/cargo-build-script-env.ts +265 -0
- package/src/cargo-closure-input.ts +74 -7
- package/src/cargo-retention-hook.ts +94 -0
- package/src/cargo-source-hash.ts +138 -41
- package/src/cargo-toolchain-paths.ts +95 -0
- package/src/cargo-toolchain-policy.ts +49 -5
- package/src/cargo-workspace.ts +72 -123
- package/src/cross-check-policy.ts +12 -10
- package/src/disk-command-policy.ts +1 -0
- package/src/ensure-built-receipt.ts +132 -39
- package/src/ensure-built-witness.ts +62 -10
- package/src/ensure-built.ts +11 -1
- package/src/eslint-config-closure.ts +357 -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/bounds.ts +76 -0
- package/src/executors/bounded-exec/cpu-pool.ts +51 -117
- package/src/executors/bounded-exec/executor.ts +423 -259
- package/src/executors/bounded-exec/gateway-lease.ts +82 -33
- package/src/executors/bounded-exec/hang-diagnostics.ts +173 -31
- package/src/executors/bounded-exec/lease-wait.ts +89 -0
- package/src/executors/bounded-exec/lock-wait.ts +141 -0
- package/src/executors/bounded-exec/owned-subtree.ts +235 -0
- package/src/executors/bounded-exec/progress.ts +9 -3
- package/src/executors/bounded-exec/ram-attach.ts +238 -0
- package/src/executors/bounded-exec/ram-detach.ts +226 -0
- package/src/executors/bounded-exec/ram-temp-fixtures.ts +358 -0
- package/src/executors/bounded-exec/ram-temp-registry.txt +440 -0
- package/src/executors/bounded-exec/ram-temp.ts +1497 -460
- package/src/executors/bounded-exec/run-cpu-pool.ts +22 -30
- package/src/executors/bounded-exec/runner-hook.ts +14 -6
- package/src/executors/bounded-exec/runner-lifecycle.ts +31 -8
- package/src/executors/bounded-exec/{cpu-tokens.ts → runner-sizing.ts} +13 -59
- package/src/executors/bounded-exec/runtime-pin.ts +232 -0
- package/src/executors/bounded-exec/schema.json +11 -2
- package/src/executors/bounded-exec/schema.ts +19 -1
- package/src/executors/bounded-exec/verdict.ts +137 -34
- package/src/executors/cargo-zigbuild/executor.ts +82 -8
- package/src/executors/clean-outputs/executor.ts +1 -0
- package/src/executors/scriptc-native/executor.ts +394 -0
- package/src/executors/scriptc-native/ffi-paths.ts +29 -0
- package/src/executors/scriptc-native/schema.json +60 -0
- package/src/executors/scriptc-native/schema.ts +34 -0
- package/src/executors/typescript-emit/executor.ts +205 -38
- package/src/forbidden-spelling-policy.ts +226 -0
- package/src/generators/create-package/generator.ts +7 -7
- package/src/graph-input-contract.ts +61 -2
- package/src/index.ts +792 -225
- package/src/managed-assets.ts +3 -0
- package/src/managed-files/files.ts +28 -3
- package/src/managed-files/managed-format.ts +1 -0
- package/src/nextest-code-bound.ts +1 -0
- package/src/nextest-timings.ts +106 -0
- package/src/owned-installation.ts +150 -23
- package/src/package-target-policy.ts +2 -3
- package/src/process-children.darwin.ts +14 -0
- package/src/process-children.linux.ts +33 -0
- package/src/process-children.ts +22 -0
- package/src/process-group.ts +209 -0
- package/src/process-listing.ts +54 -0
- package/src/producer-receipts.ts +68 -45
- package/src/task-graph-policy.ts +98 -0
- package/src/test-walk-policy.ts +23 -8
- package/src/testing.ts +240 -232
- package/src/tool-bins.ts +108 -0
- package/src/typecheck-test-policy.ts +2 -3
- package/src/wait-why-policy.ts +226 -0
- package/src/workspace-config-policy.ts +63 -15
- package/src/workspace-manifest.ts +89 -6
- package/test-timings.json +123 -98
- package/dist/bin/smoo-nx-failures.d.ts +0 -3
- package/dist/bin/smoo-nx-failures.d.ts.map +0 -1
- package/dist/bin/smoo-nx-failures.js +0 -3
- package/dist/bin/smoo-nx-nextest-extract.d.ts +0 -3
- package/dist/bin/smoo-nx-nextest-extract.d.ts.map +0 -1
- package/dist/bin/smoo-nx-nextest-extract.js +0 -42
- package/dist/executors/bounded-exec/cpu-tokens.d.ts.map +0 -1
- package/dist/failure-summary.d.ts +0 -5
- package/dist/failure-summary.d.ts.map +0 -1
- package/dist/failure-summary.js +0 -118
- package/dist/nextest-extraction.d.ts +0 -117
- package/dist/nextest-extraction.d.ts.map +0 -1
- package/dist/nextest-extraction.js +0 -303
- package/managed/raw/patches/ttsc@0.30.4.patch +0 -2255
- package/src/__tests__/cargo-closure-filesets.ts +0 -94
- package/src/__tests__/cargo-closure-fixture.ts +0 -113
- package/src/__tests__/counted-cargo-process.ts +0 -286
- package/src/__tests__/counted-cargo.ts +0 -713
- package/src/__tests__/directory-change.ts +0 -27
- package/src/__tests__/fixture-cargo-home.ts +0 -36
- package/src/__tests__/fixture-nx-env.ts +0 -193
- package/src/__tests__/owned-installation.ts +0 -13
- package/src/__tests__/past-tick.ts +0 -12
- package/src/__tests__/progress-clock.ts +0 -43
- package/src/__tests__/runtime-input.ts +0 -23
- package/src/bin/smoo-nx-bound-failures.test.ts +0 -127
- package/src/bin/smoo-nx-failures.ts +0 -4
- package/src/bin/smoo-nx-nextest-extract.ts +0 -44
- package/src/bounded-test-policy.test.ts +0 -1029
- package/src/build-state-output-policy.test.ts +0 -115
- package/src/bun-bootstrap.test.ts +0 -102
- package/src/bun-file-packages.test.ts +0 -47
- package/src/cargo-closure-filesets.test.ts +0 -63
- package/src/cargo-closure-input.property.test.ts +0 -50
- package/src/cargo-closure-input.test.ts +0 -506
- package/src/cargo-closure-key.test.ts +0 -240
- package/src/cargo-resolve-cache.test.ts +0 -1181
- package/src/cargo-source-hash.test.ts +0 -707
- package/src/cargo-workspace.test.ts +0 -615
- package/src/cross-check-policy.test.ts +0 -316
- package/src/disk-command-policy.test.ts +0 -61
- package/src/ensure-built-receipt.test.ts +0 -279
- package/src/ensure-built-witness.test.ts +0 -688
- package/src/ensure-built.test.ts +0 -1462
- package/src/executors/bounded-exec/cargo-progress-host.test.ts +0 -332
- package/src/executors/bounded-exec/cpu-pool.test.ts +0 -684
- package/src/executors/bounded-exec/cpu-tokens.test.ts +0 -519
- package/src/executors/bounded-exec/disk-lease.test.ts +0 -219
- package/src/executors/bounded-exec/executor-host.test.ts +0 -800
- package/src/executors/bounded-exec/executor.test.ts +0 -1819
- package/src/executors/bounded-exec/go-progress-host.test.ts +0 -171
- package/src/executors/bounded-exec/hang-diagnostics.test.ts +0 -291
- package/src/executors/bounded-exec/progress.test.ts +0 -139
- package/src/executors/bounded-exec/ram-temp-held.test.ts +0 -264
- package/src/executors/bounded-exec/ram-temp-host.test.ts +0 -635
- package/src/executors/bounded-exec/ram-temp.test.ts +0 -750
- package/src/executors/bounded-exec/run-cpu-pool.test.ts +0 -79
- package/src/executors/bounded-exec/runner-hook.test.ts +0 -193
- package/src/executors/bounded-exec/runner-lifecycle.test.ts +0 -82
- package/src/executors/bounded-exec/verdict.test.ts +0 -545
- package/src/executors/cargo-zigbuild/executor.test.ts +0 -129
- package/src/executors/clean-outputs/executor.test.ts +0 -20
- package/src/executors/typescript-emit/executor.test.ts +0 -83
- package/src/failure-summary.ts +0 -119
- package/src/generators/bounded-test-targets/generator.test.ts +0 -138
- package/src/generators/bun-test-tracing/generator.test.ts +0 -250
- package/src/generators/create-package/generator.test.ts +0 -190
- package/src/generators/make-public/generator.test.ts +0 -137
- package/src/graph-input-contract.test.ts +0 -379
- package/src/host-controller-wiring.test.ts +0 -31
- package/src/index.test.ts +0 -3319
- package/src/linked-snapshots.nx.test.ts +0 -254
- package/src/managed-files/forgejo-artifact.test.ts +0 -395
- package/src/managed-files/generator.test.ts +0 -243
- package/src/managed-files/github-host-cache-isolation.test.ts +0 -86
- package/src/managed-files/json-edit.test.ts +0 -216
- package/src/managed-files/managed-content.test.ts +0 -166
- package/src/managed-files/managed-format-json.test.ts +0 -308
- package/src/managed-files/repo-path.test.ts +0 -172
- package/src/managed-files/setup-devenv-free-disk.test.ts +0 -95
- package/src/managed-files/trace-db-artifact.test.ts +0 -7
- package/src/managed-files/tree-permissions.test.ts +0 -109
- package/src/managed-files/tree.test.ts +0 -123
- package/src/manifest-hash.test.ts +0 -219
- package/src/nextest-code-bound.test.ts +0 -161
- package/src/nextest-extraction.test.ts +0 -216
- package/src/nextest-extraction.ts +0 -371
- package/src/nextest-partitions.test.ts +0 -501
- package/src/nx-cache-bound.test.ts +0 -109
- package/src/nx-cache-restore-mtime.test.ts +0 -170
- package/src/nx-daemon-claim.test.ts +0 -279
- package/src/nx-daemon-idle-cpu.test.ts +0 -80
- package/src/nx-daemon-idle-policy.test.ts +0 -111
- package/src/nx-daemon-ignore-files.test.ts +0 -210
- package/src/nx-daemon-root-normalization.test.ts +0 -105
- package/src/nx-daemon-start-never.test.ts +0 -292
- package/src/nx-daemon-validity.test.ts +0 -1055
- package/src/nx-dot-input-policy.test.ts +0 -353
- package/src/nx-failure-life-cycles.test.ts +0 -207
- package/src/nx-files-archive-racy.test.ts +0 -97
- package/src/nx-foreign-workspace-env.test.ts +0 -329
- package/src/nx-incomplete-run-summary.test.ts +0 -70
- package/src/nx-plugin-load-errors.test.ts +0 -120
- package/src/nx-project-graph-errors.test.ts +0 -70
- package/src/nx-project-resolution-cache.test.ts +0 -176
- package/src/nx-raw-inputs.test.ts +0 -166
- package/src/nx-resident-graph-workers.test.ts +0 -112
- package/src/nx-run-information.test.ts +0 -118
- package/src/nx-skipped-task-exit.test.ts +0 -180
- package/src/nx-state-location.test.ts +0 -63
- package/src/nx-store-resolution.test.ts +0 -81
- package/src/nx-task-graph-cycles.test.ts +0 -148
- package/src/nx-task-output-lease.test.ts +0 -550
- package/src/nx-use-local.test.ts +0 -105
- package/src/owned-installation.test.ts +0 -105
- package/src/package-target-policy.test.ts +0 -1014
- package/src/producer-receipts.test.ts +0 -285
- package/src/release-config-policy.test.ts +0 -311
- package/src/runtime-input.test.ts +0 -393
- package/src/serial-group-wiring.test.ts +0 -326
- package/src/task-history-namespace.test.ts +0 -181
- package/src/task-results.test.ts +0 -228
- package/src/test-clock-policy.test.ts +0 -338
- package/src/test-program.test.ts +0 -303
- package/src/test-timings.test.ts +0 -240
- package/src/test-walk-policy.test.ts +0 -620
- package/src/testing.test.ts +0 -509
- package/src/typecheck-test-policy.test.ts +0 -1468
- package/src/typescript-resolution.test.ts +0 -76
- package/src/version-actions.test.ts +0 -80
- package/src/workspace-config-policy.test.ts +0 -737
|
@@ -2,8 +2,8 @@ import { spawnSync } from 'node:child_process';
|
|
|
2
2
|
import { createHash } from 'node:crypto';
|
|
3
3
|
import { closeSync, lstatSync, openSync, readdirSync, readFileSync, readlinkSync, readSync, realpathSync, } from 'node:fs';
|
|
4
4
|
import { isAbsolute, join, relative } from 'node:path';
|
|
5
|
-
import { CARGO_TOOLCHAIN_PIN_INPUTS, cargoRuntimeInput } from './cargo-toolchain-policy.js';
|
|
6
|
-
import { censusStart, movedNodes, recordedStamp } from './ensure-built-witness.js';
|
|
5
|
+
import { CARGO_TOOLCHAIN_PIN_INPUTS, cargoRuntimeInput, cargoToolchainPathsInput } from './cargo-toolchain-policy.js';
|
|
6
|
+
import { censusStart, directoryMembers, movedNodes, recordedStamp, } from './ensure-built-witness.js';
|
|
7
7
|
/**
|
|
8
8
|
* Git as receipts read it: the checkout and nothing of the operator's home. The producer hooks run in whichever process
|
|
9
9
|
* Nx runs plugins in, a workspace's sandboxed daemon included, which adopts a host client's HOME; git with that HOME
|
|
@@ -23,6 +23,7 @@ export function receiptGit(root, args) {
|
|
|
23
23
|
'GIT_NAMESPACE',
|
|
24
24
|
])
|
|
25
25
|
delete env[key];
|
|
26
|
+
// eslint-disable-next-line deadline/no-unbounded-wait -- WHY unbounded: a local git query: it asks no remote, and a held index.lock fails it at once rather than waiting, so only the operator's interrupt ends a hung one
|
|
26
27
|
const child = spawnSync('git', ['-C', root, ...args], { env, encoding: 'utf8', maxBuffer: 64 * 1024 * 1024 });
|
|
27
28
|
return child.status === 0 && child.error === undefined
|
|
28
29
|
? { ok: true, value: child.stdout }
|
|
@@ -110,11 +111,13 @@ function sourceFileDigests(path, size, algorithm) {
|
|
|
110
111
|
}
|
|
111
112
|
/**
|
|
112
113
|
* One independently read node; absolute paths also serve tool/package closures. A census records the node's stamp as
|
|
113
|
-
* of its `start` (recordedStamp); a re-read against a record records none.
|
|
114
|
+
* of its `start` (recordedStamp); a re-read against a record records none. `known` is what a census of the same capture
|
|
115
|
+
* already read of the node ({@link CensusRead}): its stat, listing and start stand for this read, so a capture stats a
|
|
116
|
+
* node once; the stability check after execution reads it again.
|
|
114
117
|
*/
|
|
115
|
-
export function receiptNode(path, name, census, recorded) {
|
|
116
|
-
const stats = lstatSync(path, { bigint: true });
|
|
117
|
-
census?.observed.push({ path, stamp: recordedStamp(stats, census.start) });
|
|
118
|
+
export function receiptNode(path, name, census, recorded, known) {
|
|
119
|
+
const stats = known?.stats ?? lstatSync(path, { bigint: true });
|
|
120
|
+
census?.observed.push({ path, stamp: recordedStamp(stats, known?.start ?? census.start) });
|
|
118
121
|
const mode = Number(stats.mode & 4095n);
|
|
119
122
|
if (stats.isFile())
|
|
120
123
|
return {
|
|
@@ -126,7 +129,7 @@ export function receiptNode(path, name, census, recorded) {
|
|
|
126
129
|
if (stats.isSymbolicLink())
|
|
127
130
|
return { path: name, type: 'symlink', mode, linkText: readlinkSync(path) };
|
|
128
131
|
if (stats.isDirectory()) {
|
|
129
|
-
const entries =
|
|
132
|
+
const entries = known?.entries ?? directoryMembers(path);
|
|
130
133
|
return {
|
|
131
134
|
path: name,
|
|
132
135
|
type: 'directory',
|
|
@@ -139,16 +142,74 @@ export function receiptNode(path, name, census, recorded) {
|
|
|
139
142
|
}
|
|
140
143
|
/**
|
|
141
144
|
* Whether a tracked source node whose stamp does not prove it (its ctime alone moved, or it was read in the tick it
|
|
142
|
-
* changed in) still holds the bytes or link text `files` recorded for it.
|
|
145
|
+
* changed in) still holds the bytes or link text `files` recorded for it. A node that is gone, or no longer a file, does not.
|
|
143
146
|
*/
|
|
144
147
|
function recordedSource(root, files) {
|
|
145
148
|
const recorded = new Map(files.map((file) => [join(root, file.path), file.sha256]));
|
|
146
|
-
return (path) =>
|
|
147
|
-
|
|
148
|
-
|
|
149
|
+
return (path) => {
|
|
150
|
+
try {
|
|
151
|
+
return (recorded.get(path) ===
|
|
152
|
+
createHash('sha256')
|
|
153
|
+
.update(lstatSync(path).isSymbolicLink() ? readlinkSync(path) : readFileSync(path))
|
|
154
|
+
.digest('hex'));
|
|
155
|
+
}
|
|
156
|
+
catch (error) {
|
|
157
|
+
if (error instanceof Error && 'code' in error && (error.code === 'ENOENT' || error.code === 'EISDIR'))
|
|
158
|
+
return false;
|
|
159
|
+
throw error;
|
|
160
|
+
}
|
|
161
|
+
};
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* One tracked file as it stands against HEAD's entry for it (`head.mode`, `head.oid`): the witness a receipt binds it
|
|
165
|
+
* by and the stamp it was read at, or how it differs.
|
|
166
|
+
*/
|
|
167
|
+
function trackedSource(root, file, head, start) {
|
|
168
|
+
const path = join(root, file);
|
|
169
|
+
let stats;
|
|
170
|
+
try {
|
|
171
|
+
stats = lstatSync(path, { bigint: true });
|
|
172
|
+
}
|
|
173
|
+
catch (error) {
|
|
174
|
+
if (error instanceof Error && 'code' in error && error.code === 'ENOENT')
|
|
175
|
+
return { ok: false, detail: `Tracked source is missing: ${file}` };
|
|
176
|
+
throw error;
|
|
177
|
+
}
|
|
178
|
+
const actualMode = stats.isSymbolicLink() ? '120000' : (stats.mode & 73n) !== 0n ? '100755' : '100644';
|
|
179
|
+
if (actualMode !== head.mode)
|
|
180
|
+
return { ok: false, detail: `Tracked source mode differs from HEAD: ${file}` };
|
|
181
|
+
let gitBlob;
|
|
182
|
+
let sha256;
|
|
183
|
+
if (stats.isFile()) {
|
|
184
|
+
const digests = sourceFileDigests(path, Number(stats.size), head.algorithm);
|
|
185
|
+
gitBlob = digests.gitBlob;
|
|
186
|
+
sha256 = digests.sha256;
|
|
187
|
+
}
|
|
188
|
+
else if (stats.isSymbolicLink()) {
|
|
189
|
+
const text = readlinkSync(path);
|
|
190
|
+
gitBlob = createHash(head.algorithm)
|
|
191
|
+
.update(`blob ${Buffer.byteLength(text)}\0`)
|
|
192
|
+
.update(text)
|
|
149
193
|
.digest('hex');
|
|
194
|
+
sha256 = createHash('sha256').update(text).digest('hex');
|
|
195
|
+
}
|
|
196
|
+
else
|
|
197
|
+
return { ok: false, detail: `Unbound tracked source node: ${file}` };
|
|
198
|
+
if (gitBlob !== head.oid)
|
|
199
|
+
return { ok: false, detail: `Tracked source bytes differ from HEAD: ${file}` };
|
|
200
|
+
return {
|
|
201
|
+
ok: true,
|
|
202
|
+
value: {
|
|
203
|
+
node: { path, stamp: recordedStamp(stats, start) },
|
|
204
|
+
input: { path: file, mode: Number(stats.mode & 4095n), gitBlob, sha256 },
|
|
205
|
+
},
|
|
206
|
+
};
|
|
150
207
|
}
|
|
151
|
-
/**
|
|
208
|
+
/**
|
|
209
|
+
* Capture every tracked source byte at pre. Unrelated untracked files are not source basis. A tracked public output is
|
|
210
|
+
* source while it holds HEAD's bytes, so a later task can read it as a FILE input; one that differs from HEAD is the
|
|
211
|
+
* run's to write, and no input binds to it.
|
|
212
|
+
*/
|
|
152
213
|
export function captureProducerSource(root, outputs) {
|
|
153
214
|
try {
|
|
154
215
|
const revision = receiptGit(root, ['rev-parse', '--verify', 'HEAD']);
|
|
@@ -181,34 +242,17 @@ export function captureProducerSource(root, outputs) {
|
|
|
181
242
|
if (kind !== 'blob')
|
|
182
243
|
return { ok: false, detail: `Unbound tracked source namespace ${entry}` };
|
|
183
244
|
const file = entry.slice(tab + 1);
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
const actualMode = stats.isSymbolicLink() ? '120000' : (stats.mode & 73n) !== 0n ? '100755' : '100644';
|
|
190
|
-
if (actualMode !== mode)
|
|
191
|
-
return { ok: false, detail: `Tracked source mode differs from HEAD: ${file}` };
|
|
192
|
-
let gitBlob;
|
|
193
|
-
let sha256;
|
|
194
|
-
if (stats.isFile()) {
|
|
195
|
-
const digests = sourceFileDigests(path, Number(stats.size), algorithm);
|
|
196
|
-
gitBlob = digests.gitBlob;
|
|
197
|
-
sha256 = digests.sha256;
|
|
245
|
+
const witnessed = trackedSource(root, file, { mode, oid, algorithm }, start);
|
|
246
|
+
if (!witnessed.ok) {
|
|
247
|
+
if (excluded.has(file))
|
|
248
|
+
continue;
|
|
249
|
+
return witnessed;
|
|
198
250
|
}
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
.digest('hex');
|
|
205
|
-
sha256 = createHash('sha256').update(text).digest('hex');
|
|
206
|
-
}
|
|
207
|
-
else
|
|
208
|
-
return { ok: false, detail: `Unbound tracked source node: ${file}` };
|
|
209
|
-
if (gitBlob !== oid)
|
|
210
|
-
return { ok: false, detail: `Tracked source bytes differ from HEAD: ${file}` };
|
|
211
|
-
files.push({ path: file, mode: Number(stats.mode & 4095n), gitBlob, sha256 });
|
|
251
|
+
// A public output's stamp is the run's to move (a cache restore or a regeneration does), so only its bytes are
|
|
252
|
+
// held.
|
|
253
|
+
if (!excluded.has(file))
|
|
254
|
+
nodes.push(witnessed.value.node);
|
|
255
|
+
files.push(witnessed.value.input);
|
|
212
256
|
}
|
|
213
257
|
const status = receiptGit(root, ['status', '--porcelain=v1', '-z', '--untracked-files=no']);
|
|
214
258
|
if (!status.ok)
|
|
@@ -227,6 +271,31 @@ export function captureProducerSource(root, outputs) {
|
|
|
227
271
|
throw error;
|
|
228
272
|
}
|
|
229
273
|
}
|
|
274
|
+
/** Share Git and tracked-byte acquisition, never one target's output exemption with another. */
|
|
275
|
+
export function captureProducerSources(root, targets) {
|
|
276
|
+
if (targets.size === 0)
|
|
277
|
+
return { ok: true, value: new Map() };
|
|
278
|
+
const plans = [...targets].map(([target, outputs]) => ({
|
|
279
|
+
target,
|
|
280
|
+
outputs,
|
|
281
|
+
excluded: new Set(outputs.filter((path) => !graphConfiguration(path))),
|
|
282
|
+
}));
|
|
283
|
+
const common = [...(plans[0]?.excluded ?? [])].filter((path) => plans.every(({ excluded }) => excluded.has(path)));
|
|
284
|
+
const source = captureProducerSource(root, common);
|
|
285
|
+
if (!source.ok)
|
|
286
|
+
return source;
|
|
287
|
+
return {
|
|
288
|
+
ok: true,
|
|
289
|
+
value: new Map(plans.map(({ target, outputs, excluded }) => [
|
|
290
|
+
target,
|
|
291
|
+
{
|
|
292
|
+
...source.value,
|
|
293
|
+
outputs,
|
|
294
|
+
nodes: source.value.nodes.filter(({ path }) => !excluded.has(relative(root, path))),
|
|
295
|
+
},
|
|
296
|
+
])),
|
|
297
|
+
};
|
|
298
|
+
}
|
|
230
299
|
export function producerSourceUnchanged(root, before) {
|
|
231
300
|
const revision = receiptGit(root, ['rev-parse', '--verify', 'HEAD']);
|
|
232
301
|
if (!revision.ok)
|
|
@@ -244,9 +313,16 @@ export function producerSourceUnchanged(root, before) {
|
|
|
244
313
|
const dirty = dirtyProviderPaths(status.value).filter((path) => !outputs.has(path));
|
|
245
314
|
if (dirty.length !== 0)
|
|
246
315
|
return { ok: false, detail: `${changed}: ${dirty.join(', ')} differ from HEAD` };
|
|
247
|
-
const
|
|
316
|
+
const holds = recordedSource(root, before.files);
|
|
317
|
+
const moved = movedNodes(before.nodes, holds);
|
|
248
318
|
if (moved !== null)
|
|
249
319
|
return { ok: false, detail: `${changed}: ${moved}` };
|
|
320
|
+
const rewritten = before.files.filter(({ path }) => outputs.has(path) && !holds(join(root, path)));
|
|
321
|
+
if (rewritten.length !== 0)
|
|
322
|
+
return {
|
|
323
|
+
ok: false,
|
|
324
|
+
detail: `${changed}: tracked public output ${rewritten.map(({ path }) => path).join(', ')} no longer holds HEAD's bytes`,
|
|
325
|
+
};
|
|
250
326
|
return { ok: true, value: true };
|
|
251
327
|
}
|
|
252
328
|
/** Enumerate exact public nodes; never exempt a broad directory of tracked source. */
|
|
@@ -381,7 +457,7 @@ export function providerReceipt(root, taskId, tasks, proof, expand, source, prod
|
|
|
381
457
|
throw error;
|
|
382
458
|
}
|
|
383
459
|
}
|
|
384
|
-
/** Admit only
|
|
460
|
+
/** Admit only the recipes emitted by the owning generator: the version recipes, the declared-programs one, and declared toolchain pins. */
|
|
385
461
|
export function boundedReceiptRuntimes(inputs, directories, files, installationProved) {
|
|
386
462
|
const runtimes = Object.values(inputs).flatMap((input) => input.runtime);
|
|
387
463
|
if (runtimes.length === 0)
|
|
@@ -391,12 +467,15 @@ export function boundedReceiptRuntimes(inputs, directories, files, installationP
|
|
|
391
467
|
const pins = CARGO_TOOLCHAIN_PIN_INPUTS.map((path) => path.replace('{workspaceRoot}/', ''));
|
|
392
468
|
if (!pins.some((pin) => files.includes(pin)))
|
|
393
469
|
return { kind: 'opaque', detail: 'Version runtime input has no declared toolchain FILE pin' };
|
|
394
|
-
const allowed = new Set(
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
470
|
+
const allowed = new Set([
|
|
471
|
+
...directories.flatMap((directory) => [
|
|
472
|
+
'rustc -vV && cargo -V',
|
|
473
|
+
'rustc -vV && cargo -V && cargo clippy -V',
|
|
474
|
+
'rustc -vV && cargo -V && cargo clippy -V && cargo fmt --version',
|
|
475
|
+
'rustc -vV && cargo -V && cargo nextest --version',
|
|
476
|
+
].map((command) => cargoRuntimeInput(directory, command).runtime)),
|
|
477
|
+
cargoToolchainPathsInput().runtime,
|
|
478
|
+
]);
|
|
400
479
|
const opaque = runtimes.filter((runtime) => !allowed.has(runtime));
|
|
401
480
|
return opaque.length === 0
|
|
402
481
|
? { kind: 'bounded' }
|
|
@@ -13,10 +13,15 @@ export declare function stampMode(stamp: string): string;
|
|
|
13
13
|
/**
|
|
14
14
|
* How an observed stamp compares with the recorded one: `same`; `ctime` when device, inode, mode, size and mtime are
|
|
15
15
|
* kept and only the ctime moved (a same-mode chmod, which Bun's bin linking does to a shared store file on any
|
|
16
|
-
* checkout's install) or was recorded `unproven` ({@link recordedStamp});
|
|
17
|
-
*
|
|
16
|
+
* checkout's install) or was recorded `unproven` ({@link recordedStamp}); `members` when a directory keeps its
|
|
17
|
+
* device, inode and mode and its size or mtime moved: an entry was added, removed or renamed in it since, and only its
|
|
18
|
+
* listing can say whether its membership is the one recorded (the Nx daemon's watcher probe comes and goes in
|
|
19
|
+
* `node_modules`, {@link directoryMembers}); otherwise `moved`. A function of the two stamps alone, so no filesystem
|
|
20
|
+
* or clock decides it.
|
|
18
21
|
*/
|
|
19
|
-
export declare function stampMove(recorded: string, observed: string): 'same' | 'ctime' | 'moved';
|
|
22
|
+
export declare function stampMove(recorded: string, observed: string): 'same' | 'ctime' | 'members' | 'moved';
|
|
23
|
+
/** The sorted listing a receipt records as a directory's membership: a `node_modules` without its {@link WATCH_PROBE}s. */
|
|
24
|
+
export declare function directoryMembers(path: string): string[];
|
|
20
25
|
/**
|
|
21
26
|
* How long after a node's last change a stamp read of it proves nothing about the next change: git's racily clean
|
|
22
27
|
* rule (git's Documentation/technical/racy-git.txt), which the Nx archive repair already applies to Nx's own file
|
|
@@ -42,6 +47,15 @@ export declare function unproven(stats: StampFields, start: bigint): boolean;
|
|
|
42
47
|
* counts it moved when it holds nothing to re-read it against. Only such a node costs a re-read.
|
|
43
48
|
*/
|
|
44
49
|
export declare function recordedStamp(stats: StampFields, start: bigint): string;
|
|
50
|
+
/**
|
|
51
|
+
* What a census read of one node, and when it started reading: a reader that records the node in the same capture
|
|
52
|
+
* takes this instead of reading it a second time. `entries` is a directory's sorted listing.
|
|
53
|
+
*/
|
|
54
|
+
export interface CensusRead {
|
|
55
|
+
readonly stats: BigIntStats;
|
|
56
|
+
readonly start: bigint;
|
|
57
|
+
readonly entries?: readonly string[];
|
|
58
|
+
}
|
|
45
59
|
export interface NodeWitness {
|
|
46
60
|
readonly path: string;
|
|
47
61
|
readonly stamp: string;
|
|
@@ -78,9 +92,11 @@ export declare function nodesUnchanged(nodes: readonly NodeWitness[]): boolean;
|
|
|
78
92
|
* gone one with its error code, and how many more), or null when none moved. A node whose device, inode, mode, size
|
|
79
93
|
* and mtime are unchanged and only its ctime moved (a same-mode chmod, which Bun's bin linking does to a shared store
|
|
80
94
|
* file on any checkout's install), or whose ctime was recorded unproven ({@link recordedStamp}), asks for a comparison,
|
|
81
|
-
* not a verdict: `same` re-reads it, and one it finds as recorded has not changed.
|
|
95
|
+
* not a verdict: `same` re-reads it, and one it finds as recorded has not changed. A directory whose size or mtime
|
|
96
|
+
* moved (`members`, {@link stampMove}) asks `members` whether its membership is still the recorded one. Without
|
|
97
|
+
* them every move counts.
|
|
82
98
|
*/
|
|
83
|
-
export declare function movedNodes(nodes: readonly NodeWitness[], same?: (path: string) => boolean): string | null;
|
|
99
|
+
export declare function movedNodes(nodes: readonly NodeWitness[], same?: (path: string) => boolean, members?: (path: string) => boolean): string | null;
|
|
84
100
|
/** Membership and content are exact. Outputs do not exempt manifests or
|
|
85
101
|
* newly created/deleted files; this graph witness has no output exclusions.
|
|
86
102
|
*/
|
|
@@ -105,8 +121,10 @@ export interface GraphInstallationCensus {
|
|
|
105
121
|
* physical target and package manifest. SHA-256 binds every regular file's
|
|
106
122
|
* bytes, including manifest metadata; pre/post node stamps still reject a
|
|
107
123
|
* tree that moved while reading. A missing optional dependency is recorded too.
|
|
124
|
+
* `previous` is a hash source only ({@link graphInstallationCensus}): a file whose stamp has not moved since it read
|
|
125
|
+
* the file is not read again.
|
|
108
126
|
*/
|
|
109
|
-
export declare function graphInstallationIdentity(workspaceRoot: string, nxJson: NxJsonConfiguration, resolvePackage: typeof readModulePackageJsonWithoutFallbacks, expand: typeof expandOutputs, localInputs: GraphInputContractProof | null, onUnproved?: (detail: string) => void): string | null;
|
|
127
|
+
export declare function graphInstallationIdentity(workspaceRoot: string, nxJson: NxJsonConfiguration, resolvePackage: typeof readModulePackageJsonWithoutFallbacks, expand: typeof expandOutputs, localInputs: GraphInputContractProof | null, onUnproved?: (detail: string) => void, previous?: GraphInstallationCensus): string | null;
|
|
110
128
|
/** The identity {@link graphInstallationIdentity} names for a proven census: what it read, never what it reused. */
|
|
111
129
|
export declare function installationIdentityOf({ resolutions, nodes, files }: GraphInstallationCensus, localInputs: GraphInputContractProof | null): string;
|
|
112
130
|
/** The census behind a recorded identity ({@link installationIdentityOf}) and its unproven files, or `undefined` for
|
|
@@ -142,9 +160,10 @@ export declare function provenInstallationCensus(workspaceRoot: string, nxJson:
|
|
|
142
160
|
* whose stamp `previous` lacks, and one `previous` recorded unproven are read again; `previous` need not be proven.
|
|
143
161
|
* The key is the stamp, not a cheaper generation (a resolution, a manifest, an install marker): a rebuild of a
|
|
144
162
|
* developer-linked package, this plugin's own `dist`, rewrites its files in place and moves none of those, so a census
|
|
145
|
-
* keyed on them would describe a tree that is no longer there.
|
|
163
|
+
* keyed on them would describe a tree that is no longer there. `reads`, when given, receives what this census read of
|
|
164
|
+
* each node ({@link CensusRead}).
|
|
146
165
|
*/
|
|
147
|
-
export declare function graphInstallationCensus(workspaceRoot: string, nxJson: NxJsonConfiguration, resolvePackage: typeof readModulePackageJsonWithoutFallbacks, expand: typeof expandOutputs, localInputs: GraphInputContractProof | null, onUnproved?: (detail: string) => void, previous?: GraphInstallationCensus): GraphInstallationCensus | null;
|
|
166
|
+
export declare function graphInstallationCensus(workspaceRoot: string, nxJson: NxJsonConfiguration, resolvePackage: typeof readModulePackageJsonWithoutFallbacks, expand: typeof expandOutputs, localInputs: GraphInputContractProof | null, onUnproved?: (detail: string) => void, previous?: GraphInstallationCensus, reads?: Map<string, CensusRead>): GraphInstallationCensus | null;
|
|
148
167
|
export interface ArtifactWitness {
|
|
149
168
|
readonly version: 1;
|
|
150
169
|
readonly workspaceRoot: string;
|
|
@@ -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,OAAO,KAAK,EAAe,qCAAqC,EAAE,MAAM,2BAA2B,CAAC;AAEpG,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAOzE,sDAAsD;AACtD,MAAM,MAAM,WAAW,GAAG,IAAI,CAAC,WAAW,EAAE,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,CAAC,CAAC;AAErG,yHAAyH;AACzH,wBAAgB,SAAS,CAAC,KAAK,EAAE,WAAW,GAAG,MAAM,CAEpD;AAED,iHAAiH;AACjH,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAE/C;AAED
|
|
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,K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AAC,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"}
|
|
@@ -4,7 +4,7 @@ const __typia_transform__accessExpressionAsString = _accessExpressionAsString_1.
|
|
|
4
4
|
import { createHash, randomUUID } from 'node:crypto';
|
|
5
5
|
import { closeSync, lstatSync, openSync, readdirSync, readFileSync, readSync, realpathSync, renameSync, rmSync, writeFileSync, } from 'node:fs';
|
|
6
6
|
import { createRequire } from 'node:module';
|
|
7
|
-
import { dirname, isAbsolute, join, relative, resolve } from 'node:path';
|
|
7
|
+
import { basename, dirname, isAbsolute, join, relative, resolve } from 'node:path';
|
|
8
8
|
import typia from 'typia';
|
|
9
9
|
/** The stamp a node reads as now: device, inode, mode, size, mtime and ctime. What a recorded stamp is compared with. */
|
|
10
10
|
export function nodeStamp(stats) {
|
|
@@ -17,15 +17,36 @@ export function stampMode(stamp) {
|
|
|
17
17
|
/**
|
|
18
18
|
* How an observed stamp compares with the recorded one: `same`; `ctime` when device, inode, mode, size and mtime are
|
|
19
19
|
* kept and only the ctime moved (a same-mode chmod, which Bun's bin linking does to a shared store file on any
|
|
20
|
-
* checkout's install) or was recorded `unproven` ({@link recordedStamp});
|
|
21
|
-
*
|
|
20
|
+
* checkout's install) or was recorded `unproven` ({@link recordedStamp}); `members` when a directory keeps its
|
|
21
|
+
* device, inode and mode and its size or mtime moved: an entry was added, removed or renamed in it since, and only its
|
|
22
|
+
* listing can say whether its membership is the one recorded (the Nx daemon's watcher probe comes and goes in
|
|
23
|
+
* `node_modules`, {@link directoryMembers}); otherwise `moved`. A function of the two stamps alone, so no filesystem
|
|
24
|
+
* or clock decides it.
|
|
22
25
|
*/
|
|
23
26
|
export function stampMove(recorded, observed) {
|
|
24
27
|
if (observed === recorded)
|
|
25
28
|
return 'same';
|
|
26
29
|
// nodeStamp ends with the ctime: everything before it is the identity a same-mode chmod keeps.
|
|
27
30
|
const kept = observed.slice(0, observed.lastIndexOf(':')) === recorded.slice(0, recorded.lastIndexOf(':'));
|
|
28
|
-
|
|
31
|
+
if (kept)
|
|
32
|
+
return 'ctime';
|
|
33
|
+
// nodeStamp starts with device, inode and mode: the identity a directory keeps while entries come and go in it.
|
|
34
|
+
const [dev, ino, mode] = observed.split(':', 3);
|
|
35
|
+
const identity = recorded.split(':', 3);
|
|
36
|
+
const directory = (BigInt(mode) & 61440n) === 16384n;
|
|
37
|
+
return directory && identity[0] === dev && identity[1] === ino && identity[2] === mode ? 'members' : 'moved';
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* The patched Nx daemon's macOS watcher probe, `nx-watch-probe-<pid>-<n>` (patches/README.md, "A stopped watcher
|
|
41
|
+
* stream is never served from"): an empty file the daemon creates in the workspace's `node_modules` where `.nxignore`
|
|
42
|
+
* hides `.nx` and `.git`, and removes once its stream reports it. Any nx command's first daemon request writes one,
|
|
43
|
+
* at any moment of another command's run. It is no module and no member of the namespace a resolution searches.
|
|
44
|
+
*/
|
|
45
|
+
const WATCH_PROBE = /^nx-watch-probe-\d+-\d+$/;
|
|
46
|
+
/** The sorted listing a receipt records as a directory's membership: a `node_modules` without its {@link WATCH_PROBE}s. */
|
|
47
|
+
export function directoryMembers(path) {
|
|
48
|
+
const names = readdirSync(path);
|
|
49
|
+
return (basename(path) === 'node_modules' ? names.filter((name) => !WATCH_PROBE.test(name)) : names).sort();
|
|
29
50
|
}
|
|
30
51
|
/**
|
|
31
52
|
* How long after a node's last change a stamp read of it proves nothing about the next change: git's racily clean
|
|
@@ -343,16 +364,19 @@ export function nodesUnchanged(nodes) {
|
|
|
343
364
|
* gone one with its error code, and how many more), or null when none moved. A node whose device, inode, mode, size
|
|
344
365
|
* and mtime are unchanged and only its ctime moved (a same-mode chmod, which Bun's bin linking does to a shared store
|
|
345
366
|
* file on any checkout's install), or whose ctime was recorded unproven ({@link recordedStamp}), asks for a comparison,
|
|
346
|
-
* not a verdict: `same` re-reads it, and one it finds as recorded has not changed.
|
|
367
|
+
* not a verdict: `same` re-reads it, and one it finds as recorded has not changed. A directory whose size or mtime
|
|
368
|
+
* moved (`members`, {@link stampMove}) asks `members` whether its membership is still the recorded one. Without
|
|
369
|
+
* them every move counts.
|
|
347
370
|
*/
|
|
348
|
-
export function movedNodes(nodes, same = () => false) {
|
|
371
|
+
export function movedNodes(nodes, same = () => false, members = () => false) {
|
|
349
372
|
const moved = [];
|
|
350
373
|
for (const node of nodes) {
|
|
351
374
|
try {
|
|
352
375
|
const move = stampMove(node.stamp, nodeStamp(lstatSync(node.path, { bigint: true })));
|
|
353
376
|
if (move === 'same')
|
|
354
377
|
continue;
|
|
355
|
-
|
|
378
|
+
const unchanged = move === 'ctime' ? same(node.path) : move === 'members' && members(node.path);
|
|
379
|
+
if (!unchanged)
|
|
356
380
|
moved.push(node.path);
|
|
357
381
|
}
|
|
358
382
|
catch (error) {
|
|
@@ -391,9 +415,11 @@ export function reusableGraph(witness, workspaceRoot, environment, installation,
|
|
|
391
415
|
* physical target and package manifest. SHA-256 binds every regular file's
|
|
392
416
|
* bytes, including manifest metadata; pre/post node stamps still reject a
|
|
393
417
|
* tree that moved while reading. A missing optional dependency is recorded too.
|
|
418
|
+
* `previous` is a hash source only ({@link graphInstallationCensus}): a file whose stamp has not moved since it read
|
|
419
|
+
* the file is not read again.
|
|
394
420
|
*/
|
|
395
|
-
export function graphInstallationIdentity(workspaceRoot, nxJson, resolvePackage, expand, localInputs, onUnproved) {
|
|
396
|
-
const census = provenInstallationCensus(workspaceRoot, nxJson, resolvePackage, expand, localInputs, onUnproved);
|
|
421
|
+
export function graphInstallationIdentity(workspaceRoot, nxJson, resolvePackage, expand, localInputs, onUnproved, previous) {
|
|
422
|
+
const census = provenInstallationCensus(workspaceRoot, nxJson, resolvePackage, expand, localInputs, onUnproved, previous);
|
|
397
423
|
return census === null ? null : installationIdentityOf(census, localInputs);
|
|
398
424
|
}
|
|
399
425
|
/** The identity {@link graphInstallationIdentity} names for a proven census: what it read, never what it reused. */
|
|
@@ -497,9 +523,10 @@ export function provenInstallationCensus(workspaceRoot, nxJson, resolvePackage,
|
|
|
497
523
|
* whose stamp `previous` lacks, and one `previous` recorded unproven are read again; `previous` need not be proven.
|
|
498
524
|
* The key is the stamp, not a cheaper generation (a resolution, a manifest, an install marker): a rebuild of a
|
|
499
525
|
* developer-linked package, this plugin's own `dist`, rewrites its files in place and moves none of those, so a census
|
|
500
|
-
* keyed on them would describe a tree that is no longer there.
|
|
526
|
+
* keyed on them would describe a tree that is no longer there. `reads`, when given, receives what this census read of
|
|
527
|
+
* each node ({@link CensusRead}).
|
|
501
528
|
*/
|
|
502
|
-
export function graphInstallationCensus(workspaceRoot, nxJson, resolvePackage, expand, localInputs, onUnproved, previous) {
|
|
529
|
+
export function graphInstallationCensus(workspaceRoot, nxJson, resolvePackage, expand, localInputs, onUnproved, previous, reads) {
|
|
503
530
|
const plugins = (nxJson.plugins ?? []).map((plugin) => (typeof plugin === 'string' ? plugin : plugin.plugin));
|
|
504
531
|
const unproved = plugins.filter((plugin) => plugin !== '@smoothbricks/nx-plugin' && !localInputs?.plugins.includes(plugin));
|
|
505
532
|
if (unproved.length > 0) {
|
|
@@ -526,6 +553,7 @@ export function graphInstallationCensus(workspaceRoot, nxJson, resolvePackage, e
|
|
|
526
553
|
const stats = lstatSync(path, { bigint: true });
|
|
527
554
|
const stamp = nodeStamp(stats);
|
|
528
555
|
nodes.push({ path, stamp });
|
|
556
|
+
reads?.set(path, { stats, start });
|
|
529
557
|
if (stats.isSymbolicLink()) {
|
|
530
558
|
const physical = realpathSync(path);
|
|
531
559
|
if (lstatSync(physical).isDirectory() && !declaredDirectoryLinks.has(path)) {
|
|
@@ -535,7 +563,9 @@ export function graphInstallationCensus(workspaceRoot, nxJson, resolvePackage, e
|
|
|
535
563
|
}
|
|
536
564
|
else if (stats.isDirectory()) {
|
|
537
565
|
const visible = expandedRoots.has(path) ? undefined : selected;
|
|
538
|
-
|
|
566
|
+
const entries = directoryMembers(path);
|
|
567
|
+
reads?.set(path, { stats, start, entries });
|
|
568
|
+
for (const name of entries) {
|
|
539
569
|
const child = join(path, name);
|
|
540
570
|
if (name !== 'node_modules' &&
|
|
541
571
|
name !== '.git' &&
|
|
@@ -579,6 +609,7 @@ export function graphInstallationCensus(workspaceRoot, nxJson, resolvePackage, e
|
|
|
579
609
|
const path = join(directory, name, 'package.json');
|
|
580
610
|
try {
|
|
581
611
|
const packageJson = (() => {
|
|
612
|
+
let _errorFactory;
|
|
582
613
|
const _ip0 = (input, _vctx = {}) => "string" === typeof input["name"];
|
|
583
614
|
const _ip1 = (input, _vctx = {}) => "string" === typeof input["version"];
|
|
584
615
|
const _ip2 = (input, _vctx = {}) => undefined === input["license"] || "string" === typeof input["license"];
|
|
@@ -960,7 +991,7 @@ export function graphInstallationCensus(workspaceRoot, nxJson, resolvePackage, e
|
|
|
960
991
|
value: input["keywords"]
|
|
961
992
|
}, _errorFactory);
|
|
962
993
|
const _ae2 = "(string | { types?: string | undefined; require?: string | undefined; import?: string | undefined; development?: string | undefined; default?: string | undefined; })";
|
|
963
|
-
const _ae3 = "(undefined | { version?: Pick<NxReleaseVersionConfiguration, \"currentVersionResolver\" | \"currentVersionResolverMetadata\" | \"fallbackCurrentVersionResolver\" | ...
|
|
994
|
+
const _ae3 = "(undefined | { version?: Pick<NxReleaseVersionConfiguration, \"currentVersionResolver\" | \"currentVersionResolverMetadata\" | \"fallbackCurrentVersionResolver\" | ... 4 more ... | \"versionPrefix\"> | undefined; docker?: true | ... 1 more ... | undefined; })";
|
|
964
995
|
const _ae4 = "(JsonInput | string | { dependentTasksOutputFiles: string; transitive?: boolean | undefined; } | { env: string; } | { externalDependencies: string[]; } | { fileset: string; dependencies: true; } | { fileset: string; } | { input: string; dependencies: true; } | { input: string; projects: string | string[]; } | { input: string; } | { runtime: string; } | { workingDirectory: \"absolute\" | \"relative\"; })";
|
|
965
996
|
const _ap34 = (input, _path, _exceptionable = true, _vctx = {}) => "string" === typeof input["input"] || _assertGuard_1._assertGuard(_exceptionable, {
|
|
966
997
|
method: "typia.json.assertParse",
|
|
@@ -996,7 +1027,7 @@ export function graphInstallationCensus(workspaceRoot, nxJson, resolvePackage, e
|
|
|
996
1027
|
expected: "(Array<string> | undefined)",
|
|
997
1028
|
value: input["technologies"]
|
|
998
1029
|
}, _errorFactory);
|
|
999
|
-
const _ae5 = "(Pick<NxReleaseVersionConfiguration, \"currentVersionResolver\" | \"currentVersionResolverMetadata\" | \"fallbackCurrentVersionResolver\" | \"manifestRootsToUpdate\" |
|
|
1030
|
+
const _ae5 = "(Pick<NxReleaseVersionConfiguration, \"currentVersionResolver\" | \"currentVersionResolverMetadata\" | \"fallbackCurrentVersionResolver\" | \"manifestRootsToUpdate\" | \"preserveLocalDependencyProtocols\" | \"versionActions\" | \"versionActionsOptions\" | \"versionPrefix\"> | undefined)";
|
|
1000
1031
|
const _ae6 = "(undefined | { [ownerId: string]: { ownedFiles: { files: string[] | [\"*\"]; fromConfig?: { filePath: string; location: { startLine: number; endLine: number; }; } | undefined; }[]; }; })";
|
|
1001
1032
|
const _ae7 = "(undefined | { packageName: string; packageVersion?: string | undefined; packageExports?: string | Record<string, string | { types?: string | undefined; require?: string | undefined; import?: string | undefined; development?: string | undefined; default?: string | undefined; }> | undefined; packageMain?: string | undefined; isIn...)";
|
|
1002
1033
|
const _ae8 = "{ ownedFiles: { files: string[] | [\"*\"]; fromConfig?: { filePath: string; location: { startLine: number; endLine: number; }; } | undefined; }[]; }";
|
|
@@ -2566,7 +2597,6 @@ export function graphInstallationCensus(workspaceRoot, nxJson, resolvePackage, e
|
|
|
2566
2597
|
})();
|
|
2567
2598
|
})();
|
|
2568
2599
|
const __is = (input, _vctx = {}) => "object" === typeof input && null !== input && _io0(input, _vctx);
|
|
2569
|
-
let _errorFactory;
|
|
2570
2600
|
const __assert = (input, errorFactory) => {
|
|
2571
2601
|
if (false === __is(input)) {
|
|
2572
2602
|
_errorFactory = errorFactory;
|
|
@@ -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,kBAAkB,MAAM,kCAAkC,CAAC;AAC5E,OAAO,KAAK,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,KAAK,QAAQ,MAAM,eAAe,CAAC;AAC/C,OAAO,KAAK,KAAK,kBAAkB,MAAM,iCAAiC,CAAC;AAC3E,OAAO,KAAK,KAAK,gBAAgB,MAAM,oDAAoD,CAAC;AAC5F,OAAO,KAAK,KAAK,qBAAqB,MAAM,oCAAoC,CAAC;AACjF,OAAO,KAAK,KAAK,qBAAqB,MAAM,kDAAkD,CAAC;AAC/F,OAAO,KAAK,KAAK,OAAO,MAAM,2BAA2B,CAAC;AAC1D,OAAO,KAAK,KAAK,iBAAiB,MAAM,uCAAuC,CAAC;AAEhF,OAAO,KAAK,KAAK,YAAY,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,KAAK,SAAS,MAAM,8BAA8B,CAAC;AAC/D,OAAO,KAAK,KAAK,kBAAkB,MAAM,2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C;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
|
@@ -250,6 +250,7 @@ function bindWorkspaceSocketDirectory(workspaceRoot, taskId, environment) {
|
|
|
250
250
|
if (!isAbsolute(runtime))
|
|
251
251
|
return workspaceSocketRefusal(workspaceRoot, taskId, 'DEVENV_RUNTIME must name the managed shell runtime directory', 1, null);
|
|
252
252
|
const script = join(managedAssetsRoot, 'raw/tooling/direnv/nx-socket-dir.sh');
|
|
253
|
+
// eslint-disable-next-line deadline/no-unbounded-wait -- WHY unbounded: sh sources a repository script that only computes and prints a path; it waits on no other process
|
|
253
254
|
const result = spawnSync('/bin/sh', ['-c', '. "$1" && printf %s "$NX_SOCKET_DIR"', 'sh', script], {
|
|
254
255
|
cwd: workspaceRoot,
|
|
255
256
|
env: { ...environment, PWD: workspaceRoot },
|
|
@@ -426,6 +427,9 @@ async function withTaskHooks(workspaceRoot, selector, prepared, operation) {
|
|
|
426
427
|
id: runId,
|
|
427
428
|
workspaceRoot,
|
|
428
429
|
nxJsonConfiguration: prepared.nxJson,
|
|
430
|
+
projectGraph: prepared.projectGraph,
|
|
431
|
+
// This probe executes no tasks; a miss's runner owns its own hook pair.
|
|
432
|
+
taskGraph: { roots: [], tasks: {}, dependencies: {}, continuousDependencies: {} },
|
|
429
433
|
argv: process.argv,
|
|
430
434
|
});
|
|
431
435
|
const result = await operation(workspaceRoot, selector, prepared);
|
|
@@ -590,8 +594,11 @@ export function providerInputProof(workspaceRoot, nxJson, projectGraph, taskGrap
|
|
|
590
594
|
if (existsSync(join(workspaceRoot, path)))
|
|
591
595
|
files.add(path);
|
|
592
596
|
}
|
|
597
|
+
// The graph witness the same probe wrote is the census's hash source: without it every proof re-read every file of
|
|
598
|
+
// the Nx, plugin and TypeScript closure (about 21,000 files), minutes of reads on a loaded host.
|
|
599
|
+
const witness = readGraphWitness(join(workspaceDataDirectoryForWorkspace(workspaceRoot), 'ensure-built-graph.json'));
|
|
593
600
|
const installation = hasRuntime
|
|
594
|
-
? graphInstallationIdentity(workspaceRoot, nxJson, requireNx('nx/src/utils/package-json').readModulePackageJson, requireNx('nx/src/native').expandOutputs, graphInputContractIdentity(workspaceRoot, nxJson, workspaceSnapshot(workspaceRoot, new (requireNx('nx/src/native').WorkspaceContext)(workspaceRoot,
|
|
601
|
+
? graphInstallationIdentity(workspaceRoot, nxJson, requireNx('nx/src/utils/package-json').readModulePackageJson, requireNx('nx/src/native').expandOutputs, graphInputContractIdentity(workspaceRoot, nxJson, workspaceSnapshot(workspaceRoot, new (requireNx('nx/src/native').WorkspaceContext)(workspaceRoot, workspaceDataDirectoryForWorkspace(workspaceRoot)), undefined)), undefined, witness === null ? undefined : recordedInstallationCensus(witness.installation, witness.installationUnproven))
|
|
595
602
|
: null;
|
|
596
603
|
const runtimeSource = boundedReceiptRuntimes(inputs, [...directories], [...files], installation !== null);
|
|
597
604
|
return {
|
|
@@ -1083,6 +1090,7 @@ async function runViaCli(workspaceRoot, selector, reason) {
|
|
|
1083
1090
|
});
|
|
1084
1091
|
// `Promise.withResolvers` would read better but needs lib es2024; this
|
|
1085
1092
|
// package inherits lib es2022 from tsconfig.base.json.
|
|
1093
|
+
// eslint-disable-next-line deadline/no-unbounded-wait -- WHY unbounded: the nx build of the selector this run needs, with stdio inherited, lasts as long as its work; the operator's interrupt or the enclosing runner's bound ends a hung one
|
|
1086
1094
|
const exit = await new Promise((settle, reject) => {
|
|
1087
1095
|
child.once('error', reject);
|
|
1088
1096
|
child.once('exit', (code, signal) => settle({ code, signal }));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The workspace-relative files `configs` load, transitively, the configs
|
|
3
|
+
* excluded, sorted. `indexed` is Nx's workspace file index (at least its
|
|
4
|
+
* JavaScript, TypeScript, JSON and package.json files); a file outside it refuses.
|
|
5
|
+
*/
|
|
6
|
+
export declare function eslintConfigClosure(workspaceRoot: string, configs: readonly string[], indexed: ReadonlySet<string>): string[];
|
|
7
|
+
//# sourceMappingURL=eslint-config-closure.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eslint-config-closure.d.ts","sourceRoot":"","sources":["../src/eslint-config-closure.ts"],"names":[],"mappings":"AAwEA;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,aAAa,EAAE,MAAM,EACrB,OAAO,EAAE,SAAS,MAAM,EAAE,EAC1B,OAAO,EAAE,WAAW,CAAC,MAAM,CAAC,GAC3B,MAAM,EAAE,CA2CV"}
|