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

optimizely / javascript-sdk / 44126610704
77%

Build:
DEFAULT BRANCH: master
Ran 17 Nov 2026 04:31PM UTC
Jobs 4
Files 126
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

17 Nov 2026 04:30PM UTC coverage: 77.435% (-0.06%) from 77.492%
44126610704

push

github

web-flow
[FSSDK-13442] Settle the close promise after client init failure (#1189)

## Summary
After a failed init, `close()` and `onTerminated()` never settled. The failure handler only rejected `startPromise`, and `stop()` does nothing once the client is `Failed`, so awaiting `close()` hung (e.g. with an invalid datafile).

- On start failure, reject `stopPromise` with the init error and stop the child services (config manager, event processor, ODP manager) through a shared `stopChildServices()` helper.
- `onReady()` clears its timeout in `onRunning().finally()`. Before, a failed init left the timer pending until the timeout (30 s by default), keeping a Node process alive.
- Remove the `onReady()` cleanup tasks and `INSTANCE_CLOSED`. `close()` during start already rejects `onRunning()` via `stop()`, so they were redundant. `onReady()` rejects with the same errors as before.

`close()` while the client is still starting still resolves.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

1564 of 3062 branches covered (51.08%)

Branch coverage included in aggregate %.

8 of 15 new or added lines in 2 files covered. (53.33%)

8992 of 10570 relevant lines covered (85.07%)

260.74 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
74.67
-0.73% lib/optimizely/index.ts
Jobs
ID Job ID Ran Files Coverage
1 run-20 - 44126610704.1 17 Nov 2026 04:31PM UTC 126
77.44
GitHub Action Run
2 run-22 - 44126610704.2 17 Nov 2026 04:31PM UTC 126
77.44
GitHub Action Run
3 run-18 - 44126610704.3 17 Nov 2026 04:31PM UTC 126
77.44
GitHub Action Run
4 run-24 - 44126610704.4 17 Nov 2026 04:31PM UTC 126
77.44
GitHub Action Run
Source Files on build 44126610704
  • Tree
  • List 126
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • bd3ea3a6 on github
  • Prev Build on master (#43481805754)
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