Skip to content

CI failure on 8.0: MSBuild error in <XHarnessAppBundleToTest> because of a missing directory #130860

Closed

Description

@svick

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1511237&view=logs&j=1a7f2d0f-403f-5f1a-afbb-20466d7ac54e
Build error leg or test failing: Build / ios-arm64 Release AllSubsets_NativeAOT / Send to Helix
Pull request: N/A

Error Message

DO NOT USE JSON BELOW IF THIS IS A BUILD BREAK otherwise build analysis will allow pull requests to merge that break the build worse. For a build break, do not use this issue form. Make a regular new issue.

Fill the error message using step by step known issues guidance.

{
  "ErrorPattern": "sendtohelix-mobile\\.targets\\(\\d+,\\d+\\): error MSB4184: The expression \"\\[System\\.IO\\.Directory\\]::GetDirectories\\(.*?artifacts/helix/tests/?, \\*\\.app, System\\.IO\\.SearchOption\\.AllDirectories\\)\" cannot be evaluated\\. Could not find a part of the path '.*?artifacts/helix/tests'",
  "BuildRetry": false,
  "ExcludeConsoleLog": true
}
/Users/runner/work/1/s/src/libraries/sendtohelix-mobile.targets(87,9): error MSB4184: The expression "[System.IO.Directory]::GetDirectories(/Users/runner/work/1/s/artifacts/helix/tests/, *.app, System.IO.SearchOption.AllDirectories)" cannot be evaluated. Could not find a part of the path '/Users/runner/work/1/s/artifacts/helix/tests'. [/Users/runner/work/1/s/src/libraries/sendtohelixhelp.proj]

The line at issue in src/libraries/sendtohelix-mobile.targets seems to be:

      <XHarnessAppBundleToTest Condition="Exists('$(TestArchiveTestsRoot)')"
        Include="$([System.IO.Directory]::GetDirectories('$(TestArchiveTestsRoot)', '*.app', System.IO.SearchOption.AllDirectories))">

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1511237
Error message validated: [sendtohelix-mobile\.targets\(\d+,\d+\): error MSB4184: The expression "\[System\.IO\.Directory\]::GetDirectories\(.*?artifacts/helix/tests/?, \*\.app, System\.IO\.SearchOption\.AllDirectories\)" cannot be evaluated\. Could not find a part of the path '.*?artifacts/helix/tests']
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 7/16/2026 9:54:50 AM UTC

Report

Build Repository Step Name Console log Pull Request
1549457 dotnet/runtime Send to Helix Log #132194
1548978 dotnet/runtime Send to Helix Log #132160
1548825 dotnet/runtime Send to Helix Log #132152
1548190 dotnet/runtime Send to Helix Log
1548239 dotnet/runtime Send to Helix Log #132129
1548187 dotnet/runtime Send to Helix Log
1547925 dotnet/runtime Send to Helix Log #132119
1546713 dotnet/runtime Send to Helix Log
1546722 dotnet/runtime Send to Helix Log
1546640 dotnet/runtime Send to Helix Log
1546636 dotnet/runtime Send to Helix Log
1546374 dotnet/runtime Send to Helix Log
1546380 dotnet/runtime Send to Helix Log #131941
1546377 dotnet/runtime Send to Helix Log
1546360 dotnet/runtime Send to Helix Log
1546363 dotnet/runtime Send to Helix Log
1545214 dotnet/runtime Send to Helix Log #131847
1542613 dotnet/runtime Send to Helix Log
1542620 dotnet/runtime Send to Helix Log #131941
1542610 dotnet/runtime Send to Helix Log
1541212 dotnet/runtime Send to Helix Log #131888
1540328 dotnet/runtime Send to Helix Log #131847
1540329 dotnet/runtime Send to Helix Log #131848
1535725 dotnet/runtime Send to Helix Log #131691
1535743 dotnet/runtime Send to Helix Log #131692
3035806 dotnet-runtime Send to Helix Log #63382
1534582 dotnet/runtime Send to Helix Log
1534579 dotnet/runtime Send to Helix Log
3035181 dotnet-runtime Send to Helix Log #63382
1532536 dotnet/runtime Send to Helix Log #131126
1529749 dotnet/runtime Send to Helix Log
1529746 dotnet/runtime Send to Helix Log
1527539 dotnet/runtime Send to Helix Log #131409
1521355 dotnet/runtime Send to Helix Log
1521562 dotnet/runtime Send to Helix Log #131214
1521102 dotnet/runtime Send to Helix Log
1521269 dotnet/runtime Send to Helix Log
1521099 dotnet/runtime Send to Helix Log
1519700 dotnet/runtime Send to Helix Log
1519953 dotnet/runtime Send to Helix Log
1519926 dotnet/runtime Send to Helix Log
1519781 dotnet/runtime Send to Helix Log #131148
1519697 dotnet/runtime Send to Helix Log
1519006 dotnet/runtime Send to Helix Log #131126
1517802 dotnet/runtime Send to Helix Log #131078
1517726 dotnet/runtime Send to Helix Log #131077
1517648 dotnet/runtime Send to Helix Log #131074
1517098 dotnet/runtime Send to Helix Log #130787
1515072 dotnet/runtime Send to Helix Log
3024988 dotnet-runtime Send to Helix Log #62989
1515069 dotnet/runtime Send to Helix Log
1514458 dotnet/runtime Send to Helix Log
1514464 dotnet/runtime Send to Helix Log #130862
1514455 dotnet/runtime Send to Helix Log
1513554 dotnet/runtime Send to Helix Log #130724
1513383 dotnet/runtime Send to Helix Log #130915
1512245 dotnet/runtime Send to Helix Log
1512242 dotnet/runtime Send to Helix Log
1511237 dotnet/runtime Send to Helix Log

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
6 21 59

Activity

  1. added
    blocking-clean-ci
    Known Build Error
    on Jul 16, 2026
  2. added
    untriaged
    on Jul 16, 2026
  3. changed the title [-]CI failure: MSBuild error in <XHarnessAppBundleToTest> because of a missing directory[/-] [+]CI failure on 8.0: MSBuild error in <XHarnessAppBundleToTest> because of a missing directory[/+] on Jul 16, 2026
  4. dotnet-policy-service commented on Jul 16, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @dotnet/area-infrastructure-libraries
    See info in area-owners.md if you want to be subscribed.

  5. svick commented on Jul 17, 2026

    @svick
    MemberAuthor

    cc: @davidnguyen-tech (I believe you're responsible for xharness now)

  6. davidnguyen-tech commented on Jul 20, 2026

    @davidnguyen-tech
    Member

    cc: @davidnguyen-tech (I believe you're responsible for xharness now)

    Looking into it. Thanks for creating the issue :)

  7. davidnguyen-tech commented on Jul 22, 2026

    @davidnguyen-tech
    Member

    This was triggered by #130473, which intentionally marked the only two tests selected by the .NET 8
    iOS NativeAOT device leg as IgnoreForCI:

    • iOS.Device.Aot.Test
    • iOS.Device.ExportManagedSymbols.Test

    The CI leg remained scheduled, so it stopped producing artifacts/helix/tests. The older .NET 8
    sendtohelix-mobile.targets assumes that directory exists and calls Directory.GetDirectories, which
    causes the reported MSB4184 before anything is sent to Helix.

    We considered:

    • Backporting the Exists(...) guards from main: this prevents MSB4184, but the next check still fails
      with No helix work items because there are no tests to submit.
    • Allowing empty Helix submissions: this changes shared infrastructure and could hide real payload
      regressions in other legs.
    • Removing the whole iOS NativeAOT leg: this would also remove useful build coverage.
    • Detecting payloads dynamically before submission: more future-proof, but a larger servicing change
      that duplicates part of the Helix payload-discovery logic.

    The draft fix keeps the iOS NativeAOT build and skips only its empty Send to Helix step. tvOS remains
    unchanged. The pipeline comments explicitly call out that the iOS exclusion must be removed if device
    tests are re-enabled:

    #131209

    Note

    This comment was drafted with GitHub Copilot.

  8. added a commit that references this issue on Aug 12, 2026
    acfd1e4
  9. akoeplinger commented on Aug 12, 2026

    @akoeplinger
    Member

    Fixed by #131209

  10. removed
    untriaged
    on Aug 12, 2026
  11. locked and limited conversation to collaborators on Sep 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Known Build Errorarea-Infrastructure-librariesblocking-clean-ci

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions