mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-02 13:22:11 +03:00
fix(ci): repair release regressions exposed by clean runs (#7812)
This commit is contained in:
@@ -7243,6 +7243,7 @@
|
||||
"restartServerWithNewPassword": "Restart the server - it will use the new password",
|
||||
"backToLogin": "Back to Login",
|
||||
"forgotPassword": "Forgot password?",
|
||||
"continueWithOidc": "Continue with OIDC",
|
||||
"defaultPasswordHint": "Default password: CHANGEME (unless INITIAL_PASSWORD was set)",
|
||||
"Authorization": "Authorization",
|
||||
"Content-Disposition": "Content-Disposition",
|
||||
|
||||
@@ -7243,6 +7243,7 @@
|
||||
"restartServerWithNewPassword": "Reinicie o servidor - ele usará a nova senha",
|
||||
"backToLogin": "Voltar para o Login",
|
||||
"forgotPassword": "Esqueceu a senha?",
|
||||
"continueWithOidc": "Continuar com OIDC",
|
||||
"defaultPasswordHint": "Default password: CHANGEME (unless INITIAL_PASSWORD was set)",
|
||||
"Authorization": "Autorização",
|
||||
"Content-Disposition": "Disposição de conteúdo",
|
||||
|
||||
@@ -7275,6 +7275,7 @@
|
||||
"restartServerWithNewPassword": "Khởi động lại máy chủ - máy chủ sẽ sử dụng mật khẩu mới",
|
||||
"backToLogin": "Quay lại Đăng nhập",
|
||||
"forgotPassword": "Quên mật khẩu?",
|
||||
"continueWithOidc": "Tiếp tục với OIDC",
|
||||
"defaultPasswordHint": "Mật khẩu mặc định: CHANGEME (trừ khi INITIAL_PASSWORD đã được đặt)",
|
||||
"Authorization": "Authorization",
|
||||
"Content-Disposition": "Content-Disposition",
|
||||
|
||||
@@ -814,7 +814,6 @@ function offloadLegacyCallLogDetails(db: SqliteDatabase) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function shouldRunStartupDbHealthCheck(): boolean {
|
||||
if (process.env.OMNIROUTE_FORCE_DB_HEALTHCHECK === "1") return true;
|
||||
return !isAutomatedTestProcess();
|
||||
@@ -1313,6 +1312,10 @@ export function closeDbInstance(options?: { checkpointMode?: CheckpointMode | nu
|
||||
*/
|
||||
export function resetDbInstance() {
|
||||
closeDbInstance();
|
||||
// Read caches outlive the SQLite singleton. A reset swaps the backing
|
||||
// database, so retaining cached rows can leak the previous database's
|
||||
// connections/settings into the newly opened instance (tests and restore).
|
||||
invalidateDbCache();
|
||||
}
|
||||
|
||||
// ──────────────── Runtime Driver Info ────────────────
|
||||
|
||||
@@ -350,7 +350,10 @@ export async function sweep() {
|
||||
// prevent sustained bursting while reducing total sweep duration.
|
||||
if (batchEnd < total) {
|
||||
if (staggerMs > 0) {
|
||||
await new Promise((resolve) => setTimeout(resolve, staggerMs));
|
||||
const jitterMin = parseInt(process.env.HEALTHCHECK_JITTER_MIN_MS || "500", 10);
|
||||
const jitterMax = parseInt(process.env.HEALTHCHECK_JITTER_MAX_MS || "5000", 10);
|
||||
const jitter = jitterMin + Math.random() * Math.max(0, jitterMax - jitterMin);
|
||||
await new Promise((resolve) => setTimeout(resolve, staggerMs + jitter));
|
||||
}
|
||||
// Yield a microtask so the event loop can service pending I/O
|
||||
// (DB contention, network responses) before the next batch starts.
|
||||
|
||||
Reference in New Issue
Block a user