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

Improving Retry Test for Webjobs Version Upgrade #446

Merged
merged 3 commits into from
Jul 10, 2023

Conversation

jainharsh98
Copy link
Collaborator

@jainharsh98 jainharsh98 commented Jul 10, 2023

Issue:
Currently the End-to-End test for Retry checks if an exception is logged from the kafka function exactly Number of Retries + 1 times. Since the last upgrade, WebJobs SDK has added an additional log after all retires are exhausted to capture the last error throw. This would mean that the actual number of times the exception is logged would increase by 1 for the above test scenario - Leading to the failure of the test in case of WebJobs SDK upgrade. PR link - Azure/azure-webjobs-sdk#2914

Solution:
To remove the dependency on the number of times the exception is logged - This PR introduces a change to look at the actual number of executions of the function from the logs. This is done to unblock the future WebJobs SDK upgrade scenarios.

@jainharsh98 jainharsh98 changed the title Improving Flaky Tests for Webjobs Version Upgrade Improving Retry Test for Webjobs Version Upgrade Jul 10, 2023
@jainharsh98 jainharsh98 marked this pull request as ready for review July 10, 2023 10:29
Copy link
Contributor

@krishna-kariya krishna-kariya left a comment

Choose a reason for hiding this comment

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

LGTM

@jainharsh98 jainharsh98 merged commit 5ed4a97 into dev Jul 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants