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

Unleash / unleash / 16318903669
86%
master: 91%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 16 Jul 2025 12:08PM UTC
Jobs 1
Files 1187
Run time 3min
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 Jul 2025 12:02PM UTC coverage: 91.405% (+0.002%) from 91.403%
16318903669

push

github

web-flow
fix: don't overwrite `seenClients` in instance-service; merge if same client appears again (#10357)

Fixes a bug where `registerInstance` and
`register{Frontend|Backend}Client` would overwrite each other's data in
the instance service, leading to the bulk update being made with partial
data, often missing SDK version. There's a different issue in the actual
store that causes sdk version and type to be overwritten when it's
updated (because we don't use `setLastSeen` anymore), but I'll handle
that in a different PR.

This PR adds tests for the changes I've made. Additionally, I've made
these semi-related bonus changes:
- In registerInstance, don't expect a partial `IClientApp`. We used to
validate that it was actual a metrics object instead. Instead, update
the signature to expect the actual properties we need from the cilent
metrics schema and set a default for instanceId the way Joi did.
- In `metrics.ts`, use the `ClientMetricsSchema` type in the function
signature, so that the request body is correctly typed in the function
(instead of being `any`).
- Delete two unused properties from the`createApplicationSchema`. They
would get ignored and were never used as far as I can tell. (`appName`
is taken from the URL, and applications don't store `sdkVersion`
information).
- Add `sdkVersion` to `IClientApp` because it's used in instance
service.

I've been very confused about all the weird type shenanigans we do in
the instance service (expecting `IClientApp`, then validating with a
different Joi schema etc). I think this makes it a little bit better and
updates the bits I'm touching, but I'm happy to take input if you
disagree.

7091 of 7144 branches covered (99.26%)

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

2 existing lines in 1 file now uncovered.

67070 of 73377 relevant lines covered (91.4%)

443.2 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
2
88.63
-0.78% src/lib/features/playground/feature-evaluator/client.ts
Jobs
ID Job ID Ran Files Coverage
1 16318903669.1 16 Jul 2025 12:08PM UTC 1187
91.4
GitHub Action Run
Source Files on build 16318903669
  • Tree
  • List 1187
  • Changed 6
  • Source Changed 4
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #16318903669
  • 642b209b on github
  • Prev Build on main (#16288314628)
  • Next Build on main (#16319069336)
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