Sergei Zharinov
000c2f936b
feat(github): Make PR cache sync max pages configurable ( #41493 )
2026-02-26 15:29:14 +00:00
Jamie Tanna
7a75ea87d2
chore(github): instrument the getPrCache method ( #41490 )
...
As part of efforts to improve the performance of the `getPrCache`
function, we can add additional instrumentation to understand the time
taken.
This adds additional insight through our instrumentation functions, for
those using OpenTelemetry, as well as a `durationMs` for our logs.
2026-02-25 22:09:35 +00:00
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
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
Michael Kriese
050ac8d23b
chore: better code coverage ( #39518 )
2025-11-25 15:01:54 +00:00
RahulGautamSingh
76f911041a
refactor: use named exports ( #39196 )
...
* use named exports
* fix test
* add missing imnport
* fix prettier
2025-11-10 12:00:35 +00:00
Sergei Zharinov
0c25305f34
refactor(github): Refactor PR username parameter handling ( #37003 )
2025-07-16 10:19:09 +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
db8dda2378
fix: Explicitly disable memCache when caching is switched on/off ( #35060 )
...
Co-authored-by: Felipe Santos <felipecassiors@gmail.com >
2025-03-30 08:02:36 +00:00
Sergei Zharinov
f957ea8fec
test: Fix coverage for platform code ( #34719 )
2025-03-23 07:06:52 +00:00
Sergei Zharinov
9b4e515024
refactor(http): Separate getJson and getJsonUnchecked ( #33651 )
2025-01-17 14:18:00 +00:00
Sergei Zharinov
8596967060
feat(http): Switch to pluggable HTTP cache implementation ( #27966 )
...
Co-authored-by: Rhys Arkins <rhys@arkins.net >
2024-03-19 16:34:05 +00:00
Sergei Zharinov
674ace8ee5
refactor(github): Change github-related field types for repo cache ( #27784 )
2024-03-10 13:07:57 +00:00
Rhys Arkins
413084b4c5
fix(github): use repoCache even if not initial ( #27039 )
2024-02-03 15:48:48 +00:00
Rhys Arkins
23a334c7e3
feat(cache): etag caching for github GET ( #26788 )
...
Co-authored-by: Michael Kriese <michael.kriese@visualon.de >
2024-01-22 11:49:40 +00:00
Sergei Zharinov
b69416ce17
refactor(prettier): Force trailing commas ( #25631 )
2023-11-07 15:50:29 +00:00
RahulGautamSingh
c56588eaba
refactor: convert PlatformmId to union ( #18458 )
2022-11-01 14:46:09 +00:00
Sergei Zharinov
d0027cf240
fix(github): Remove PR cache migrations code ( #18021 )
2022-09-28 12:43:19 +02:00
Sergei Zharinov
a77a452fb7
fix(github): Remove redundant check and fix coverage ( #17990 )
2022-09-26 21:22:57 +02:00
Sergei Zharinov
aaa8b71ddb
fix(github): Fix determine old cache format detection ( #17989 )
2022-09-26 22:14:16 +03:00
Sergei Zharinov
ffc63c35c2
fix(github): Update long-term GitHub cache during run ( #17972 )
2022-09-26 10:59:49 +00:00
Sergei Zharinov
36516198c9
fix(github): Don't store raw PR data in long-term cache ( #17967 )
2022-09-26 04:51:13 +00:00
Sergei Zharinov
6c2dd8e28d
refactor(github): Extend common Pr type to support updatedAt field ( #17671 )
2022-09-07 12:12:20 +00:00
Sergei Zharinov
f292e76852
feat: Cache compacted PR body structure ( #15303 )
2022-05-09 10:24:28 +00:00
Sergei Zharinov
add3520a30
fix(github): Use long pages for initial PR lsit fetch ( #15400 )
2022-05-02 18:59:17 +00:00
Sergei Zharinov
05c0c9bd4b
fix(github): Drop ETag support for PR cache ( #15292 )
2022-04-24 18:36:06 +02:00
Sergei Zharinov
ce52bda3c8
feat(github): Remove irrelevant fields from PR cache ( #15283 )
2022-04-23 15:23:06 +00:00
Sergei Zharinov
b722489191
feat(github): Descrease PR list page size ( #15280 )
2022-04-23 14:28:35 +01:00
Sergei Zharinov
d663859207
feat(github): Fetch PRs using cacheable REST ( #14907 )
2022-04-15 17:21:09 +00:00