Azure / Azure/azure-functions-host

Fix flaky StandbyModeE2E_LinuxContainer test

Open
#5,389 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 10h
Merged PRs (30d)
36

Description

In v3.x, I've commented out the line that checks `dispatchDuration` in this test. Sometimes (and all the time lately in devops), this value comes back as 0 and the test fails. I added some explicit slowdowns to test so I think everything is working as expected, but we should look at this.

It looks like @divyagandhii / @mathewc / @maiqbal11 have touched this file in the past. Maybe we just need to make sure this value is there, and 0 is okay?

https://github.com/Azure/azure-functions-host/blob/dev/test/WebJobs.Script.Tests.Integration/Host/StandbyManager/StandbyManagerE2ETests_Linux.cs#L130

Contributor guide

Open the contributing guide

Research direction

Start with test/WebJobs.Script.Tests.Integration/Host/StandbyManager/StandbyManagerE2ETests_Linux.cs around line 130, where the dispatchDuration check was commented out. Run StandbyModeE2E_LinuxContainer in a Linux container, especially in the devops environment, and compare runs where dispatchDuration is zero. Done means the test reliably reflects the expected behavior without masking a valid failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.