project icon indicating copy to clipboard operation
project copied to clipboard

[sdk-scheme-adapter][bulk implementation] Fix stalling unit tests in CI.

Open kleyow opened this issue 3 years ago • 1 comments

Summary: In the CircleCi pipeline, unit tests get stalled when running the test-unit job. It is the belief that this is caused by resources in one of the modules that aren't letting go of its resources and is stalling other modules from running.

There is a current workaround implemented in package.json. It seems --detectOpenHandles somehow prevents the issue in CI.

Here is a example ci failure https://app.circleci.com/pipelines/github/mojaloop/sdk-scheme-adapter/2327/workflows/71523b5d-5823-4afb-bd83-27a3b5dd8d60/jobs/16063

Severity: Low

Priority: Low

Expected Behavior Unit tests pass in CI in less than 5 minutes.

Steps to Reproduce

  1. Create a branch copy of mvp/bulk-sdk
  2. Remove --detectOpenHandles from test:unit in package.json
  3. Push your branch and wait on circleci

Specifications

  • Component (if known): sdk-scheme-adapter
  • Version: mvp/bulk-sdk
  • Platform: CircleCi
  • Subsystem:
  • Type of testing: Unit
  • Bug found/raised by: @kleyow

Notes:

  • Severity when opened:
  • Priority when opened:

kleyow avatar Oct 10 '22 14:10 kleyow

Need to reproduce and see if this is still an issue

shashi165 avatar May 22 '25 18:05 shashi165

closing this as bulk integration test in CI are passing fine as of latest releases: https://app.circleci.com/pipelines/github/mojaloop/sdk-scheme-adapter

elnyry-sam-k avatar Jun 02 '25 12:06 elnyry-sam-k