Replace transient test labels with stable identifiers

This commit is contained in:
ms2k 2026-07-19 14:27:29 +09:00
commit d0b745950b
10 changed files with 63 additions and 38 deletions

View file

@ -90,7 +90,7 @@ impl Harness {
let coordination = CoordinationStore::connect(
&required_env("REMORA_COORDINATION_URL"),
format!(
"{}wp22:{}:",
"{}live-events:{}:",
required_env("REMORA_COORDINATION_NAMESPACE"),
nonce()
),

View file

@ -89,7 +89,7 @@ impl Harness {
let coordination = CoordinationStore::connect(
&required_env("REMORA_COORDINATION_URL"),
format!(
"{}wp21:{}:",
"{}public-api:{}:",
required_env("REMORA_COORDINATION_NAMESPACE"),
nonce()
),

View file

@ -63,7 +63,7 @@ impl Harness {
.unwrap();
let coordination = CoordinationStore::connect(
&coordination_url,
format!("{}wp18:{name}:{}:", coordination_namespace(), nonce()),
format!("{}worker-api:{name}:{}:", coordination_namespace(), nonce()),
StoreConfig {
global_limit: 16,
lease_ttl: Duration::from_secs(10),

View file

@ -37,7 +37,11 @@ impl Harness {
.await
.expect("connect postgres");
migrate_schema(&pool).await.expect("schema migrate");
let namespace = format!("{}wp15:{name}:{}:", coordination_namespace(), nonce());
let namespace = format!(
"{}attempt-authority:{name}:{}:",
coordination_namespace(),
nonce()
);
let coordination = CoordinationStore::connect(
&coordination_url,
namespace,

View file

@ -41,7 +41,11 @@ impl Harness {
migrate_schema(&pool).await.expect("schema migrate");
let coordination = CoordinationStore::connect(
&coordination_url,
format!("{}wp16:{name}:{}:", coordination_namespace(), nonce()),
format!(
"{}attempt-mutations:{name}:{}:",
coordination_namespace(),
nonce()
),
StoreConfig {
global_limit: 16,
lease_ttl: Duration::from_secs(10),

View file

@ -132,7 +132,11 @@ impl Harness {
.expect("reset recovery test state");
let coordination = CoordinationStore::connect(
&coordination_url,
format!("{}wp17:{name}:{}:", coordination_namespace(), nonce()),
format!(
"{}attempt-recovery:{name}:{}:",
coordination_namespace(),
nonce()
),
StoreConfig {
global_limit: 32,
lease_ttl: Duration::from_secs(10),
@ -460,7 +464,11 @@ async fn coordination_partition_rolls_back_and_restart_converges() {
let proxy_url = proxy.url();
let store = CoordinationStore::connect(
&proxy_url,
format!("{}wp17:partition:{}:", coordination_namespace(), nonce()),
format!(
"{}attempt-recovery:partition:{}:",
coordination_namespace(),
nonce()
),
StoreConfig::default(),
)
.await
@ -501,7 +509,11 @@ async fn coordination_partition_rolls_back_and_restart_converges() {
let resumed_proxy = CoordinationProxy::start(upstream, Some(address)).await;
let resumed_store = CoordinationStore::connect(
&resumed_proxy.url(),
format!("{}wp17:partition:{}:", coordination_namespace(), nonce()),
format!(
"{}attempt-recovery:partition:{}:",
coordination_namespace(),
nonce()
),
StoreConfig::default(),
)
.await

View file

@ -19,7 +19,7 @@ fn coordination_namespace(suite: &str) -> String {
.ok()
.filter(|value| !value.is_empty())
.unwrap_or_else(|| "remora:test:".into());
format!("{base}wp04:{suite}:")
format!("{base}coordination-substrate:{suite}:")
}
async fn test_store(

View file

@ -358,6 +358,6 @@ async fn object_source_and_destination_resume_matrix() {
.await
.expect("version purge");
} else if std::env::var("REMORA_TARGET_PROVIDER").as_deref() == Ok("versitygw") {
panic!("VersityGW must support version-pinned WP-12 qualification");
panic!("VersityGW must support version-pinned object-source qualification");
}
}

View file

@ -331,7 +331,9 @@ async fn version_addressed_and_stale_version_matrix() {
let provider =
std::env::var("REMORA_TARGET_PROVIDER").unwrap_or_else(|_| "unknown".into());
if provider == "versitygw" {
panic!("versitygw must support bucket versioning for WP-08 matrix");
panic!(
"versitygw must support bucket versioning for the target compatibility matrix"
);
}
}
eprintln!(

View file

@ -85,7 +85,11 @@ impl Harness {
.unwrap();
let coordination = CoordinationStore::connect(
&coordination_url,
format!("{}wp19:{name}:{}:", coordination_namespace(), nonce()),
format!(
"{}worker-runtime:{name}:{}:",
coordination_namespace(),
nonce()
),
StoreConfig {
global_limit: 16,
lease_ttl: Duration::from_secs(2),