feat(httpapi): harden control plane and speed up prefix refresh
Очередь job получила lease и fencing, телеметрия и прогресс deploy сохраняются, ревизия пишет manifest входов. Обновление префиксов не переписывает неизменённый снимок, большие наборы идут через COPY, а устаревшая ревизия не попадает в deploy. Бандл ноды кэшируется, prune и постановка job больше не держат горячий путь. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
924f111e48
commit
f8e0520817
197 files changed
+18655
-1416
No files matched your search
@@ -0,0 +1,21 @@
|
||||
package repository
|
||||
|
||||
import (
|
||||
"context"
|
||||
"testing"
|
||||
|
||||
"github.com/jackc/pgx/v5/pgxpool"
|
||||
)
|
||||
|
||||
func TestObserveStoreMetricsReturnsDatabaseError(t *testing.T) {
|
||||
pool, err := pgxpool.New(context.Background(), "postgres://localhost/evobgp")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
pool.Close()
|
||||
pg := &Postgres{pool: pool}
|
||||
_, _, _, _, err = pg.ObserveStoreMetrics(context.Background())
|
||||
if err == nil {
|
||||
t.Fatal("expected closed pool error")
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user