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

zentralopensource / zentral / 38879323205
91%

Build:
DEFAULT BRANCH: main
Ran 16 Oct 2026 09:28AM UTC
Jobs 1
Files 1035
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

16 Oct 2026 09:04AM UTC coverage: 90.932%. Remained the same
38879323205

push

github

np5
santa: use no target id for an existing target

The event upload inserts all its targets with ON CONFLICT DO NOTHING.
PostgreSQL gets the next value of the id sequence for each row before
it finds the conflict. So each upload used one id for each target it
reported, also for the targets that already existed. The id is an
integer: when the sequence reaches 2147483647, every insert into
santa_target fails, and every event upload fails with it.

The two inserts of the event upload skip the existing targets with a
NOT EXISTS filter now. Two uploads that insert the same new target at
the same time can still use one id more. ON CONFLICT DO NOTHING stays
for that case, and the inserts stay sorted.

The filter adds one index lookup for each new target. In a test on a
table of 4 million targets, with 50, 500 and 5000 targets for each
insert, the plan is a nested loop anti join on the (type, identifier)
unique index, and the insert reads no more pages than before.

When update_target_counters is true, the target counter upsert still
uses one santa_targetcounter id for each target of each upload.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

52916 of 58193 relevant lines covered (90.93%)

0.91 hits per line

Jobs
ID Job ID Ran Files Coverage
1 38879323205.1 16 Oct 2026 09:27AM UTC 1035
90.93
GitHub Action Run
Source Files on build 38879323205
  • Tree
  • List 1035
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #38879323205
  • f51d030e on github
  • Prev Build on main (#38715255288)
  • Next Build on main (#38886067447)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc