From 8a04a62ecd8debf9c7d828ca379babe3649d0c71 Mon Sep 17 00:00:00 2001 From: Christian Schwarz Date: Fri, 11 Jul 2025 12:36:47 +0200 Subject: [PATCH] remove `fail` crate, put `neon_failpoint` in place --- Cargo.lock | 8 ++++---- Cargo.toml | 1 - compute_tools/Cargo.toml | 4 ++-- pageserver/Cargo.toml | 4 ++-- safekeeper/Cargo.toml | 6 ++---- storage_controller/Cargo.toml | 2 +- 6 files changed, 11 insertions(+), 14 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 7a04478968..37baf64048 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1330,7 +1330,6 @@ dependencies = [ "chrono", "clap", "compute_api", - "fail", "flate2", "futures", "hostname-validator", @@ -1339,6 +1338,7 @@ dependencies = [ "itertools 0.10.5", "jsonwebtoken", "metrics", + "neon_failpoint", "nix 0.30.1", "notify", "num_cpus", @@ -4372,7 +4372,6 @@ dependencies = [ "either", "enum-map", "enumset", - "fail", "futures", "hashlink", "hex", @@ -4387,6 +4386,7 @@ dependencies = [ "jsonwebtoken", "md5", "metrics", + "neon_failpoint", "nix 0.30.1", "num-traits", "num_cpus", @@ -6206,7 +6206,6 @@ dependencies = [ "criterion", "desim", "env_logger", - "fail", "futures", "hex", "http 1.1.0", @@ -6216,6 +6215,7 @@ dependencies = [ "itertools 0.10.5", "jsonwebtoken", "metrics", + "neon_failpoint", "once_cell", "pageserver_api", "parking_lot 0.12.1", @@ -6902,7 +6902,6 @@ dependencies = [ "diesel", "diesel-async", "diesel_migrations", - "fail", "futures", "governor", "hex", @@ -6915,6 +6914,7 @@ dependencies = [ "lasso", "measured", "metrics", + "neon_failpoint", "once_cell", "pageserver_api", "pageserver_client", diff --git a/Cargo.toml b/Cargo.toml index a26789389d..1061989b35 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -98,7 +98,6 @@ diatomic-waker = { version = "0.2.3" } either = "1.8" enum-map = "2.4.2" enumset = "1.0.12" -fail = "0.5.0" fallible-iterator = "0.2" framed-websockets = { version = "0.1.0", git = "https://github.com/neondatabase/framed-websockets" } futures = "0.3" diff --git a/compute_tools/Cargo.toml b/compute_tools/Cargo.toml index 910bae3bda..30b440ee21 100644 --- a/compute_tools/Cargo.toml +++ b/compute_tools/Cargo.toml @@ -7,7 +7,7 @@ license.workspace = true [features] default = [] # Enables test specific features. -testing = ["fail/failpoints"] +testing = ["neon_failpoint/testing"] [dependencies] async-compression.workspace = true @@ -23,7 +23,7 @@ camino.workspace = true chrono.workspace = true cfg-if.workspace = true clap.workspace = true -fail.workspace = true +neon_failpoint.workspace = true flate2.workspace = true futures.workspace = true http.workspace = true diff --git a/pageserver/Cargo.toml b/pageserver/Cargo.toml index 1fd0dccff0..f391b1a196 100644 --- a/pageserver/Cargo.toml +++ b/pageserver/Cargo.toml @@ -8,7 +8,7 @@ license.workspace = true default = [] # Enables test-only APIs, incuding failpoints. In particular, enables the `fail_point!` macro, # which adds some runtime cost to run tests on outage conditions -testing = ["fail/failpoints", "pageserver_api/testing", "wal_decoder/testing", "pageserver_client/testing"] +testing = ["neon_failpoint/testing", "pageserver_api/testing", "wal_decoder/testing", "pageserver_client/testing"] fuzz-read-path = ["testing"] @@ -33,7 +33,7 @@ crc32c.workspace = true either.workspace = true enum-map.workspace = true enumset = { workspace = true, features = ["serde"]} -fail.workspace = true +neon_failpoint.workspace = true futures.workspace = true hashlink.workspace = true hex.workspace = true diff --git a/safekeeper/Cargo.toml b/safekeeper/Cargo.toml index 6955028c73..e7b7a89067 100644 --- a/safekeeper/Cargo.toml +++ b/safekeeper/Cargo.toml @@ -6,9 +6,7 @@ license.workspace = true [features] default = [] -# Enables test-only APIs, incuding failpoints. In particular, enables the `fail_point!` macro, -# which adds some runtime cost to run tests on outage conditions -testing = ["fail/failpoints"] +testing = ["neon_failpoint/testing"] benchmarking = [] [dependencies] @@ -21,7 +19,7 @@ camino-tempfile.workspace = true chrono.workspace = true clap = { workspace = true, features = ["derive"] } crc32c.workspace = true -fail.workspace = true +neon_failpoint.workspace = true hex.workspace = true humantime.workspace = true http.workspace = true diff --git a/storage_controller/Cargo.toml b/storage_controller/Cargo.toml index 143f4241f4..8705c523bb 100644 --- a/storage_controller/Cargo.toml +++ b/storage_controller/Cargo.toml @@ -22,7 +22,7 @@ clap.workspace = true clashmap.workspace = true compute_api.workspace = true cron.workspace = true -fail.workspace = true +neon_failpoint.workspace = true futures.workspace = true governor.workspace = true hex.workspace = true