Commit 82e43a6
fix(postgres): resolve 3 CI failures in PR QA Gate
1. keyword_ops.py: Use CAST(:metadata AS jsonb) instead of
:metadata::jsonb — the :: cast syntax conflicts with SQLAlchemy's
:name bind parameter parsing, producing invalid SQL in PostgreSQL.
2. connection.py: Clamp pool.overflow() with max(0, ...) in
get_pool_status() — QueuePool.overflow() can return negative values
when connections are below pool_size.
3. test_storage_config.py: Add monkeypatch.delenv("DATABASE_URL") to
prevent CI's DATABASE_URL environment variable from making the
postgres-no-config warning test pass incorrectly.
Fixes PR QA Gate run #22010406320.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent e213b25 commit 82e43a6
File tree
3 files changed
+9
-4
lines changed- agent-brain-server
- agent_brain_server/storage/postgres
- tests/unit/config
3 files changed
+9
-4
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
196 | | - | |
197 | | - | |
| 196 | + | |
| 197 | + | |
198 | 198 | | |
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
138 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
139 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
140 | 145 | | |
141 | 146 | | |
142 | 147 | | |
| |||
0 commit comments