Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(notif): queue payload deserialization (#1815)

Sean Aye22e6dc507597
diff --git a/infra/stacks/notification-service/push.ts b/infra/stacks/notification-service/push.ts
index 9bf2bb33d1..123057b404 100644
--- a/infra/stacks/notification-service/push.ts
+++ b/infra/stacks/notification-service/push.ts
@@ -78,6 +78,7 @@ export class PushNotificationEventHandler extends pulumi.ComponentResource {
topic: this.pushDeliveryTopic.arn,
protocol: 'sqs',
endpoint: pulumi.interpolate`${this.pushDeliveryQueue.arn}`,
+ rawMessageDelivery: true,
},
{ parent: this }
);
diff --git a/rust/cloud-storage/Cargo.lock b/rust/cloud-storage/Cargo.lock
index 0a3af349e8..6bdae26852 100644
--- a/rust/cloud-storage/Cargo.lock
+++ b/rust/cloud-storage/Cargo.lock
@@ -5744,7 +5744,6 @@ dependencies = [
name = "macro_tower_layers"
version = "0.1.0"
dependencies = [
- "axum",
"http 1.3.1",
"tokio",
"tower 0.5.2",
diff --git a/rust/cloud-storage/macro_tower_layers/Cargo.toml b/rust/cloud-storage/macro_tower_layers/Cargo.toml
index b6b9c310af..6b9d1e4975 100644
--- a/rust/cloud-storage/macro_tower_layers/Cargo.toml
+++ b/rust/cloud-storage/macro_tower_layers/Cargo.toml
@@ -6,10 +6,10 @@ version = "0.1.0"
[dependencies]
http = { workspace = true }
+tokio = { workspace = true, features = ["rt", "time"] }
tower = { workspace = true }
tower-http = { workspace = true, features = ["request-id", "util"] }
-tokio = { workspace = true, features = ["time", "rt"] }
tracing = { workspace = true }
[dev-dependencies]
-axum = { workspace = true }
+tokio = { workspace = true, features = ["macros", "rt", "test-util", "time"] }
diff --git a/rust/cloud-storage/macro_tower_layers/src/test.rs b/rust/cloud-storage/macro_tower_layers/src/test.rs
index 87c82a7835..ddfbfbbeaf 100644
--- a/rust/cloud-storage/macro_tower_layers/src/test.rs
+++ b/rust/cloud-storage/macro_tower_layers/src/test.rs
@@ -112,3 +112,22 @@ async fn starvation_detector_warns_when_runtime_blocked() {
assert!(saw_warn.load(Ordering::SeqCst));
}
+
+#[tokio::test]
+async fn starvation_detector_does_not_warn_within_grace_period() {
+ tokio::time::pause();
+
+ let (subscriber, saw_warn, _saw_info) = LevelCapture::new();
+ let _guard = set_default(subscriber);
+
+ spawn_starvation_detector(Duration::from_millis(50));
+
+ // Let the detector initialize and consume its first tick
+ tokio::task::yield_now().await;
+
+ // Advance time by interval + 4ms, within the 5ms grace period
+ tokio::time::advance(Duration::from_millis(54)).await;
+ tokio::task::yield_now().await;
+
+ assert!(!saw_warn.load(Ordering::SeqCst));
+}