@smoothbricks/nx-plugin 0.6.3-0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (109) hide show
  1. package/README.md +159 -121
  2. package/dist/.build-inputs.json +25 -20
  3. package/dist/bin/smoo-nx-go-test-build.d.ts +3 -0
  4. package/dist/bin/smoo-nx-go-test-build.d.ts.map +1 -0
  5. package/dist/bin/smoo-nx-go-test-build.js +79 -0
  6. package/dist/bin/smoo-nx-go-test-run.d.ts +3 -0
  7. package/dist/bin/smoo-nx-go-test-run.d.ts.map +1 -0
  8. package/dist/bin/smoo-nx-go-test-run.js +129 -0
  9. package/dist/bounded-test-policy.d.ts +1 -1
  10. package/dist/bounded-test-policy.d.ts.map +1 -1
  11. package/dist/bounded-test-policy.js +9 -8
  12. package/dist/cargo-workspace.d.ts +10 -20
  13. package/dist/cargo-workspace.d.ts.map +1 -1
  14. package/dist/cargo-workspace.js +12 -22
  15. package/dist/cross-check-policy.d.ts +2 -2
  16. package/dist/cross-check-policy.js +2 -2
  17. package/dist/deploy-policy.d.ts +6 -0
  18. package/dist/deploy-policy.d.ts.map +1 -1
  19. package/dist/deploy-policy.js +11 -0
  20. package/dist/executors/bounded-exec/executor.d.ts.map +1 -1
  21. package/dist/executors/bounded-exec/executor.js +49 -37
  22. package/dist/executors/bounded-exec/mbx-pool.d.ts +39 -10
  23. package/dist/executors/bounded-exec/mbx-pool.d.ts.map +1 -1
  24. package/dist/executors/bounded-exec/mbx-pool.js +78 -24
  25. package/dist/executors/bounded-exec/progress.js +5 -5
  26. package/dist/executors/bounded-exec/runner-sizing.d.ts +40 -2
  27. package/dist/executors/bounded-exec/runner-sizing.d.ts.map +1 -1
  28. package/dist/executors/bounded-exec/runner-sizing.js +55 -4
  29. package/dist/executors/bounded-exec/runtime-pin.js +1 -1
  30. package/dist/executors/bounded-exec/verdict.d.ts +6 -0
  31. package/dist/executors/bounded-exec/verdict.d.ts.map +1 -1
  32. package/dist/executors/bounded-exec/verdict.js +6 -0
  33. package/dist/executors/wrangler-deploy/deploy-hash.d.ts +10 -0
  34. package/dist/executors/wrangler-deploy/deploy-hash.d.ts.map +1 -0
  35. package/dist/executors/wrangler-deploy/deploy-hash.js +14 -0
  36. package/dist/executors/wrangler-deploy/executor.d.ts +24 -0
  37. package/dist/executors/wrangler-deploy/executor.d.ts.map +1 -0
  38. package/dist/executors/wrangler-deploy/executor.js +43 -0
  39. package/dist/executors/wrangler-deploy/hasher.d.ts +27 -0
  40. package/dist/executors/wrangler-deploy/hasher.d.ts.map +1 -0
  41. package/dist/executors/wrangler-deploy/hasher.js +90 -0
  42. package/dist/executors/wrangler-deploy/schema.d.ts +5 -0
  43. package/dist/executors/wrangler-deploy/schema.d.ts.map +1 -0
  44. package/dist/go-tests.d.ts +30 -0
  45. package/dist/go-tests.d.ts.map +1 -0
  46. package/dist/go-tests.js +43 -0
  47. package/dist/index.d.ts +9 -2
  48. package/dist/index.d.ts.map +1 -1
  49. package/dist/index.js +271 -230
  50. package/dist/managed-files/files.d.ts.map +1 -1
  51. package/dist/managed-files/files.js +5 -0
  52. package/dist/process-group.js +2 -2
  53. package/dist/runtime-input-policy.d.ts +3 -3
  54. package/dist/runtime-input-policy.js +3 -3
  55. package/dist/test-timings.d.ts +23 -4
  56. package/dist/test-timings.d.ts.map +1 -1
  57. package/dist/test-timings.js +72 -12
  58. package/dist/version-actions.cjs +10 -11
  59. package/dist/version-actions.d.cts.map +1 -1
  60. package/dist/workspace-config-policy.d.ts.map +1 -1
  61. package/dist/workspace-config-policy.js +17 -22
  62. package/dist/workspace-manifest.js +3 -3
  63. package/executors.json +6 -5
  64. package/managed/raw/patches/nx@23.2.1.patch +118 -24
  65. package/managed/raw/patches/ttsc@0.34.1.patch +64 -0
  66. package/managed/raw/tooling/direnv/developer-links.ts +121 -51
  67. package/managed/raw/tooling/direnv/installed-bun-links.ts +7 -6
  68. package/managed/raw/tooling/direnv/setup-environment.ts +14 -4
  69. package/managed/raw/tooling/git-hooks/pinned-revisions-served.ts +252 -0
  70. package/managed/raw/tooling/git-hooks/pre-push.sh +34 -32
  71. package/package.json +57 -7
  72. package/runtime/nx-publish/.build-inputs.json +11 -0
  73. package/runtime-input.sh +50 -23
  74. package/src/bin/smoo-nx-go-test-build.ts +83 -0
  75. package/src/bin/smoo-nx-go-test-run.ts +140 -0
  76. package/src/bounded-test-policy.ts +9 -8
  77. package/src/cargo-workspace.ts +12 -24
  78. package/src/cross-check-policy.ts +2 -2
  79. package/src/deploy-policy.ts +11 -0
  80. package/src/executors/bounded-exec/executor.ts +61 -42
  81. package/src/executors/bounded-exec/mbx-pool.ts +97 -33
  82. package/src/executors/bounded-exec/progress.ts +5 -5
  83. package/src/executors/bounded-exec/runner-sizing.ts +73 -7
  84. package/src/executors/bounded-exec/runtime-pin.ts +1 -1
  85. package/src/executors/bounded-exec/verdict.ts +7 -0
  86. package/src/executors/wrangler-deploy/deploy-hash.ts +15 -0
  87. package/src/executors/wrangler-deploy/executor.ts +63 -0
  88. package/src/executors/wrangler-deploy/hasher.ts +111 -0
  89. package/src/executors/wrangler-deploy/schema.json +16 -0
  90. package/src/executors/wrangler-deploy/schema.ts +4 -0
  91. package/src/go-tests.ts +67 -0
  92. package/src/index.ts +294 -253
  93. package/src/managed-files/files.ts +5 -0
  94. package/src/process-group.ts +2 -2
  95. package/src/runtime-input-policy.ts +3 -3
  96. package/src/test-timings.ts +72 -14
  97. package/src/version-actions.cts +10 -11
  98. package/src/workspace-config-policy.ts +20 -29
  99. package/src/workspace-manifest.ts +3 -3
  100. package/test-timings.json +131 -130
  101. package/dist/executors/clean-outputs/executor.d.ts +0 -26
  102. package/dist/executors/clean-outputs/executor.d.ts.map +0 -1
  103. package/dist/executors/clean-outputs/executor.js +0 -83
  104. package/dist/executors/clean-outputs/schema.d.ts +0 -4
  105. package/dist/executors/clean-outputs/schema.d.ts.map +0 -1
  106. package/src/executors/clean-outputs/executor.ts +0 -131
  107. package/src/executors/clean-outputs/schema.json +0 -15
  108. package/src/executors/clean-outputs/schema.ts +0 -3
  109. /package/dist/executors/{clean-outputs → wrangler-deploy}/schema.js +0 -0
@@ -6,11 +6,13 @@
6
6
  "packages/nx-plugin/src/bin/smoo-nx-cargo-toolchain.ts": "c24be4ca223cd946de95be5243596267d09baa75e8841892b0299a5478b197d5",
7
7
  "packages/nx-plugin/src/bin/smoo-nx-exec.ts": "42e699cf710b36f72565279f558076b4b08b9fdb4e02a09e851d29bd0d341029",
8
8
  "packages/nx-plugin/src/bin/smoo-nx-forbidden-spellings.ts": "f5e0e7f50a2cb60d34e7d4c95839c6b632e1b28d6b87fddb6ce437d4a5908886",
9
+ "packages/nx-plugin/src/bin/smoo-nx-go-test-build.ts": "effb57c6bd7fad46ca5f01322618b1e8822e6eaf2a49fbae0e573d0a8138f36b",
10
+ "packages/nx-plugin/src/bin/smoo-nx-go-test-run.ts": "cfbb09075bb24c387a9f1305dafab8dd08a6355d7dffd6e43fc6870c43cc5225",
9
11
  "packages/nx-plugin/src/bin/smoo-nx-nextest-timings.ts": "706548efc89848cf90381fab2298d0b14224f0fdacc401115369dae8f0aced19",
10
12
  "packages/nx-plugin/src/bin/smoo-nx-publish.ts": "b911f05d5a1a9170f49078804b7f9ae2a63468aa668501df7a3a38cdba91b07c",
11
13
  "packages/nx-plugin/src/bin/smoo-nx-test-clocks.ts": "e523ea4da694ae56c83b8601568df3a8723d9d42e56f08703389b9c8d1e2296d",
12
14
  "packages/nx-plugin/src/bin/smoo-nx-test-walks.ts": "94e8af452331d765e711aa2493efbff4ddb4e6e3088343873f78d9eaa840570b",
13
- "packages/nx-plugin/src/bounded-test-policy.ts": "f337c18bdbe913fcbd7dba8894737f98103214462b92d8e5986313380245bb30",
15
+ "packages/nx-plugin/src/bounded-test-policy.ts": "b52a8858543d25e173aad4f49002a7cdc7f70b098f6046fc56acb747065acd8a",
14
16
  "packages/nx-plugin/src/build-state-output-policy.ts": "031a75cb96a2fed0ab2ce80a98588482595f7550d5259e33edabd6e676ad3a3c",
15
17
  "packages/nx-plugin/src/bun-lock-scope.ts": "f249da592592080ee302cfaa48d607b2acaa6f516f24bafe7f12b9dd49dacaa7",
16
18
  "packages/nx-plugin/src/cargo-build-script-env.ts": "e5b45ccefc2255cd8a48121eb97132a08e136b4cbbc375d04c940d821a429b23",
@@ -20,9 +22,9 @@
20
22
  "packages/nx-plugin/src/cargo-source-hash.ts": "1d72427cb2c7d9038c9452db958d14cbb5017d633f40590093654b474b71cb8e",
21
23
  "packages/nx-plugin/src/cargo-toolchain-paths.ts": "3f91da4c07394e47205093874b3d46e888c2e53ab735bbea2b64d660c2611469",
22
24
  "packages/nx-plugin/src/cargo-toolchain-policy.ts": "715a743a9922fa1f3be4301bbecee5ed5c1c00c7e9fa6eec0ce9ef9b384fad04",
23
- "packages/nx-plugin/src/cargo-workspace.ts": "27cd61d7ada05366719e34380c9d8e701b982fb3e75799256be94aa6cafb6264",
24
- "packages/nx-plugin/src/cross-check-policy.ts": "fc45eefdcf7ea3975affb4b89d91093b9cbfc3504756103a18353aef3a264db6",
25
- "packages/nx-plugin/src/deploy-policy.ts": "8456e2f896c489e5f4905383a0294d1b7a33c2d95c5ca718458cc40ed8672c5c",
25
+ "packages/nx-plugin/src/cargo-workspace.ts": "ecbe5e0545e07a68ba02d18a2ed362a545e902e947a52af1dab112b71f91f633",
26
+ "packages/nx-plugin/src/cross-check-policy.ts": "37f304954419306803972b0a48bde97b50a7b773883655639994c6d007f2e54d",
27
+ "packages/nx-plugin/src/deploy-policy.ts": "2f6202000dceca84d472f417affce50fd2ec3cab87c969443d83ec6e1d4ccf71",
26
28
  "packages/nx-plugin/src/disk-command-policy.ts": "fb8731ccf41cff47b88f30165b08dc8d551068c436f4e49cb2b62aa4b49be43c",
27
29
  "packages/nx-plugin/src/ensure-built-receipt.ts": "f80084d91d37c5132822bf26b45e6a9ae35e54e366cedbb9d69a2abd663ca419",
28
30
  "packages/nx-plugin/src/ensure-built-witness.ts": "428b3bde289d4f10cdc2b2442a84ebc653f3da8955f9ea596dddf3c759029b1c",
@@ -36,16 +38,16 @@
36
38
  "packages/nx-plugin/src/executors/bounded-exec/cpu-pool-thread.ts": "4b914385f7ab73cfb3afdc75c0e3c462e7c103c5061f7f7720d7b95f6655e32d",
37
39
  "packages/nx-plugin/src/executors/bounded-exec/cpu-pool.ts": "a4be1280a0ea4b5aa0f04170ce75ce4b813631264c50fab5cdd05d34926fc890",
38
40
  "packages/nx-plugin/src/executors/bounded-exec/disk-lease.ts": "1a3f6a6fa590d9a2550490bb6906dc91b6c05fbef235b025eaf257eb5310e92d",
39
- "packages/nx-plugin/src/executors/bounded-exec/executor.ts": "d0ab0cb5e619ccc8385c3d93931fd67927ae0c6c5eb36052d60857bbc5145fbb",
41
+ "packages/nx-plugin/src/executors/bounded-exec/executor.ts": "5a90bd7410b80909224ae10e866bd7881ff91b8fffbedf01e1b1c845ea0ead56",
40
42
  "packages/nx-plugin/src/executors/bounded-exec/gateway-lease.ts": "f3f73bd92db30e4857f98fb8bd2b9a75b2a5a2a318f094e075ed803c1f9a0117",
41
43
  "packages/nx-plugin/src/executors/bounded-exec/hang-diagnostics.ts": "bcaa9e52384f6c481a9cc2835ba6e8ffe167afa3cb51623fdf8dc3493876f335",
42
44
  "packages/nx-plugin/src/executors/bounded-exec/lease-wait.ts": "59d8ac94d0b8b75858971c5bb28ee421fca4f7685577274fe8bbaf0c01ba462a",
43
45
  "packages/nx-plugin/src/executors/bounded-exec/lock-wait.ts": "b14a23b49759a777f4b3338ced003adaf76837c2c38462458f76a7fef1b95d9e",
44
- "packages/nx-plugin/src/executors/bounded-exec/mbx-pool.ts": "5b83e84eef1a0ec6c1293ba6c564654196855aef0e460cc482c141504722d359",
46
+ "packages/nx-plugin/src/executors/bounded-exec/mbx-pool.ts": "1b6bae7975355563c31eb60d3b23480c12c51c24bdd7bce9bccc161838a88037",
45
47
  "packages/nx-plugin/src/executors/bounded-exec/mbx-queue.ts": "ac309e28e5ee78fa08d628edb00e33532514f7572166770799ae86d468c12b4e",
46
48
  "packages/nx-plugin/src/executors/bounded-exec/no-space.ts": "ec032968d89f9e853796012705a06c06cfc4da54bf6e6f10a526f98daca3d077",
47
49
  "packages/nx-plugin/src/executors/bounded-exec/owned-subtree.ts": "cb5edf2b5fe2c1b5b961f8c0ff16ec7bfae3c22ad75dfd671b74f1a4a865863f",
48
- "packages/nx-plugin/src/executors/bounded-exec/progress.ts": "560a3ecd70e1cd430a0faf826092ecda1ce4cbdb99e1230a2410376ba28ac0a5",
50
+ "packages/nx-plugin/src/executors/bounded-exec/progress.ts": "ed926f7b4991ebf7a7c8876ab0ea00295934d058c774e3f811963a85d209979b",
49
51
  "packages/nx-plugin/src/executors/bounded-exec/ram-attach.ts": "865eb5c277d9ab4b258013030938aeee762b731a7298fa8ad3c5eba3026df77a",
50
52
  "packages/nx-plugin/src/executors/bounded-exec/ram-detach.ts": "535d26114d14d0d94db76227ea7ba52b1ae0b590d7dbac22993b6796d255e666",
51
53
  "packages/nx-plugin/src/executors/bounded-exec/ram-temp-fixtures.ts": "075da4ecfd1cf7dd98fc8c894599dcf2720faba07ac30b8e5592964178849359",
@@ -54,16 +56,14 @@
54
56
  "packages/nx-plugin/src/executors/bounded-exec/run-cpu-pool.ts": "3fc4bfe04862a756d9f74743e399d902a6ce6052a0a3ff4e7edf17f875f33266",
55
57
  "packages/nx-plugin/src/executors/bounded-exec/runner-hook.ts": "606eab5db826e571eb15df618315e01cc773d09fd647beb1c00f6434df58ffad",
56
58
  "packages/nx-plugin/src/executors/bounded-exec/runner-lifecycle.ts": "dc5c10634b8ccda82c71887bf55aaa67f322b1dace53383d45bd8863469af8a1",
57
- "packages/nx-plugin/src/executors/bounded-exec/runner-sizing.ts": "bb8ecbc6acad99e077885ef096f61bf04fe017aa4184c34c98a578c3d3ef5a93",
58
- "packages/nx-plugin/src/executors/bounded-exec/runtime-pin.ts": "8e7fecaf6dd01ce6e065020f8c87edfcdc04e995934e018ab3b69b36acdc5e4f",
59
+ "packages/nx-plugin/src/executors/bounded-exec/runner-sizing.ts": "6884ebad97f5d481af8f04399cc6c45763765be06c56be08126b0a9b0c134c60",
60
+ "packages/nx-plugin/src/executors/bounded-exec/runtime-pin.ts": "3eb9a8b794da51ffa01723509935f48bfb497fba883518046e74a53209f0eb10",
59
61
  "packages/nx-plugin/src/executors/bounded-exec/schema.ts": "18c2b0b6e8c5377f3cd520798da26a0fe2d04ebc35e16035af6432b85d038a2c",
60
62
  "packages/nx-plugin/src/executors/bounded-exec/test-result-writer.ts": "df7668a11d105a1f88d2187ef8b0edff9db7ba56d8176b5bc35daf1359667637",
61
63
  "packages/nx-plugin/src/executors/bounded-exec/test-results.ts": "4f83dc3accd7892f45385796522267adad9401326d0cd9ce4d4e1145b9023577",
62
- "packages/nx-plugin/src/executors/bounded-exec/verdict.ts": "bf68a9d464ecbeed5d2cbaba93b4f557e47b00b8eeb2c121a2096b779c93097f",
64
+ "packages/nx-plugin/src/executors/bounded-exec/verdict.ts": "cf8416985b83e41409fc689ceef61df89c8cf2e42bdb42eea7a7c157b8e8eba2",
63
65
  "packages/nx-plugin/src/executors/cargo-zigbuild/executor.ts": "d20b73cc90ae1a9c3f96996cdde4d97347395ca875c4801ab67842ec89f9acd7",
64
66
  "packages/nx-plugin/src/executors/cargo-zigbuild/schema.ts": "e5cf3b0cc91a2d003a63ca0c9a93f1ec08263469b8a19dbe338b2dc0c0810747",
65
- "packages/nx-plugin/src/executors/clean-outputs/executor.ts": "acf82d9560451d76d9357217f5f57645135a393a6deadf8f217b57b481022c46",
66
- "packages/nx-plugin/src/executors/clean-outputs/schema.ts": "47e6f840d56a33bad6aba12171628b74a17911b5503399ebf484baf71be2f58f",
67
67
  "packages/nx-plugin/src/executors/scriptc-native/executor.ts": "4db61da4444d3a30acd3995b6cf53a4bc403a40fe856d88b2c30ce467badbea8",
68
68
  "packages/nx-plugin/src/executors/scriptc-native/ffi-paths.ts": "a73ed6800f69992cad6b954f14c0adb4f0ded45900bf84582df4755a3775104c",
69
69
  "packages/nx-plugin/src/executors/scriptc-native/schema.ts": "41e48a9032ce93b2e6965861c73776e23015f44a0ebd1e011a0786e17b22a108",
@@ -72,6 +72,10 @@
72
72
  "packages/nx-plugin/src/executors/typescript-emit/emit-overrides.ts": "3021aeb756492632d3e5da7a7ae15dded0a9399f73734c0d1fea1c69a2bd4b85",
73
73
  "packages/nx-plugin/src/executors/typescript-emit/executor.ts": "efea02d08b3112d1927562f09dd8641d8a5e1653af876d89314e35fc381e6a53",
74
74
  "packages/nx-plugin/src/executors/typescript-emit/schema.ts": "20edee20fee80198bbfbb743848d4ac3e41e734050abd511fceafcea9cd6da28",
75
+ "packages/nx-plugin/src/executors/wrangler-deploy/deploy-hash.ts": "0ebcf8d795e703f98e43e6e89c474f71f8bde0e09a807564480dbc73ce30cd8a",
76
+ "packages/nx-plugin/src/executors/wrangler-deploy/executor.ts": "de8a8b2c069692b1280b779b48069f7c0cd30cd394c416c821d635130c365a5a",
77
+ "packages/nx-plugin/src/executors/wrangler-deploy/hasher.ts": "d8ffd58ad546fc971ebae91b2c616dc3195132d0ffbaf941946c6544a050b24c",
78
+ "packages/nx-plugin/src/executors/wrangler-deploy/schema.ts": "15db38aaf66abef2d4f20f97e8ec36b31b58194170aef9d5088a1e53e667b796",
75
79
  "packages/nx-plugin/src/forbidden-spelling-policy.ts": "d6c2c17665770432e53ae4b49986dc88eb8e5205be915c6baf34cd819ca9470c",
76
80
  "packages/nx-plugin/src/generators/bounded-test-targets/generator.ts": "fd77c72df6c8457f25c73e512546229ef11001974cba0a05d8700e523d990131",
77
81
  "packages/nx-plugin/src/generators/bounded-test-targets/schema.d.ts": "c471477fdc3c60937c7ba418d6b836dd4f581884cd35b9215068b96a9e5a33c0",
@@ -81,12 +85,13 @@
81
85
  "packages/nx-plugin/src/generators/create-package/schema.d.ts": "8166f79ce6a383f00eb80d7aaeba8f708ed79659b072f1871043b689ceb704d6",
82
86
  "packages/nx-plugin/src/generators/make-public/generator.ts": "2963006e663ff5b1dab37b188f96e40d8c55e0014cadf5c0c755b93c9d479a0f",
83
87
  "packages/nx-plugin/src/generators/make-public/schema.d.ts": "5e7bd2f1ce16795df4c919d6d53588ea85b574c84400940b6322275f96f60357",
88
+ "packages/nx-plugin/src/go-tests.ts": "8e356b6ee276e6e836c404353b0ffb5ccec5beb261126f167f730e6e01e9c2b6",
84
89
  "packages/nx-plugin/src/graph-input-contract.ts": "8a1aec1294960ae80bcff55a0370c95004a911bf1afe6caa47e666da3baeac43",
85
- "packages/nx-plugin/src/index.ts": "9cd62f29ebedff002298f32a55b247bdd1f6b107c15ad5398358a917b51b6116",
90
+ "packages/nx-plugin/src/index.ts": "44c78d8718f7e1c9ff0dfea57ca00dd04d7f8f0f1adadfb2dd2a540e7da300f9",
86
91
  "packages/nx-plugin/src/managed-assets.ts": "9cea959c09f3163992e666eecc5a65ec1f1b63c81fc56c5e99088507d02c5e3b",
87
92
  "packages/nx-plugin/src/managed-files/ci-workflow.ts": "2d64d689e999af20d65cc21b4803659a835a6eb5340e8d3f896cb0c74e6a0878",
88
93
  "packages/nx-plugin/src/managed-files/context.ts": "5b83c000322382cb781df4f415f3759388e69686b76779599572a62a5c4dd28c",
89
- "packages/nx-plugin/src/managed-files/files.ts": "468d462da82cf0c3b8bb5db736cb3c06203c2cf8f9bc6cebe70ca52eb6fdac5f",
94
+ "packages/nx-plugin/src/managed-files/files.ts": "4de7e3898f1cb107be5ac2d4419865637469690985ec4f37951aa2efee5e8686",
90
95
  "packages/nx-plugin/src/managed-files/generator.ts": "8cf1a1b121645c5ead86c163c9da03f612efb2fff6aabed3ea858d87d6cbd0b3",
91
96
  "packages/nx-plugin/src/managed-files/github-runs-on.ts": "a049ca60a79dec57f77e5d18090569a9b8b78818219f236fe352e7705500f531",
92
97
  "packages/nx-plugin/src/managed-files/json-edit.ts": "81bc6dd10fffff583cc9f2269f0c2fd2f76b1c5aedbc7d068cf29878371497c2",
@@ -107,11 +112,11 @@
107
112
  "packages/nx-plugin/src/process-children.darwin.ts": "a2f95428b94738e53a6d6bee0cbb721bd22a6608432ec393520d0c7baa468329",
108
113
  "packages/nx-plugin/src/process-children.linux.ts": "c1a84b04501f895661efa6800a0cd451ecafaca4a42dc8a1671a8ed615ff5530",
109
114
  "packages/nx-plugin/src/process-children.ts": "eb59f25c02213942b85c16f9f758acf37112b5a5a550152c80656dc1ffcf8b30",
110
- "packages/nx-plugin/src/process-group.ts": "2fcfb039c7dd2467319eb7377a3097b2ef7296ad31183595d0c98c1c2ead1189",
115
+ "packages/nx-plugin/src/process-group.ts": "e3523b074280430c883dd53d39e9e4f9a3d3390bdb8a2667142f7a5d0449c872",
111
116
  "packages/nx-plugin/src/process-listing.ts": "70e7b75d1dda4e813d6fd43800f38ea890cd816fd9b652dfb2eae4b598ff9e46",
112
117
  "packages/nx-plugin/src/producer-receipts.ts": "7b3bc6ad60333015e35861da1d85443cc7954cd08cde8488e863aa856f120490",
113
118
  "packages/nx-plugin/src/release-config-policy.ts": "850fefcddefff6a76c596abea4d9e569f932fd3f94782b26ac6c8e29e3ac4c98",
114
- "packages/nx-plugin/src/runtime-input-policy.ts": "cc6c9a3f016b72281207beea153f4abdb0ec94958caca0a33b040a2cbfaab5da",
119
+ "packages/nx-plugin/src/runtime-input-policy.ts": "c08693adac4c79e66eca331b3c43c22fa9c9032f6f2bb2c39d820f67ef06f041",
115
120
  "packages/nx-plugin/src/runtime-input.ts": "56e748e0b7835d65efbb3be109c201bb4f10dc601a7ac5c8a8a51521501329a7",
116
121
  "packages/nx-plugin/src/rust-tokens.ts": "cbaf7552192b4f82f04518fbcc48c235b4974de5348bc3c175cabcaffffdc32b",
117
122
  "packages/nx-plugin/src/source-directories.ts": "453de3d8be798e6e69eebf7d3ed1842fb13e7d1476b6a088f032ecdfa39a2a72",
@@ -120,17 +125,17 @@
120
125
  "packages/nx-plugin/src/test-backstop.ts": "bd8b27cc05f001e460c29997125f2d7cb07a98ca1ae306f0b0f1884978e247e1",
121
126
  "packages/nx-plugin/src/test-clock-policy.ts": "4edaef6535b862a5b4ca19686ad958c4df1986e1f97821a6193d4a99742598e9",
122
127
  "packages/nx-plugin/src/test-program.ts": "5c5337a3a1deb7e2b11e46fd91136a0b6f41d4b5b42873be573330c59d73000b",
123
- "packages/nx-plugin/src/test-timings.ts": "ffde798346afb092d4ecf34b0a6f886fe5a8a8dfc32fee6ebc2f8592c491f2e1",
128
+ "packages/nx-plugin/src/test-timings.ts": "73c2de1b5c0d06a6628d1659727a8504eaf3c21e89fe0a5da969702ba6823ec9",
124
129
  "packages/nx-plugin/src/test-walk-policy.ts": "f1c92f1a2ba0c3282abb1706bb637d4b5dc74109edb27f7e41edc14e475bfc91",
125
130
  "packages/nx-plugin/src/testing.ts": "2f14ec40b51dd5a1314e5873708ae30c0cd3f0b5bd85042e9a38d7e68ad5a422",
126
131
  "packages/nx-plugin/src/tool-bins.ts": "8e5b194d76ce854fd33ad464017c021af401a2d92383f5c31168652b73656601",
127
132
  "packages/nx-plugin/src/type-guards.ts": "87d87a9bb83f0f4614b9f615d8cc7347772cb1418dc1946978987147c0d6ef0c",
128
133
  "packages/nx-plugin/src/typecheck-test-policy.ts": "5f6b1ff0dbf4bcac84721e60452790fb5e4ce41ee35ca2f1d033d51575ed53d7",
129
- "packages/nx-plugin/src/version-actions.cts": "cd77da78b1a80171104c3db0bea586e513f0ce0d66c80f9a38a73533de2a1bbe",
134
+ "packages/nx-plugin/src/version-actions.cts": "c579ed33d5641bd487024429758582fe1f7bde376cfbd4a4a4325aa70fb71883",
130
135
  "packages/nx-plugin/src/wait-why-policy.ts": "f10a5370665c0c38dc778d7532b2cd2b008221efea097b788aeaba8ee63745ea",
131
- "packages/nx-plugin/src/workspace-config-policy.ts": "410debddb0280489f54ab8173fa11890334e19efba69c19d85b92981d2d40688",
136
+ "packages/nx-plugin/src/workspace-config-policy.ts": "4b5c914027f1512d52a9eed195a368d0e9b21222c17c462841ccb33ba889de5e",
132
137
  "packages/nx-plugin/src/workspace-index.ts": "b2036b48bae92d618027bcc1f876eb9312627ed035d4753eead70b23aa482cc5",
133
- "packages/nx-plugin/src/workspace-manifest.ts": "3dd8da8dd96f6005282df18d13c15ea4a2d9db78c2bd472cddb3ee18b6ffc50c",
138
+ "packages/nx-plugin/src/workspace-manifest.ts": "02329a63dec5fae66bc571ce8a876ff1864c2e6ed07016ef132b9d97d4330c22",
134
139
  "packages/nx-plugin/src/workspace-package-policy.ts": "f569ce4e5d27168ea83aa41893573cb869d6f062d37133e95911fdd1d709fa8c",
135
140
  "packages/nx-plugin/tsconfig.lib.json": "553a96cc72e10c187d5e7d3da767270d8184ae07929139e417345c770b8d84d1"
136
141
  },
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=smoo-nx-go-test-build.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smoo-nx-go-test-build.d.ts","sourceRoot":"","sources":["../../src/bin/smoo-nx-go-test-build.ts"],"names":[],"mappings":""}
@@ -0,0 +1,79 @@
1
+ #!/usr/bin/env node
2
+ import { spawnSync } from 'node:child_process';
3
+ import { lstatSync, mkdirSync, renameSync, rmSync, writeFileSync } from 'node:fs';
4
+ import { join, relative, resolve } from 'node:path';
5
+ import { GO_TESTS_MANIFEST } from '../go-tests.js';
6
+ // Builds a Go module's test binaries ahead of their run, so the build can be a cached target of its own: run in the
7
+ // module, it builds one `go test -c` binary for each package with test files among <package pattern>..., as `go list`
8
+ // resolves them, and writes <out-dir>/go-tests.json naming each binary's package and directory for
9
+ // smoo-nx-go-test-run. <out-dir> is replaced whole, so no binary of a package that lost its tests lingers; a directory
10
+ // that holds no such manifest is never replaced. Exit 2 on a usage error or such a directory; go's own status when go
11
+ // fails, its diagnostics already on stderr.
12
+ const usage = 'usage: smoo-nx-go-test-build <out-dir> <package pattern>...\n';
13
+ const words = process.argv.slice(2);
14
+ const [outWord, ...patterns] = words;
15
+ if (outWord === undefined || patterns.length === 0 || words.some((word) => word.startsWith('-'))) {
16
+ process.stderr.write(usage);
17
+ process.exit(2);
18
+ }
19
+ const out = resolve(outWord);
20
+ // One record per package with test files: its import path and directory, each NUL-terminated; go list ends the
21
+ // output of every package that printed one with a newline. No path holds a NUL, so the records split exactly.
22
+ const LISTED = '{{if or .TestGoFiles .XTestGoFiles}}{{.ImportPath}}{{"\\x00"}}{{.Dir}}{{"\\x00"}}{{end}}';
23
+ function refuse(reason) {
24
+ process.stderr.write(`smoo-nx-go-test-build: ${reason}\n`);
25
+ process.exit(2);
26
+ }
27
+ function exists(path) {
28
+ try {
29
+ lstatSync(path);
30
+ return true;
31
+ }
32
+ catch (error) {
33
+ if (error instanceof Error && 'code' in error && error.code === 'ENOENT')
34
+ return false;
35
+ throw error;
36
+ }
37
+ }
38
+ /** `go args`; when it fails, this build ends with go's status after `cleanup`. */
39
+ function go(args, capture, cleanup) {
40
+ // eslint-disable-next-line deadline/no-unbounded-wait -- WHY unbounded: go list resolves and go test -c compiles for as long as the module takes; the target that runs this build bounds it, or the operator's interrupt ends it
41
+ const ran = spawnSync('go', args, { stdio: ['ignore', capture ? 'pipe' : 'inherit', 'inherit'], encoding: 'utf8' });
42
+ if (ran.error !== undefined || ran.status !== 0) {
43
+ cleanup();
44
+ const ended = ran.error?.message ?? (ran.signal === null ? `exit ${ran.status}` : `killed by ${ran.signal}`);
45
+ process.stderr.write(`smoo-nx-go-test-build: go ${args.join(' ')} failed: ${ended}\n`);
46
+ process.exit(ran.status === null || ran.status === 0 ? 2 : ran.status);
47
+ }
48
+ return ran;
49
+ }
50
+ if (exists(out) && !exists(join(out, GO_TESTS_MANIFEST))) {
51
+ refuse(`${out} exists and holds no ${GO_TESTS_MANIFEST}; only a directory this tool built is replaced`);
52
+ }
53
+ const packages = go(['list', '-f', LISTED, ...patterns], true, () => { })
54
+ .stdout.split('\0\n')
55
+ .filter((record) => record !== '')
56
+ .map((record) => {
57
+ const [importPath, dir, ...rest] = record.split('\0');
58
+ if (importPath === undefined || dir === undefined || rest.length > 0) {
59
+ refuse(`go list printed a record that is no import path and directory: ${JSON.stringify(record)}`);
60
+ }
61
+ return { importPath, dir };
62
+ })
63
+ .sort((a, b) => (a.importPath < b.importPath ? -1 : a.importPath > b.importPath ? 1 : 0));
64
+ const staging = `${out}.building-${process.pid}`;
65
+ const dropStaging = () => rmSync(staging, { recursive: true, force: true });
66
+ dropStaging();
67
+ mkdirSync(staging, { recursive: true });
68
+ const tests = [];
69
+ for (const { importPath, dir } of packages) {
70
+ // Injective, so no two packages share a binary, and readable enough to name the package.
71
+ const binary = `${encodeURIComponent(importPath)}.test`;
72
+ go(['test', '-c', '-o', join(staging, binary), importPath], false, dropStaging);
73
+ tests.push({ binary, dir: relative(out, dir) || '.', importPath });
74
+ }
75
+ const manifest = { version: 1, tests };
76
+ writeFileSync(join(staging, GO_TESTS_MANIFEST), `${JSON.stringify(manifest, null, 2)}\n`);
77
+ rmSync(out, { recursive: true, force: true });
78
+ renameSync(staging, out);
79
+ process.stdout.write(`smoo-nx-go-test-build: ${tests.length} test binaries in ${out}\n`);
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=smoo-nx-go-test-run.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"smoo-nx-go-test-run.d.ts","sourceRoot":"","sources":["../../src/bin/smoo-nx-go-test-run.ts"],"names":[],"mappings":""}
@@ -0,0 +1,129 @@
1
+ #!/usr/bin/env node
2
+ import { spawn, spawnSync } from 'node:child_process';
3
+ import { statSync } from 'node:fs';
4
+ import { availableParallelism } from 'node:os';
5
+ import { readGoTestsManifest } from '../go-tests.js';
6
+ // Runs the test binaries smoo-nx-go-test-build listed in <go-tests.json> as `go test -json` runs a package's binary:
7
+ // in its package directory, under `go tool test2json -t -p <import path>`, with the flags go test gives it, up to -p
8
+ // binaries at once (default GOMAXPROCS, else one per core, as go test's -p). Each event line reaches stdout whole, so
9
+ // bounded-exec reads results, verdict and progress from it as from go test (GO_TEST_RUNNER); `-json` is accepted and
10
+ // implied. A manifest listing no binary is refused unless --allow-empty says none is expected, so a package pattern
11
+ // that matched no tests cannot pass. Exit 1 when any binary failed, 2 on a usage error or a manifest it cannot run.
12
+ const usage = 'usage: smoo-nx-go-test-run [-p=N] [-json] [--allow-empty] <go-tests.json>\n';
13
+ // What `go test -json` passes every test binary it runs, its default -timeout included.
14
+ const GO_TEST_BINARY_FLAGS = ['-test.v=test2json', '-test.paniconexit0', '-test.timeout=10m0s'];
15
+ const COUNT = /^[1-9]\d*$/;
16
+ function refuse(reason) {
17
+ process.stderr.write(`smoo-nx-go-test-run: ${reason}\n`);
18
+ process.exit(2);
19
+ }
20
+ function parseArguments(words) {
21
+ let packages = null;
22
+ let allowEmpty = false;
23
+ let manifest = null;
24
+ for (let at = 0; at < words.length; at += 1) {
25
+ const word = words[at] ?? '';
26
+ const flag = /^-p(?:=(.*))?$/.exec(word);
27
+ if (flag !== null) {
28
+ let value = flag[1];
29
+ if (value === undefined) {
30
+ at += 1;
31
+ value = words[at];
32
+ }
33
+ if (value === undefined || !COUNT.test(value))
34
+ return null;
35
+ packages = Number(value);
36
+ }
37
+ else if (word === '--allow-empty') {
38
+ allowEmpty = true;
39
+ }
40
+ else if (word === '-json' || word === '-json=true') {
41
+ // Implied: test2json writes nothing else.
42
+ }
43
+ else if (word.startsWith('-') || word === '' || manifest !== null) {
44
+ return null;
45
+ }
46
+ else {
47
+ manifest = word;
48
+ }
49
+ }
50
+ return manifest === null ? null : { packages, allowEmpty, manifest };
51
+ }
52
+ /** Every complete line `from` writes reaches `to` whole, so concurrent binaries' events never split a line. */
53
+ function forwardLines(from, to) {
54
+ let pending = Buffer.alloc(0);
55
+ from.on('data', (chunk) => {
56
+ const bytes = pending.length === 0 ? chunk : Buffer.concat([pending, chunk]);
57
+ const end = bytes.lastIndexOf(10);
58
+ if (end === -1) {
59
+ pending = bytes;
60
+ return;
61
+ }
62
+ to.write(bytes.subarray(0, end + 1));
63
+ pending = bytes.subarray(end + 1);
64
+ });
65
+ from.on('end', () => {
66
+ if (pending.length > 0)
67
+ to.write(Buffer.concat([pending, Buffer.from('\n')]));
68
+ });
69
+ }
70
+ /** Null when the binary passed, else how it ended. */
71
+ function runBinary(test2json, test) {
72
+ // The plugin's lib target (ES2022) has no Promise.withResolvers.
73
+ // eslint-disable-next-line deadline/no-unbounded-wait -- WHY unbounded: a test binary runs as long as its tests do; the bounded-exec run around this bin owns their progress bound and ends a hung one with its process group
74
+ return new Promise((resolve) => {
75
+ const child = spawn(test2json, ['-t', '-p', test.importPath, test.binary, ...GO_TEST_BINARY_FLAGS], {
76
+ cwd: test.dir,
77
+ stdio: ['ignore', 'pipe', 'pipe'],
78
+ });
79
+ forwardLines(child.stdout, process.stdout);
80
+ forwardLines(child.stderr, process.stderr);
81
+ child.on('error', (error) => resolve(`could not start: ${error.message}`));
82
+ child.on('close', (code, signal) => resolve(code === 0 ? null : signal === null ? `exit ${code}` : `killed by ${signal}`));
83
+ });
84
+ }
85
+ const parsed = parseArguments(process.argv.slice(2));
86
+ if (parsed === null) {
87
+ process.stderr.write(usage);
88
+ process.exit(2);
89
+ }
90
+ const read = readGoTestsManifest(parsed.manifest);
91
+ if (!read.ok)
92
+ refuse(read.reason);
93
+ const tests = read.tests;
94
+ if (tests.length === 0) {
95
+ if (parsed.allowEmpty)
96
+ process.exit(0);
97
+ refuse(`${parsed.manifest} lists no test binaries, as when no package pattern matched a test; --allow-empty expects that`);
98
+ }
99
+ for (const test of tests) {
100
+ if (statSync(test.binary, { throwIfNoEntry: false })?.isFile() !== true) {
101
+ refuse(`${parsed.manifest} lists ${test.binary} for ${test.importPath}, which is no file; build it again`);
102
+ }
103
+ if (statSync(test.dir, { throwIfNoEntry: false })?.isDirectory() !== true) {
104
+ refuse(`${parsed.manifest} runs ${test.importPath} in ${test.dir}, which is no directory`);
105
+ }
106
+ }
107
+ // eslint-disable-next-line deadline/no-unbounded-wait -- WHY unbounded: go builds test2json into its cache on its first use, for as long as that compile takes; the bounded-exec run around this bin ends a hung one
108
+ const tool = spawnSync('go', ['tool', '-n', 'test2json'], { stdio: ['ignore', 'pipe', 'inherit'], encoding: 'utf8' });
109
+ if (tool.error !== undefined || tool.status !== 0) {
110
+ refuse(`go tool -n test2json named no test2json: ${tool.error?.message ?? `exit ${tool.status ?? tool.signal}`}`);
111
+ }
112
+ const test2json = tool.stdout.trim();
113
+ const inherited = process.env.GOMAXPROCS;
114
+ const packages = parsed.packages ?? (inherited !== undefined && COUNT.test(inherited) ? Number(inherited) : availableParallelism());
115
+ const failures = [];
116
+ const queue = tests.values();
117
+ const worker = async () => {
118
+ for (const test of queue) {
119
+ const failure = await runBinary(test2json, test);
120
+ if (failure !== null)
121
+ failures.push(`${test.importPath} (${failure})`);
122
+ }
123
+ };
124
+ await Promise.all(Array.from({ length: Math.min(packages, tests.length) }, worker));
125
+ if (failures.length > 0) {
126
+ failures.sort();
127
+ process.stderr.write(`smoo-nx-go-test-run: ${failures.length} of ${tests.length} test binaries failed: ${failures.join(', ')}\n`);
128
+ process.exitCode = 1;
129
+ }
@@ -49,7 +49,7 @@ export declare function checkWorkspaceBoundedTestTargetPolicy(root: string, opti
49
49
  * package-local `nx.targets['cargo-test'].dependsOn` that omits the inferred
50
50
  * runner leg leaves a target that still "reaches" its dependencies while no
51
51
  * test binary is ever run. Reachability alone cannot see this, because
52
- * `cargo-test-archive` only compiles. (Inference itself no longer skips a
52
+ * `cargo-test-build` only compiles. (Inference itself no longer skips a
53
53
  * declared cargo key, so the executor and options survive the declaration —
54
54
  * see `index.ts`.)
55
55
  *
@@ -1 +1 @@
1
- {"version":3,"file":"bounded-test-policy.d.ts","sourceRoot":"","sources":["../src/bounded-test-policy.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAKrG,OAAO,EAAE,4BAA4B,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAC9F,eAAO,MAAM,qBAAqB,yCAAyC,CAAC;AAC5E;;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AE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,mCAAmC;IAClD,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,WAAW,CAAC,EAAE,4BAA4B,CAAC;IAC3C,eAAe,CAAC,EAAE,sBAAsB,CAAC;CAC1C;AAED,wBAAgB,4BAA4B,CAC1C,WAAW,EAAE,4BAA4B,EACzC,OAAO,EAAE,mCAAmC,GAC3C,IAAI,CAuBN;AAED,wBAAgB,qCAAqC,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,0BAA+B,GAAG,OAAO,CAiCrH;AAED,wBAAgB,qCAAqC,CACnD,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,0BAA+B,GACvC,sBAAsB,EAAE,CA4B1B;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,yCAAyC,CACvD,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,0BAA+B,GACvC,sBAAsB,EAAE,CAwC1B;AAiID,wBAAgB,4BAA4B,CAC1C,WAAW,EAAE,4BAA4B,EACzC,OAAO,EAAE,mCAAmC,GAC3C,OAAO,CAqBT;AA8KD,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAElE;AAED,wBAAgB,kBAAkB,CAChC,WAAW,EAAE,4BAA4B,EACzC,cAAc,SAAa,EAC3B,WAAW,CAAC,EAAE,4BAA4B,GACzC,MAAM,CAER;AA4CD,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAYhE"}
@@ -1,7 +1,7 @@
1
1
  import { existsSync, readdirSync, readFileSync } from 'node:fs';
2
2
  import { dirname, join } from 'node:path';
3
3
  import { expandWildcardTargetConfiguration } from 'nx/src/tasks-runner/utils.js';
4
- import { CARGO_TEST_ARCHIVE_TARGET, CARGO_TEST_TARGET, listCargoWorkspacePackages, packageNameFromCargoTestTarget, } from './cargo-workspace.js';
4
+ import { CARGO_TEST_BUILD_TARGET, CARGO_TEST_TARGET, listCargoWorkspacePackages, packageNameFromCargoTestTarget, } from './cargo-workspace.js';
5
5
  import { cargoCrossTestTripleFromArchiveTarget } from './cross-check-policy.js';
6
6
  import { writeJsonFile } from './managed-files/managed-format.js';
7
7
  import { BOUNDED_TEST_IDLE_TIMEOUT_MS, BOUNDED_TEST_KILL_AFTER_MS } from './test-backstop.js';
@@ -114,7 +114,7 @@ export function checkWorkspaceBoundedTestTargetPolicy(root, options = {}) {
114
114
  * package-local `nx.targets['cargo-test'].dependsOn` that omits the inferred
115
115
  * runner leg leaves a target that still "reaches" its dependencies while no
116
116
  * test binary is ever run. Reachability alone cannot see this, because
117
- * `cargo-test-archive` only compiles. (Inference itself no longer skips a
117
+ * `cargo-test-build` only compiles. (Inference itself no longer skips a
118
118
  * declared cargo key, so the executor and options survive the declaration —
119
119
  * see `index.ts`.)
120
120
  *
@@ -169,9 +169,9 @@ export function checkWorkspaceCargoTestReachabilityPolicy(root, options = {}) {
169
169
  /**
170
170
  * True when `target`, or something in its dependency closure, invokes cargo in a
171
171
  * mode that executes tests. Compile-only steps are deliberately excluded:
172
- * `cargo-test-archive` is `cargo nextest archive` and a `--no-run` build is
173
- * `cargo test --no-run`. Both prove the binaries build and nothing about them
174
- * running, and both say "test"/"nextest" in their command — a closure holding
172
+ * `cargo-test-build` is `cargo nextest list --list-type binaries-only`, a cross
173
+ * lane's archive is `cargo nextest archive` and a `--no-run` build is
174
+ * `cargo test --no-run`. Each proves the binaries build and nothing about them
175
175
  * only these is the silent green this check exists to catch.
176
176
  */
177
177
  function resolvedTargetRunsTests(project, target) {
@@ -186,7 +186,8 @@ function resolvedTargetRunsTests(project, target) {
186
186
  const runs = command !== undefined &&
187
187
  /\btest\b|\bnextest\b/.test(command) &&
188
188
  !command.includes('--no-run') &&
189
- !command.includes('nextest archive');
189
+ !command.includes('nextest archive') &&
190
+ !command.includes('nextest list');
190
191
  const reached = runs ||
191
192
  (project.targetDependencies?.get(targetName) ?? []).some((dependency) => matchingResolvedTargets(dependency, project.targets, targetNames).some(visit));
192
193
  visiting.delete(targetName);
@@ -195,7 +196,7 @@ function resolvedTargetRunsTests(project, target) {
195
196
  return visit(target);
196
197
  }
197
198
  /**
198
- * Per-crate nextest targets that `cargo-test` actually reaches. `cargo-test-archive`
199
+ * Per-crate nextest targets that `cargo-test` actually reaches. `cargo-test-build`
199
200
  * is excluded: it is not a runner. Members come from the same Cargo.toml walk
200
201
  * inference uses; the child list is the graph, not a hand-written crate list.
201
202
  */
@@ -367,7 +368,7 @@ function bunTestHasNoDeadline(command) {
367
368
  return found;
368
369
  }
369
370
  function isTestLegTargetName(name) {
370
- return (name !== CARGO_TEST_ARCHIVE_TARGET &&
371
+ return (name !== CARGO_TEST_BUILD_TARGET &&
371
372
  cargoCrossTestTripleFromArchiveTarget(name) === null &&
372
373
  isTestRunnerTargetName(name));
373
374
  }
@@ -73,22 +73,12 @@ export declare function requireExternalRustCratesInput(workspaceRoot: string, ma
73
73
  */
74
74
  export declare const CARGO_TEST_TARGET = "cargo-test";
75
75
  /**
76
- * The one workspace-wide `cargo nextest archive` every per-crate runner
77
- * executes from. Named here beside the other cargo target names so the policy
78
- * that checks a workspace's test graph and the inference that builds it read
79
- * the same string.
76
+ * The one workspace-wide test build every per-crate runner executes from, in
77
+ * place. Named here beside the other cargo target names so the policy that
78
+ * checks a workspace's test graph and the inference that builds it read the
79
+ * same string.
80
80
  */
81
- export declare const CARGO_TEST_ARCHIVE_TARGET = "cargo-test-archive";
82
- /**
83
- * Where that archive lands, relative to the cargo workspace root — the cwd both
84
- * the archive command and every runner already use. `cargo nextest archive`
85
- * does NOT create this parent directory and fails the whole build when it is
86
- * missing ("error writing to archive ... No such file or directory"), so the
87
- * target mkdir's it first.
88
- * The archive is an Nx-restored output, so it lives on the source volume, never
89
- * beneath Cargo's symlinked target directory (16_build_volumes.md).
90
- */
91
- export declare const CARGO_TEST_ARCHIVE_FILE = ".cache/nextest/archive.tar.zst";
81
+ export declare const CARGO_TEST_BUILD_TARGET = "cargo-test-build";
92
82
  /**
93
83
  * One foreign target triple this cargo workspace also archives its tests for.
94
84
  */
@@ -148,7 +138,7 @@ export declare function cargoTestGroupTargetName(group: string): string;
148
138
  * crate collapse back to that crate, so a split crate counts as covered once.
149
139
  *
150
140
  * The workspace-wide `cargo-test-*` targets are not crates: reading them as one
151
- * would invent members named "compile" and "archive", and a serial group's runner
141
+ * would invent a member named "build", and a serial group's runner
152
142
  * would invent one named after its group. Each reports every crate's coverage
153
143
  * against a set that can never match.
154
144
  */
@@ -246,9 +236,9 @@ export declare const PLUGIN_NEXTEST_CONFIG_PATH = "node_modules/@smoothbricks/nx
246
236
  * The plugin's own nextest settings, as a config layer BENEATH the repository's.
247
237
  *
248
238
  * `--config-file` replaces `<workspace>/.config/nextest.toml` outright, which
249
- * made every plugin default unoverridable and — now that per-crate runs execute
250
- * from an archive — left a repository no way to declare `archive.include` for a
251
- * cdylib or fixture its tests need. `--tool-config-file` is nextest's mechanism
239
+ * made every plugin default unoverridable and left a repository no way to
240
+ * declare a setting of its own, such as the `archive.include` a cross lane needs
241
+ * for a cdylib or fixture. `--tool-config-file` is nextest's mechanism
252
242
  * for exactly this: "lower than --config-file in priority but above the default
253
243
  * config shipped with nextest". Measured: with only this layer a 1s
254
244
  * slow-timeout terminates a 3s test; adding `.config/nextest.toml` with 10s
@@ -256,7 +246,7 @@ export declare const PLUGIN_NEXTEST_CONFIG_PATH = "node_modules/@smoothbricks/nx
256
246
  *
257
247
  * The path must be absolute, and an absolute path written into the command text
258
248
  * would differ per checkout and split one Nx cache entry per machine. `$PWD`
259
- * resolves at exec time — both the archive (`nx:run-commands`) and the runners
249
+ * resolves at exec time — both the test build (`nx:run-commands`) and the runners
260
250
  * (`bounded-exec`, which spawns with `shell: true`) go through a shell — so the
261
251
  * command text stays identical everywhere. Quoted, because a workspace path may
262
252
  * contain spaces.
@@ -1 +1 @@
1
- {"version":3,"file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EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAmB9E;AAQD;;;GAGG;AACH,eAAO,MAAM,0BAA0B,6BAA2B,CAAC;AAEnE;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAC5B;IAAE,QAAQ,CAAC,IAAI,EAAE,UAAU,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,GACnE;IAAE,QAAQ,CAAC,IAAI,EAAE,WAAW,CAAA;CAAE,CAAC;AAEnC;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,wDAAwD;IACxD,KAAK,EAAE,MAAM,CAAC;IACd,oFAAoF;IACpF,MAAM,EAAE,MAAM,CAAC;IACf,qGAAqG;IACrG,KAAK,EAAE,oBAAoB,CAAC;CAC7B;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,gBAAgB,CAAC,iBAAiB,EAAE,MAAM,GAAG,eAAe,EAAE,CAuC7E;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,oBAAoB,CAMhE;AAmKD,iFAAiF;AACjF,eAAO,MAAM,0BAA0B,sDAAsD,CAAC;AAE9F;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,wBAAgB,oBAAoB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAGhE;AAED,+EAA+E;AAC/E,eAAO,MAAM,wBAAwB,yBAAyB,CAAC"}
@@ -188,7 +188,7 @@ async function deriveCargoPackageTestInputs({ workspaceRoot, absoluteProjectRoot
188
188
  // hashes a `{projectRoot}` glob against only the files its project OWNS, and
189
189
  // a nested Nx project owns the crates under it. A repository-root cargo
190
190
  // workspace whose members live in `packages/*` would then hash none of its
191
- // members' sources, and its archive would cache-hit against edited crates
191
+ // members' sources, and its test build would cache-hit against edited crates
192
192
  // while every per-crate runner reran on the stale binaries.
193
193
  const inputRoot = posix.join('{workspaceRoot}', relative(workspaceRoot, absoluteProjectRoot).split(sep).join('/'));
194
194
  const loadManifest = (path) => {
@@ -472,22 +472,12 @@ function readTestShards(cratePackage, crateTomlPath) {
472
472
  */
473
473
  export const CARGO_TEST_TARGET = 'cargo-test';
474
474
  /**
475
- * The one workspace-wide `cargo nextest archive` every per-crate runner
476
- * executes from. Named here beside the other cargo target names so the policy
477
- * that checks a workspace's test graph and the inference that builds it read
478
- * the same string.
475
+ * The one workspace-wide test build every per-crate runner executes from, in
476
+ * place. Named here beside the other cargo target names so the policy that
477
+ * checks a workspace's test graph and the inference that builds it read the
478
+ * same string.
479
479
  */
480
- export const CARGO_TEST_ARCHIVE_TARGET = 'cargo-test-archive';
481
- /**
482
- * Where that archive lands, relative to the cargo workspace root — the cwd both
483
- * the archive command and every runner already use. `cargo nextest archive`
484
- * does NOT create this parent directory and fails the whole build when it is
485
- * missing ("error writing to archive ... No such file or directory"), so the
486
- * target mkdir's it first.
487
- * The archive is an Nx-restored output, so it lives on the source volume, never
488
- * beneath Cargo's symlinked target directory (16_build_volumes.md).
489
- */
490
- export const CARGO_TEST_ARCHIVE_FILE = '.cache/nextest/archive.tar.zst';
480
+ export const CARGO_TEST_BUILD_TARGET = 'cargo-test-build';
491
481
  /**
492
482
  * Foreign target triples this cargo workspace archives tests for, from
493
483
  * `[workspace.metadata.smoothbricks.test] cross-targets`. An entry is either
@@ -581,13 +571,13 @@ export function cargoTestGroupTargetName(group) {
581
571
  * crate collapse back to that crate, so a split crate counts as covered once.
582
572
  *
583
573
  * The workspace-wide `cargo-test-*` targets are not crates: reading them as one
584
- * would invent members named "compile" and "archive", and a serial group's runner
574
+ * would invent a member named "build", and a serial group's runner
585
575
  * would invent one named after its group. Each reports every crate's coverage
586
576
  * against a set that can never match.
587
577
  */
588
578
  export function packageNameFromCargoTestTarget(targetName) {
589
579
  if (!targetName.startsWith('cargo-test-') ||
590
- targetName === CARGO_TEST_ARCHIVE_TARGET ||
580
+ targetName === CARGO_TEST_BUILD_TARGET ||
591
581
  targetName.startsWith(CARGO_TEST_GROUP_PREFIX)) {
592
582
  return null;
593
583
  }
@@ -881,9 +871,9 @@ export const PLUGIN_NEXTEST_CONFIG_PATH = 'node_modules/@smoothbricks/nx-plugin/
881
871
  * The plugin's own nextest settings, as a config layer BENEATH the repository's.
882
872
  *
883
873
  * `--config-file` replaces `<workspace>/.config/nextest.toml` outright, which
884
- * made every plugin default unoverridable and — now that per-crate runs execute
885
- * from an archive — left a repository no way to declare `archive.include` for a
886
- * cdylib or fixture its tests need. `--tool-config-file` is nextest's mechanism
874
+ * made every plugin default unoverridable and left a repository no way to
875
+ * declare a setting of its own, such as the `archive.include` a cross lane needs
876
+ * for a cdylib or fixture. `--tool-config-file` is nextest's mechanism
887
877
  * for exactly this: "lower than --config-file in priority but above the default
888
878
  * config shipped with nextest". Measured: with only this layer a 1s
889
879
  * slow-timeout terminates a 3s test; adding `.config/nextest.toml` with 10s
@@ -891,7 +881,7 @@ export const PLUGIN_NEXTEST_CONFIG_PATH = 'node_modules/@smoothbricks/nx-plugin/
891
881
  *
892
882
  * The path must be absolute, and an absolute path written into the command text
893
883
  * would differ per checkout and split one Nx cache entry per machine. `$PWD`
894
- * resolves at exec time — both the archive (`nx:run-commands`) and the runners
884
+ * resolves at exec time — both the test build (`nx:run-commands`) and the runners
895
885
  * (`bounded-exec`, which spawns with `shell: true`) go through a shell — so the
896
886
  * command text stays identical everywhere. Quoted, because a workspace path may
897
887
  * contain spaces.
@@ -202,8 +202,8 @@ export declare function cargoCrossTestArchiveTargetName(triple: string): string;
202
202
  /** The bounded runner that executes one triple's archive. */
203
203
  export declare function cargoCrossTestTargetName(triple: string): string;
204
204
  /**
205
- * One archive file per triple, beside the host-native
206
- * `CARGO_TEST_ARCHIVE_FILE`, relative to the cargo workspace root. Distinct
205
+ * One archive file per triple, relative to the cargo workspace root: the only
206
+ * test archives, since a same-platform run executes `cargo-test-build`'s binaries in place. Distinct
207
207
  * paths are what let both exist: each is a declared Nx output, so a single path
208
208
  * for two triples would let a restored cache serve one machine's binaries under
209
209
  * the other's name.