Repository navigation
Conversation
Backend unit coveragePASS · minimum combined coverage 98.00%. Tests: 11961 passed, 0 failed, 0 skipped. Source files: 400.
Unit coverage includes every backend workspace. PostgreSQL/Redis integration tests run separately. Commit: f7669f3 · HTML, JSON, XML reports and job logs · attempt 1 |
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



What changes and why?
AI-enabled feed ingestion hydrated every active Topic and every Tag before skipping heuristic classification. Repeated HTTP 200 feeds paid the same ORM cost even when every origin was already retained. Load these catalogs lazily only when a new entry reaches the heuristic classifier, and share that one pair of loads across the eligible feed entries.
Publisher-supplied tag resolution and restoration remain independent: repeated imports still restore explicit labels, and manual/AI classifications retain ownership. No classification or publication policy changes.
Validation
PostgreSQL audit against the actual baseline/current path, using a separate local x86-64 fixture with 4,450 active topics and 55,000 tags:
pg_stat_statementsand SQLAlchemy events, two matching feed entries; SQL execution 106.10→29.68ms.Raw PostgreSQL statements and counters and protocol/limits include server buffers, planning/execution elapsed and observed container CPU. These are single paired samples with warm analyzed data; cgroup read-probe/background cost is retained, not presented as isolated backend CPU. The final two-case native regression also asserts actual catalog SQL row counts. This PR adds no cache, invalidation read, transaction or replacement PostgreSQL computation.
f2eb29cd) hosted integration shard 1 failed in the unchanged 100,000-history migration test: analytics cutover refused an exclusive NOWAIT lock onarticle_analysis_jobs. The hosted lock holder is unknown. That focused test passed in two local disposable-service runs, including an aggressive-autovacuum run with lock diagnostics. A targeted failed-job rerun was unavailable while the workflow remained active. The new audit/test head has fresh CI pending. This PR remains draft; no speculative migration or production-lock change was made.Rollout notes
No migration or cache is added. This change removes unused reads; image, source authority, leases, rollback/retry and editorial guards remain in the existing ingestion transaction. Kept draft for native resource validation. No production deployment performed.
Ready for review