- Notifications
You must be signed in to change notification settings - Fork675
chore: make reset_gitlab() better#1785
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
ea4c50d to4acdeccCompare4acdecc to63c6793Compare63c6793 to60e2907CompareJohnVillalovos commentedDec 29, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@nejch Please look at the functional testing logs and let me know what you think. |
JohnVillalovos commentedDec 29, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
An example of what this is fixing fromhttps://github.com/python-gitlab/python-gitlab/runs/4656774636?check_suite_focus=true#step:5:27 |
3c5f510 tocda90f0Compare26f4944 to67dd7b4Compare67dd7b4 to517a330Compare517a330 to48710b7Compare48710b7 to0480644Compare0480644 to6bc9dfdComparee9e8a7c to9b4c01bCompareSaw issues in the CI where reset_gitlab() would fail. It would fail todelete the group that is created when GitLab starts up. Extending thetimeout didn't fix the issue.Changed the code to use the new `helpers.safe_delete()` function.Which will delete the resource and then make sure it is deleted beforereturning.Also added some logging functionality that can be seen if logging isturned on in pytest.
9b4c01b tod87d6b1CompareJohnVillalovos commentedJul 22, 2022
@nejch By using |
nejch commentedJul 22, 2022
Amazing, love to see code get deleted 😅 |
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Saw issues in the CI where reset_gitlab() would fail. It would fail to
delete the group that is created when GitLab starts up. Extending the
timeout didn't fix the issue.
Changed the code to use the new
helpers.safe_delete()function.Which will delete the resource and then make sure it is deleted before
returning.
Also added some logging functionality that can be seen if logging is
turned on in pytest.