Build and Test Go Project / build (windows-latest) (push) Has been cancelled
Build and Test Go Project / build (macos-latest) (push) Has been cancelled
Build and Test Go Project / build (ubuntu-latest) (push) Has been cancelled
CodeQL / Analyze (go) (push) Has been cancelled
License Check / license-check (push) Has been cancelled
CodeQL / Analyze (actions) (push) Has been cancelled
- Added ResetInstance() function to lockdown package for test cleanup
- Updated lockdown_test.go to reset singleton before and after each test
- Updated issues_test.go to initialize cache once per test function (4 functions)
- Updated pullrequests_test.go to initialize cache once per test function (7 functions)
- All tests now explicitly reset and initialize cache at the beginning of each test function
- This prevents race conditions and ensures each test has proper cache state
Co-authored-by: JoannaaKL <67866556+JoannaaKL@users.noreply.github.com>
* Initial plan
* Replace custom cache with cache2go library
- Added github.com/muesli/cache2go dependency
- Replaced custom map-based cache with cache2go.CacheTable
- Removed manual timer management (scheduleExpiry, ensureEntry methods)
- Removed timer field from repoAccessCacheEntry struct
- Updated GetRepoAccessInfo to use cache2go's Value() and Add() methods
- Updated SetTTL to flush and re-add entries with new TTL
- Used unique cache names per instance to avoid test interference
- All existing tests pass with the new implementation
Co-authored-by: JoannaaKL <67866556+JoannaaKL@users.noreply.github.com>
* Final verification complete
Co-authored-by: JoannaaKL <67866556+JoannaaKL@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: JoannaaKL <67866556+JoannaaKL@users.noreply.github.com>