@smoothbricks/nx-plugin 0.5.7 → 0.6.1
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 +1097 -360
- package/dist/.build-inputs.json +141 -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 +22 -5
- package/dist/ensure-built-receipt.d.ts.map +1 -1
- package/dist/ensure-built-receipt.js +168 -48
- 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/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-thread.d.ts +28 -0
- package/dist/executors/bounded-exec/cpu-pool-thread.d.ts.map +1 -0
- package/dist/executors/bounded-exec/cpu-pool-thread.js +20 -0
- package/dist/executors/bounded-exec/cpu-pool.d.ts +35 -38
- package/dist/executors/bounded-exec/cpu-pool.d.ts.map +1 -1
- package/dist/executors/bounded-exec/cpu-pool.js +56 -120
- 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 +389 -239
- package/dist/executors/bounded-exec/gateway-lease.d.ts +23 -19
- package/dist/executors/bounded-exec/gateway-lease.d.ts.map +1 -1
- package/dist/executors/bounded-exec/gateway-lease.js +102 -29
- 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 +64 -0
- package/dist/executors/bounded-exec/lease-wait.d.ts.map +1 -0
- package/dist/executors/bounded-exec/lease-wait.js +72 -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/mbx-pool.d.ts +31 -0
- package/dist/executors/bounded-exec/mbx-pool.d.ts.map +1 -0
- package/dist/executors/bounded-exec/mbx-pool.js +24 -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 +10 -4
- package/dist/executors/bounded-exec/run-cpu-pool.d.ts.map +1 -1
- package/dist/executors/bounded-exec/run-cpu-pool.js +122 -35
- 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 +48 -11
- package/dist/executors/bounded-exec/verdict.d.ts.map +1 -1
- package/dist/executors/bounded-exec/verdict.js +89 -20
- 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/emit-overrides.d.ts +14 -0
- package/dist/executors/typescript-emit/emit-overrides.d.ts.map +1 -0
- package/dist/executors/typescript-emit/emit-overrides.js +24 -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 +146 -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 +672 -214
- 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/managed-files/publish-workflow.js +14 -11
- 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 +514 -47
- 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 +16 -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 +95 -14
- 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 +173 -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/bounded-exec/bounds.ts +76 -0
- package/src/executors/bounded-exec/cpu-pool-thread.ts +43 -0
- package/src/executors/bounded-exec/cpu-pool.ts +55 -120
- package/src/executors/bounded-exec/executor.ts +442 -260
- package/src/executors/bounded-exec/gateway-lease.ts +94 -35
- package/src/executors/bounded-exec/hang-diagnostics.ts +173 -31
- package/src/executors/bounded-exec/lease-wait.ts +116 -0
- package/src/executors/bounded-exec/lock-wait.ts +141 -0
- package/src/executors/bounded-exec/mbx-pool.ts +48 -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 +129 -35
- 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 +145 -35
- 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/emit-overrides.ts +24 -0
- package/src/executors/typescript-emit/executor.ts +186 -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 +788 -224
- 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/managed-files/publish-workflow.ts +20 -15
- 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 +92 -41
- 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 +124 -99
- 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/all-verdicts/executor.test.ts +0 -135
- 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 -3321
- 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
package/dist/managed-assets.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
/** Provenance used by the copied developer-link helper; its schema remains owned by build-inputs. */
|
|
2
|
+
export type { BuildInputProducer } from '@smoothbricks/build-inputs';
|
|
1
3
|
/** Packaged assets, independent of the consumer's cwd and node_modules layout. */
|
|
2
4
|
export declare const managedAssetsRoot: string;
|
|
3
5
|
/** Explicit package-manager relink intent for the packaged bootstrap preservation helper. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"managed-assets.d.ts","sourceRoot":"","sources":["../src/managed-assets.ts"],"names":[],"mappings":"AAEA,kFAAkF;AAClF,eAAO,MAAM,iBAAiB,QAAyD,CAAC;AAExF,6FAA6F;AAC7F,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;CACpC;AAED,oGAAoG;AACpG,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,EACjC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EACzB,OAAO,CAAC,EAAE,yBAAyB,KAChC,OAAO,CAAC,CAAC,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"managed-assets.d.ts","sourceRoot":"","sources":["../src/managed-assets.ts"],"names":[],"mappings":"AAEA,qGAAqG;AACrG,YAAY,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE,kFAAkF;AAClF,eAAO,MAAM,iBAAiB,QAAyD,CAAC;AAExF,6FAA6F;AAC7F,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAAC;CACpC;AAED,oGAAoG;AACpG,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,EACjC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,EACzB,OAAO,CAAC,EAAE,yBAAyB,KAChC,OAAO,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -42,9 +42,9 @@ export interface ManagedFileContext {
|
|
|
42
42
|
}
|
|
43
43
|
/** Temporary upstream compiler repairs distributed to smoo-managed Bun workspaces. */
|
|
44
44
|
export declare const managedTtscPatch: {
|
|
45
|
-
readonly version: '0.
|
|
46
|
-
readonly key: 'ttsc@0.
|
|
47
|
-
readonly path: 'patches/ttsc@0.
|
|
45
|
+
readonly version: '0.34.1';
|
|
46
|
+
readonly key: 'ttsc@0.34.1';
|
|
47
|
+
readonly path: 'patches/ttsc@0.34.1.patch';
|
|
48
48
|
};
|
|
49
49
|
/** Maintained Nx 23.2.1 repairs, applied as an ordinary Bun patchedDependency over the registry release. */
|
|
50
50
|
export declare const managedNxPatch: {
|
|
@@ -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,OAAO,CAAC;IAC5B,uBAAuB,EAAE,OAAO,CAAC;IACjC,0BAA0B,EAAE,OAAO,CAAC;IACpC,qBAAqB,EAAE,OAAO,CAAC;IAC/B,uBAAuB,EAAE,OAAO,CAAC;IACjC,8BAA8B,EAAE,OAAO,CAAC;IACxC,qBAAqB,CAAC,EAAE,YAAY,CAAC;IACrC,wBAAwB,CAAC,EAAE,YAAY,CAAC;IACxC,cAAc,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACtC,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC5B,yFAAyF;IACzF,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC/B,gBAAgB,CAAC,EAAE,iBAAiB,CAAC,kBAAkB,CAAC,CAAC;IACzD,eAAe,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IACvD,cAAc,CAAC,EAAE,6BAA6B,CAAC;IAC/C,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAC9B,qFAAqF;IACrF,0BAA0B,EAAE,MAAM,EAAE,CAAC;IACrC,0BAA0B,EAAE,MAAM,EAAE,CAAC;IACrC,wFAAwF;IACxF,UAAU,CAAC,EAAE,uBAAuB,CAAC;IACrC,sFAAsF;IACtF,eAAe,CAAC,EAAE,2BAA2B,EAAE,CAAC;IAChD,kGAAkG;IAClG,gBAAgB,CAAC,EAAE,6BAA6B,CAAC;IACjD,uGAAuG;IACvG,WAAW,CAAC,EAAE,wBAAwB,CAAC;IACvC;;;;OAIG;IACH,iBAAiB,EAAE,kBAAkB,EAAE,CAAC;CACzC;AAED,sFAAsF;AACtF,eAAO,MAAM,gBAAgB;aAC3B,OAAO,EAAE,QAAQ;aACjB,GAAG,EAAE,aAAa;aAClB,IAAI,EAAE,2BAA2B;CACzB,CAAC;AAEX,4GAA4G;AAC5G,eAAO,MAAM,cAAc;aACzB,OAAO,EAAE,QAAQ;aACjB,GAAG,EAAE,WAAW;aAChB,IAAI,EAAE,yBAAyB;CACvB,CAAC;
|
|
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,OAAO,CAAC;IAC5B,uBAAuB,EAAE,OAAO,CAAC;IACjC,0BAA0B,EAAE,OAAO,CAAC;IACpC,qBAAqB,EAAE,OAAO,CAAC;IAC/B,uBAAuB,EAAE,OAAO,CAAC;IACjC,8BAA8B,EAAE,OAAO,CAAC;IACxC,qBAAqB,CAAC,EAAE,YAAY,CAAC;IACrC,wBAAwB,CAAC,EAAE,YAAY,CAAC;IACxC,cAAc,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IACtC,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC5B,yFAAyF;IACzF,WAAW,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC/B,gBAAgB,CAAC,EAAE,iBAAiB,CAAC,kBAAkB,CAAC,CAAC;IACzD,eAAe,CAAC,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IACvD,cAAc,CAAC,EAAE,6BAA6B,CAAC;IAC/C,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACrC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,mBAAmB,EAAE,MAAM,EAAE,CAAC;IAC9B,qFAAqF;IACrF,0BAA0B,EAAE,MAAM,EAAE,CAAC;IACrC,0BAA0B,EAAE,MAAM,EAAE,CAAC;IACrC,wFAAwF;IACxF,UAAU,CAAC,EAAE,uBAAuB,CAAC;IACrC,sFAAsF;IACtF,eAAe,CAAC,EAAE,2BAA2B,EAAE,CAAC;IAChD,kGAAkG;IAClG,gBAAgB,CAAC,EAAE,6BAA6B,CAAC;IACjD,uGAAuG;IACvG,WAAW,CAAC,EAAE,wBAAwB,CAAC;IACvC;;;;OAIG;IACH,iBAAiB,EAAE,kBAAkB,EAAE,CAAC;CACzC;AAED,sFAAsF;AACtF,eAAO,MAAM,gBAAgB;aAC3B,OAAO,EAAE,QAAQ;aACjB,GAAG,EAAE,aAAa;aAClB,IAAI,EAAE,2BAA2B;CACzB,CAAC;AAEX,4GAA4G;AAC5G,eAAO,MAAM,cAAc;aACzB,OAAO,EAAE,QAAQ;aACjB,GAAG,EAAE,WAAW;aAChB,IAAI,EAAE,yBAAyB;CACvB,CAAC;AAyOX,eAAO,MAAM,yBAAyB;;;GAAyE,CAAC;AAchH,qFAAqF;AACrF,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,kBAAkB,GAAG,MAAM,EAAE,CAElF;AAED,0EAA0E;AAC1E,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,kBAAkB,GAAG,WAAW,EAAE,CAM7E;AAED,+GAA+G;AAC/G,wBAAgB,4BAA4B,CAC1C,MAAM,EAAE,aAAa,GAAG,kBAAkB,GAAG,6BAA6B,GAAG,yBAAyB,EACtG,OAAO,EAAE,kBAAkB,GAC1B,MAAM,CAMR"}
|
|
@@ -7,9 +7,9 @@ import { renderPrPreviewCleanupWorkflowYaml, renderPrStageSweepWorkflowYaml } fr
|
|
|
7
7
|
import { renderPublishWorkflowYaml } from './publish-workflow.js';
|
|
8
8
|
/** Temporary upstream compiler repairs distributed to smoo-managed Bun workspaces. */
|
|
9
9
|
export const managedTtscPatch = {
|
|
10
|
-
version: '0.
|
|
11
|
-
key: 'ttsc@0.
|
|
12
|
-
path: 'patches/ttsc@0.
|
|
10
|
+
version: '0.34.1',
|
|
11
|
+
key: 'ttsc@0.34.1',
|
|
12
|
+
path: 'patches/ttsc@0.34.1.patch',
|
|
13
13
|
};
|
|
14
14
|
/** Maintained Nx 23.2.1 repairs, applied as an ordinary Bun patchedDependency over the registry release. */
|
|
15
15
|
export const managedNxPatch = {
|
|
@@ -57,11 +57,26 @@ const managedFiles = [
|
|
|
57
57
|
target: 'tooling/direnv/setup-environment.ts',
|
|
58
58
|
executable: true,
|
|
59
59
|
},
|
|
60
|
+
{
|
|
61
|
+
kind: 'raw',
|
|
62
|
+
source: 'tooling/direnv/cargo-fetch-bound.ts',
|
|
63
|
+
target: 'tooling/direnv/cargo-fetch-bound.ts',
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
kind: 'raw',
|
|
67
|
+
source: 'tooling/direnv/cargo-fetch-run.ts',
|
|
68
|
+
target: 'tooling/direnv/cargo-fetch-run.ts',
|
|
69
|
+
},
|
|
60
70
|
{
|
|
61
71
|
kind: 'raw',
|
|
62
72
|
source: 'tooling/direnv/developer-links.ts',
|
|
63
73
|
target: 'tooling/direnv/developer-links.ts',
|
|
64
74
|
},
|
|
75
|
+
{
|
|
76
|
+
kind: 'raw',
|
|
77
|
+
source: 'tooling/direnv/installed-bun-links.ts',
|
|
78
|
+
target: 'tooling/direnv/installed-bun-links.ts',
|
|
79
|
+
},
|
|
65
80
|
{
|
|
66
81
|
kind: 'raw',
|
|
67
82
|
source: 'tooling/direnv/linked-snapshots.ts',
|
|
@@ -72,6 +87,11 @@ const managedFiles = [
|
|
|
72
87
|
source: 'tooling/direnv/secret-references.ts',
|
|
73
88
|
target: 'tooling/direnv/secret-references.ts',
|
|
74
89
|
},
|
|
90
|
+
{
|
|
91
|
+
kind: 'raw',
|
|
92
|
+
source: 'tooling/direnv/uv-relocation.ts',
|
|
93
|
+
target: 'tooling/direnv/uv-relocation.ts',
|
|
94
|
+
},
|
|
75
95
|
{
|
|
76
96
|
kind: 'raw',
|
|
77
97
|
source: 'tooling/direnv/toolchain-stamp.ts',
|
|
@@ -98,6 +118,11 @@ const managedFiles = [
|
|
|
98
118
|
source: 'tooling/direnv/apple-developer.sh',
|
|
99
119
|
target: 'tooling/direnv/apple-developer.sh',
|
|
100
120
|
},
|
|
121
|
+
{
|
|
122
|
+
kind: 'raw',
|
|
123
|
+
source: 'tooling/direnv/compiler-variables.sh',
|
|
124
|
+
target: 'tooling/direnv/compiler-variables.sh',
|
|
125
|
+
},
|
|
101
126
|
{
|
|
102
127
|
kind: 'raw',
|
|
103
128
|
source: 'tooling/git-hooks/pre-commit.sh',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"managed-format.d.ts","sourceRoot":"","sources":["../../src/managed-files/managed-format.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,sBAAsB,EAAE,SAAS,MAAM,EAcnD,CAAC;AAoBF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CA6BzG;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,EAAE,CAElE;AAKD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"managed-format.d.ts","sourceRoot":"","sources":["../../src/managed-files/managed-format.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,sBAAsB,EAAE,SAAS,MAAM,EAcnD,CAAC;AAoBF;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CA6BzG;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,EAAE,CAElE;AAKD;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CA2BtE;AAED,wEAAwE;AACxE,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,MAAM,CAEjE;AAED,8EAA8E;AAC9E,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAEhE"}
|
|
@@ -128,6 +128,7 @@ let missingBiomeReported = false;
|
|
|
128
128
|
export function formatJsonWithBiome(path, text) {
|
|
129
129
|
const absolute = resolve(path);
|
|
130
130
|
const cwd = nearestExistingDirectory(dirname(absolute));
|
|
131
|
+
// eslint-disable-next-line deadline/no-unbounded-wait -- WHY unbounded: biome formats the text on its stdin and exits; it waits on no other process
|
|
131
132
|
const child = spawnSync(biomeBinary(cwd), biomeHookArguments(absolute), { cwd, input: text, encoding: 'utf8' });
|
|
132
133
|
if (child.error) {
|
|
133
134
|
if ('code' in child.error && child.error.code === 'ENOENT') {
|
|
@@ -432,10 +432,11 @@ function yamlLinesForStep(step, options) {
|
|
|
432
432
|
' #',
|
|
433
433
|
' # `nx` cannot do it: the project graph loads this very plugin, so',
|
|
434
434
|
' # `nx build nx-plugin` deadlocks on the executor it is building.',
|
|
435
|
-
' # ttsc needs only the package tsconfig --
|
|
436
|
-
' #
|
|
435
|
+
' # ttsc needs only the package tsconfig -- the bootstrap the shell entry',
|
|
436
|
+
' # runs (tooling/direnv/enter-shell.ts) -- and emits as the typescript-emit',
|
|
437
|
+
' # executor does (EMIT_OVERRIDES), so dist holds no build info.',
|
|
437
438
|
' working-directory: packages/nx-plugin',
|
|
438
|
-
' run: ttsc
|
|
439
|
+
' run: bun ../../tooling/ttsc-emit.ts',
|
|
439
440
|
];
|
|
440
441
|
case PublishWorkflowStepKind.RepairPendingReleases:
|
|
441
442
|
return [
|
|
@@ -487,8 +488,10 @@ function yamlLinesForStep(step, options) {
|
|
|
487
488
|
// Scoped to the release's candidates: the build phase and the packed-package
|
|
488
489
|
// checks cover what ships. Unscoped, validate compiled every project - on a
|
|
489
490
|
// release touching no Rust that was 3m30 of the cowshed CLI on the critical
|
|
490
|
-
// path, for a binary the release did not contain.
|
|
491
|
-
|
|
491
|
+
// path, for a binary the release did not contain. The publish job repairs
|
|
492
|
+
// pending releases before it publishes, so a pin at a tagged version the
|
|
493
|
+
// registry still lacks is published by then (--repairs-pending).
|
|
494
|
+
return conditionalRunStep(step, `smoo monorepo validate --projects "${githubExpression('steps.version.outputs.projects')}" --repairs-pending`);
|
|
492
495
|
case PublishWorkflowStepKind.TagRelease:
|
|
493
496
|
return tagReleaseStepLines(step.name);
|
|
494
497
|
case PublishWorkflowStepKind.PublishRelease:
|
|
@@ -614,18 +617,18 @@ function renderSingleJobPublishWorkflowSteps(steps, options) {
|
|
|
614
617
|
lines.push('');
|
|
615
618
|
if (producer && step.kind === PublishWorkflowStepKind.Checkout) {
|
|
616
619
|
// A declared producer always runs, even when the graph selects no platform family.
|
|
617
|
-
lines.push(
|
|
620
|
+
lines.push(` # Step ${stepNumber++}`, ...platformProducerPreflightStepLines(producer), '');
|
|
618
621
|
}
|
|
619
622
|
if (step.kind === PublishWorkflowStepKind.Build &&
|
|
620
623
|
(hasMacosPlatformTargets(options) || hasLinuxPlatformTargets(options))) {
|
|
621
|
-
lines.push(
|
|
624
|
+
lines.push(` # Step ${stepNumber++}`, ' - name: 🐧 Build supplemental Linux targets', " if: steps.version.outputs.mode != 'none'", ' run:', ' smoo github-ci nx-run-many --targets "' +
|
|
622
625
|
LINUX_PLATFORM_TARGET_GLOBS.join(',') +
|
|
623
626
|
'" --projects "' +
|
|
624
627
|
githubExpression('steps.version.outputs.projects') +
|
|
625
628
|
'" ' +
|
|
626
629
|
RELEASE_BUILD_ARGUMENT, '');
|
|
627
630
|
if (crossOnThisRunner) {
|
|
628
|
-
lines.push(
|
|
631
|
+
lines.push(` # Step ${stepNumber++}`, ' - name: 🍎 Build selected macOS and iOS release outputs', " if: steps.version.outputs.mode != 'none'", ' run:', ' smoo github-ci nx-run-many --targets "' +
|
|
629
632
|
macosPlatformFamilies(options).join(',') +
|
|
630
633
|
'" --projects "' +
|
|
631
634
|
githubExpression('steps.version.outputs.projects') +
|
|
@@ -634,7 +637,7 @@ function renderSingleJobPublishWorkflowSteps(steps, options) {
|
|
|
634
637
|
}
|
|
635
638
|
}
|
|
636
639
|
}
|
|
637
|
-
return mergeProducerStepEnvironment(lines, producer).join('\n').trimEnd()
|
|
640
|
+
return `${mergeProducerStepEnvironment(lines, producer).join('\n').trimEnd()}\n`;
|
|
638
641
|
}
|
|
639
642
|
function renderPlatformPublishWorkflowYaml(options) {
|
|
640
643
|
const deployInput = options.deploy === true
|
|
@@ -818,7 +821,7 @@ function renderMacosPlatformSteps(options) {
|
|
|
818
821
|
}
|
|
819
822
|
lines.push('', ` # Step ${stepNumber++}. Composite action internals do not affect top-level job step`, ' # anchors; update these comments if top-level steps move.', ' - name: 🧱 Setup Nix/devenv', ' id: setup', ' uses: ./.github/actions/setup-devenv');
|
|
820
823
|
if (isSmoothBricksCodebasePackageName(options.repoName)) {
|
|
821
|
-
lines.push('', ` # Step ${stepNumber++}`, ' - name: 🏗️ Build smoo Nx version actions', ' # Nx Release loads @smoothbricks/nx-plugin/version-actions through the', ' # export map in its own node process, and versioning runs before the', ' # build phase, so the hook must exist in dist first. Downstream', ' # consumers install the published package and skip this bootstrap.', ' #', ' # `nx` cannot do it: the project graph loads this very plugin, so', ' # `nx build nx-plugin` deadlocks on the executor it is building.', ' # ttsc needs only the package tsconfig --
|
|
824
|
+
lines.push('', ` # Step ${stepNumber++}`, ' - name: 🏗️ Build smoo Nx version actions', ' # Nx Release loads @smoothbricks/nx-plugin/version-actions through the', ' # export map in its own node process, and versioning runs before the', ' # build phase, so the hook must exist in dist first. Downstream', ' # consumers install the published package and skip this bootstrap.', ' #', ' # `nx` cannot do it: the project graph loads this very plugin, so', ' # `nx build nx-plugin` deadlocks on the executor it is building.', ' # ttsc needs only the package tsconfig -- the bootstrap the shell entry', ' # runs (tooling/direnv/enter-shell.ts) -- and emits as the typescript-emit', ' # executor does (EMIT_OVERRIDES), so dist holds no build info.', ' working-directory: packages/nx-plugin', ' run: bun ../../tooling/ttsc-emit.ts');
|
|
822
825
|
}
|
|
823
826
|
lines.push('', ` # Step ${stepNumber++}`, ' - name: 🤖 Configure release author', ' run:', ' git config user.name "github-actions[bot]" && git config user.email', ' "41898282+github-actions[bot]@users.noreply.github.com"', '', ` # Step ${stepNumber++}`, ' - name: 🔢 Version release', ' id: version', ' env:', ` SMOO_RELEASE_PROJECTS: ${githubExpression('inputs.projects')}`, ' run:', ` smoo release version --bump "${githubExpression('inputs.bump')}" --projects "$SMOO_RELEASE_PROJECTS" --dry-run "${githubExpression('inputs.dry_run')}" --github-output`, ' "$GITHUB_OUTPUT"');
|
|
824
827
|
const architectures = macosPlatformArchitectures(options);
|
|
@@ -877,7 +880,7 @@ function renderFinalLinuxPublishSteps(options) {
|
|
|
877
880
|
'merge-multiple: false',
|
|
878
881
|
]), '', ` # Step ${stepNumber++}`, ' - name: 🤖 Configure release author', ' run:', ' git config user.name "github-actions[bot]" && git config user.email', ' "41898282+github-actions[bot]@users.noreply.github.com"');
|
|
879
882
|
if (isSmoothBricksCodebasePackageName(options.repoName)) {
|
|
880
|
-
lines.push('', ` # Step ${stepNumber++}`, ' - name: 🏗️ Build smoo Nx version actions', ' # Nx Release loads @smoothbricks/nx-plugin/version-actions through the', ' # export map in its own node process, and that export has no source', ' # condition, so the next-prerelease bump inside smoo release publish', ' # needs dist/version-actions.cjs on disk. Downstream consumers install', ' # the published package and skip this bootstrap.', ' #', ' # `nx` cannot do it: the project graph loads this very plugin, so', ' # `nx build nx-plugin` deadlocks on the executor it is building.', ' # ttsc needs only the package tsconfig --
|
|
883
|
+
lines.push('', ` # Step ${stepNumber++}`, ' - name: 🏗️ Build smoo Nx version actions', ' # Nx Release loads @smoothbricks/nx-plugin/version-actions through the', ' # export map in its own node process, and that export has no source', ' # condition, so the next-prerelease bump inside smoo release publish', ' # needs dist/version-actions.cjs on disk. Downstream consumers install', ' # the published package and skip this bootstrap.', ' #', ' # `nx` cannot do it: the project graph loads this very plugin, so', ' # `nx build nx-plugin` deadlocks on the executor it is building.', ' # ttsc needs only the package tsconfig -- the bootstrap the shell entry', ' # runs (tooling/direnv/enter-shell.ts) -- and emits as the typescript-emit', ' # executor does (EMIT_OVERRIDES), so dist holds no build info.', ' working-directory: packages/nx-plugin', ' run: bun ../../tooling/ttsc-emit.ts');
|
|
881
884
|
}
|
|
882
885
|
lines.push('', ' # --- Repair -------------------------------------------------------------', '', ` # Step ${stepNumber++}`, ' - name: 🧯 Repair pending releases', ' run:', ` smoo release repair-pending --ref "${githubExpression('github.sha')}" --platform-outputs`, ` "${macosPlatformArtifactNames(options)
|
|
883
886
|
.map((name) => `${githubExpression('runner.temp')}/publish-artifacts/${name}/repairs`)
|
|
@@ -125,6 +125,7 @@ async function main(argv) {
|
|
|
125
125
|
process.on(signal, handler);
|
|
126
126
|
return { signal, handler };
|
|
127
127
|
});
|
|
128
|
+
// eslint-disable-next-line deadline/no-unbounded-wait -- WHY unbounded: a nextest run, its signals forwarded, lasts as long as its work; the operator's interrupt or the enclosing runner's bound ends a hung one
|
|
128
129
|
const exit = await new Promise((settle) => {
|
|
129
130
|
child.once('error', (error) => {
|
|
130
131
|
process.stderr.write(`nextest-code-bound: could not start ${binary}: ${error.message}\n`);
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Measured per-test durations that place a sharded crate's slow tests by time rather than by
|
|
3
|
+
* nextest's name hash, relative to the cargo workspace root, beside `.config/nextest.toml`.
|
|
4
|
+
*
|
|
5
|
+
* A hash spreads many cheap tests evenly but drops a few long ones wherever their names fall: one
|
|
6
|
+
* cowshed-core gate measured eight hash shards at 83 to 276 s of test time around a 168 s mean,
|
|
7
|
+
* because the 51 s, 38 s and 18 s tests shared buckets. The manifest names those tests with their
|
|
8
|
+
* milliseconds; the crate's exception shards run them, longest first onto the least-loaded shard,
|
|
9
|
+
* and the ordinary shards hash only what it does not name.
|
|
10
|
+
*/
|
|
11
|
+
export declare const NEXTEST_TIMINGS_PATH = ".config/nextest-timings.json";
|
|
12
|
+
/** Crate name → nextest test name → milliseconds, as `smoo-nx-nextest-timings` writes it. */
|
|
13
|
+
export type NextestTimings = Record<string, Record<string, number>>;
|
|
14
|
+
/** The workspace's manifest, or `{}` when it has none: then every sharded crate hashes all its tests. */
|
|
15
|
+
export declare function readNextestTimings(path: string): NextestTimings;
|
|
16
|
+
/**
|
|
17
|
+
* The timed tests dealt onto `shards` bins by longest-processing-time: longest first, each onto the
|
|
18
|
+
* bin with the least time so far (the lower index on a tie, the name on equal times), so the result
|
|
19
|
+
* is the same for the same manifest. Bin `i` is exception shard `i + 1`.
|
|
20
|
+
*/
|
|
21
|
+
export declare function timedShardMembers(tests: Readonly<Record<string, number>>, shards: number): string[][];
|
|
22
|
+
/** Exactly the named tests, as one filterset; `none()` for no name. */
|
|
23
|
+
export declare function namedTestsFilter(names: readonly string[]): string;
|
|
24
|
+
/** A test the manifest names: at least this long in the reports a refresh reads. */
|
|
25
|
+
export declare const NEXTEST_TIMED_MIN_MS = 3000;
|
|
26
|
+
/**
|
|
27
|
+
* `crate`'s tests of at least `minMs` in `cases`, by name, with their milliseconds. A name two binaries
|
|
28
|
+
* of the crate share is one entry, as its `test(=…)` selects both, and is charged both times.
|
|
29
|
+
*/
|
|
30
|
+
export declare function measuredTimings(cases: Iterable<{
|
|
31
|
+
readonly binary: string;
|
|
32
|
+
readonly name: string;
|
|
33
|
+
readonly seconds: number;
|
|
34
|
+
}>, crate: string, minMs: number): Record<string, number>;
|
|
35
|
+
//# sourceMappingURL=nextest-timings.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nextest-timings.d.ts","sourceRoot":"","sources":["../src/nextest-timings.ts"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,iCAAiC,CAAC;AAEnE,6FAA6F;AAC7F,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAcpE,yGAAyG;AACzG,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,CAyB/D;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,CAarG;AAED,uEAAuE;AACvE,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAEjE;AAED,oFAAoF;AACpF,eAAO,MAAM,oBAAoB,OAAO,CAAC;AAEzC;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,QAAQ,CAAC;IAAE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,EAC7F,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,MAAM,GACZ,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAWxB"}
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import * as _isTypeUint32_1 from "typia/lib/internal/_isTypeUint32";
|
|
2
|
+
import * as _accessExpressionAsString_1 from "typia/lib/internal/_accessExpressionAsString";
|
|
3
|
+
const __typia_transform__accessExpressionAsString = _accessExpressionAsString_1._accessExpressionAsString;
|
|
4
|
+
import * as _validateReport_1 from "typia/lib/internal/_validateReport";
|
|
5
|
+
import * as _createStandardSchema_1 from "typia/lib/internal/_createStandardSchema";
|
|
6
|
+
import { existsSync, readFileSync } from 'node:fs';
|
|
7
|
+
import typia from 'typia';
|
|
8
|
+
/**
|
|
9
|
+
* Measured per-test durations that place a sharded crate's slow tests by time rather than by
|
|
10
|
+
* nextest's name hash, relative to the cargo workspace root, beside `.config/nextest.toml`.
|
|
11
|
+
*
|
|
12
|
+
* A hash spreads many cheap tests evenly but drops a few long ones wherever their names fall: one
|
|
13
|
+
* cowshed-core gate measured eight hash shards at 83 to 276 s of test time around a 168 s mean,
|
|
14
|
+
* because the 51 s, 38 s and 18 s tests shared buckets. The manifest names those tests with their
|
|
15
|
+
* milliseconds; the crate's exception shards run them, longest first onto the least-loaded shard,
|
|
16
|
+
* and the ordinary shards hash only what it does not name.
|
|
17
|
+
*/
|
|
18
|
+
export const NEXTEST_TIMINGS_PATH = '.config/nextest-timings.json';
|
|
19
|
+
const validateNextestTimings = (() => {
|
|
20
|
+
let errors;
|
|
21
|
+
let _report;
|
|
22
|
+
const _io0 = input => Object.keys(input).every(key => {
|
|
23
|
+
const value = input[key];
|
|
24
|
+
if (undefined === value)
|
|
25
|
+
return true;
|
|
26
|
+
return "object" === typeof value && null !== value && false === Array.isArray(value) && _io1(value);
|
|
27
|
+
});
|
|
28
|
+
const _io1 = input => Object.keys(input).every(key => {
|
|
29
|
+
const value = input[key];
|
|
30
|
+
if (undefined === value)
|
|
31
|
+
return true;
|
|
32
|
+
return "number" === typeof value && _isTypeUint32_1._isTypeUint32(value);
|
|
33
|
+
});
|
|
34
|
+
const _vo0 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
35
|
+
const value = input[key];
|
|
36
|
+
if (undefined === value)
|
|
37
|
+
return true;
|
|
38
|
+
return ("object" === typeof value && null !== value && false === Array.isArray(value) || _report(_exceptionable, {
|
|
39
|
+
path: _path + __typia_transform__accessExpressionAsString(key),
|
|
40
|
+
expected: "Record<string, number & Type<\"uint32\">>",
|
|
41
|
+
value: value
|
|
42
|
+
})) && _vo1(value, _path + __typia_transform__accessExpressionAsString(key), true && _exceptionable) || _report(_exceptionable, {
|
|
43
|
+
path: _path + __typia_transform__accessExpressionAsString(key),
|
|
44
|
+
expected: "Record<string, number & Type<\"uint32\">>",
|
|
45
|
+
value: value
|
|
46
|
+
});
|
|
47
|
+
}).every(flag => flag)].every(flag => flag);
|
|
48
|
+
const _vo1 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
49
|
+
const value = input[key];
|
|
50
|
+
if (undefined === value)
|
|
51
|
+
return true;
|
|
52
|
+
return "number" === typeof value && (_isTypeUint32_1._isTypeUint32(value) || _report(_exceptionable, {
|
|
53
|
+
path: _path + __typia_transform__accessExpressionAsString(key),
|
|
54
|
+
expected: "number & Type<\"uint32\">",
|
|
55
|
+
value: value
|
|
56
|
+
})) || _report(_exceptionable, {
|
|
57
|
+
path: _path + __typia_transform__accessExpressionAsString(key),
|
|
58
|
+
expected: "(number & Type<\"uint32\">)",
|
|
59
|
+
value: value
|
|
60
|
+
});
|
|
61
|
+
}).every(flag => flag)].every(flag => flag);
|
|
62
|
+
const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && _io0(input);
|
|
63
|
+
return _createStandardSchema_1._createStandardSchema(input => {
|
|
64
|
+
if (false === __is(input)) {
|
|
65
|
+
errors = [];
|
|
66
|
+
_report = _validateReport_1._validateReport(errors);
|
|
67
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || _report(true, {
|
|
68
|
+
path: _path + "",
|
|
69
|
+
expected: "ValidatedNextestTimings",
|
|
70
|
+
value: input
|
|
71
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
72
|
+
path: _path + "",
|
|
73
|
+
expected: "ValidatedNextestTimings",
|
|
74
|
+
value: input
|
|
75
|
+
}))(input, "$input", true);
|
|
76
|
+
const success = 0 === errors.length;
|
|
77
|
+
return success ? {
|
|
78
|
+
success,
|
|
79
|
+
data: input
|
|
80
|
+
} : {
|
|
81
|
+
success,
|
|
82
|
+
errors,
|
|
83
|
+
data: input
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
success: true,
|
|
88
|
+
data: input
|
|
89
|
+
};
|
|
90
|
+
});
|
|
91
|
+
})();
|
|
92
|
+
/**
|
|
93
|
+
* A name `test(=…)` matches literally, so it carries none of the filterset's own syntax: Rust test
|
|
94
|
+
* paths are identifiers joined by `::`. A name outside that cannot be written into a filter without
|
|
95
|
+
* quoting rules nextest does not document, so it is refused where it is declared.
|
|
96
|
+
*/
|
|
97
|
+
const FILTERABLE_TEST_NAME = /^[A-Za-z_][A-Za-z0-9_]*(?:::[A-Za-z_][A-Za-z0-9_]*)*$/;
|
|
98
|
+
/** The workspace's manifest, or `{}` when it has none: then every sharded crate hashes all its tests. */
|
|
99
|
+
export function readNextestTimings(path) {
|
|
100
|
+
if (!existsSync(path)) {
|
|
101
|
+
return {};
|
|
102
|
+
}
|
|
103
|
+
let parsed;
|
|
104
|
+
try {
|
|
105
|
+
parsed = JSON.parse(readFileSync(path, 'utf-8'));
|
|
106
|
+
}
|
|
107
|
+
catch (error) {
|
|
108
|
+
throw new Error(`${path}: not valid JSON: ${error instanceof Error ? error.message : String(error)}`);
|
|
109
|
+
}
|
|
110
|
+
const validated = validateNextestTimings(parsed);
|
|
111
|
+
if (!validated.success) {
|
|
112
|
+
const errors = validated.errors.map((error) => `${error.path.replace(/^\$input\.?/, '')}: expected ${error.expected}`);
|
|
113
|
+
throw new Error(`${path}: not a nextest timing manifest: ${errors.join(', ')}`);
|
|
114
|
+
}
|
|
115
|
+
for (const [crate, tests] of Object.entries(validated.data)) {
|
|
116
|
+
for (const name of Object.keys(tests)) {
|
|
117
|
+
if (!FILTERABLE_TEST_NAME.test(name)) {
|
|
118
|
+
throw new Error(`${path}: ${crate} names ${JSON.stringify(name)}, which is not a Rust test path`);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
return validated.data;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* The timed tests dealt onto `shards` bins by longest-processing-time: longest first, each onto the
|
|
126
|
+
* bin with the least time so far (the lower index on a tie, the name on equal times), so the result
|
|
127
|
+
* is the same for the same manifest. Bin `i` is exception shard `i + 1`.
|
|
128
|
+
*/
|
|
129
|
+
export function timedShardMembers(tests, shards) {
|
|
130
|
+
const bins = Array.from({ length: shards }, () => ({ ms: 0, names: [] }));
|
|
131
|
+
const longestFirst = Object.entries(tests).sort(([a, x], [b, y]) => y - x || (a < b ? -1 : a > b ? 1 : 0));
|
|
132
|
+
for (const [name, ms] of longestFirst) {
|
|
133
|
+
let least = bins[0];
|
|
134
|
+
for (const bin of bins) {
|
|
135
|
+
if (least === undefined || bin.ms < least.ms)
|
|
136
|
+
least = bin;
|
|
137
|
+
}
|
|
138
|
+
if (least === undefined)
|
|
139
|
+
break;
|
|
140
|
+
least.ms += ms;
|
|
141
|
+
least.names.push(name);
|
|
142
|
+
}
|
|
143
|
+
return bins.map((bin) => bin.names.sort());
|
|
144
|
+
}
|
|
145
|
+
/** Exactly the named tests, as one filterset; `none()` for no name. */
|
|
146
|
+
export function namedTestsFilter(names) {
|
|
147
|
+
return names.length === 0 ? 'none()' : names.map((name) => `test(=${name})`).join(' or ');
|
|
148
|
+
}
|
|
149
|
+
/** A test the manifest names: at least this long in the reports a refresh reads. */
|
|
150
|
+
export const NEXTEST_TIMED_MIN_MS = 3000;
|
|
151
|
+
/**
|
|
152
|
+
* `crate`'s tests of at least `minMs` in `cases`, by name, with their milliseconds. A name two binaries
|
|
153
|
+
* of the crate share is one entry, as its `test(=…)` selects both, and is charged both times.
|
|
154
|
+
*/
|
|
155
|
+
export function measuredTimings(cases, crate, minMs) {
|
|
156
|
+
const total = new Map();
|
|
157
|
+
for (const { binary, name, seconds } of cases) {
|
|
158
|
+
if (binary !== crate && !binary.startsWith(`${crate}::`))
|
|
159
|
+
continue;
|
|
160
|
+
total.set(name, (total.get(name) ?? 0) + Math.round(seconds * 1000));
|
|
161
|
+
}
|
|
162
|
+
const timed = {};
|
|
163
|
+
for (const [name, ms] of [...total].sort(([a], [b]) => (a < b ? -1 : a > b ? 1 : 0))) {
|
|
164
|
+
if (ms >= minMs)
|
|
165
|
+
timed[name] = ms;
|
|
166
|
+
}
|
|
167
|
+
return timed;
|
|
168
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** One test file's installation: taken on first use and shared by its fixtures, retired by
|
|
1
|
+
/** One test file's use of an installation: taken on first use and shared by its fixtures, retired by its `afterAll`. */
|
|
2
2
|
export interface TestFileInstallation {
|
|
3
3
|
/** The `node_modules` a fixture workspace links. */
|
|
4
4
|
readonly nodeModules: () => Promise<string>;
|
|
@@ -6,10 +6,11 @@ export interface TestFileInstallation {
|
|
|
6
6
|
readonly retire: () => Promise<void>;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
9
|
+
* One test file's use of the copy of the closure `censusRoot` (the workspace whose Nx, plugin and TypeScript the
|
|
10
|
+
* fixtures stand for) resolves, kept as `name` in `censusRoot`'s tool cache and proved on first use. Call once per
|
|
11
|
+
* file, at module scope. Files that name one copy share it: Bun runs many test files in one process, which takes the
|
|
12
|
+
* copy once for all of them, and concurrent processes take it in turn under its lock, none changing a copy another
|
|
13
|
+
* holds. Retiring proves that no fixture wrote into the copy since this process took it.
|
|
13
14
|
*/
|
|
14
15
|
export declare function ownedInstallation(censusRoot: string, name: string): TestFileInstallation;
|
|
15
16
|
//# sourceMappingURL=owned-installation.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"owned-installation.d.ts","sourceRoot":"","sources":["../src/owned-installation.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"owned-installation.d.ts","sourceRoot":"","sources":["../src/owned-installation.ts"],"names":[],"mappings":"AA2fA,wHAAwH;AACxH,MAAM,WAAW,oBAAoB;IACnC,oDAAoD;IACpD,QAAQ,CAAC,WAAW,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;IAC5C,+FAA+F;IAC/F,QAAQ,CAAC,MAAM,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CACtC;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,oBAAoB,CAoBxF"}
|