Commit Graph

10 Commits

Author SHA1 Message Date
Sergei Zharinov 2fb68b9a20 fix(github): prevent PR cache sync from exhausting all pages (#41462)
* fix(github): prevent PR cache sync from exhausting all pages

* refactor(github): derive cutoff from cached items, simplify reconcile

- When lastModified is missing but items exist (via updateItem()),
  derive cutoff from max(item.updated_at) instead of falling back
  to reconcile's return value. Eliminates the fallback branch.
- reconcile() now called purely for side effects; return value ignored.
- MAX_SYNC_PAGES guard checks needNextPageSync (not needNextPageFetch)
  to avoid spurious warning when cutoff already stopped the loop.
- Add test for mixed pages (Renovate + non-Renovate PRs interleaved).
- Update derived-cutoff test for caches without lastModified.

* fix(github): advance PR cache watermark from unfiltered page

* fix(github): add comment clarifying MAX_SYNC_PAGES is a safety net
2026-02-25 10:16:52 +00:00
Sergei Zharinov c5b0a74f82 refactor: Remove constructor parameter properties (#40712) 2026-01-27 11:16:26 +00:00
Sergei Zharinov 930cf6633c refactor: Rewrite imports with .ts extensions (#40700)
fix: Additional vi.mock path corrections and prettier formatting
2026-01-26 22:48:17 +00:00
Sergei Zharinov f9ab9d0c04 fix(github): Lower PR cache log level from debug to trace (#36898) 2025-07-08 15:13:50 +00:00
Sergei Zharinov 70c181b2f9 feat(github): Add more debug logging for PR/issue cache (#36545) 2025-06-17 11:44:45 +00:00
Sergei Zharinov b71e4b0a81 refactor(github): Remove unused method from ApiCache class (#24117) 2023-08-28 05:43:41 +00:00
Sergei Zharinov a6139ad5fe refactor(github): Remove unused etag support for PR cache (#17665) 2022-09-07 07:29:45 +00:00
Sergei Zharinov b23b886b6e refactor(github): Remove unused PR cache functionality (#17606) 2022-09-04 08:20:29 +00:00
Sergei Zharinov 6698c20603 feat(github): Mapping functions for ApiCache items (#15010) 2022-04-08 05:54:17 +00:00
Sergei Zharinov 65a99fb94f feat(github): Implement ApiCache data structure (#14943) 2022-04-06 16:00:26 +00:00