-
Notifications
You must be signed in to change notification settings - Fork 4k
Re-record Batch tests #6405
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
Re-record Batch tests #6405
Conversation
This PR supplants PR #6249 |
@@ -507,7 +507,7 @@ public static void WaitForIdleComputeNode(BatchController controller, BatchAccou | |||
Select = "id,state" | |||
}; | |||
|
|||
DateTime timeout = DateTime.Now.AddMinutes(5); | |||
DateTime timeout = DateTime.Now.AddMinutes(10); |
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.
Can we change this to 3 hours?
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.
I wanted to see where the tests failed in CI, and then fix up all those places, as I am not sure this is the only place we wait.
I will amend the PR to wait a longer time once I've seen the initial results though, yes.
This fixes issue: #5006 |
It looks like the test pass in Travis failed because of this error:
I think it's complaining because we have a file I see this issue: https://github.com/dotnet/corefx/issues/11042 suggests the same as above (file not found). But this same test passes in Jenkins. Do we explicitly exclude .cer files from the travis run somehow? |
c8b65d3
to
d265472
Compare
@MiYanni Can you take a look at this? |
@matthchr I just had the same issue for another service's tests. The fix here: 4ab7861 Basically, the path resolution seems to vary depending on if you are running the test via the console runner or the Visual Studio runner. Just do the logic I did in green where you have both potential paths and check to see if one exists; otherwise, use the other path. |
d265472
to
e404dd2
Compare
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.
Looks great to me! If it passes all tests I will merge.
on demand (to ensure all batch tests are successfully moved): https://azuresdkci.westus2.cloudapp.azure.com/view/PowerShell/job/powershell-demand/920/ |
@MiYanni - Can you give specific guidance on how to do your fix in a Powershell context rather than a C# one? I tried:
But that doesn't seem to work. I assume the issue is the |
@matthchr Oh. Your issue isn't that the directory is wrong. Just put: $x509cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2 -ArgumentList './Resources/BatchTestCert01.cer' You can't use backslashes in Linux.I've had to change every filepath in code to use forward slashes instead. Or use |
Hah! Good catch. Will fix. |
- Label tests as "CheckIn" category. - Have a large timeout when in replay mode to deal with possibility of thread starvation in massively parallel run.
e404dd2
to
6451e93
Compare
There we go, Travis passes now. Feel free to call another on-demand build to make sure things are looking okay. |
On demand will be fine as I confirmed all batch tests were moved. Merging now! I'll close the flaky test issue now, but let you know if it ever shows back up. Thanks Matt! We really appreciate your work fixing these tests. |
Description
See title
Checklist
CONTRIBUTING.md
platyPS
module