garage/script
Alex Auvolat 390a5d97fe nix, ci: build with Crane
This removes our dependency on cargo2nix, which was causing us some
issues. Whereas cargo2nix creates one Nix derivation per crate, Crane
uses only two derivations:

1. Build dependencies only
2. Build the final binary

This means that during the second step, no caching can be done. For
instance, if we do a change in garage_model, we need to recompile all of
the Garage crates including those that do not depend on garage_model.
On the upside, this allows all of the Garage crates to be built at once
using cargo build logic, which is optimized for high parallelism and
better pipelining between all of the steps of the build. All in all,
this makes most builds faster than cargo2nix.

A few other changes have been made to the build scripts and CI:

- Unit tests are now run within a Nix derivation. In fact, we have
  different derivations to run the tests using LMDB and Sqlite as
  metadata db engines.

- For debug builds, most CI steps now run in parallel (with the notable
  exception of the smoke test that runs after the build, which is
  inevitable).

- We no longer pass the GIT_VERSION argument when building debug builds
  and running the tests. This means that dev binaries and test
  binaries don't know the exact version of Garage they are from. That
  shouldn't be an issue in most cases.

- The not-dynamic.sh scripts has been fixed to fail if the file does not
  exist.
2025-02-03 16:39:50 +01:00
..
helm Minor rewording, add some more hints 2025-01-15 23:51:07 +00:00
jepsen.garage jepsen testing of Garage v1.0.0-rc1 2024-04-05 22:57:00 +02:00
k8s Add files to quickly test k8s 2022-04-07 16:12:35 +02:00
telemetry Add best practices and doc of monitoring (fix #419) 2022-11-16 13:27:24 +01:00
dev-bucket.sh add upgrade test for garage 0.8 -> 0.9 2023-09-27 14:57:37 +02:00
dev-clean.sh Implement ListMultipartUploads (#171) 2022-01-12 19:04:55 +01:00
dev-cluster.sh add upgrade test for garage 0.8 -> 0.9 2023-09-27 14:57:37 +02:00
dev-configure.sh add upgrade test for garage 0.8 -> 0.9 2023-09-27 14:57:37 +02:00
dev-env-aws.sh doc: update endpoint_url documentation 2023-10-02 17:16:11 +03:00
dev-env-duck.sh Add preliminary support for Duck 2021-05-15 10:24:20 +02:00
dev-env-mc.sh Support STREAMING-AWS4-HMAC-SHA256-PAYLOAD (#64) (#156) 2022-01-17 10:55:31 +01:00
dev-env-rclone.sh Add minio & rclone to our functional tests 2021-05-02 14:59:58 +02:00
dev-env-s3cmd.sh Add minio & rclone to our functional tests 2021-05-02 14:59:58 +02:00
dev-env-winscp.sh Test WinSCP 2022-03-03 14:29:10 +01:00
not-dynamic.sh nix, ci: build with Crane 2025-02-03 16:39:50 +01:00
simulate_ring.py Not fully tested: new multi-dc MagLev 2021-03-05 16:22:29 +01:00
test-renumbering.sh Minio tests for multipart upload behaviour: 2023-06-09 16:23:37 +02:00
test-skip-part.sh Minio tests for multipart upload behaviour: 2023-06-09 16:23:37 +02:00
test-smoke.sh [sse-c] Testing for SSE-C encryption 2024-03-07 15:43:48 +01:00
test-upgrade.sh add upgrade test for garage 0.8 -> 0.9 2023-09-27 14:57:37 +02:00