-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(mojaloop/#3096): unable to upgrade knex dependency on centralLedg…
…er (#939) fix(mojaloop/#3096): unable to upgrade knex dependency on centralLedger - mojaloop/project#3096 - added UV_THREADPOOL_SIZE config to CI command for running integration tests - upgraded knex to latest version The following issue mojaloop/project#3112 was created to investigate as to why the Integration Tests are so unstable when then Event Handlers are executing in-line. For the time being the above PR clearly separates the process which resolves the stability issue for the time being. The following changes were made as a work-around: - Integration Tests will no longer start the Event Handlers in-line. You will need to start the Central-Ledger Service as a seperate process (see updated documentation for more information) - Documentation for Integration Tests updated to reflect the above requirement - CI Job updated to start the Central-Ledger Service as a seperate Process prior to running Integration Tests - Added comments to where the commented out code for the initialization of the in-line Event Handlers referencing the above story. - Also made some changes to the Handler tests to handle failures instead of stalling the Integration Tests chore: maintenance updates - fixed audit issues - added missing kafka topics from docker-compose init kafka container to ensure the CL Service startup is clean
- Loading branch information
Showing
9 changed files
with
323 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
|
||
## Script is to wait-retry with a number of retries to determine if the Central Ledger health end-point is healthy or not | ||
|
||
# Central Ledger Health end-point for integration tests | ||
url="http://localhost:3001/health" | ||
|
||
# Number of retries | ||
retries=10 | ||
|
||
# Sleep between retries | ||
sleepwait=1 | ||
|
||
# Counter for retries | ||
count=0 | ||
|
||
while [ $count -lt $retries ] | ||
do | ||
response=$(curl -s -o /dev/null -w "%{http_code}" $url) | ||
if [ $response -eq 200 ]; then | ||
echo "Successful response: $response" | ||
break | ||
else | ||
echo "Response: $response. Retrying..." | ||
((count++)) | ||
sleep $sleepwait | ||
fi | ||
done | ||
|
||
if [ $count -eq $retries ]; then | ||
echo "Failed after $retries attempts." | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.