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

prebid / Prebid.js / 24397416197
96%

Build:
DEFAULT BRANCH: master
Ran 14 Apr 2026 12:08PM UTC
Jobs 1
Files 1823
Run time 4min
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

14 Apr 2026 11:53AM UTC coverage: 96.358% (+0.02%) from 96.342%
24397416197

push

github

web-flow
Tercept Analytics Adapter: single request per auction, concurrent auction isolation & payload optimisation (#14679)

* tercept analytics: refactor to single request per auction

- Replace shared events object with per-auctionId Map to fix data loss
  when multiple auctions run concurrently
- Accumulate BID_WON, AD_RENDER_SUCCEEDED, AD_RENDER_FAILED and
  BIDDER_ERROR into the bids array; flush once 1.5s after AUCTION_END
- Use navigator.sendBeacon on visibilitychange so data survives page exit
- Add disableAnalytics to clear pending timers and maps on teardown
- Add try/catch around track() to prevent adapter errors disrupting page
- Remove ad, native and adUrl fields from bid payloads to reduce size
- Limit auctionInit.bidderRequests to first entry (device/site data
  is identical across all bidder requests)
- Add is_pl flag (true on first bid of first auction per page load)

* tercept analytics: rewrite test suite for refactored adapter

Replace tests that assumed multiple requests per auction and separate
top-level keys (bidWon, adRenderSucceeded, etc.) with tests matching
the new single-request-per-auction design. Covers:

- Request timing: no send before 1.5s timer, one request per auction
- Payload structure: top-level shape, bidderRequests trimmed to first,
  host/path/search attached at send time, ad/native/adUrl absent
- All event handlers: BID_REQUESTED, BID_RESPONSE, BID_TIMEOUT, NO_BID,
  BID_WON, AD_RENDER_SUCCEEDED, AD_RENDER_FAILED, BIDDER_ERROR
- is_pl flag: true on first bid of first auction only, reset on disable
- Concurrent auction isolation: separate bids and auctionInit per id
- visibilitychange flush via sendBeacon
- disableAnalytics: cancels timers, clears maps, resets firstSent
- Error resilience: unknown auctionIds and undefined args do not throw

* tercept analytics: fix linting, visibilitychange target, sendBeacon import

- Fix 81 indent errors by properly indenting the try block body
- Replace window.addEventListener with ... (continued)

42888 of 52813 branches covered (81.21%)

387 of 387 new or added lines in 2 files covered. (100.0%)

218958 of 227233 relevant lines covered (96.36%)

70.95 hits per line

Jobs
ID Job ID Ran Files Coverage
1 24397416197.1 14 Apr 2026 12:08PM UTC 2940
83.99
GitHub Action Run
Source Files on build 24397416197
  • Tree
  • List 1823
  • Changed 199
  • Source Changed 4
  • Coverage Changed 199
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #24397416197
  • 90fc1386 on github
  • Prev Build on master (#24373221564)
  • Next Build on master (#24406378088)
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