-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing the CI and addition bugs found along the way (#79)
* Fixing issues with GitHub updating the docker compose version and the docker compose syntax no longer working. * Pinning the docker compose compatible file for the integration tests. * Adding a better way to wait for the Report Portal services to be up. * Changing the method for creating an API token for the integration tests as it's deprecated. * Changing the way we are verifying the logs for the tests as it was inaccurate. * Fixing issues with JSON objects not being displayed properly in the Report Portal logs. * General improvement of the tests and the testing infrastructure.
- Loading branch information
1 parent
88b4588
commit 738b02d
Showing
10 changed files
with
121 additions
and
66 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
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 |
---|---|---|
@@ -1,12 +1,14 @@ | ||
#!/bin/bash | ||
set -eux | ||
while true; do | ||
# Run the command and capture the output | ||
output=$(npm run status) | ||
|
||
wait-for-status() { | ||
echo "Waiting for services status" | ||
echo "" | ||
bash -c \ | ||
'while [[ "$(npm run status)" == *"(starting)"* ]];\ | ||
do echo "Waiting for services" && sleep 2;\ | ||
done' | ||
} | ||
wait-for-status | ||
# Check if the output contains 'starting' or 'exited' | ||
if echo "$output" | grep -q -e "starting" -e "exited"; then | ||
echo "Detected 'starting' or 'exited' in the output. Sleeping for 2 seconds..." | ||
sleep 2 | ||
else | ||
echo "No 'starting' or 'exited' found in the output. Continuing..." | ||
break | ||
fi | ||
done |
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
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