• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

brotherlogic / recordcollection / 27041931923
53%
master: 62%

Build:
Build:
LAST BUILD BRANCH: scrub-negative-instance-ids-from-caches
DEFAULT BRANCH: master
Ran 05 Jun 2026 09:51PM UTC
Jobs 1
Files 2
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Jun 2026 09:47PM UTC coverage: 52.972%. First build
27041931923

Pull #9205

github

brotherlogic
Scrub negative instance IDs from all cache maps on startup

On readRecordCollection, any negative key in the eight cache maps
(InstanceToFolder, InstanceToCategory, InstanceToUpdate,
InstanceToUpdateIn, InstanceToMaster, InstanceToId, InstanceToRecache,
InstanceToLastSalePriceUpdate) is now deleted before the collection is
returned. If any entries were removed the cleaned collection is saved
back to the keystore so the stale data does not reappear on the next
restart.

Previously only InstanceToCategory had a scrub loop. The other seven
maps could still contain legacy negative IDs caused by historical
int32 overflow, which would propagate into query results.

A generic helper negativeKeysToDelete[V any] avoids repeating the
delete-loop boilerplate for each map.

Tests:
- Added TestNegativeIdNotInCacheAfterRead to drive the new behaviour
- Updated TestQueryRecordsWithNegativeId to match: negative IDs saved
  directly into the keystore must not appear in QueryRecords results
  after the next readRecordCollection call.
Pull Request #9205: Scrub negative instance IDs from all cache maps on startup

704 of 1329 relevant lines covered (52.97%)

0.61 hits per line

Jobs
ID Job ID Ran Files Coverage
1 27041931923.1 05 Jun 2026 09:51PM UTC 2
52.97
GitHub Action Run
Source Files on build 27041931923
  • Tree
  • List 2
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #9205
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc