@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.
- package/LICENSE-APACHE +201 -0
- package/LICENSE-MIT +21 -0
- package/PLUGIN.md +106 -0
- package/README.md +51 -1
- package/docs/artifacts.mara.md +374 -0
- package/docs/caching.mara.md +999 -0
- package/docs/ci.mara.md +308 -0
- package/docs/configuration.mara.md +508 -0
- package/docs/decisions.mara.md +3267 -0
- package/docs/execution.mara.md +533 -0
- package/docs/index.mara.md +51 -0
- package/docs/product.mara.md +366 -0
- package/docs/release.mara.md +493 -0
- package/docs/setup.mara.md +486 -0
- package/docs/targets.mara.md +704 -0
- package/docs/testing.mara.md +431 -0
- package/docs/verification.mara.md +465 -0
- package/docs/workspaces.mara.md +445 -0
- package/executors.json +35 -0
- package/generators.json +19 -0
- package/package.json +17 -4
- package/src/cargo/build-settings.d.ts +61 -0
- package/src/cargo/build-settings.js +103 -0
- package/src/cargo/build-settings.js.map +1 -0
- package/src/cargo/configured-runner.d.ts +36 -0
- package/src/cargo/configured-runner.js +99 -0
- package/src/cargo/configured-runner.js.map +1 -0
- package/src/cargo/configured-tools.d.ts +35 -0
- package/src/cargo/configured-tools.js +46 -0
- package/src/cargo/configured-tools.js.map +1 -0
- package/src/cargo/dep-info-basedir.d.ts +18 -0
- package/src/cargo/dep-info-basedir.js +38 -0
- package/src/cargo/dep-info-basedir.js.map +1 -0
- package/src/cargo/directories.d.ts +40 -0
- package/src/cargo/directories.js +89 -0
- package/src/cargo/directories.js.map +1 -0
- package/src/cargo/host-triple.d.ts +7 -0
- package/src/cargo/host-triple.js +21 -0
- package/src/cargo/host-triple.js.map +1 -0
- package/src/cargo/lockfile.d.ts +63 -0
- package/src/cargo/lockfile.js +157 -0
- package/src/cargo/lockfile.js.map +1 -0
- package/src/cargo/metadata.d.ts +114 -0
- package/src/cargo/metadata.js +37 -0
- package/src/cargo/metadata.js.map +1 -0
- package/src/cargo/package-specs.d.ts +54 -0
- package/src/cargo/package-specs.js +109 -0
- package/src/cargo/package-specs.js.map +1 -0
- package/src/cargo/paths-crates.d.ts +27 -0
- package/src/cargo/paths-crates.js +69 -0
- package/src/cargo/paths-crates.js.map +1 -0
- package/src/cargo/print-artifact-folders.d.ts +1 -0
- package/src/cargo/print-artifact-folders.js +58 -0
- package/src/cargo/print-artifact-folders.js.map +1 -0
- package/src/cargo/redirections.d.ts +90 -0
- package/src/cargo/redirections.js +200 -0
- package/src/cargo/redirections.js.map +1 -0
- package/src/cargo/run-cargo.d.ts +31 -0
- package/src/cargo/run-cargo.js +75 -0
- package/src/cargo/run-cargo.js.map +1 -0
- package/src/cargo/target-triples.d.ts +98 -0
- package/src/cargo/target-triples.js +265 -0
- package/src/cargo/target-triples.js.map +1 -0
- package/src/cargo/version-req.d.ts +12 -0
- package/src/cargo/version-req.js +122 -0
- package/src/cargo/version-req.js.map +1 -0
- package/src/cargo/warnings-setting.d.ts +24 -0
- package/src/cargo/warnings-setting.js +81 -0
- package/src/cargo/warnings-setting.js.map +1 -0
- package/src/compatibility/cargo-version.d.ts +43 -0
- package/src/compatibility/cargo-version.js +83 -0
- package/src/compatibility/cargo-version.js.map +1 -0
- package/src/compatibility/nx-bridge.d.ts +312 -0
- package/src/compatibility/nx-bridge.js +407 -0
- package/src/compatibility/nx-bridge.js.map +1 -0
- package/src/compatibility/nx-version.d.ts +104 -0
- package/src/compatibility/nx-version.js +272 -0
- package/src/compatibility/nx-version.js.map +1 -0
- package/src/executors/affected-inputs.d.ts +29 -0
- package/src/executors/affected-inputs.js +259 -0
- package/src/executors/affected-inputs.js.map +1 -0
- package/src/executors/affected-run.d.ts +54 -0
- package/src/executors/affected-run.js +394 -0
- package/src/executors/affected-run.js.map +1 -0
- package/src/executors/affected.d.ts +239 -0
- package/src/executors/affected.js +589 -0
- package/src/executors/affected.js.map +1 -0
- package/src/executors/baseline-context.d.ts +85 -0
- package/src/executors/baseline-context.js +227 -0
- package/src/executors/baseline-context.js.map +1 -0
- package/src/executors/baseline.d.ts +123 -0
- package/src/executors/baseline.js +356 -0
- package/src/executors/baseline.js.map +1 -0
- package/src/executors/batch.d.ts +75 -0
- package/src/executors/batch.js +434 -0
- package/src/executors/batch.js.map +1 -0
- package/src/executors/build-records.d.ts +110 -0
- package/src/executors/build-records.js +267 -0
- package/src/executors/build-records.js.map +1 -0
- package/src/executors/cargo/executor.d.ts +28 -0
- package/src/executors/cargo/executor.js +58 -0
- package/src/executors/cargo/executor.js.map +1 -0
- package/src/executors/cargo/schema.json +58 -0
- package/src/executors/cargo-invocation.d.ts +81 -0
- package/src/executors/cargo-invocation.js +109 -0
- package/src/executors/cargo-invocation.js.map +1 -0
- package/src/executors/cargo-output.d.ts +218 -0
- package/src/executors/cargo-output.js +660 -0
- package/src/executors/cargo-output.js.map +1 -0
- package/src/executors/command.d.ts +331 -0
- package/src/executors/command.js +547 -0
- package/src/executors/command.js.map +1 -0
- package/src/executors/coverage-baseline.d.ts +23 -0
- package/src/executors/coverage-baseline.js +284 -0
- package/src/executors/coverage-baseline.js.map +1 -0
- package/src/executors/declared-options.d.ts +21 -0
- package/src/executors/declared-options.js +58 -0
- package/src/executors/declared-options.js.map +1 -0
- package/src/executors/denied-warnings.d.ts +99 -0
- package/src/executors/denied-warnings.js +188 -0
- package/src/executors/denied-warnings.js.map +1 -0
- package/src/executors/digests.d.ts +94 -0
- package/src/executors/digests.js +190 -0
- package/src/executors/digests.js.map +1 -0
- package/src/executors/dotenv-check.d.ts +79 -0
- package/src/executors/dotenv-check.js +553 -0
- package/src/executors/dotenv-check.js.map +1 -0
- package/src/executors/group-invocations.d.ts +80 -0
- package/src/executors/group-invocations.js +253 -0
- package/src/executors/group-invocations.js.map +1 -0
- package/src/executors/group-run.d.ts +114 -0
- package/src/executors/group-run.js +601 -0
- package/src/executors/group-run.js.map +1 -0
- package/src/executors/groups.d.ts +118 -0
- package/src/executors/groups.js +304 -0
- package/src/executors/groups.js.map +1 -0
- package/src/executors/input-check.d.ts +52 -0
- package/src/executors/input-check.js +271 -0
- package/src/executors/input-check.js.map +1 -0
- package/src/executors/kept-files.d.ts +98 -0
- package/src/executors/kept-files.js +341 -0
- package/src/executors/kept-files.js.map +1 -0
- package/src/executors/lockfile/executor.d.ts +16 -0
- package/src/executors/lockfile/executor.js +37 -0
- package/src/executors/lockfile/executor.js.map +1 -0
- package/src/executors/lockfile/schema.json +50 -0
- package/src/executors/napi-build.d.ts +73 -0
- package/src/executors/napi-build.js +420 -0
- package/src/executors/napi-build.js.map +1 -0
- package/src/executors/nextest.d.ts +189 -0
- package/src/executors/nextest.js +504 -0
- package/src/executors/nextest.js.map +1 -0
- package/src/executors/nx-command.d.ts +95 -0
- package/src/executors/nx-command.js +205 -0
- package/src/executors/nx-command.js.map +1 -0
- package/src/executors/nx-task-files.d.ts +82 -0
- package/src/executors/nx-task-files.js +156 -0
- package/src/executors/nx-task-files.js.map +1 -0
- package/src/executors/print-test-mode.d.ts +1 -0
- package/src/executors/print-test-mode.js +25 -0
- package/src/executors/print-test-mode.js.map +1 -0
- package/src/executors/release-publish/executor.d.ts +24 -0
- package/src/executors/release-publish/executor.js +165 -0
- package/src/executors/release-publish/executor.js.map +1 -0
- package/src/executors/release-publish/schema.json +30 -0
- package/src/executors/run/executor.d.ts +12 -0
- package/src/executors/run/executor.js +27 -0
- package/src/executors/run/executor.js.map +1 -0
- package/src/executors/run/schema.json +45 -0
- package/src/executors/runner-script.d.ts +12 -0
- package/src/executors/runner-script.js +22 -0
- package/src/executors/runner-script.js.map +1 -0
- package/src/executors/runtime-input-check.d.ts +24 -0
- package/src/executors/runtime-input-check.js +87 -0
- package/src/executors/runtime-input-check.js.map +1 -0
- package/src/executors/shared-artifacts.d.ts +44 -0
- package/src/executors/shared-artifacts.js +132 -0
- package/src/executors/shared-artifacts.js.map +1 -0
- package/src/executors/split-words.d.ts +24 -0
- package/src/executors/split-words.js +111 -0
- package/src/executors/split-words.js.map +1 -0
- package/src/executors/stage.d.ts +163 -0
- package/src/executors/stage.js +526 -0
- package/src/executors/stage.js.map +1 -0
- package/src/executors/staged-run.d.ts +24 -0
- package/src/executors/staged-run.js +110 -0
- package/src/executors/staged-run.js.map +1 -0
- package/src/executors/task-env.d.ts +271 -0
- package/src/executors/task-env.js +494 -0
- package/src/executors/task-env.js.map +1 -0
- package/src/executors/task-execution.d.ts +61 -0
- package/src/executors/task-execution.js +122 -0
- package/src/executors/task-execution.js.map +1 -0
- package/src/executors/task-guards.d.ts +112 -0
- package/src/executors/task-guards.js +435 -0
- package/src/executors/task-guards.js.map +1 -0
- package/src/executors/task-options.d.ts +114 -0
- package/src/executors/task-options.js +258 -0
- package/src/executors/task-options.js.map +1 -0
- package/src/executors/task.d.ts +166 -0
- package/src/executors/task.js +527 -0
- package/src/executors/task.js.map +1 -0
- package/src/executors/test-mode.d.ts +185 -0
- package/src/executors/test-mode.js +397 -0
- package/src/executors/test-mode.js.map +1 -0
- package/src/executors/test-runner.d.ts +44 -0
- package/src/executors/test-runner.js +159 -0
- package/src/executors/test-runner.js.map +1 -0
- package/src/executors/test-steps.d.ts +121 -0
- package/src/executors/test-steps.js +566 -0
- package/src/executors/test-steps.js.map +1 -0
- package/src/executors/wasm-build.d.ts +56 -0
- package/src/executors/wasm-build.js +216 -0
- package/src/executors/wasm-build.js.map +1 -0
- package/src/generators/crate/binary.schema.json +28 -0
- package/src/generators/crate/crate.d.ts +24 -0
- package/src/generators/crate/crate.js +108 -0
- package/src/generators/crate/crate.js.map +1 -0
- package/src/generators/crate/enclosing-workspace.d.ts +25 -0
- package/src/generators/crate/enclosing-workspace.js +58 -0
- package/src/generators/crate/enclosing-workspace.js.map +1 -0
- package/src/generators/crate/library.schema.json +28 -0
- package/src/generators/init/graph-check.d.ts +81 -0
- package/src/generators/init/graph-check.js +299 -0
- package/src/generators/init/graph-check.js.map +1 -0
- package/src/generators/init/init.d.ts +23 -0
- package/src/generators/init/init.js +113 -0
- package/src/generators/init/init.js.map +1 -0
- package/src/generators/init/report.d.ts +19 -0
- package/src/generators/init/report.js +93 -0
- package/src/generators/init/report.js.map +1 -0
- package/src/generators/init/schema.json +9 -0
- package/src/graph/artifact-kinds.d.ts +29 -0
- package/src/graph/artifact-kinds.js +50 -0
- package/src/graph/artifact-kinds.js.map +1 -0
- package/src/graph/artifact-names.d.ts +97 -0
- package/src/graph/artifact-names.js +276 -0
- package/src/graph/artifact-names.js.map +1 -0
- package/src/graph/build-records.d.ts +74 -0
- package/src/graph/build-records.js +104 -0
- package/src/graph/build-records.js.map +1 -0
- package/src/graph/caching.d.ts +148 -0
- package/src/graph/caching.js +681 -0
- package/src/graph/caching.js.map +1 -0
- package/src/graph/clippy-input.d.ts +53 -0
- package/src/graph/clippy-input.js +107 -0
- package/src/graph/clippy-input.js.map +1 -0
- package/src/graph/collisions.d.ts +113 -0
- package/src/graph/collisions.js +156 -0
- package/src/graph/collisions.js.map +1 -0
- package/src/graph/computation-reports.d.ts +89 -0
- package/src/graph/computation-reports.js +216 -0
- package/src/graph/computation-reports.js.map +1 -0
- package/src/graph/declared-files.d.ts +190 -0
- package/src/graph/declared-files.js +600 -0
- package/src/graph/declared-files.js.map +1 -0
- package/src/graph/discovery.d.ts +190 -0
- package/src/graph/discovery.js +661 -0
- package/src/graph/discovery.js.map +1 -0
- package/src/graph/edges.d.ts +25 -0
- package/src/graph/edges.js +94 -0
- package/src/graph/edges.js.map +1 -0
- package/src/graph/entries.d.ts +83 -0
- package/src/graph/entries.js +259 -0
- package/src/graph/entries.js.map +1 -0
- package/src/graph/inputs.d.ts +422 -0
- package/src/graph/inputs.js +756 -0
- package/src/graph/inputs.js.map +1 -0
- package/src/graph/lockfile-task.d.ts +74 -0
- package/src/graph/lockfile-task.js +105 -0
- package/src/graph/lockfile-task.js.map +1 -0
- package/src/graph/names.d.ts +41 -0
- package/src/graph/names.js +34 -0
- package/src/graph/names.js.map +1 -0
- package/src/graph/napi.d.ts +107 -0
- package/src/graph/napi.js +206 -0
- package/src/graph/napi.js.map +1 -0
- package/src/graph/nx-glob.d.ts +36 -0
- package/src/graph/nx-glob.js +152 -0
- package/src/graph/nx-glob.js.map +1 -0
- package/src/graph/nx-internals.d.ts +57 -0
- package/src/graph/nx-internals.js +128 -0
- package/src/graph/nx-internals.js.map +1 -0
- package/src/graph/options.d.ts +32 -0
- package/src/graph/options.js +80 -0
- package/src/graph/options.js.map +1 -0
- package/src/graph/outputs.d.ts +75 -0
- package/src/graph/outputs.js +140 -0
- package/src/graph/outputs.js.map +1 -0
- package/src/graph/path-dependencies.d.ts +122 -0
- package/src/graph/path-dependencies.js +459 -0
- package/src/graph/path-dependencies.js.map +1 -0
- package/src/graph/plugin-package.d.ts +36 -0
- package/src/graph/plugin-package.js +132 -0
- package/src/graph/plugin-package.js.map +1 -0
- package/src/graph/plugin-version.d.ts +20 -0
- package/src/graph/plugin-version.js +153 -0
- package/src/graph/plugin-version.js.map +1 -0
- package/src/graph/projects.d.ts +141 -0
- package/src/graph/projects.js +193 -0
- package/src/graph/projects.js.map +1 -0
- package/src/graph/reached-projects.d.ts +46 -0
- package/src/graph/reached-projects.js +102 -0
- package/src/graph/reached-projects.js.map +1 -0
- package/src/graph/real-path.d.ts +47 -0
- package/src/graph/real-path.js +113 -0
- package/src/graph/real-path.js.map +1 -0
- package/src/graph/redirected-uses.d.ts +98 -0
- package/src/graph/redirected-uses.js +434 -0
- package/src/graph/redirected-uses.js.map +1 -0
- package/src/graph/registration.d.ts +121 -0
- package/src/graph/registration.js +233 -0
- package/src/graph/registration.js.map +1 -0
- package/src/graph/rustfmt-config.d.ts +42 -0
- package/src/graph/rustfmt-config.js +173 -0
- package/src/graph/rustfmt-config.js.map +1 -0
- package/src/graph/script-input.d.ts +46 -0
- package/src/graph/script-input.js +65 -0
- package/src/graph/script-input.js.map +1 -0
- package/src/graph/settings.d.ts +178 -0
- package/src/graph/settings.js +479 -0
- package/src/graph/settings.js.map +1 -0
- package/src/graph/target-defaults-causes.d.ts +33 -0
- package/src/graph/target-defaults-causes.js +202 -0
- package/src/graph/target-defaults-causes.js.map +1 -0
- package/src/graph/target-defaults-layers.d.ts +186 -0
- package/src/graph/target-defaults-layers.js +420 -0
- package/src/graph/target-defaults-layers.js.map +1 -0
- package/src/graph/target-defaults-meaning.d.ts +95 -0
- package/src/graph/target-defaults-meaning.js +292 -0
- package/src/graph/target-defaults-meaning.js.map +1 -0
- package/src/graph/target-defaults-report.d.ts +77 -0
- package/src/graph/target-defaults-report.js +242 -0
- package/src/graph/target-defaults-report.js.map +1 -0
- package/src/graph/target-defaults.d.ts +79 -0
- package/src/graph/target-defaults.js +425 -0
- package/src/graph/target-defaults.js.map +1 -0
- package/src/graph/target-fields.d.ts +16 -0
- package/src/graph/target-fields.js +134 -0
- package/src/graph/target-fields.js.map +1 -0
- package/src/graph/target-tables.d.ts +45 -0
- package/src/graph/target-tables.js +299 -0
- package/src/graph/target-tables.js.map +1 -0
- package/src/graph/targets.d.ts +371 -0
- package/src/graph/targets.js +408 -0
- package/src/graph/targets.js.map +1 -0
- package/src/graph/unification.d.ts +141 -0
- package/src/graph/unification.js +459 -0
- package/src/graph/unification.js.map +1 -0
- package/src/graph/unignored-directories.d.ts +25 -0
- package/src/graph/unignored-directories.js +89 -0
- package/src/graph/unignored-directories.js.map +1 -0
- package/src/graph/visibility.d.ts +17 -0
- package/src/graph/visibility.js +67 -0
- package/src/graph/visibility.js.map +1 -0
- package/src/graph/warnings.d.ts +38 -0
- package/src/graph/warnings.js +77 -0
- package/src/graph/warnings.js.map +1 -0
- package/src/graph/wasm.d.ts +56 -0
- package/src/graph/wasm.js +77 -0
- package/src/graph/wasm.js.map +1 -0
- package/src/index.d.ts +68 -0
- package/src/index.js +109 -0
- package/src/index.js.map +1 -0
- package/src/release/manifests.d.ts +95 -0
- package/src/release/manifests.js +164 -0
- package/src/release/manifests.js.map +1 -0
- package/src/release/places.d.ts +127 -0
- package/src/release/places.js +368 -0
- package/src/release/places.js.map +1 -0
- package/src/release/publish-cargo.d.ts +177 -0
- package/src/release/publish-cargo.js +351 -0
- package/src/release/publish-cargo.js.map +1 -0
- package/src/release/publish-crates.d.ts +124 -0
- package/src/release/publish-crates.js +242 -0
- package/src/release/publish-crates.js.map +1 -0
- package/src/release/publish-environments.d.ts +50 -0
- package/src/release/publish-environments.js +284 -0
- package/src/release/publish-environments.js.map +1 -0
- package/src/release/publish-messages.d.ts +66 -0
- package/src/release/publish-messages.js +273 -0
- package/src/release/publish-messages.js.map +1 -0
- package/src/release/publish-registry.d.ts +27 -0
- package/src/release/publish-registry.js +135 -0
- package/src/release/publish-registry.js.map +1 -0
- package/src/release/publish-settings.d.ts +26 -0
- package/src/release/publish-settings.js +56 -0
- package/src/release/publish-settings.js.map +1 -0
- package/src/release/publish.d.ts +59 -0
- package/src/release/publish.js +620 -0
- package/src/release/publish.js.map +1 -0
- package/src/release/repository.d.ts +73 -0
- package/src/release/repository.js +219 -0
- package/src/release/repository.js.map +1 -0
- package/src/release/requirements.d.ts +34 -0
- package/src/release/requirements.js +30 -0
- package/src/release/requirements.js.map +1 -0
- package/src/release/toml-edit.d.ts +67 -0
- package/src/release/toml-edit.js +453 -0
- package/src/release/toml-edit.js.map +1 -0
- package/src/release/version-actions.d.ts +133 -0
- package/src/release/version-actions.js +474 -0
- package/src/release/version-actions.js.map +1 -0
- package/src/release/version-checks.d.ts +21 -0
- package/src/release/version-checks.js +151 -0
- package/src/release/version-checks.js.map +1 -0
- package/src/release/version-lockfiles.d.ts +61 -0
- package/src/release/version-lockfiles.js +222 -0
- package/src/release/version-lockfiles.js.map +1 -0
- package/src/tools/napi-cli.d.ts +70 -0
- package/src/tools/napi-cli.js +63 -0
- package/src/tools/napi-cli.js.map +1 -0
- package/src/tools/optional-tools.d.ts +121 -0
- package/src/tools/optional-tools.js +303 -0
- package/src/tools/optional-tools.js.map +1 -0
- package/src/tools/print-napi-cli.d.ts +1 -0
- package/src/tools/print-napi-cli.js +24 -0
- package/src/tools/print-napi-cli.js.map +1 -0
|
@@ -0,0 +1,589 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.maxSelectionBytes = void 0;
|
|
4
|
+
exports.readAffectedReport = readAffectedReport;
|
|
5
|
+
exports.usableCollections = usableCollections;
|
|
6
|
+
exports.collectionsProblem = collectionsProblem;
|
|
7
|
+
exports.affectedStatusArguments = affectedStatusArguments;
|
|
8
|
+
exports.diffRelativeVariables = diffRelativeVariables;
|
|
9
|
+
exports.gitChangedFiles = gitChangedFiles;
|
|
10
|
+
exports.toRepositoryPath = toRepositoryPath;
|
|
11
|
+
exports.parseRawDiff = parseRawDiff;
|
|
12
|
+
exports.gitIgnored = gitIgnored;
|
|
13
|
+
exports.widenSelection = widenSelection;
|
|
14
|
+
exports.packageOf = packageOf;
|
|
15
|
+
exports.filtersetEscape = filtersetEscape;
|
|
16
|
+
exports.selectionFiltersets = selectionFiltersets;
|
|
17
|
+
const node_child_process_1 = require("node:child_process");
|
|
18
|
+
const node_path_1 = require("node:path");
|
|
19
|
+
const cargo_output_1 = require("./cargo-output");
|
|
20
|
+
const command_1 = require("./command");
|
|
21
|
+
/**
|
|
22
|
+
* Reads the report of `cargo affected status --report-json <file>
|
|
23
|
+
* --report-detail full` (`DES-TEST-RUN`, step 1; `EVD-CARGO-AFFECTED-REPORT`).
|
|
24
|
+
* It is used only where cargo-affected exited with 0, its `schema_version` is
|
|
25
|
+
* 1, `cache.status` is `hit-exact` or `hit-with-divergence` and
|
|
26
|
+
* `selection.selected_tests` is a list; every other case gives the reason why
|
|
27
|
+
* the group runs its full suite: the status, with the `differing_labels` of
|
|
28
|
+
* the closest stored fingerprint for `miss-fingerprint`, or cargo-affected's
|
|
29
|
+
* exit status and the end of its standard error. A report whose parts do not
|
|
30
|
+
* have the shape that schema 1 gives them cannot be used either.
|
|
31
|
+
*
|
|
32
|
+
* @param exit How cargo-affected ended: its status, or why it did not run.
|
|
33
|
+
* @param text The report file's text, `undefined` where there is none.
|
|
34
|
+
* @param stderr cargo-affected's standard error, whose end a reason quotes.
|
|
35
|
+
*/
|
|
36
|
+
// @mara implements DES-TEST-RUN
|
|
37
|
+
function readAffectedReport(exit, text, stderr) {
|
|
38
|
+
var _a, _b, _c;
|
|
39
|
+
if (exit.failure !== undefined) {
|
|
40
|
+
return { problem: `cargo affected status could not run: ${exit.failure}` };
|
|
41
|
+
}
|
|
42
|
+
if (exit.code !== 0) {
|
|
43
|
+
const tail = stderrTail(stderr);
|
|
44
|
+
return {
|
|
45
|
+
problem: `cargo affected status ${exit.signal ? `was stopped by ${exit.signal}` : `exited with status ${exit.code}`}${tail === "" ? "" : ` (${tail})`}`,
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
if (text === undefined) {
|
|
49
|
+
return { problem: "cargo affected status wrote no report" };
|
|
50
|
+
}
|
|
51
|
+
let data;
|
|
52
|
+
try {
|
|
53
|
+
data = JSON.parse(text);
|
|
54
|
+
}
|
|
55
|
+
catch (error) {
|
|
56
|
+
return {
|
|
57
|
+
problem: `cargo-affected's report is no JSON (${error instanceof Error ? error.message : String(error)})`,
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
const root = record(data);
|
|
61
|
+
if ((root === null || root === void 0 ? void 0 : root.schema_version) !== 1) {
|
|
62
|
+
return {
|
|
63
|
+
problem: `cargo-affected's report has the schema_version ${JSON.stringify((_a = root === null || root === void 0 ? void 0 : root.schema_version) !== null && _a !== void 0 ? _a : null)}, and this version of @convesoft/nx-rust reads only 1`,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
const cache = record(root.cache);
|
|
67
|
+
const status = cache === null || cache === void 0 ? void 0 : cache.status;
|
|
68
|
+
if (status !== "hit-exact" && status !== "hit-with-divergence") {
|
|
69
|
+
const labels = status === "miss-fingerprint"
|
|
70
|
+
? (_c = record((_b = list(cache === null || cache === void 0 ? void 0 : cache.stored_fingerprints)) === null || _b === void 0 ? void 0 : _b[0])) === null || _c === void 0 ? void 0 : _c.differing_labels
|
|
71
|
+
: undefined;
|
|
72
|
+
const differing = Array.isArray(labels) &&
|
|
73
|
+
labels.length > 0 &&
|
|
74
|
+
labels.every((label) => typeof label === "string")
|
|
75
|
+
? `, which differs from the baseline's in ${(0, cargo_output_1.describeList)(labels)}`
|
|
76
|
+
: "";
|
|
77
|
+
return {
|
|
78
|
+
problem: `cargo-affected cannot select with the baseline: its cache status is ${typeof status === "string" ? status : JSON.stringify(status !== null && status !== void 0 ? status : null)}${differing}`,
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
const selection = record(root.selection);
|
|
82
|
+
const tests = list(selection === null || selection === void 0 ? void 0 : selection.selected_tests);
|
|
83
|
+
if (tests === undefined) {
|
|
84
|
+
return { problem: "cargo-affected's report holds no list of selected tests" };
|
|
85
|
+
}
|
|
86
|
+
const selected = [];
|
|
87
|
+
for (const entry of tests) {
|
|
88
|
+
const test = record(entry);
|
|
89
|
+
if (typeof (test === null || test === void 0 ? void 0 : test.binary_id) !== "string" || typeof test.test_name !== "string") {
|
|
90
|
+
return {
|
|
91
|
+
problem: "cargo-affected's report names a selected test without binary_id or test_name",
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
selected.push({ binary: test.binary_id, name: test.test_name });
|
|
95
|
+
}
|
|
96
|
+
const files = list(selection === null || selection === void 0 ? void 0 : selection.changed_files);
|
|
97
|
+
if (files === undefined) {
|
|
98
|
+
return { problem: "cargo-affected's report holds no list of changed files" };
|
|
99
|
+
}
|
|
100
|
+
const changedFiles = [];
|
|
101
|
+
for (const entry of files) {
|
|
102
|
+
const file = record(entry);
|
|
103
|
+
if (typeof (file === null || file === void 0 ? void 0 : file.path) !== "string" || typeof file.tracked_by_coverage !== "boolean") {
|
|
104
|
+
return {
|
|
105
|
+
problem: "cargo-affected's report names a changed file without path or tracked_by_coverage",
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
changedFiles.push({ path: file.path, trackedByCoverage: file.tracked_by_coverage });
|
|
109
|
+
}
|
|
110
|
+
const shas = list(cache === null || cache === void 0 ? void 0 : cache.collect_shas);
|
|
111
|
+
if (shas === undefined) {
|
|
112
|
+
return { problem: "cargo-affected's report names no collections (cache.collect_shas)" };
|
|
113
|
+
}
|
|
114
|
+
const collectShas = [];
|
|
115
|
+
for (const entry of shas) {
|
|
116
|
+
const sha = record(entry);
|
|
117
|
+
if (typeof (sha === null || sha === void 0 ? void 0 : sha.sha) !== "string" || typeof sha.relation !== "string") {
|
|
118
|
+
return { problem: "cargo-affected's report names a collection without sha or relation" };
|
|
119
|
+
}
|
|
120
|
+
collectShas.push({ sha: sha.sha, relation: sha.relation });
|
|
121
|
+
}
|
|
122
|
+
return { report: { collectShas, changedFiles, selected } };
|
|
123
|
+
}
|
|
124
|
+
function record(value) {
|
|
125
|
+
return typeof value === "object" && value !== null && !Array.isArray(value)
|
|
126
|
+
? value
|
|
127
|
+
: undefined;
|
|
128
|
+
}
|
|
129
|
+
function list(value) {
|
|
130
|
+
return Array.isArray(value) ? value : undefined;
|
|
131
|
+
}
|
|
132
|
+
// The last lines of a tool's standard error, on one line.
|
|
133
|
+
function stderrTail(stderr) {
|
|
134
|
+
return stderr
|
|
135
|
+
.trim()
|
|
136
|
+
.split("\n")
|
|
137
|
+
.slice(-3)
|
|
138
|
+
.map((line) => (0, cargo_output_1.plainLine)(line).trim())
|
|
139
|
+
.join(" ");
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* The commits of the report's collections whose rows the selection uses:
|
|
143
|
+
* those whose relation to `HEAD` is `equal` or `reachable`.
|
|
144
|
+
*/
|
|
145
|
+
function usableCollections(report) {
|
|
146
|
+
return report.collectShas
|
|
147
|
+
.filter((entry) => entry.relation === "equal" || entry.relation === "reachable")
|
|
148
|
+
.map((entry) => entry.sha);
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Why the report cannot stand for the task's key, or `undefined`: a
|
|
152
|
+
* collection that the report names and that the commits read before the
|
|
153
|
+
* run do not hold, as after a collection that ran meanwhile
|
|
154
|
+
* (`DES-TEST-MODE`, "Between hashing and the run").
|
|
155
|
+
*/
|
|
156
|
+
function collectionsProblem(report, commits) {
|
|
157
|
+
const known = new Set(commits);
|
|
158
|
+
const unknown = report.collectShas.map((entry) => entry.sha).filter((sha) => !known.has(sha));
|
|
159
|
+
return unknown.length === 0
|
|
160
|
+
? undefined
|
|
161
|
+
: `cargo-affected's report rests on the collection ${(0, cargo_output_1.describeList)(unknown)}, which the baseline did not hold when the task started, so a collection changed it meanwhile`;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* The arguments after `cargo` of step 1 of `DES-TEST-RUN`: `affected status
|
|
165
|
+
* --report-json <file> --report-detail full --` and the cargo arguments of
|
|
166
|
+
* step 3, from its `cargo nextest run` command, without the flags that only a
|
|
167
|
+
* run takes, `--no-fail-fast` and `--no-tests`, since cargo-affected passes
|
|
168
|
+
* them to `cargo nextest list`.
|
|
169
|
+
*
|
|
170
|
+
* @param runArgs The arguments of the group's `cargo nextest run`, without the
|
|
171
|
+
* plugin's tool configuration.
|
|
172
|
+
*/
|
|
173
|
+
// @mara implements DES-TEST-RUN
|
|
174
|
+
function affectedStatusArguments(runArgs, reportFile) {
|
|
175
|
+
return [
|
|
176
|
+
"affected",
|
|
177
|
+
"status",
|
|
178
|
+
"--report-json",
|
|
179
|
+
reportFile,
|
|
180
|
+
"--report-detail",
|
|
181
|
+
"full",
|
|
182
|
+
"--",
|
|
183
|
+
...runArgs.slice(2).filter((arg) => arg !== "--no-fail-fast" && !arg.startsWith("--no-tests")),
|
|
184
|
+
];
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* The variables that set git's `diff.relative` for cargo-affected's process
|
|
188
|
+
* alone, added after any `GIT_CONFIG_<n>` that `env` already has
|
|
189
|
+
* (`DES-TEST-RUN`, step 1): without it, cargo-affected selects nothing in a
|
|
190
|
+
* workspace below the top of its git repository (`EVD-CARGO-AFFECTED-REPORT`).
|
|
191
|
+
*/
|
|
192
|
+
// @mara implements DES-TEST-RUN
|
|
193
|
+
function diffRelativeVariables(env) {
|
|
194
|
+
var _a;
|
|
195
|
+
const count = Number.parseInt((_a = env.GIT_CONFIG_COUNT) !== null && _a !== void 0 ? _a : "", 10);
|
|
196
|
+
const n = Number.isInteger(count) && count > 0 ? count : 0;
|
|
197
|
+
return {
|
|
198
|
+
GIT_CONFIG_COUNT: String(n + 1),
|
|
199
|
+
[`GIT_CONFIG_KEY_${n}`]: "diff.relative",
|
|
200
|
+
[`GIT_CONFIG_VALUE_${n}`]: "true",
|
|
201
|
+
};
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* The changed files of the whole repository, as git itself names them
|
|
205
|
+
* (`DES-TEST-RUN`, step 1, "Changed files"): for each commit, `git diff --raw
|
|
206
|
+
* --no-renames -z <commit>`, which compares it with the working tree, staged
|
|
207
|
+
* and unstaged changes alike, and once `git ls-files --others
|
|
208
|
+
* --exclude-standard -z` for the untracked files that git does not ignore,
|
|
209
|
+
* all from the top of the repository with `core.quotePath=false`. A changed
|
|
210
|
+
* submodule gives a problem, since git does not name the files that changed
|
|
211
|
+
* inside it. The paths are made relative to `repositoryRoot`, the folder of
|
|
212
|
+
* Nx's workspace, which may lie below the top of the git repository.
|
|
213
|
+
*/
|
|
214
|
+
// @mara implements DES-TEST-RUN
|
|
215
|
+
function gitChangedFiles(workspaceRoot, repositoryRoot, commits, env) {
|
|
216
|
+
const topRun = git(["rev-parse", "--show-toplevel"], workspaceRoot, env);
|
|
217
|
+
if ("problem" in topRun) {
|
|
218
|
+
return topRun;
|
|
219
|
+
}
|
|
220
|
+
const top = topRun.stdout.replace(/\n$/, "");
|
|
221
|
+
const files = new Set();
|
|
222
|
+
for (const commit of commits) {
|
|
223
|
+
const diff = git([
|
|
224
|
+
"-c",
|
|
225
|
+
"core.quotePath=false",
|
|
226
|
+
"diff",
|
|
227
|
+
"--raw",
|
|
228
|
+
"--no-renames",
|
|
229
|
+
"--no-relative",
|
|
230
|
+
"-z",
|
|
231
|
+
commit,
|
|
232
|
+
], top, env);
|
|
233
|
+
if ("problem" in diff) {
|
|
234
|
+
return diff;
|
|
235
|
+
}
|
|
236
|
+
const entries = parseRawDiff(diff.stdout);
|
|
237
|
+
if ("problem" in entries) {
|
|
238
|
+
return entries;
|
|
239
|
+
}
|
|
240
|
+
const submodule = entries.find((entry) => entry.submodule);
|
|
241
|
+
if (submodule !== undefined) {
|
|
242
|
+
return {
|
|
243
|
+
problem: `the submodule ${submodule.path} changed against the collection ${commit}, and git does not name the files that changed inside it`,
|
|
244
|
+
};
|
|
245
|
+
}
|
|
246
|
+
for (const entry of entries) {
|
|
247
|
+
files.add(entry.path);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
const untracked = git(["-c", "core.quotePath=false", "ls-files", "--others", "--exclude-standard", "-z"], top, env);
|
|
251
|
+
if ("problem" in untracked) {
|
|
252
|
+
return untracked;
|
|
253
|
+
}
|
|
254
|
+
for (const path of untracked.stdout.split("\0")) {
|
|
255
|
+
if (path !== "") {
|
|
256
|
+
files.add(path);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
return {
|
|
260
|
+
top,
|
|
261
|
+
files: [...files].map((path) => toRepositoryPath(top, repositoryRoot, path)).sort(),
|
|
262
|
+
};
|
|
263
|
+
}
|
|
264
|
+
/** A path from the top of the git repository as a path relative to Nx's workspace root, with `/`. */
|
|
265
|
+
function toRepositoryPath(top, repositoryRoot, path) {
|
|
266
|
+
const full = node_path_1.posix.join(top.split(node_path_1.sep).join("/"), path);
|
|
267
|
+
return (0, node_path_1.relative)(repositoryRoot, full).split(node_path_1.sep).join("/");
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* The entries of `git diff --raw -z` output: each a status line
|
|
271
|
+
* `:<mode> <mode> <object> <object> <status>` and a path, NUL-separated; a
|
|
272
|
+
* mode `160000` marks a submodule.
|
|
273
|
+
*/
|
|
274
|
+
function parseRawDiff(output) {
|
|
275
|
+
const parts = output.split("\0");
|
|
276
|
+
const entries = [];
|
|
277
|
+
for (let index = 0; index < parts.length; index += 1) {
|
|
278
|
+
const head = parts[index];
|
|
279
|
+
if (head === "") {
|
|
280
|
+
continue;
|
|
281
|
+
}
|
|
282
|
+
const match = /^:(\d{6}) (\d{6}) \S+ \S+ ([A-Z])\d*$/.exec(head);
|
|
283
|
+
const path = parts[index + 1];
|
|
284
|
+
if (match === null || path === undefined || path === "") {
|
|
285
|
+
return {
|
|
286
|
+
problem: `git diff --raw printed a line that @convesoft/nx-rust does not read: ${JSON.stringify(head)}`,
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
entries.push({ path, submodule: match[1] === "160000" || match[2] === "160000" });
|
|
290
|
+
index += 1;
|
|
291
|
+
}
|
|
292
|
+
return entries;
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* Of `paths`, relative to the top of the git repository, those that git
|
|
296
|
+
* ignores (`git check-ignore -z --stdin`), which git cannot say changed
|
|
297
|
+
* (`DES-TEST-RUN`, step 1). Tracked files are never ignored.
|
|
298
|
+
*/
|
|
299
|
+
// @mara implements DES-TEST-RUN
|
|
300
|
+
function gitIgnored(top, paths, env) {
|
|
301
|
+
if (paths.length === 0) {
|
|
302
|
+
return [];
|
|
303
|
+
}
|
|
304
|
+
const run = (0, node_child_process_1.spawnSync)("git", ["check-ignore", "-z", "--stdin"], {
|
|
305
|
+
cwd: top,
|
|
306
|
+
env,
|
|
307
|
+
input: `${paths.join("\0")}\0`,
|
|
308
|
+
encoding: "utf8",
|
|
309
|
+
maxBuffer: 256 * 1024 * 1024,
|
|
310
|
+
});
|
|
311
|
+
if (run.error !== undefined) {
|
|
312
|
+
return { problem: `git could not be started (${run.error.message})` };
|
|
313
|
+
}
|
|
314
|
+
// 1: none of them is ignored.
|
|
315
|
+
if (run.status === 1) {
|
|
316
|
+
return [];
|
|
317
|
+
}
|
|
318
|
+
if (run.status !== 0) {
|
|
319
|
+
return {
|
|
320
|
+
problem: `git check-ignore exited with status ${run.status} (${stderrTail(run.stderr)})`,
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
return run.stdout.split("\0").filter((path) => path !== "");
|
|
324
|
+
}
|
|
325
|
+
function git(args, cwd, env) {
|
|
326
|
+
const run = (0, node_child_process_1.spawnSync)("git", args, {
|
|
327
|
+
cwd,
|
|
328
|
+
env,
|
|
329
|
+
encoding: "utf8",
|
|
330
|
+
maxBuffer: 256 * 1024 * 1024,
|
|
331
|
+
});
|
|
332
|
+
if (run.error !== undefined) {
|
|
333
|
+
return { problem: `git could not be started (${run.error.message})` };
|
|
334
|
+
}
|
|
335
|
+
if (run.status !== 0) {
|
|
336
|
+
return {
|
|
337
|
+
problem: `\`git ${args.filter((arg) => arg !== "-c" && !arg.startsWith("core.")).join(" ")}\` exited with status ${run.status} (${stderrTail(run.stderr)})`,
|
|
338
|
+
};
|
|
339
|
+
}
|
|
340
|
+
return { stdout: run.stdout };
|
|
341
|
+
}
|
|
342
|
+
/**
|
|
343
|
+
* Step 2 of `DES-TEST-RUN` (`ADR-AFFECTED-TESTS-WIDENING`): widens the
|
|
344
|
+
* tests that cargo-affected selected where coverage cannot see a changed
|
|
345
|
+
* file's whole effect.
|
|
346
|
+
*
|
|
347
|
+
* - Coverage narrows a changed file only where it is a `.rs` file inside the
|
|
348
|
+
* workspace folder that the report lists with `tracked_by_coverage: true`,
|
|
349
|
+
* lies in the folder of a member that is not a proc-macro crate, the
|
|
350
|
+
* deepest such folder, is neither that member's build script nor in a
|
|
351
|
+
* folder of its own that holds it, and no `fileInputs` pattern of any crate
|
|
352
|
+
* matches it.
|
|
353
|
+
* - Every other changed file adds every test of each crate of the group whose
|
|
354
|
+
* `test` task has it among its inputs; one that is an input of no crate of
|
|
355
|
+
* the group adds nothing, and one that the plugin cannot place runs the
|
|
356
|
+
* full suite.
|
|
357
|
+
* - Where a changed file is among the inputs of the `test` task of a member
|
|
358
|
+
* with a binary target, narrowing or not, that member runs every test of
|
|
359
|
+
* its integration test targets, and each crate of the group that depends
|
|
360
|
+
* on it, by a Cargo dependency of any kind or a declared input that reaches
|
|
361
|
+
* its folder (which an Nx dependency gives through `^`), runs all its tests.
|
|
362
|
+
* - A crate that opts out runs all its tests; the selected tests of the
|
|
363
|
+
* report count only for the group's other crates, by the package that the
|
|
364
|
+
* binary ID names before its first `::`.
|
|
365
|
+
*
|
|
366
|
+
* @param changed The changed files, relative to the repository root.
|
|
367
|
+
*/
|
|
368
|
+
// @mara implements DES-TEST-RUN
|
|
369
|
+
// @mara implements REQ-SELECTION-SAFETY
|
|
370
|
+
function widenSelection(report, changed, context) {
|
|
371
|
+
var _a, _b;
|
|
372
|
+
const crates = new Map();
|
|
373
|
+
const groupNames = new Set(context.crates.map((crate) => crate.name));
|
|
374
|
+
const whole = (name, reason) => {
|
|
375
|
+
const current = crates.get(name);
|
|
376
|
+
if ((current === null || current === void 0 ? void 0 : current.kind) === "all") {
|
|
377
|
+
if (!current.reasons.includes(reason)) {
|
|
378
|
+
current.reasons.push(reason);
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
else {
|
|
382
|
+
crates.set(name, { kind: "all", reasons: [reason] });
|
|
383
|
+
}
|
|
384
|
+
};
|
|
385
|
+
const integration = (name, reason) => {
|
|
386
|
+
var _a;
|
|
387
|
+
const current = (_a = crates.get(name)) !== null && _a !== void 0 ? _a : { kind: "some", tests: new Map() };
|
|
388
|
+
if (current.kind === "some" && current.integration === undefined) {
|
|
389
|
+
current.integration = reason;
|
|
390
|
+
}
|
|
391
|
+
crates.set(name, current);
|
|
392
|
+
};
|
|
393
|
+
for (const crate of context.crates) {
|
|
394
|
+
if (crate.optedOut) {
|
|
395
|
+
whole(crate.name, "its option affectedTests is false");
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
const reported = new Map(report.changedFiles.map((file) => [file.path, file]));
|
|
399
|
+
const members = [...context.members].sort((a, b) => b.folder.length - a.folder.length);
|
|
400
|
+
const binaries = context.members.filter((member) => member.hasBinary);
|
|
401
|
+
for (const path of changed) {
|
|
402
|
+
const owners = context.owners(path);
|
|
403
|
+
if (owners === undefined) {
|
|
404
|
+
return {
|
|
405
|
+
kind: "full",
|
|
406
|
+
reason: `@convesoft/nx-rust cannot tell which crates' test inputs hold the changed file ${path}`,
|
|
407
|
+
};
|
|
408
|
+
}
|
|
409
|
+
const why = narrowsWhy(path, reported, members, context);
|
|
410
|
+
if (why !== undefined) {
|
|
411
|
+
for (const owner of owners) {
|
|
412
|
+
if (groupNames.has(owner)) {
|
|
413
|
+
whole(owner, `${path} changed, ${why}`);
|
|
414
|
+
}
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
// Programs that tests start (`ADR-AFFECTED-TESTS-WIDENING`).
|
|
418
|
+
for (const binary of binaries.filter((member) => owners.includes(member.name))) {
|
|
419
|
+
if (groupNames.has(binary.name)) {
|
|
420
|
+
integration(binary.name, `${path} changed, which is an input of ${binary.name}, whose integration tests can start its binary`);
|
|
421
|
+
}
|
|
422
|
+
for (const crate of context.crates) {
|
|
423
|
+
if (crate.name === binary.name) {
|
|
424
|
+
continue;
|
|
425
|
+
}
|
|
426
|
+
const member = context.members.find((entry) => entry.name === crate.name);
|
|
427
|
+
if ((member === null || member === void 0 ? void 0 : member.dependsOn.includes(binary.name)) === true ||
|
|
428
|
+
context.holdsFileBelow(crate.name, binary.folder)) {
|
|
429
|
+
whole(crate.name, `${path} changed, which is an input of ${binary.name}, whose binary its tests can start`);
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
}
|
|
434
|
+
for (const test of report.selected) {
|
|
435
|
+
const name = packageOf(test.binary);
|
|
436
|
+
if (!groupNames.has(name)) {
|
|
437
|
+
continue;
|
|
438
|
+
}
|
|
439
|
+
const current = (_a = crates.get(name)) !== null && _a !== void 0 ? _a : { kind: "some", tests: new Map() };
|
|
440
|
+
if (current.kind === "some") {
|
|
441
|
+
const tests = (_b = current.tests.get(test.binary)) !== null && _b !== void 0 ? _b : new Set();
|
|
442
|
+
tests.add(test.name);
|
|
443
|
+
current.tests.set(test.binary, tests);
|
|
444
|
+
}
|
|
445
|
+
crates.set(name, current);
|
|
446
|
+
}
|
|
447
|
+
return { kind: "selection", crates };
|
|
448
|
+
}
|
|
449
|
+
/** The package of a binary ID: the part before its first `::` (`EVD-CARGO-AFFECTED-REPORT`). */
|
|
450
|
+
function packageOf(binary) {
|
|
451
|
+
const at = binary.indexOf("::");
|
|
452
|
+
return at === -1 ? binary : binary.slice(0, at);
|
|
453
|
+
}
|
|
454
|
+
// Why a changed file widens, or `undefined` where coverage narrows it.
|
|
455
|
+
function narrowsWhy(path, reported, members, context) {
|
|
456
|
+
var _a;
|
|
457
|
+
const inWorkspace = context.workspaceFolder === "" || path.startsWith(`${context.workspaceFolder}/`);
|
|
458
|
+
if (!inWorkspace) {
|
|
459
|
+
return "which lies outside the workspace folder";
|
|
460
|
+
}
|
|
461
|
+
if (!path.endsWith(".rs")) {
|
|
462
|
+
return "which is no Rust source, and coverage cannot show what reads it";
|
|
463
|
+
}
|
|
464
|
+
const member = members.find((entry) => path.startsWith(`${entry.folder}/`));
|
|
465
|
+
if (member === undefined) {
|
|
466
|
+
return "which lies in the folder of no member";
|
|
467
|
+
}
|
|
468
|
+
if (member.procMacro) {
|
|
469
|
+
return `which is source of the proc-macro crate ${member.name}, whose effect on other crates coverage does not record`;
|
|
470
|
+
}
|
|
471
|
+
if (member.buildScript.some((script) => path === script || path.startsWith(`${script}/`))) {
|
|
472
|
+
return `which is the build script of ${member.name}`;
|
|
473
|
+
}
|
|
474
|
+
if (context.declared(path)) {
|
|
475
|
+
return "which a fileInputs pattern declares";
|
|
476
|
+
}
|
|
477
|
+
const relativePath = context.workspaceFolder === "" ? path : path.slice(context.workspaceFolder.length + 1);
|
|
478
|
+
if (((_a = reported.get(relativePath)) === null || _a === void 0 ? void 0 : _a.trackedByCoverage) !== true) {
|
|
479
|
+
return "for which the baseline holds no coverage";
|
|
480
|
+
}
|
|
481
|
+
return undefined;
|
|
482
|
+
}
|
|
483
|
+
/** The longest `-E` arguments together, in bytes, before the selection names whole binaries. */
|
|
484
|
+
exports.maxSelectionBytes = 512 * 1024;
|
|
485
|
+
/**
|
|
486
|
+
* A name or binary ID as the equality matcher of a nextest filterset takes
|
|
487
|
+
* it: `\`, `/`, `)` and `,` escaped with `\` (`EVD-CARGO-AFFECTED-REPORT`).
|
|
488
|
+
*/
|
|
489
|
+
function filtersetEscape(value) {
|
|
490
|
+
return value.replace(/[\\/),]/g, (character) => `\\${character}`);
|
|
491
|
+
}
|
|
492
|
+
/**
|
|
493
|
+
* The `-E` arguments that carry a group's selection to nextest (`DES-TEST-RUN`,
|
|
494
|
+
* step 3), each `(<filterset of its crates>) & (<parts>)`, which nextest
|
|
495
|
+
* unites and intersects with the repository's default filter: a part is
|
|
496
|
+
* `binary_id(=<id>) & (test(=<name>) | …)` for the selected tests of one
|
|
497
|
+
* binary, `package(=<name>)` for a crate that runs all its tests, and
|
|
498
|
+
* `package(=<name>) & kind(test)` for the integration tests of a crate with a
|
|
499
|
+
* binary. No argument exceeds 64 KiB; where they would exceed 512 KiB
|
|
500
|
+
* together, each binary's part names the binary only, which runs more tests
|
|
501
|
+
* and never fewer. An empty list means that no test is selected.
|
|
502
|
+
*/
|
|
503
|
+
// @mara implements DES-TEST-RUN
|
|
504
|
+
function selectionFiltersets(crates) {
|
|
505
|
+
const detailed = filtersetArguments(selectionParts(crates, false));
|
|
506
|
+
const total = detailed.reduce((sum, arg) => sum + Buffer.byteLength(arg), 0);
|
|
507
|
+
const args = total > exports.maxSelectionBytes ? filtersetArguments(selectionParts(crates, true)) : detailed;
|
|
508
|
+
return args.flatMap((arg) => ["-E", arg]);
|
|
509
|
+
}
|
|
510
|
+
// The parts of the selection, each with its package; a binary's tests are
|
|
511
|
+
// split so that no part alone fills an argument.
|
|
512
|
+
function selectionParts(crates, wholeBinaries) {
|
|
513
|
+
const parts = [];
|
|
514
|
+
const budget = command_1.maxFiltersetBytes / 2;
|
|
515
|
+
for (const [name, selection] of [...crates].sort(([a], [b]) => (a < b ? -1 : a > b ? 1 : 0))) {
|
|
516
|
+
const pkg = `package(=${filtersetEscape(name)})`;
|
|
517
|
+
if (selection.kind === "all") {
|
|
518
|
+
parts.push({ pkg, part: pkg });
|
|
519
|
+
continue;
|
|
520
|
+
}
|
|
521
|
+
if (selection.integration !== undefined) {
|
|
522
|
+
parts.push({ pkg, part: `${pkg} & kind(test)` });
|
|
523
|
+
}
|
|
524
|
+
for (const [binary, tests] of [...selection.tests].sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0)) {
|
|
525
|
+
const id = `binary_id(=${filtersetEscape(binary)})`;
|
|
526
|
+
if (wholeBinaries) {
|
|
527
|
+
parts.push({ pkg, part: id });
|
|
528
|
+
continue;
|
|
529
|
+
}
|
|
530
|
+
let current = [];
|
|
531
|
+
let size = 0;
|
|
532
|
+
for (const test of [...tests].sort()) {
|
|
533
|
+
const term = `test(=${filtersetEscape(test)})`;
|
|
534
|
+
if (current.length > 0 && size + term.length + 3 > budget) {
|
|
535
|
+
parts.push({ pkg, part: `${id} & (${current.join(" | ")})` });
|
|
536
|
+
current = [];
|
|
537
|
+
size = 0;
|
|
538
|
+
}
|
|
539
|
+
current.push(term);
|
|
540
|
+
size += term.length + 3;
|
|
541
|
+
}
|
|
542
|
+
if (current.length > 0) {
|
|
543
|
+
parts.push({ pkg, part: `${id} & (${current.join(" | ")})` });
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
}
|
|
547
|
+
return parts;
|
|
548
|
+
}
|
|
549
|
+
// Joins parts into arguments of at most 64 KiB, each intersected with the
|
|
550
|
+
// filterset of the packages of its parts.
|
|
551
|
+
function filtersetArguments(parts) {
|
|
552
|
+
const args = [];
|
|
553
|
+
let packages = [];
|
|
554
|
+
let terms = [];
|
|
555
|
+
// The length of `(<packages>) & ((<term>) | …)` in bytes.
|
|
556
|
+
let packageBytes = 0;
|
|
557
|
+
let termBytes = 0;
|
|
558
|
+
const flush = () => {
|
|
559
|
+
if (terms.length > 0) {
|
|
560
|
+
args.push(`(${packages.join(" | ")}) & (${terms.map((term) => `(${term})`).join(" | ")})`);
|
|
561
|
+
}
|
|
562
|
+
packages = [];
|
|
563
|
+
terms = [];
|
|
564
|
+
packageBytes = 0;
|
|
565
|
+
termBytes = 0;
|
|
566
|
+
};
|
|
567
|
+
for (const { pkg, part } of parts) {
|
|
568
|
+
const addsPackage = !packages.includes(pkg);
|
|
569
|
+
const nextPackageBytes = packageBytes + (addsPackage ? Buffer.byteLength(pkg) + 3 : 0);
|
|
570
|
+
const nextTermBytes = termBytes + Buffer.byteLength(part) + 5;
|
|
571
|
+
if (terms.length > 0 && nextPackageBytes + nextTermBytes + 8 > command_1.maxFiltersetBytes) {
|
|
572
|
+
flush();
|
|
573
|
+
packages = [pkg];
|
|
574
|
+
terms = [part];
|
|
575
|
+
packageBytes = Buffer.byteLength(pkg) + 3;
|
|
576
|
+
termBytes = Buffer.byteLength(part) + 5;
|
|
577
|
+
continue;
|
|
578
|
+
}
|
|
579
|
+
if (addsPackage) {
|
|
580
|
+
packages.push(pkg);
|
|
581
|
+
}
|
|
582
|
+
terms.push(part);
|
|
583
|
+
packageBytes = nextPackageBytes;
|
|
584
|
+
termBytes = nextTermBytes;
|
|
585
|
+
}
|
|
586
|
+
flush();
|
|
587
|
+
return args;
|
|
588
|
+
}
|
|
589
|
+
//# sourceMappingURL=affected.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"affected.js","sourceRoot":"","sources":["../../../../nx-rust/src/executors/affected.ts"],"names":[],"mappings":";;;AAsDA,gDA0FC;AA0BD,8CAIC;AAQD,gDASC;AAaD,0DAWC;AASD,sDAQC;AAsBD,0CA6DC;AAGD,4CAGC;AAOD,oCAqBC;AAQD,gCA4BC;AAmHD,wCAuFC;AAGD,8BAGC;AA6CD,0CAEC;AAcD,kDAMC;AAppBD,2DAA+C;AAC/C,yCAAiD;AACjD,iDAAy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