-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add exit code to in case of error in test script #1710
Add exit code to in case of error in test script #1710
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can throw the error instead of logging it and exiting the process? Also, not all scripts are updated.
We need to make sure clean up function is always executed |
let's remove the try-catch block in case we need to make it crash on failure. There is no need for it |
|
@mohamedamer453 I fixed both comments and tested both workflows. https://github.com/threefoldtech/tfgrid-sdk-ts/actions/runs/7395367664/job/20118396746 and https://github.com/threefoldtech/tfgrid-sdk-ts/actions/runs/7395403959/job/20118505842. Could you re-review? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In this run you can see that the contracts were deleted successfully, however the run failed in the Check if contracts are empty
step, i think it might be giving a false positive, the issue might be that it needs a bit of time before listing all contracts to register that the contracts were deleted, so if it's possible to increase the timeout before doing this step to ensure that it's not giving a false positive.
This should be fixed and I test it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After the latest run the workflow seems to be working fine. great work!
Description
After the update script issue, the tests have been failing but passing in the test result because of the try and catch that have been added to the code. Removed all the try and catch from the scripts and added a checker after the delete all.
Update the yggdrasil version to the latest v0.5.4.
Changes
Only the scripts that are included in the grid nightly workflow.
Related Issues
#1673
#950
#1756