Skip to content

Ing 1428 collection resolver loop#370

Merged
brett19 merged 2 commits intomasterfrom
ING-1428_collection-resolver-loop
Mar 2, 2026
Merged

Ing 1428 collection resolver loop#370
brett19 merged 2 commits intomasterfrom
ING-1428_collection-resolver-loop

Conversation

@brett19
Copy link
Copy Markdown
Member

@brett19 brett19 commented Feb 24, 2026

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the cached collection resolver to avoid returning stale cached errors and adds/adjusts tests around concurrent resolution, invalidation, and recovery after failures.

Changes:

  • Track the timestamp of the last failed resolution (ResolvedAt) and use it to decide when to retry after errors.
  • Modify resolver thread cleanup behavior (including slow-map entry deletion) and adjust slow-path control flow.
  • Add/restore tests for double invalidation and recovery after a resolution error; adjust an existing concurrency/error test.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
collectionresolver_cached.go Adds ResolvedAt and new retry/cleanup logic intended to support recovery after errors and prevent stale-error returns.
collectionresolver_cached_test.go Adds concurrency controls and new tests for invalidation and error recovery, plus timing-based ordering to exercise the new logic.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread collectionresolver_cached.go
Comment thread collectionresolver_cached.go Outdated
Comment thread collectionresolver_cached_test.go Outdated
Comment thread collectionresolver_cached_test.go Outdated
Comment thread collectionresolver_cached.go Outdated
Westwooo
Westwooo previously approved these changes Feb 24, 2026
@brett19 brett19 force-pushed the ING-1428_collection-resolver-loop branch from 03e57a7 to dd17135 Compare February 25, 2026 21:32
@brett19 brett19 requested a review from Westwooo March 2, 2026 18:58
@brett19 brett19 merged commit 00087f2 into master Mar 2, 2026
13 of 14 checks passed
@brett19 brett19 deleted the ING-1428_collection-resolver-loop branch March 2, 2026 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants