ai-news-writer-ci / test (pull_request) Failing after 30s
- Add DB_SCHEMA.md documenting article-index JSONL, all PostgreSQL analytics tables (engagement_events, article_analytics, daily_metrics, category_benchmarks), in-memory caches, and O(n) benchmark notes - Add three missing composite indexes to analytics schema migrations (idx_engagement_captured_date, idx_article_published_date, idx_daily_metrics_post_date) - Add src/analytics/maintenance.js: daily retention purge for all analytics tables plus VACUUM ANALYZE; configurable via env vars - Add src/store/file-lock.js: POSIX O_CREAT|O_EXCL advisory lock with stale-lock cleanup; prevents TOCTOU races on article-log writes - Wire file-lock into article-log: appendArticleRecord and updateArticleMetadata (including slug uniqueness check) now run inside the lock, preventing duplicate-slug races between concurrent processes - Add src/listener/guid-store.js: persistent GUID deduplication store with atomic save, 2000-GUID cap, and FIFO trim to 1500 - Wire guid-store into rss-listener: GUIDs now load from disk on startup and are saved atomically before on_new_articles fires, so listener deduplication survives process restarts - Add tests: file-lock.test.js (6 cases), guid-store.test.js (10 cases); all 45 tests pass - Add data/listener-guid-store.json and data/*.json to .gitignore
15 lines
296 B
Plaintext
15 lines
296 B
Plaintext
node_modules/
|
|
coverage/
|
|
.nyc_output/
|
|
.env
|
|
logs/
|
|
*.log
|
|
|
|
# Runtime data files (restore from backup/ or regenerate; never commit live data)
|
|
data/article-index.jsonl
|
|
data/listener-guid-store.json
|
|
data/*.json
|
|
|
|
# Local snapshot directory (Git-tracked copies live under backup/ when committed)
|
|
.backup/
|