@convesoft/nx-rust 0.0.0 → 1.0.0-rc.2

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 (418) hide show
  1. package/LICENSE-APACHE +201 -0
  2. package/LICENSE-MIT +21 -0
  3. package/PLUGIN.md +106 -0
  4. package/README.md +51 -1
  5. package/docs/artifacts.mara.md +374 -0
  6. package/docs/caching.mara.md +999 -0
  7. package/docs/ci.mara.md +308 -0
  8. package/docs/configuration.mara.md +508 -0
  9. package/docs/decisions.mara.md +3267 -0
  10. package/docs/execution.mara.md +533 -0
  11. package/docs/index.mara.md +51 -0
  12. package/docs/product.mara.md +366 -0
  13. package/docs/release.mara.md +493 -0
  14. package/docs/setup.mara.md +486 -0
  15. package/docs/targets.mara.md +704 -0
  16. package/docs/testing.mara.md +431 -0
  17. package/docs/verification.mara.md +465 -0
  18. package/docs/workspaces.mara.md +445 -0
  19. package/executors.json +35 -0
  20. package/generators.json +19 -0
  21. package/package.json +17 -4
  22. package/src/cargo/build-settings.d.ts +61 -0
  23. package/src/cargo/build-settings.js +103 -0
  24. package/src/cargo/build-settings.js.map +1 -0
  25. package/src/cargo/configured-runner.d.ts +36 -0
  26. package/src/cargo/configured-runner.js +99 -0
  27. package/src/cargo/configured-runner.js.map +1 -0
  28. package/src/cargo/configured-tools.d.ts +35 -0
  29. package/src/cargo/configured-tools.js +46 -0
  30. package/src/cargo/configured-tools.js.map +1 -0
  31. package/src/cargo/dep-info-basedir.d.ts +18 -0
  32. package/src/cargo/dep-info-basedir.js +38 -0
  33. package/src/cargo/dep-info-basedir.js.map +1 -0
  34. package/src/cargo/directories.d.ts +40 -0
  35. package/src/cargo/directories.js +89 -0
  36. package/src/cargo/directories.js.map +1 -0
  37. package/src/cargo/host-triple.d.ts +7 -0
  38. package/src/cargo/host-triple.js +21 -0
  39. package/src/cargo/host-triple.js.map +1 -0
  40. package/src/cargo/lockfile.d.ts +63 -0
  41. package/src/cargo/lockfile.js +157 -0
  42. package/src/cargo/lockfile.js.map +1 -0
  43. package/src/cargo/metadata.d.ts +114 -0
  44. package/src/cargo/metadata.js +37 -0
  45. package/src/cargo/metadata.js.map +1 -0
  46. package/src/cargo/package-specs.d.ts +54 -0
  47. package/src/cargo/package-specs.js +109 -0
  48. package/src/cargo/package-specs.js.map +1 -0
  49. package/src/cargo/paths-crates.d.ts +27 -0
  50. package/src/cargo/paths-crates.js +69 -0
  51. package/src/cargo/paths-crates.js.map +1 -0
  52. package/src/cargo/print-artifact-folders.d.ts +1 -0
  53. package/src/cargo/print-artifact-folders.js +58 -0
  54. package/src/cargo/print-artifact-folders.js.map +1 -0
  55. package/src/cargo/redirections.d.ts +90 -0
  56. package/src/cargo/redirections.js +200 -0
  57. package/src/cargo/redirections.js.map +1 -0
  58. package/src/cargo/run-cargo.d.ts +31 -0
  59. package/src/cargo/run-cargo.js +75 -0
  60. package/src/cargo/run-cargo.js.map +1 -0
  61. package/src/cargo/target-triples.d.ts +98 -0
  62. package/src/cargo/target-triples.js +265 -0
  63. package/src/cargo/target-triples.js.map +1 -0
  64. package/src/cargo/version-req.d.ts +12 -0
  65. package/src/cargo/version-req.js +122 -0
  66. package/src/cargo/version-req.js.map +1 -0
  67. package/src/cargo/warnings-setting.d.ts +24 -0
  68. package/src/cargo/warnings-setting.js +81 -0
  69. package/src/cargo/warnings-setting.js.map +1 -0
  70. package/src/compatibility/cargo-version.d.ts +43 -0
  71. package/src/compatibility/cargo-version.js +83 -0
  72. package/src/compatibility/cargo-version.js.map +1 -0
  73. package/src/compatibility/nx-bridge.d.ts +312 -0
  74. package/src/compatibility/nx-bridge.js +407 -0
  75. package/src/compatibility/nx-bridge.js.map +1 -0
  76. package/src/compatibility/nx-version.d.ts +104 -0
  77. package/src/compatibility/nx-version.js +272 -0
  78. package/src/compatibility/nx-version.js.map +1 -0
  79. package/src/executors/affected-inputs.d.ts +29 -0
  80. package/src/executors/affected-inputs.js +259 -0
  81. package/src/executors/affected-inputs.js.map +1 -0
  82. package/src/executors/affected-run.d.ts +54 -0
  83. package/src/executors/affected-run.js +394 -0
  84. package/src/executors/affected-run.js.map +1 -0
  85. package/src/executors/affected.d.ts +239 -0
  86. package/src/executors/affected.js +589 -0
  87. package/src/executors/affected.js.map +1 -0
  88. package/src/executors/baseline-context.d.ts +85 -0
  89. package/src/executors/baseline-context.js +227 -0
  90. package/src/executors/baseline-context.js.map +1 -0
  91. package/src/executors/baseline.d.ts +123 -0
  92. package/src/executors/baseline.js +356 -0
  93. package/src/executors/baseline.js.map +1 -0
  94. package/src/executors/batch.d.ts +75 -0
  95. package/src/executors/batch.js +434 -0
  96. package/src/executors/batch.js.map +1 -0
  97. package/src/executors/build-records.d.ts +110 -0
  98. package/src/executors/build-records.js +267 -0
  99. package/src/executors/build-records.js.map +1 -0
  100. package/src/executors/cargo/executor.d.ts +28 -0
  101. package/src/executors/cargo/executor.js +58 -0
  102. package/src/executors/cargo/executor.js.map +1 -0
  103. package/src/executors/cargo/schema.json +58 -0
  104. package/src/executors/cargo-invocation.d.ts +81 -0
  105. package/src/executors/cargo-invocation.js +109 -0
  106. package/src/executors/cargo-invocation.js.map +1 -0
  107. package/src/executors/cargo-output.d.ts +218 -0
  108. package/src/executors/cargo-output.js +660 -0
  109. package/src/executors/cargo-output.js.map +1 -0
  110. package/src/executors/command.d.ts +331 -0
  111. package/src/executors/command.js +547 -0
  112. package/src/executors/command.js.map +1 -0
  113. package/src/executors/coverage-baseline.d.ts +23 -0
  114. package/src/executors/coverage-baseline.js +284 -0
  115. package/src/executors/coverage-baseline.js.map +1 -0
  116. package/src/executors/declared-options.d.ts +21 -0
  117. package/src/executors/declared-options.js +58 -0
  118. package/src/executors/declared-options.js.map +1 -0
  119. package/src/executors/denied-warnings.d.ts +99 -0
  120. package/src/executors/denied-warnings.js +188 -0
  121. package/src/executors/denied-warnings.js.map +1 -0
  122. package/src/executors/digests.d.ts +94 -0
  123. package/src/executors/digests.js +190 -0
  124. package/src/executors/digests.js.map +1 -0
  125. package/src/executors/dotenv-check.d.ts +79 -0
  126. package/src/executors/dotenv-check.js +553 -0
  127. package/src/executors/dotenv-check.js.map +1 -0
  128. package/src/executors/group-invocations.d.ts +80 -0
  129. package/src/executors/group-invocations.js +253 -0
  130. package/src/executors/group-invocations.js.map +1 -0
  131. package/src/executors/group-run.d.ts +114 -0
  132. package/src/executors/group-run.js +601 -0
  133. package/src/executors/group-run.js.map +1 -0
  134. package/src/executors/groups.d.ts +118 -0
  135. package/src/executors/groups.js +304 -0
  136. package/src/executors/groups.js.map +1 -0
  137. package/src/executors/input-check.d.ts +52 -0
  138. package/src/executors/input-check.js +271 -0
  139. package/src/executors/input-check.js.map +1 -0
  140. package/src/executors/kept-files.d.ts +98 -0
  141. package/src/executors/kept-files.js +341 -0
  142. package/src/executors/kept-files.js.map +1 -0
  143. package/src/executors/lockfile/executor.d.ts +16 -0
  144. package/src/executors/lockfile/executor.js +37 -0
  145. package/src/executors/lockfile/executor.js.map +1 -0
  146. package/src/executors/lockfile/schema.json +50 -0
  147. package/src/executors/napi-build.d.ts +73 -0
  148. package/src/executors/napi-build.js +420 -0
  149. package/src/executors/napi-build.js.map +1 -0
  150. package/src/executors/nextest.d.ts +189 -0
  151. package/src/executors/nextest.js +504 -0
  152. package/src/executors/nextest.js.map +1 -0
  153. package/src/executors/nx-command.d.ts +95 -0
  154. package/src/executors/nx-command.js +205 -0
  155. package/src/executors/nx-command.js.map +1 -0
  156. package/src/executors/nx-task-files.d.ts +82 -0
  157. package/src/executors/nx-task-files.js +156 -0
  158. package/src/executors/nx-task-files.js.map +1 -0
  159. package/src/executors/print-test-mode.d.ts +1 -0
  160. package/src/executors/print-test-mode.js +25 -0
  161. package/src/executors/print-test-mode.js.map +1 -0
  162. package/src/executors/release-publish/executor.d.ts +24 -0
  163. package/src/executors/release-publish/executor.js +165 -0
  164. package/src/executors/release-publish/executor.js.map +1 -0
  165. package/src/executors/release-publish/schema.json +30 -0
  166. package/src/executors/run/executor.d.ts +12 -0
  167. package/src/executors/run/executor.js +27 -0
  168. package/src/executors/run/executor.js.map +1 -0
  169. package/src/executors/run/schema.json +45 -0
  170. package/src/executors/runner-script.d.ts +12 -0
  171. package/src/executors/runner-script.js +22 -0
  172. package/src/executors/runner-script.js.map +1 -0
  173. package/src/executors/runtime-input-check.d.ts +24 -0
  174. package/src/executors/runtime-input-check.js +87 -0
  175. package/src/executors/runtime-input-check.js.map +1 -0
  176. package/src/executors/shared-artifacts.d.ts +44 -0
  177. package/src/executors/shared-artifacts.js +132 -0
  178. package/src/executors/shared-artifacts.js.map +1 -0
  179. package/src/executors/split-words.d.ts +24 -0
  180. package/src/executors/split-words.js +111 -0
  181. package/src/executors/split-words.js.map +1 -0
  182. package/src/executors/stage.d.ts +163 -0
  183. package/src/executors/stage.js +526 -0
  184. package/src/executors/stage.js.map +1 -0
  185. package/src/executors/staged-run.d.ts +24 -0
  186. package/src/executors/staged-run.js +110 -0
  187. package/src/executors/staged-run.js.map +1 -0
  188. package/src/executors/task-env.d.ts +271 -0
  189. package/src/executors/task-env.js +494 -0
  190. package/src/executors/task-env.js.map +1 -0
  191. package/src/executors/task-execution.d.ts +61 -0
  192. package/src/executors/task-execution.js +122 -0
  193. package/src/executors/task-execution.js.map +1 -0
  194. package/src/executors/task-guards.d.ts +112 -0
  195. package/src/executors/task-guards.js +435 -0
  196. package/src/executors/task-guards.js.map +1 -0
  197. package/src/executors/task-options.d.ts +114 -0
  198. package/src/executors/task-options.js +258 -0
  199. package/src/executors/task-options.js.map +1 -0
  200. package/src/executors/task.d.ts +166 -0
  201. package/src/executors/task.js +527 -0
  202. package/src/executors/task.js.map +1 -0
  203. package/src/executors/test-mode.d.ts +185 -0
  204. package/src/executors/test-mode.js +397 -0
  205. package/src/executors/test-mode.js.map +1 -0
  206. package/src/executors/test-runner.d.ts +44 -0
  207. package/src/executors/test-runner.js +159 -0
  208. package/src/executors/test-runner.js.map +1 -0
  209. package/src/executors/test-steps.d.ts +121 -0
  210. package/src/executors/test-steps.js +566 -0
  211. package/src/executors/test-steps.js.map +1 -0
  212. package/src/executors/wasm-build.d.ts +56 -0
  213. package/src/executors/wasm-build.js +216 -0
  214. package/src/executors/wasm-build.js.map +1 -0
  215. package/src/generators/crate/binary.schema.json +28 -0
  216. package/src/generators/crate/crate.d.ts +24 -0
  217. package/src/generators/crate/crate.js +108 -0
  218. package/src/generators/crate/crate.js.map +1 -0
  219. package/src/generators/crate/enclosing-workspace.d.ts +25 -0
  220. package/src/generators/crate/enclosing-workspace.js +58 -0
  221. package/src/generators/crate/enclosing-workspace.js.map +1 -0
  222. package/src/generators/crate/library.schema.json +28 -0
  223. package/src/generators/init/graph-check.d.ts +81 -0
  224. package/src/generators/init/graph-check.js +299 -0
  225. package/src/generators/init/graph-check.js.map +1 -0
  226. package/src/generators/init/init.d.ts +23 -0
  227. package/src/generators/init/init.js +113 -0
  228. package/src/generators/init/init.js.map +1 -0
  229. package/src/generators/init/report.d.ts +19 -0
  230. package/src/generators/init/report.js +93 -0
  231. package/src/generators/init/report.js.map +1 -0
  232. package/src/generators/init/schema.json +9 -0
  233. package/src/graph/artifact-kinds.d.ts +29 -0
  234. package/src/graph/artifact-kinds.js +50 -0
  235. package/src/graph/artifact-kinds.js.map +1 -0
  236. package/src/graph/artifact-names.d.ts +97 -0
  237. package/src/graph/artifact-names.js +276 -0
  238. package/src/graph/artifact-names.js.map +1 -0
  239. package/src/graph/build-records.d.ts +74 -0
  240. package/src/graph/build-records.js +104 -0
  241. package/src/graph/build-records.js.map +1 -0
  242. package/src/graph/caching.d.ts +148 -0
  243. package/src/graph/caching.js +681 -0
  244. package/src/graph/caching.js.map +1 -0
  245. package/src/graph/clippy-input.d.ts +53 -0
  246. package/src/graph/clippy-input.js +107 -0
  247. package/src/graph/clippy-input.js.map +1 -0
  248. package/src/graph/collisions.d.ts +113 -0
  249. package/src/graph/collisions.js +156 -0
  250. package/src/graph/collisions.js.map +1 -0
  251. package/src/graph/computation-reports.d.ts +89 -0
  252. package/src/graph/computation-reports.js +216 -0
  253. package/src/graph/computation-reports.js.map +1 -0
  254. package/src/graph/declared-files.d.ts +190 -0
  255. package/src/graph/declared-files.js +600 -0
  256. package/src/graph/declared-files.js.map +1 -0
  257. package/src/graph/discovery.d.ts +190 -0
  258. package/src/graph/discovery.js +661 -0
  259. package/src/graph/discovery.js.map +1 -0
  260. package/src/graph/edges.d.ts +25 -0
  261. package/src/graph/edges.js +94 -0
  262. package/src/graph/edges.js.map +1 -0
  263. package/src/graph/entries.d.ts +83 -0
  264. package/src/graph/entries.js +259 -0
  265. package/src/graph/entries.js.map +1 -0
  266. package/src/graph/inputs.d.ts +422 -0
  267. package/src/graph/inputs.js +756 -0
  268. package/src/graph/inputs.js.map +1 -0
  269. package/src/graph/lockfile-task.d.ts +74 -0
  270. package/src/graph/lockfile-task.js +105 -0
  271. package/src/graph/lockfile-task.js.map +1 -0
  272. package/src/graph/names.d.ts +41 -0
  273. package/src/graph/names.js +34 -0
  274. package/src/graph/names.js.map +1 -0
  275. package/src/graph/napi.d.ts +107 -0
  276. package/src/graph/napi.js +206 -0
  277. package/src/graph/napi.js.map +1 -0
  278. package/src/graph/nx-glob.d.ts +36 -0
  279. package/src/graph/nx-glob.js +152 -0
  280. package/src/graph/nx-glob.js.map +1 -0
  281. package/src/graph/nx-internals.d.ts +57 -0
  282. package/src/graph/nx-internals.js +128 -0
  283. package/src/graph/nx-internals.js.map +1 -0
  284. package/src/graph/options.d.ts +32 -0
  285. package/src/graph/options.js +80 -0
  286. package/src/graph/options.js.map +1 -0
  287. package/src/graph/outputs.d.ts +75 -0
  288. package/src/graph/outputs.js +140 -0
  289. package/src/graph/outputs.js.map +1 -0
  290. package/src/graph/path-dependencies.d.ts +122 -0
  291. package/src/graph/path-dependencies.js +459 -0
  292. package/src/graph/path-dependencies.js.map +1 -0
  293. package/src/graph/plugin-package.d.ts +36 -0
  294. package/src/graph/plugin-package.js +132 -0
  295. package/src/graph/plugin-package.js.map +1 -0
  296. package/src/graph/plugin-version.d.ts +20 -0
  297. package/src/graph/plugin-version.js +153 -0
  298. package/src/graph/plugin-version.js.map +1 -0
  299. package/src/graph/projects.d.ts +141 -0
  300. package/src/graph/projects.js +193 -0
  301. package/src/graph/projects.js.map +1 -0
  302. package/src/graph/reached-projects.d.ts +46 -0
  303. package/src/graph/reached-projects.js +102 -0
  304. package/src/graph/reached-projects.js.map +1 -0
  305. package/src/graph/real-path.d.ts +47 -0
  306. package/src/graph/real-path.js +113 -0
  307. package/src/graph/real-path.js.map +1 -0
  308. package/src/graph/redirected-uses.d.ts +98 -0
  309. package/src/graph/redirected-uses.js +434 -0
  310. package/src/graph/redirected-uses.js.map +1 -0
  311. package/src/graph/registration.d.ts +121 -0
  312. package/src/graph/registration.js +233 -0
  313. package/src/graph/registration.js.map +1 -0
  314. package/src/graph/rustfmt-config.d.ts +42 -0
  315. package/src/graph/rustfmt-config.js +173 -0
  316. package/src/graph/rustfmt-config.js.map +1 -0
  317. package/src/graph/script-input.d.ts +46 -0
  318. package/src/graph/script-input.js +65 -0
  319. package/src/graph/script-input.js.map +1 -0
  320. package/src/graph/settings.d.ts +178 -0
  321. package/src/graph/settings.js +479 -0
  322. package/src/graph/settings.js.map +1 -0
  323. package/src/graph/target-defaults-causes.d.ts +33 -0
  324. package/src/graph/target-defaults-causes.js +202 -0
  325. package/src/graph/target-defaults-causes.js.map +1 -0
  326. package/src/graph/target-defaults-layers.d.ts +186 -0
  327. package/src/graph/target-defaults-layers.js +420 -0
  328. package/src/graph/target-defaults-layers.js.map +1 -0
  329. package/src/graph/target-defaults-meaning.d.ts +95 -0
  330. package/src/graph/target-defaults-meaning.js +292 -0
  331. package/src/graph/target-defaults-meaning.js.map +1 -0
  332. package/src/graph/target-defaults-report.d.ts +77 -0
  333. package/src/graph/target-defaults-report.js +242 -0
  334. package/src/graph/target-defaults-report.js.map +1 -0
  335. package/src/graph/target-defaults.d.ts +79 -0
  336. package/src/graph/target-defaults.js +425 -0
  337. package/src/graph/target-defaults.js.map +1 -0
  338. package/src/graph/target-fields.d.ts +16 -0
  339. package/src/graph/target-fields.js +134 -0
  340. package/src/graph/target-fields.js.map +1 -0
  341. package/src/graph/target-tables.d.ts +45 -0
  342. package/src/graph/target-tables.js +299 -0
  343. package/src/graph/target-tables.js.map +1 -0
  344. package/src/graph/targets.d.ts +371 -0
  345. package/src/graph/targets.js +408 -0
  346. package/src/graph/targets.js.map +1 -0
  347. package/src/graph/unification.d.ts +141 -0
  348. package/src/graph/unification.js +459 -0
  349. package/src/graph/unification.js.map +1 -0
  350. package/src/graph/unignored-directories.d.ts +25 -0
  351. package/src/graph/unignored-directories.js +89 -0
  352. package/src/graph/unignored-directories.js.map +1 -0
  353. package/src/graph/visibility.d.ts +17 -0
  354. package/src/graph/visibility.js +67 -0
  355. package/src/graph/visibility.js.map +1 -0
  356. package/src/graph/warnings.d.ts +38 -0
  357. package/src/graph/warnings.js +77 -0
  358. package/src/graph/warnings.js.map +1 -0
  359. package/src/graph/wasm.d.ts +56 -0
  360. package/src/graph/wasm.js +77 -0
  361. package/src/graph/wasm.js.map +1 -0
  362. package/src/index.d.ts +68 -0
  363. package/src/index.js +109 -0
  364. package/src/index.js.map +1 -0
  365. package/src/release/manifests.d.ts +95 -0
  366. package/src/release/manifests.js +164 -0
  367. package/src/release/manifests.js.map +1 -0
  368. package/src/release/places.d.ts +127 -0
  369. package/src/release/places.js +368 -0
  370. package/src/release/places.js.map +1 -0
  371. package/src/release/publish-cargo.d.ts +177 -0
  372. package/src/release/publish-cargo.js +351 -0
  373. package/src/release/publish-cargo.js.map +1 -0
  374. package/src/release/publish-crates.d.ts +124 -0
  375. package/src/release/publish-crates.js +242 -0
  376. package/src/release/publish-crates.js.map +1 -0
  377. package/src/release/publish-environments.d.ts +50 -0
  378. package/src/release/publish-environments.js +284 -0
  379. package/src/release/publish-environments.js.map +1 -0
  380. package/src/release/publish-messages.d.ts +66 -0
  381. package/src/release/publish-messages.js +273 -0
  382. package/src/release/publish-messages.js.map +1 -0
  383. package/src/release/publish-registry.d.ts +27 -0
  384. package/src/release/publish-registry.js +135 -0
  385. package/src/release/publish-registry.js.map +1 -0
  386. package/src/release/publish-settings.d.ts +26 -0
  387. package/src/release/publish-settings.js +56 -0
  388. package/src/release/publish-settings.js.map +1 -0
  389. package/src/release/publish.d.ts +59 -0
  390. package/src/release/publish.js +620 -0
  391. package/src/release/publish.js.map +1 -0
  392. package/src/release/repository.d.ts +73 -0
  393. package/src/release/repository.js +219 -0
  394. package/src/release/repository.js.map +1 -0
  395. package/src/release/requirements.d.ts +34 -0
  396. package/src/release/requirements.js +30 -0
  397. package/src/release/requirements.js.map +1 -0
  398. package/src/release/toml-edit.d.ts +67 -0
  399. package/src/release/toml-edit.js +453 -0
  400. package/src/release/toml-edit.js.map +1 -0
  401. package/src/release/version-actions.d.ts +133 -0
  402. package/src/release/version-actions.js +474 -0
  403. package/src/release/version-actions.js.map +1 -0
  404. package/src/release/version-checks.d.ts +21 -0
  405. package/src/release/version-checks.js +151 -0
  406. package/src/release/version-checks.js.map +1 -0
  407. package/src/release/version-lockfiles.d.ts +61 -0
  408. package/src/release/version-lockfiles.js +222 -0
  409. package/src/release/version-lockfiles.js.map +1 -0
  410. package/src/tools/napi-cli.d.ts +70 -0
  411. package/src/tools/napi-cli.js +63 -0
  412. package/src/tools/napi-cli.js.map +1 -0
  413. package/src/tools/optional-tools.d.ts +121 -0
  414. package/src/tools/optional-tools.js +303 -0
  415. package/src/tools/optional-tools.js.map +1 -0
  416. package/src/tools/print-napi-cli.d.ts +1 -0
  417. package/src/tools/print-napi-cli.js +24 -0
  418. package/src/tools/print-napi-cli.js.map +1 -0
@@ -0,0 +1,504 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.setupScriptFailedStatus = exports.buildFailedStatus = exports.testRunFailedStatus = void 0;
4
+ exports.nextestEnd = nextestEnd;
5
+ exports.writeToolConfiguration = writeToolConfiguration;
6
+ exports.removeToolConfiguration = removeToolConfiguration;
7
+ exports.readJunitReport = readJunitReport;
8
+ exports.parseJunit = parseJunit;
9
+ exports.binaryPackage = binaryPackage;
10
+ exports.suiteKind = suiteKind;
11
+ exports.parseNextestList = parseNextestList;
12
+ exports.readNextestStep = readNextestStep;
13
+ const node_fs_1 = require("node:fs");
14
+ const node_os_1 = require("node:os");
15
+ const node_path_1 = require("node:path");
16
+ const cargo_output_1 = require("./cargo-output");
17
+ const denied_warnings_1 = require("./denied-warnings");
18
+ const test_steps_1 = require("./test-steps");
19
+ /** The status with which nextest ends where a test failed or the run ended early. */
20
+ exports.testRunFailedStatus = 100;
21
+ /** The status with which nextest ends where the build of the test binaries failed. */
22
+ exports.buildFailedStatus = 101;
23
+ /** The status with which nextest ends where a setup script failed. */
24
+ exports.setupScriptFailedStatus = 105;
25
+ // What other statuses of nextest mean, for messages.
26
+ const otherStatuses = {
27
+ 4: "which nextest gives where no test is to run",
28
+ 92: "which nextest gives where its version does not meet the repository's nextest-version requirement",
29
+ 96: "which nextest gives where it cannot set up the run, as for a configuration that it cannot read",
30
+ 104: "which nextest gives where it cannot list the tests of a test binary, as where the binary cannot be loaded",
31
+ };
32
+ /** How a nextest step ended ({@link NextestEnd}), from its exit status and signal, or why it did not start. */
33
+ function nextestEnd(code, signal, failure) {
34
+ var _a;
35
+ if (failure !== undefined) {
36
+ return { kind: "unexplained", reason: failure };
37
+ }
38
+ if (signal !== null) {
39
+ return { kind: "unexplained", reason: `cargo nextest run was stopped by ${signal}` };
40
+ }
41
+ if (code === 0) {
42
+ return { kind: "succeeded" };
43
+ }
44
+ if (code === exports.testRunFailedStatus) {
45
+ return { kind: "tests-failed" };
46
+ }
47
+ if (code === exports.buildFailedStatus) {
48
+ return { kind: "build-failed" };
49
+ }
50
+ if (code === exports.setupScriptFailedStatus) {
51
+ return { kind: "setup-failed" };
52
+ }
53
+ return {
54
+ kind: "unexplained",
55
+ reason: `cargo nextest run exited with status ${code}, ${(_a = otherStatuses[code !== null && code !== void 0 ? code : -1]) !== null && _a !== void 0 ? _a : `which is none of success, a failed test or a run that ended early (${exports.testRunFailedStatus}), a failed build (${exports.buildFailedStatus}) and a failed setup script (${exports.setupScriptFailedStatus})`}`,
56
+ };
57
+ }
58
+ /**
59
+ * Writes the plugin's tool configuration for one nextest step into a new
60
+ * folder under the system's temporary folder (`DES-TEST-RUN`, "nextest's
61
+ * configuration"): it sets only `junit.path` of the `default` profile, to an
62
+ * absolute path in that folder, which every profile inherits unless it sets
63
+ * its own. nextest gives the repository's configuration precedence over a
64
+ * tool configuration, so that the file adds the report and changes no test
65
+ * that runs (`EVD-TEST-STREAM-AND-NEXTEST`). No other task's files are
66
+ * written: the folder is the step's own.
67
+ */
68
+ // @mara implements DES-TEST-RUN
69
+ function writeToolConfiguration() {
70
+ const folder = (0, node_fs_1.mkdtempSync)((0, node_path_1.join)((0, node_os_1.tmpdir)(), "nx-rust-nextest-"));
71
+ const file = (0, node_path_1.join)(folder, "nextest.toml");
72
+ const report = (0, node_path_1.join)(folder, "junit.xml");
73
+ (0, node_fs_1.writeFileSync)(file, [
74
+ "# Written by @convesoft/nx-rust for one cargo nextest run, which reads its results from this report.",
75
+ "[profile.default.junit]",
76
+ `path = ${JSON.stringify(report)}`,
77
+ "",
78
+ ].join("\n"));
79
+ return { folder, file, report };
80
+ }
81
+ /** Removes the folder of a tool configuration and the report in it. */
82
+ function removeToolConfiguration(configuration) {
83
+ (0, node_fs_1.rmSync)(configuration.folder, { recursive: true, force: true });
84
+ }
85
+ /** Reads nextest's JUnit report at `file` ({@link JunitReport}). */
86
+ function readJunitReport(file) {
87
+ let text;
88
+ try {
89
+ text = (0, node_fs_1.readFileSync)(file, "utf8");
90
+ }
91
+ catch (error) {
92
+ if (error.code === "ENOENT") {
93
+ return { missing: file };
94
+ }
95
+ return { unreadable: error instanceof Error ? error.message : String(error), file };
96
+ }
97
+ const cases = parseJunit(text);
98
+ return typeof cases === "string" ? { unreadable: cases, file } : { cases };
99
+ }
100
+ /**
101
+ * The tests of a JUnit report as nextest writes it: `testsuites`, one
102
+ * `testsuite` per test binary named by its binary ID, and in it one
103
+ * `testcase` per test that ran, which failed where it has a `failure` or
104
+ * `error` element; `flakyFailure` and `rerunFailure` record tries.
105
+ *
106
+ * The reading checks the nesting of every element and fails on anything it
107
+ * does not understand, so that a report cut short or of another shape is
108
+ * not read as one without failures. Text, where a test's output goes, holds
109
+ * no markup: XML escapes it.
110
+ *
111
+ * @returns The tests, or why the report cannot be read.
112
+ */
113
+ function parseJunit(text) {
114
+ var _a, _b;
115
+ const cases = [];
116
+ const stack = [];
117
+ const tag = /<(\/?)([A-Za-z_][\w.:-]*)((?:\s+[\w.:-]+\s*=\s*(?:"[^"]*"|'[^']*'))*)\s*(\/?)>/y;
118
+ let current;
119
+ let suites = 0;
120
+ let at = text.indexOf("<");
121
+ while (at !== -1) {
122
+ const skip = [
123
+ ["<?", "?>"],
124
+ ["<!--", "-->"],
125
+ ["<![CDATA[", "]]>"],
126
+ ["<!", ">"],
127
+ ].find(([open]) => text.startsWith(open, at));
128
+ if (skip !== undefined) {
129
+ const end = text.indexOf(skip[1], at + skip[0].length);
130
+ if (end === -1) {
131
+ return "it ends inside a declaration, a comment or a CDATA section";
132
+ }
133
+ at = text.indexOf("<", end + skip[1].length);
134
+ continue;
135
+ }
136
+ tag.lastIndex = at;
137
+ const match = tag.exec(text);
138
+ if (match === null) {
139
+ return `it holds markup that is no element at character ${at}`;
140
+ }
141
+ const [, closing, name, attributeText, selfClosing] = match;
142
+ if (closing === "/") {
143
+ const open = stack.pop();
144
+ if (open === undefined || open.name !== name) {
145
+ return `the element ${name} closes where ${open === undefined ? "none" : open.name} is open`;
146
+ }
147
+ if (name === "testcase") {
148
+ current = undefined;
149
+ }
150
+ }
151
+ else {
152
+ const attributes = parseAttributes(attributeText);
153
+ const parent = (_a = stack.at(-1)) === null || _a === void 0 ? void 0 : _a.name;
154
+ if (name === "testsuites" && parent !== undefined) {
155
+ return "testsuites is not the root element";
156
+ }
157
+ if (name === "testsuite") {
158
+ if (parent !== "testsuites" && parent !== undefined) {
159
+ return `a testsuite lies inside ${parent}`;
160
+ }
161
+ if (attributes.name === undefined) {
162
+ return "a testsuite has no name";
163
+ }
164
+ suites += 1;
165
+ }
166
+ if (name === "testcase") {
167
+ if (parent !== "testsuite") {
168
+ return `a testcase lies inside ${parent !== null && parent !== void 0 ? parent : "no testsuite"}`;
169
+ }
170
+ const suite = (_b = stack.at(-1)) === null || _b === void 0 ? void 0 : _b.attributes.name;
171
+ if (attributes.name === undefined) {
172
+ return `a testcase of ${suite} has no name`;
173
+ }
174
+ current = { binary: suite, name: attributes.name, failed: false, skipped: false };
175
+ cases.push(current);
176
+ }
177
+ if ((name === "failure" || name === "error") && parent === "testcase") {
178
+ if (current === undefined) {
179
+ return "a failure lies outside a testcase";
180
+ }
181
+ current.failed = true;
182
+ }
183
+ if (name === "skipped" && parent === "testcase" && current !== undefined) {
184
+ current.skipped = true;
185
+ }
186
+ if (selfClosing !== "/") {
187
+ stack.push({ name, attributes });
188
+ }
189
+ else if (name === "testcase") {
190
+ current = undefined;
191
+ }
192
+ }
193
+ at = text.indexOf("<", tag.lastIndex);
194
+ }
195
+ if (stack.length > 0) {
196
+ return `it ends while ${stack.map((entry) => entry.name).join(" > ")} is open`;
197
+ }
198
+ if (suites === 0 && cases.length === 0 && !/<testsuites\b/.test(text)) {
199
+ return "it holds no testsuites element";
200
+ }
201
+ return cases;
202
+ }
203
+ // The attributes of a start tag, with the five entities and character
204
+ // references decoded.
205
+ function parseAttributes(text) {
206
+ var _a, _b;
207
+ const attributes = {};
208
+ for (const match of text.matchAll(/([\w.:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)')/g)) {
209
+ attributes[match[1]] = decodeEntities((_b = (_a = match[2]) !== null && _a !== void 0 ? _a : match[3]) !== null && _b !== void 0 ? _b : "");
210
+ }
211
+ return attributes;
212
+ }
213
+ function decodeEntities(value) {
214
+ return value.replace(/&(#x[0-9a-fA-F]+|#\d+|amp|lt|gt|quot|apos);/g, (_, entity) => {
215
+ switch (entity) {
216
+ case "amp":
217
+ return "&";
218
+ case "lt":
219
+ return "<";
220
+ case "gt":
221
+ return ">";
222
+ case "quot":
223
+ return '"';
224
+ case "apos":
225
+ return "'";
226
+ default:
227
+ return String.fromCodePoint(entity.startsWith("#x") ? parseInt(entity.slice(2), 16) : parseInt(entity.slice(1), 10));
228
+ }
229
+ });
230
+ }
231
+ /**
232
+ * The package of a test binary: the part of its binary ID before the first
233
+ * `::`, which was the package name of every binary in nextest's reports
234
+ * (`EVD-CARGO-AFFECTED-REPORT`, "Tests to crates").
235
+ */
236
+ function binaryPackage(binary) {
237
+ const at = binary.indexOf("::");
238
+ return at === -1 ? binary : binary.slice(0, at);
239
+ }
240
+ /** The kind of the suite of nextest's JUnit report named `name` ({@link SuiteKind}). */
241
+ function suiteKind(name) {
242
+ const bare = name.replace(/@stress-\d+$/, "");
243
+ const script = /^@setup-script:(.+)$/.exec(bare);
244
+ if (script !== null) {
245
+ return { kind: "setup-script", script: script[1] };
246
+ }
247
+ if (bare === "" || bare.includes("@")) {
248
+ return { kind: "unknown", name };
249
+ }
250
+ return { kind: "binary", binary: bare, package: binaryPackage(bare) };
251
+ }
252
+ /**
253
+ * The tests whose `filter-match` is `matches` in the output of `cargo
254
+ * nextest list --message-format json`, whose format nextest keeps stable:
255
+ * `rust-suites` by binary ID, each with its `package-name` and its
256
+ * `testcases`, each of which matches the run's filters or not, with the
257
+ * reason (`EVD-NEXTEST-RUNNER-STEPS`). An output of another shape cannot be
258
+ * read.
259
+ */
260
+ function parseNextestList(stdout) {
261
+ var _a;
262
+ let data;
263
+ try {
264
+ data = JSON.parse(stdout);
265
+ }
266
+ catch (error) {
267
+ return {
268
+ unreadable: `its output is no JSON: ${error instanceof Error ? error.message : String(error)}`,
269
+ };
270
+ }
271
+ const suites = data === null || data === void 0 ? void 0 : data["rust-suites"];
272
+ if (typeof suites !== "object" || suites === null) {
273
+ return { unreadable: "its output holds no rust-suites" };
274
+ }
275
+ const tests = [];
276
+ for (const [binary, entry] of Object.entries(suites)) {
277
+ const suite = entry;
278
+ const pkg = suite === null || suite === void 0 ? void 0 : suite["package-name"];
279
+ const testcases = suite === null || suite === void 0 ? void 0 : suite.testcases;
280
+ if (typeof pkg !== "string" || typeof testcases !== "object" || testcases === null) {
281
+ return { unreadable: `its suite ${binary} has no package-name or no testcases` };
282
+ }
283
+ for (const [name, test] of Object.entries(testcases)) {
284
+ const status = (_a = test === null || test === void 0 ? void 0 : test["filter-match"]) === null || _a === void 0 ? void 0 : _a.status;
285
+ if (status !== "matches" && status !== "mismatch") {
286
+ return { unreadable: `the test ${binary} ${name} has no filter-match that it knows` };
287
+ }
288
+ if (status === "matches") {
289
+ tests.push({ package: pkg, binary, name });
290
+ }
291
+ }
292
+ }
293
+ return { tests };
294
+ }
295
+ /**
296
+ * Reads the step `cargo nextest run` of a group of several crates or of the
297
+ * whole workspace (`DES-TEST-RUN`, steps 3 and 4, "nextest's
298
+ * configuration"), from nextest's exit status, its JUnit report and, where
299
+ * it exits with 100, its list of the tests that the run was to run, never
300
+ * from a line that nextest or cargo writes for people:
301
+ *
302
+ * - with 0, which nextest gives only where every test that the run was to
303
+ * run finished and passed, every task passes; a report that holds a failed
304
+ * test then fails every task, since it contradicts the status;
305
+ * - with 100, which nextest gives where a test failed and where it ended the
306
+ * run early, as on a global timeout, a signal or an interrupt, a task
307
+ * passes only where the report holds no failed test of its package and
308
+ * every test of its package that the list names ran and passed; every task
309
+ * fails where the report is missing, as where the repository's profile
310
+ * sets its own `junit.path`, or cannot be read, and every task without a
311
+ * failed test of its own where the list cannot be read;
312
+ * - with 101, the build of the test binaries failed, which stops the step
313
+ * before any test runs, and every task fails with the crates that did not
314
+ * compile (`DES-BATCH`, "Test runs"), and where cargo says that it denies
315
+ * warnings, with the packages with warnings and what denies them, as
316
+ * `setting` names it (`DES-TEST-RUN`, "Denied warnings in a test step");
317
+ * - with 105, a setup script failed, and every task fails with the scripts
318
+ * that the report names;
319
+ * - with any other status, by a signal or without a start, every task fails.
320
+ *
321
+ * A report that holds a failed setup script, a suite that is neither a test
322
+ * binary nor a setup script ({@link suiteKind}) or a test of a package
323
+ * outside the group fails every task, whatever the status; a setup script
324
+ * that passed decides nothing.
325
+ *
326
+ * Each task's output holds the compiler's messages about its crate, the
327
+ * lines of nextest that name one of its test binaries with the output under
328
+ * them, and every line that names no crate of the group, such as nextest's
329
+ * `Starting` line, with the tests that the configuration skipped, and its
330
+ * summary; and the task's message gives the number of its crate's tests in
331
+ * the report, so that a crate whose tests the configuration skips shows 0.
332
+ *
333
+ * @param selection Whether the step runs a selection of affected tests
334
+ * (`DES-TEST-RUN`, step 3), which the count's wording then names.
335
+ * @param setting What denies warnings for the step's command, asked only
336
+ * where cargo says that it denies them.
337
+ */
338
+ // @mara implements DES-TEST-RUN
339
+ // @mara implements DES-DIAGNOSTICS
340
+ // @mara implements REQ-TEST-RUNNER
341
+ function readNextestStep(output, end, crates, scope, report, listed, selection = false, setting = () => undefined) {
342
+ const lines = (0, test_steps_1.splitLines)(output);
343
+ const stopped = end.kind === "build-failed" ? (0, denied_warnings_1.stoppedByWarnings)(lines, setting) : undefined;
344
+ const texts = attributeNextest(lines, crates, scope, stopped !== undefined).map((part) => part.join("\n"));
345
+ if (end.kind === "unexplained") {
346
+ return (0, cargo_output_1.failEvery)(crates, texts, end.reason);
347
+ }
348
+ if (end.kind === "build-failed") {
349
+ return (0, test_steps_1.failStopped)(crates, texts, (0, test_steps_1.notCompiled)(lines), (0, cargo_output_1.outsideMembers)(crates, scope).names, "cargo nextest run", stopped, scope !== undefined);
350
+ }
351
+ const names = new Set(crates.map((crate) => crate.name));
352
+ const kinds = "cases" in report ? report.cases.map((test) => suiteKind(test.binary)) : [];
353
+ const unknown = [
354
+ ...new Set(kinds.flatMap((kind) => (kind.kind === "unknown" ? [kind.name] : []))),
355
+ ];
356
+ if (unknown.length > 0) {
357
+ return (0, cargo_output_1.failEvery)(crates, texts, `nextest's JUnit report holds the ${unknown.length === 1 ? "suite" : "suites"} ${(0, cargo_output_1.describeList)(unknown.map((name) => `\`${name}\``))}, which @convesoft/nx-rust does not recognise as a test binary or a setup script`);
358
+ }
359
+ const strangers = [
360
+ ...new Set(kinds.flatMap((kind) => kind.kind === "binary" && !names.has(kind.package) ? [kind.package] : [])),
361
+ ];
362
+ if (strangers.length > 0) {
363
+ return (0, cargo_output_1.failEvery)(crates, texts, `nextest's JUnit report holds tests of ${(0, cargo_output_1.describeList)(strangers.map((name) => `\`${name}\``))}, which ${strangers.length === 1 ? "is" : "are"} no crate of this run, while the command let only the tests of its crates run`);
364
+ }
365
+ const failedScripts = "cases" in report
366
+ ? [
367
+ ...new Set(report.cases.flatMap((test, index) => {
368
+ const kind = kinds[index];
369
+ return kind.kind === "setup-script" && test.failed ? [kind.script] : [];
370
+ })),
371
+ ]
372
+ : [];
373
+ if (failedScripts.length > 0 || end.kind === "setup-failed") {
374
+ return crates.map((crate, index) => ({
375
+ passed: false,
376
+ output: texts[index],
377
+ message: failedScripts.length > 0
378
+ ? `${crate.task}: the setup ${failedScripts.length === 1 ? "script" : "scripts"} ${(0, cargo_output_1.describeList)(failedScripts.map((script) => `\`${script}\``))} of the repository's nextest configuration failed, so nextest did not run every test of this run, and every task of the group fails. nextest's output above shows the script's.`
379
+ : `${crate.task}: nextest exited with status ${exports.setupScriptFailedStatus}, which it gives where a setup script failed, so it did not run every test of this run, and every task of the group fails.`,
380
+ }));
381
+ }
382
+ // The report's tests of test binaries, each with the package of its binary.
383
+ const tests = "cases" in report
384
+ ? report.cases.flatMap((test, index) => {
385
+ const kind = kinds[index];
386
+ return kind.kind === "binary"
387
+ ? [Object.assign(Object.assign({}, test), { binary: kind.binary, package: kind.package })]
388
+ : [];
389
+ })
390
+ : [];
391
+ if (end.kind === "succeeded") {
392
+ if (tests.some((test) => test.failed)) {
393
+ return (0, cargo_output_1.failEvery)(crates, texts, "cargo nextest run exited with status 0, while its JUnit report holds a failed test");
394
+ }
395
+ return crates.map((crate, index) => ({
396
+ passed: true,
397
+ output: texts[index],
398
+ message: countLine(crate, report, tests, selection),
399
+ }));
400
+ }
401
+ // nextest exited with 100: a test failed, or the run ended early.
402
+ if ("missing" in report) {
403
+ return crates.map((crate, index) => ({
404
+ passed: false,
405
+ output: texts[index],
406
+ message: `${crate.task}: nextest exited with status ${exports.testRunFailedStatus}, which it gives where a test failed or the run ended early, and wrote no JUnit report to ${report.missing}, the file that @convesoft/nx-rust's tool configuration names. nextest writes the report elsewhere where the repository's nextest profile sets its own junit.path, which takes precedence over a tool configuration. Without the report, @convesoft/nx-rust cannot tell which crate's test failed, so every task of this cargo nextest run fails. Remove junit.path from the profile that the run uses in .config/nextest.toml (the default profile, or the one that NEXTEST_PROFILE chooses), or run the task with --batch=false, where its crate's tests run alone.`,
407
+ }));
408
+ }
409
+ if ("unreadable" in report) {
410
+ return (0, cargo_output_1.failEvery)(crates, texts, `nextest exited with status ${exports.testRunFailedStatus}, which it gives where a test failed or the run ended early, and its JUnit report ${report.file} cannot be read: ${report.unreadable}`);
411
+ }
412
+ return crates.map((crate, index) => {
413
+ const own = tests.filter((test) => test.package === crate.name);
414
+ const failed = own.filter((test) => test.failed);
415
+ if (failed.length > 0) {
416
+ return {
417
+ passed: false,
418
+ output: texts[index],
419
+ message: [
420
+ countLine(crate, report, tests, selection),
421
+ `${crate.task}: ${failed.length === 1 ? "a test" : `${failed.length} tests`} of ${crate.name} failed: ${failed.map((test) => `${test.binary} ${test.name}`).join(", ")}.`,
422
+ ].join("\n"),
423
+ };
424
+ }
425
+ if (listed === undefined || "unreadable" in listed) {
426
+ return {
427
+ passed: false,
428
+ output: texts[index],
429
+ message: `${crate.task}: nextest exited with status ${exports.testRunFailedStatus}, which it gives where a test failed or the run ended early, and @convesoft/nx-rust could not learn from cargo nextest list which tests of ${crate.name} the run was to run${listed === undefined || !("unreadable" in listed) ? "" : `: ${listed.unreadable}`}. It cannot show that every test of ${crate.name} ran, so the task fails.`,
430
+ };
431
+ }
432
+ const ran = new Set(own.filter((test) => !test.skipped).map((test) => `${test.binary}\0${test.name}`));
433
+ const expected = listed.tests.filter((test) => test.package === crate.name);
434
+ const missing = expected.filter((test) => !ran.has(`${test.binary}\0${test.name}`));
435
+ if (missing.length === 0) {
436
+ return {
437
+ passed: true,
438
+ output: texts[index],
439
+ message: countLine(crate, report, tests, selection),
440
+ };
441
+ }
442
+ return {
443
+ passed: false,
444
+ output: texts[index],
445
+ message: [
446
+ countLine(crate, report, tests, selection),
447
+ `${crate.task}: the run was not complete: nextest did not run ${missing.length} of the ${expected.length} ${expected.length === 1 ? "test" : "tests"} of ${crate.name} that it was to run, such as ${missing
448
+ .slice(0, 3)
449
+ .map((test) => `${test.binary} ${test.name}`)
450
+ .join(", ")}. nextest ends a run early on a global timeout, a signal or an interrupt, and its output above says why. Tests that did not run cannot show that ${crate.name} passes, so the task fails.`,
451
+ ].join("\n"),
452
+ };
453
+ });
454
+ }
455
+ // The line that gives the number of the crate's tests in the report that ran.
456
+ function countLine(crate, report, tests, selection) {
457
+ if (!("cases" in report)) {
458
+ return `${crate.task}: nextest wrote no JUnit report to the file that @convesoft/nx-rust's tool configuration names, as where the repository's nextest profile sets its own junit.path, so the number of tests that ran for ${crate.name} is not shown. nextest exited with status 0: every test that the run was to run passed.`;
459
+ }
460
+ const count = tests.filter((test) => test.package === crate.name && !test.skipped).length;
461
+ return count === 0
462
+ ? selection
463
+ ? `${crate.task}: nextest ran no test of ${crate.name}: none of its tests was selected, or the repository's nextest configuration skips those that were.`
464
+ : `${crate.task}: nextest ran no test of ${crate.name}: the crate has none, or the repository's nextest configuration skips them.`
465
+ : `${crate.task}: nextest ran ${count} ${count === 1 ? "test" : "tests"} of ${crate.name}, as its JUnit report shows.`;
466
+ }
467
+ // A line of nextest's that names a test: a status in capitals, such as
468
+ // `PASS`, `FAIL`, `TRY 2 FAIL` or `SLOW`, a time in brackets, a counter on
469
+ // newer versions, the binary ID and the test's name.
470
+ const statusLine = /^\s*[A-Z][A-Z0-9]*(?: [A-Z0-9]+)*\s+\[[^\]]*\]\s+(?:\(\s*\d+\/\d+\)\s+)?(\S+)\s+\S/;
471
+ // A line of nextest's about the whole run, which ends the block of a test.
472
+ const runHeader = /^\s*(?:Starting|Summary|Cancell?ing|Nextest run|Interrupted|Aborting)\b/;
473
+ /**
474
+ * The output of a nextest step, per crate: the lines before nextest's
475
+ * `Starting` line as compiler output ({@link attributeText}); after it, each
476
+ * line that names a test binary of a crate of the group, with the indented
477
+ * lines under it, such as the test's output, to that crate, and every other
478
+ * line to every crate.
479
+ */
480
+ function attributeNextest(lines, crates, scope, warningsDenied) {
481
+ const start = lines.findIndex((line) => /^\s*Starting \d+ tests? across /.test((0, cargo_output_1.plainLine)(line)));
482
+ const parts = (0, test_steps_1.attributeText)(start === -1 ? lines : lines.slice(0, start), crates, scope, warningsDenied);
483
+ if (start === -1) {
484
+ return parts;
485
+ }
486
+ const every = crates.map((_, index) => index);
487
+ let target = every;
488
+ for (const line of lines.slice(start)) {
489
+ const plain = (0, cargo_output_1.plainLine)(line);
490
+ const status = statusLine.exec(plain);
491
+ if (status !== null) {
492
+ const index = crates.findIndex((crate) => crate.name === binaryPackage(status[1]));
493
+ target = index === -1 ? every : [index];
494
+ }
495
+ else if ((plain.trim() !== "" && !/^\s/.test(plain)) || runHeader.test(plain)) {
496
+ target = every;
497
+ }
498
+ for (const index of target) {
499
+ parts[index].push(line);
500
+ }
501
+ }
502
+ return parts;
503
+ }
504
+ //# sourceMappingURL=nextest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nextest.js","sourceRoot":"","sources":["../../../../nx-rust/src/executors/nextest.ts"],"names":[],"mappings":";;;AAgDA,gCA2BC;AAuBD,wDAcC;AAGD,0DAEC;AA4BD,0CAYC;AAeD,gCAwFC;AAsCD,sCAGC;AAcD,8BAUC;AAuBD,4CAiCC;AAgDD,0CAiKC;AA9kBD,qCAA2E;AAC3E,qCAAiC;AACjC,yCAAiC;AACjC,iDAQwB;AACxB,uDAAsD;AACtD,6C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KAAK,KAAK,CAAC,CAAC,EAAE,CAAC;QACjB,OAAO,KAAK,CAAC;IACf,CAAC;IACD,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC;IAC9C,IAAI,MAAM,GAAG,KAAK,CAAC;IACnB,KAAK,MAAM,IAAI,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC;QACtC,MAAM,KAAK,GAAG,IAAA,wBAAS,EAAC,IAAI,CAAC,CAAC;QAC9B,MAAM,MAAM,GAAG,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACtC,IAAI,MAAM,KAAK,IAAI,EAAE,CAAC;YACpB,MAAM,KAAK,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,KAAK,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACnF,MAAM,GAAG,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QAC1C,CAAC;aAAM,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;YAChF,MAAM,GAAG,KAAK,CAAC;QACjB,CAAC;QACD,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE,CAAC;YAC3B,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC1B,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
@@ -0,0 +1,95 @@
1
+ import type { PostTasksExecutionContext, PreTasksExecutionContext } from "@nx/devkit";
2
+ /**
3
+ * The variable in which the plugin's `preTasksExecution` hook records the
4
+ * arguments of the `nx` command for the command's tasks, as a JSON list of
5
+ * strings (`DES-UNKNOWN-OPTIONS`, paragraph "Record").
6
+ */
7
+ export declare const nxCommandVariable = "NX_RUST_NX_COMMAND";
8
+ /**
9
+ * The longest record, in bytes. Linux refuses to start a process with an
10
+ * environment variable longer than 128 KiB, so a longer record would fail
11
+ * every task of the command; it is left empty instead, which counts as no
12
+ * record.
13
+ */
14
+ export declare const maxRecordBytes: number;
15
+ /**
16
+ * The variables that the hook sets for the tasks of a command, each computed
17
+ * from the command's arguments as Nx gives them to the hook: `process.argv`
18
+ * of the `nx` process, `--` included.
19
+ *
20
+ * Every variable here is set on every command, so that a value left in the
21
+ * environment by an earlier command, such as in the Nx daemon, which runs the
22
+ * hook in its own process, never reaches a task:
23
+ *
24
+ * - `NX_RUST_NX_COMMAND`, the arguments as a JSON list (`DES-UNKNOWN-OPTIONS`);
25
+ * - `NX_RUST_RUN_ID`, a value that no other run has when the command excludes
26
+ * task dependencies, and the empty string otherwise
27
+ * (`DES-LOCKFILE-HASHING`, "Excluded dependencies"). Every cached target
28
+ * that depends on the lockfile task hashes it, so that such a run, which
29
+ * runs no lockfile task, runs those tasks and stores nothing that is
30
+ * restored again, while a normal run keeps its keys;
31
+ * - `NX_RUST_COMMAND_ID`, an id of the command's own, under which its
32
+ * lockfile tasks keep a private copy of their digests for the check after
33
+ * cargo's call (`DES-LOCKFILE-HASHING`, "Post-check"). It starts with the
34
+ * id that Nx gives the command's hooks, so that
35
+ * {@link postTasksExecution} finds the copies, and ends with a random
36
+ * value, because Nx makes that id from the arguments and the millisecond.
37
+ * No target names it as an input.
38
+ *
39
+ * @param commandId The `id` that Nx gives the command's hooks.
40
+ */
41
+ export declare function commandRecords(argv: readonly string[], commandId?: string, workspaceRoot?: string): Record<string, string>;
42
+ /**
43
+ * Whether the arguments of an `nx` command exclude task dependencies, as
44
+ * Nx reads its boolean option `excludeTaskDependencies`: with the
45
+ * `yargs-parser` of the installed `nx` package, which takes
46
+ * `--exclude-task-dependencies`, `--excludeTaskDependencies`, `=true`,
47
+ * `=false` and `--no-exclude-task-dependencies` as Nx does. Words after
48
+ * `--` go to the tasks and do not count.
49
+ */
50
+ export declare function excludesTaskDependencies(argv: readonly string[], workspaceRoot?: string): boolean;
51
+ /**
52
+ * The plugin's `preTasksExecution` hook, which Nx calls once per entry of the
53
+ * plugin before a command such as `nx run`, `nx run-many` or `nx affected`
54
+ * runs its tasks.
55
+ *
56
+ * It assigns each of {@link commandRecords} to `process.env`. Nx carries
57
+ * such an assignment to the `nx` process, whose tasks inherit it, also when
58
+ * the hook runs in the daemon or in a plugin worker, where Nx records the
59
+ * assignment and applies it to the `nx` process; a deletion would not be
60
+ * carried (`EVD-NX-OPTION-VALIDATION`). The command's record enters no
61
+ * task's cache key; `NX_RUST_RUN_ID` enters the keys of the targets that
62
+ * depend on the lockfile task. Every task of a command gets the same values.
63
+ */
64
+ export declare function preTasksExecution(_options: unknown, context: PreTasksExecutionContext): void;
65
+ /**
66
+ * The plugin's `postTasksExecution` hook, which Nx calls once per entry of
67
+ * the plugin after a command has run its tasks, with the `id` that the
68
+ * command's `preTasksExecution` got. It removes the private copies of the
69
+ * digests that the command's lockfile tasks wrote (`DES-LOCKFILE-HASHING`),
70
+ * and the command's record of test modes with those that stopped commands
71
+ * left more than a day ago (`DES-TEST-MODE`). It removes what it can and
72
+ * never fails the command.
73
+ * A command that does not get here, because it was stopped, leaves its
74
+ * copies to the next lockfile task of the workspace, which removes those
75
+ * older than a day.
76
+ */
77
+ export declare function postTasksExecution(_options: unknown, context: PostTasksExecutionContext): void;
78
+ /**
79
+ * The arguments of the `nx` command that started the task, as the hook
80
+ * recorded them in `env`, or `undefined` when there is no record, when it is
81
+ * empty, or when it is not a JSON list of strings.
82
+ */
83
+ export declare function recordedNxCommand(env?: NodeJS.ProcessEnv): string[] | undefined;
84
+ /** The options that Nx parses from arguments it hands a task, keyed as Nx keys them. */
85
+ export type ParsedOverrides = Record<string, unknown> & {
86
+ _?: unknown[];
87
+ };
88
+ /**
89
+ * The options that Nx parses from `args` when it hands them to a task as
90
+ * overrides: with the `yargs-parser` that the installed `nx` package uses,
91
+ * configured as Nx configures it there (`createOverrides` in
92
+ * `utils/command-line-utils.js` of `nx` 24), and without `_` when no
93
+ * positional word is left.
94
+ */
95
+ export declare function parseAsNx(args: readonly string[], workspaceRoot?: string): ParsedOverrides;