fix(logging): demote per-iteration cron logs from info to debug #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "log-levels-audit"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Top-level cron start/done markers stay at info. Per-user/per-audience
inner events (syncHistory start/done, refreshForUser start/skip/done)
and internal pruneCache row-count stats drop to debug so production
logs at the default level are not flooded during batch operations.
ffff899e8c95ade8393bThe two 're-rating' tests were failing on MariaDB 11.4 with either a wrong rating value (0 instead of 2) or zero rows returned. Root cause: triggerRefreshAllAudiences fires fire-and-forget after res.send(), and on MariaDB 11.4 its concurrent SELECT on the ratings table conflicts with the second request's INSERT ON DUPLICATE KEY UPDATE or check-then-update. Two complementary fixes: 1. pool: { min: 0, max: 1 } in the mysql2 test Knex config. Serialises all DB access so the background refresh's queries cannot run concurrently with the second request's writes. The same-SQL template with different bindings (rating=0 vs rating=2) executes on a single connection, eliminating any per-connection prepared-statement interleaving that triggered MariaDB 11.4's misbehaviour. 2. drainPool() helper + usage in afterEach and between requests. Waits for the pool to go idle (numUsed === 0) before the pool is destroyed. This ensures background reads have released their connections (and their MariaDB metadata locks) before the next test's TRUNCATE TABLE statements run.The CI job runs inside the watchcraft-ci container (selfhosted-config_runner network). dev:up creates Jellyfin/Seerr on the dev_default network — a completely separate Docker network. Every fetch('http://localhost:18096/...') inside bootstrap.ts got ECONNREFUSED, silently swallowed by .catch(()=>false), causing the waitFor loop to spin for its entire timeout on every run. Fix: split dev:reset into dev:reset:services (Docker up only) + bootstrap so the CI workflow can do `docker network connect dev_default $(cat /etc/hostname)` in between. With the CI container on dev_default, bootstrap reaches services by container name. JELLYFIN_BOOTSTRAP_HOST and SEERR_BOOTSTRAP_HOST env vars override the localhost defaults in bootstrap.ts for this path.58f80ef4708ade746af9