Repository navigation
Closed
Closed
Copy link
Labels
Milestone
Description
It's a flaky test failure - happens on some rolling builds, e.g.
+ sudo launchctl asuser 505 sudo -u helix-runner sh ./xharness-runner.apple.sh --target maccatalyst --command-timeout 2280 --timeout 00:30:00 --launch-timeout 00:30:00 --includes-test-runner --expected-exit-code 0 --app /tmp/helix/working/A2A0091A/w/BF0409FF/e/Microsoft.Extensions.Configuration.EnvironmentVariables.Tests.app --output-directory /tmp/helix/working/A2A0091A/w/BF0409FF/uploads
XHarness command issued: apple test --app /tmp/helix/working/A2A0091A/w/BF0409FF/e/Microsoft.Extensions.Configuration.EnvironmentVariables.Tests.app --output-directory /tmp/helix/working/A2A0091A/w/BF0409FF/uploads --target maccatalyst --timeout 00:30:00 --xcode /Applications/Xcode13.app -v --launch-timeout 00:30:00
[12:28:45] info: Preparing run for maccatalyst
[12:28:45] info: Getting app bundle information from '/tmp/helix/working/A2A0091A/w/BF0409FF/e/Microsoft.Extensions.Configuration.EnvironmentVariables.Tests.app'
[12:28:45] dbug:
[12:28:45] dbug: Running /usr/libexec/PlistBuddy -c "Print CFBundleName" /tmp/helix/working/A2A0091A/w/BF0409FF/e/Microsoft.Extensions.Configuration.EnvironmentVariables.Tests.app/Contents/Info.plist
[12:28:45] dbug: Process PlistBuddy exited with 0
[12:28:45] dbug:
[12:28:45] dbug: Running /usr/libexec/PlistBuddy -c "Print CFBundleIdentifier" /tmp/helix/working/A2A0091A/w/BF0409FF/e/Microsoft.Extensions.Configuration.EnvironmentVariables.Tests.app/Contents/Info.plist
[12:29:01] dbug: Process 56292 didn't exit within 00:00:15 and will be killed
[12:29:01] dbug: Killing process tree of 56292...
[12:29:01] dbug: Pids to kill: 56292
[12:29:01] dbug: Running lldb diagnostics for pid 56292
[12:29:01] dbug: Printing backtrace for pid=56292
[12:29:10] dbug: (lldb) command source -s 0 '/var/folders/2_/8s76ml311gv142wwl15flm3c0000gs/T/tmp6WvMua.tmp'
[12:29:10] dbug: Executing commands in '/var/folders/2_/8s76ml311gv142wwl15flm3c0000gs/T/tmp6WvMua.tmp'.
[12:29:10] dbug: (lldb) process attach --pid 56292
[12:29:10] dbug: error: attach failed: no such process.
[12:29:10] dbug: 56292 Execution timed out after 15 seconds and the process was killed.
[12:29:10] dbug: Process PlistBuddy exited with 0
[12:29:10] fail: Failed to get bundle information: net.dot.Microsoft.Extensions.Configuration.EnvironmentVariables.Tests
[12:29:10] dbug: Saving diagnostics data to '/tmp/helix/working/A2A0091A/w/BF0409FF/e/diagnostics.json'
XHarness exit code: 79 (FAILED_TO_GET_BUNDLE_INFO)
Activity
steveisok commentedon Jan 11, 2022
@premun Any idea what would be the cause?
premun commentedon Jan 11, 2022
Seems like
Plistbuddy, which is the apple tool that pulls the properties out of plists for us, times out (but also returns the right response).This
comes from here:
We can bump the 15 second timeout or we can ignore the timeout. This operation should be quick as it only parses the XML so not sure bumping will help as it might be just hanging somewhere.
steveisok commentedon Jan 11, 2022
Since this appears to be flaky, can we bump the timeout and see if that helps?
premun commentedon Jan 12, 2022
The new XHarness with increased timeout is here: #63680
premun commentedon Jan 12, 2022
It's merged so let's give it a few days for it to propagate to all PR branches and let's see if we see this still
MaximLipnin commentedon Jan 19, 2022
It still happens after increasing the timeout:
https://helixre8s23ayyeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-heads-main-63cfd7f85b5c41d793/System.Resources.Writer.Tests/1/console.92f42230.log?sv=2019-07-07&se=2022-02-08T08%3A22%3A15Z&sr=c&sp=rl&sig=BPvUj6gfuaH6QiGS4AQl7mrVa%2FWz9udnvIKLxCTAADY%3D
premun commentedon Jan 19, 2022
Then I propose reverting the timeout and just ignoring the fact it times out since
PlistBuddystill returns what we need. If it does not, we will fail laterpremun commentedon Jan 19, 2022
@MaximLipnin do you know how to get logs from more repros easily? I am wondering if it only happens when getting
CFBundleIdentifierMaximLipnin commentedon Jan 19, 2022
Maybe something like this?
premun commentedon Jan 28, 2022
@MaximLipnin it has been a couple of days. Are we seeing any more of these issues?
MaximLipnin commentedon Jan 28, 2022
@premun Seems it's gone, at least, I dont see it anymore
MaximLipnin commentedon Jan 28, 2022
I'm closing it as resolved, thanks to @premun for addressing.
Move MacCatalyst to runtime-extra-platforms pipeline (#64452)