Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate: helm Test Intermittent failure with 'Inapplicable windows' #2926

Closed
mdebarros opened this issue Sep 9, 2022 · 3 comments
Closed
Assignees
Labels
bug Something isn't working or it has wrong behavior on a Mojaloop Core service core-dev-squad oss-core This is an issue - story or epic related to a feature on a Mojaloop core service or related to it

Comments

@mdebarros
Copy link
Member

Summary:

Helm Test Intermittent failure with 'Inapplicable windows' on SettlementCGS Golden Path Test Collections with the following error:

{
  "errorInformation": {
    "errorCode": "3100",
    "errorDescription": "Generic validation error - Inapplicable windows 35"
  }
}

Example Reports:

Work-around:

Re-run the helm test.

Severity:
Low

Priority:
Low

Expected Behavior

helm tests should consistently pass without the Inapplicable windows with SettlementCGS tests passing as expected.

Steps to Reproduce

  1. Deploy v14.0.0 Mojaloop Helm Release
  2. Wait for all services to report healthy (i.e. 6-8m)
  3. Execute several watch -n 300 helm test moja2 --filter "name=moja2-ml-ttk-test-setup,name=moja2-ml-ttk-test-val-gp"
  4. Monitor test results, and cancel the watch command to stop running further tests

Specifications

  • Component (if known): Mojaloop GP Tests (run via Helm)
  • Version: v14.0.0
  • Platform: Helm
  • Subsystem:
  • Type of testing: N/A
  • Bug found/raised by: N/A

Notes:

  • Severity when opened: Low
  • Priority when opened: Low
@mdebarros mdebarros added bug Something isn't working or it has wrong behavior on a Mojaloop Core service core-dev-squad oss-core This is an issue - story or epic related to a feature on a Mojaloop core service or related to it labels Sep 9, 2022
@elnyry-sam-k elnyry-sam-k changed the title Helm Test Intermittent failure with 'Inapplicable windows' Investigate: helm Test Intermittent failure with 'Inapplicable windows' Nov 14, 2022
@elnyry-sam-k
Copy link
Member

Hey team! Please add your planning poker estimate with Zenhub @mdebarros @kleyow @vijayg10 @sri-miriyala

@kleyow
Copy link

kleyow commented Dec 2, 2022

Moving to blocked. After hours of testing, I was not able to replicate this issue.
Issue is to be reopened if failure happens in daily cron job testing.

@kleyow
Copy link

kleyow commented Dec 5, 2022

After observing this issue on Sri's branch of mojaloop/testing-toolkit-test-cases#103
This issue is most likely cased when trying to do a settlement on a window that is in the process of closing but has not finished closing and saved in the database.

The issue is replicable by running the newly added tests without any delay between creating requests for closing and settling the window.

  1. A request is sent to close a window.
  2. Without sufficient delay a settlement request is sent for that presumed closed window.
  3. The window that is not yet in the closed state will throw Inapplicable window error when the settlement request is sent.

A solution would be to add a delay between requests or have some window state checking in the tests somehow.
An improvement for the settlement service would be logging the state of the window at the time of failure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working or it has wrong behavior on a Mojaloop Core service core-dev-squad oss-core This is an issue - story or epic related to a feature on a Mojaloop core service or related to it
Projects
None yet
Development

No branches or pull requests

4 participants