Skip to content

Commit

Permalink
[fixtures] remove uuid vendor, replace with cargo fetch setup script
Browse files Browse the repository at this point in the history
We need to pull in some more crates, and vendoring everything is annoying. We
would like to do one fetch in the beginning of the test run, though, and this
is an ideal place to use (and dogfood) a setup script.
  • Loading branch information
sunshowers committed Dec 8, 2024
1 parent c814144 commit a2fd167
Show file tree
Hide file tree
Showing 44 changed files with 11 additions and 8,007 deletions.
11 changes: 11 additions & 0 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
experimental = ["setup-scripts"]

[profile.default]
final-status-level = "slow"

Expand All @@ -10,6 +12,10 @@ slow-timeout = { period = "60s", terminate-after = 3 }
test-group = "my-group"
junit.store-success-output = true

[[profile.default.scripts]]
filter = 'package(integration-tests) or binary_id(nextest-runner::integration)'
setup = "cargo-fetch-fixture"

[profile.ci]
# Don't fail fast in CI to run the full test suite.
fail-fast = false
Expand Down Expand Up @@ -50,3 +56,8 @@ max-threads = 8

[test-groups.unused-group]
max-threads = 8

[script.cargo-fetch-fixture]
command = "cargo fetch --manifest-path fixtures/nextest-tests/Cargo.toml"
capture-stdout = true
capture-stderr = true
6 changes: 0 additions & 6 deletions fixtures/nextest-tests/.cargo/config
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ runner = "android-runner -x"
[target.'cfg(all(target_arch = "x86_64", target_os = "linux", target_env = "musl"))']
runner = ["passthrough", "--ensure-this-arg-is-sent"]

[source.crates-io]
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "vendor"

[env]
CONFIG_WORKSPACE_DIR = { value = "", relative = true }

Expand Down
1 change: 0 additions & 1 deletion fixtures/nextest-tests/vendor/uuid/.cargo-checksum.json

This file was deleted.

78 changes: 0 additions & 78 deletions fixtures/nextest-tests/vendor/uuid/CODE_OF_CONDUCT.md

This file was deleted.

140 changes: 0 additions & 140 deletions fixtures/nextest-tests/vendor/uuid/CONTRIBUTING.md

This file was deleted.

8 changes: 0 additions & 8 deletions fixtures/nextest-tests/vendor/uuid/COPYRIGHT

This file was deleted.

Loading

0 comments on commit a2fd167

Please sign in to comment.