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

palcarazm / batchjs / 28379735443
97%
version/v1: 100%

Build:
Build:
LAST BUILD BRANCH: develop/v2.0.0
DEFAULT BRANCH: version/v1
Ran 29 Jun 2026 02:33PM UTC
Jobs 3
Files 54
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

29 Jun 2026 02:31PM UTC coverage: 97.135% (-0.4%) from 97.521%
28379735443

push

github

palcarazm
refactor: convert executionPromise from Promise to lazy factory function

- Change doRun() return type from executionPromise: Promise<void> to
  executionPromise: () => Promise<void> across Job, Step, and mocks
- Move executionPromise invocation from transitionTo to executeTransition
  to ensure execution starts only after RUNNING state is set
- Refactor Job._executePlan from nested Promise with once("started")
  callback to flat async/await with extracted _executePlanSteps method
- Fix error handling in Job._executePlan and Step.doRun to properly await
  transitionTo(FAILED) before re-throwing errors
- Add early continue for empty parallel step groups to avoid unnecessary
  checkpoint store writes
- Update JSDoc comments to reflect lazy execution semantics

The previous implementation started execution promises immediately, before
the RUNNING state was fully established, causing potential race conditions
with "started" event listeners. The new lazy factory pattern ensures
execution only begins after the state transition completes and all event
listeners are registered.

273 of 296 branches covered (92.23%)

Branch coverage included in aggregate %.

33 of 33 new or added lines in 3 files covered. (100.0%)

778 of 786 relevant lines covered (98.98%)

185.03 hits per line

Jobs
ID Job ID Ran Files Coverage
3 coverage-report-26.x - 28379735443.3 29 Jun 2026 02:33PM UTC 108
97.8
GitHub Action Run
2 coverage-report-22.x - 28373171968.2 29 Jun 2026 12:49PM UTC 108
97.86
GitHub Action Run
3 coverage-report-24.x - 28373171968.3 29 Jun 2026 12:49PM UTC 108
97.86
GitHub Action Run
Source Files on build 28379735443
  • Tree
  • List 54
  • Changed 28
  • Source Changed 8
  • Coverage Changed 28
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #28379735443
  • 2e7936c5 on github
  • Prev Build on develop/v2.0.0 (#28373171968)
  • Next Build on develop/v2.0.0 (#28447493624)
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