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

Log original exception in retry rule and ignore test failing on Test Lab #5994

Merged
merged 2 commits into from
Feb 29, 2024

Conversation

seadowg
Copy link
Member

@seadowg seadowg commented Feb 29, 2024

RetryOnDeviceErrorRule currently obscures the original exception. This can make it hard to diagnose failures that only happen on CI.

I've added an issue to track fixing the ignored test.

@seadowg seadowg marked this pull request as ready for review February 29, 2024 11:27
@seadowg seadowg requested a review from grzesiek2010 February 29, 2024 11:27
@@ -15,9 +15,11 @@ class RetryOnDeviceErrorRule : TestRule {
} catch (e: Exception) {
if (e is PerformException) {
Timber.w("RetryOnDeviceErrorRule: Retrying due to PerformException!")
Timber.e(e)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think we need both those logs? Maybe the first one is redundant now?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah we do. It'll help find the retries as you'll be able to search for RetryOnDeviceErrorRule in the logs.

@seadowg seadowg changed the title Log original exception in retry rule Log original exception in retry rule and ignore test failing on Test Lab Feb 29, 2024
@seadowg seadowg added the high priority Should be looked at before other PRs/issues label Feb 29, 2024
@grzesiek2010 grzesiek2010 merged commit d53e00f into getodk:master Feb 29, 2024
6 checks passed
@seadowg seadowg deleted the retry branch February 29, 2024 16:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
high priority Should be looked at before other PRs/issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants