Skip to content

Conversation

@jkotas
Copy link
Member

@jkotas jkotas commented Sep 19, 2025

No description provided.

Copilot AI review requested due to automatic review settings September 19, 2025 04:26
@github-actions github-actions bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Sep 19, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR centralizes and consolidates vararg test exclusions across the test suite. Previously, vararg-related test exclusions were scattered throughout different platform-specific sections of the issues.targets file with inconsistent conditions and duplicate entries.

Key changes:

  • Consolidates all vararg test exclusions into a single section with unified conditions
  • Updates conditional logic to exclude tests on non-Windows platforms OR when using NativeAOT
  • Removes ARM-specific test project files that are no longer needed
  • Updates platform detection logic to allow varargs on ARM Windows platforms

Reviewed Changes

Copilot reviewed 20 out of 20 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/tests/issues.targets Consolidates scattered vararg exclusions into single section with unified conditions
src/tests/JIT/Directed/arglist/vararg_TargetUnix.csproj Removes Unix-specific vararg test project (entire file deleted)
src/tests/JIT/Directed/arglist/vararg_TargetWindows.csproj Updates comment from "arglist IL opcode" to "varargs"
src/tests/JIT/Directed/PREFIX//arglist_Target_ARM_.ilproj Removes ARM-specific test project files (multiple files deleted)
src/tests/JIT/Directed/PREFIX/*/arglist_Target_BIT_.ilproj Updates comments and removes ARM exclusion conditions
src/tests/JIT/Directed/PREFIX/*/arglistARM.il Removes ARM-specific IL test files (multiple files deleted)
src/libraries/Common/tests/TestUtilities/System/PlatformDetection.cs Updates IsArgIteratorSupported to allow varargs on ARM Windows

@jkotas
Copy link
Member Author

jkotas commented Sep 19, 2025

/azp run runtime-nativeaot-outerloop

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jkotas
Copy link
Member Author

jkotas commented Sep 19, 2025

/azp run runtime-coreclr outerloop

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jkotas
Copy link
Member Author

jkotas commented Oct 21, 2025

/azp run runtime-nativeaot-outerloop

@jkotas jkotas requested a review from janvorli October 21, 2025 05:38
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jkotas
Copy link
Member Author

jkotas commented Oct 21, 2025

@janvorli Could you please take a look?

I have replaced the piecemeal conditions to disable vararg tests with unform dynamic check. It is self-documenting and allows us to enable/disable vararg testing as needed. I think we should adopt the same style for other features that are not universally available and that number of tests depend on, like exception interop discussed in the other PR.

@jkotas
Copy link
Member Author

jkotas commented Oct 22, 2025

/azp run runtime-nativeaot-outerloop

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@dotnet dotnet deleted a comment from azure-pipelines bot Oct 22, 2025
@jkotas
Copy link
Member Author

jkotas commented Oct 22, 2025

/azp run runtime-nativeaot-outerloop

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jkotas
Copy link
Member Author

jkotas commented Oct 22, 2025

/azp run runtime-nativeaot-outerloop

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jkotas
Copy link
Member Author

jkotas commented Oct 23, 2025

/azp run runtime-nativeaot-outerloop

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jkotas
Copy link
Member Author

jkotas commented Oct 23, 2025

/azp run runtime-coreclr outerloop

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jkotas
Copy link
Member Author

jkotas commented Oct 23, 2025

/azp run runtime-coreclr outerloop

@jkotas
Copy link
Member Author

jkotas commented Oct 23, 2025

/azp run runtime-nativeaot-outerloop

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jkotas
Copy link
Member Author

jkotas commented Oct 23, 2025

/azp run runtime-coreclr outerloop

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jkotas
Copy link
Member Author

jkotas commented Oct 23, 2025

/azp run runtime-nativeaot-outerloop

@jkotas
Copy link
Member Author

jkotas commented Oct 23, 2025

/azp run runtime-coreclr outerloop

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jkotas
Copy link
Member Author

jkotas commented Oct 23, 2025

/ba-g infrastructure timeouts

@jkotas jkotas merged commit 1e09fc1 into dotnet:main Oct 23, 2025
126 of 150 checks passed
@jkotas jkotas deleted the vararg-tests branch October 23, 2025 20:47
jozkee pushed a commit that referenced this pull request Nov 13, 2025
…host removal (#121569)

Windows removed localhost support in recent updates, causing
`ERROR_NETNAME_DELETED` (0x40/64) when accessing UNC paths like
`\\LOCALHOST\share\path`. This triggers a `Debug.Assert` failure in
`FillAttributeInfo` because the error code isn't recognized as a path
unreachable condition.

### Changes

- **Interop.Errors.cs**: Added `ERROR_NETNAME_DELETED = 0x40` constant
- **FileSystem.Attributes.Windows.cs**: Added `ERROR_NETNAME_DELETED` to
`IsPathUnreachableError` pattern match

This aligns handling with other network path errors
(`ERROR_BAD_NETPATH`, `ERROR_BAD_NET_NAME`, etc.) already in the
unreachable path list.

### Context

```csharp
if (!IsPathUnreachableError(errorCode))
{
    Debug.Assert(errorCode == ERROR_ACCESS_DENIED || errorCode == ERROR_SHARING_VIOLATION || errorCode == ERROR_SEM_TIMEOUT,
        $"Unexpected error code getting attributes {errorCode} from path {path}");
    // ...
}
```

Previously, `ERROR_NETNAME_DELETED` fell through to the assertion. Now
it's handled as unreachable.

Fixes #120380 (possibly same root cause)

<!-- START COPILOT CODING AGENT SUFFIX -->



<details>

<summary>Original prompt</summary>


----

*This section details on the original issue you should resolve*

<issue_title>System.IO.Tests fails with "Unexpected error code getting
attributes 64 from path \\LOCALHOST"</issue_title>
<issue_description>## Build Information
Build:
https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1181840
Build error leg or test failing:
System.IO.FileSystem.Tests.WorkItemExecution
Pull request: #119878
<!-- Error message template  -->
## Error Message

Fill the error message using [step by step known issues
guidance](https://github.com/dotnet/arcade/blob/main/Documentation/Projects/Build%20Analysis/KnownIssueJsonStepByStep.md).

<!-- Use ErrorMessage for String.Contains matches. Use ErrorPattern for
regex matches (single line/no backtracking). Set BuildRetry to `true` to
retry builds with this error. Set ExcludeConsoleLog to `true` to skip
helix logs analysis. -->

```json
{
  "ErrorMessage": "Unexpected error code getting attributes 64 from path \\\\LOCALHOST",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}
```


<!-- Known issue validation start -->
 ### Known issue validation
**Build: 🔎**
https://dev.azure.com/dnceng-public/public/_build/results?buildId=1181840
**Error message validated:** `[Unexpected error code getting attributes
64 from path \LOCALHOST`]
**Result validation:** ❌ Known issue did not match with the provided
build.
**Validation performed at:** 10/22/2025 2:11:40 PM UTC
<!-- Known issue validation end -->
<!-- Known issue validation start -->
 ### Known issue validation
**Build: 🔎**
https://dev.azure.com/dnceng-public/public/_build/results?buildId=1181840
**Error message validated:** `[Unexpected error code getting attributes
64 from path \\LOCALHOST`]
**Result validation:** ✅ Known issue matched with the
provided build.
**Validation performed at:** 10/22/2025 2:17:17 PM UTC
<!-- Known issue validation end -->
<!--Known issue error report start -->

### Report

|Build|Definition|Test|Pull Request|
|---|---|---|---|

|[1200811](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1200811)|dotnet/runtime|[System.IO.FileSystem.Tests.WorkItemExecution](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1200811&view=ms.vss-test-web.build-test-results-tab&runId=33235252&resultId=172656)||

|[1200758](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1200758)|dotnet/runtime|[System.IO.FileSystem.Tests.WorkItemExecution](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1200758&view=ms.vss-test-web.build-test-results-tab&runId=33234124&resultId=173264)|dotnet/runtime#121524|

|[1200347](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1200347)|dotnet/runtime|[System.IO.FileSystem.Tests.WorkItemExecution](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1200347&view=ms.vss-test-web.build-test-results-tab&runId=33216846&resultId=173285)|dotnet/runtime#121524|

|[1200222](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1200222)|dotnet/runtime|[System.IO.FileSystem.Tests.WorkItemExecution](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1200222&view=ms.vss-test-web.build-test-results-tab&runId=33212640&resultId=172656)||

|[1199457](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1199457)|dotnet/runtime|[System.IO.FileSystem.Tests.WorkItemExecution](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1199457&view=ms.vss-test-web.build-test-results-tab&runId=33191298&resultId=172173)||

|[1199150](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1199150)|dotnet/runtime|[System.IO.FileSystem.Tests.WorkItemExecution](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1199150&view=ms.vss-test-web.build-test-results-tab&runId=33185540&resultId=172656)||

|[1198822](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1198822)|dotnet/runtime|[System.IO.FileSystem.Tests.WorkItemExecution](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1198822&view=ms.vss-test-web.build-test-results-tab&runId=33177786&resultId=172656)||

|[1197942](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1197942)|dotnet/runtime|[System.IO.FileSystem.Tests.WorkItemExecution](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1197942&view=ms.vss-test-web.build-test-results-tab&runId=33151894&resultId=173290)||

|[1197801](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1197801)|dotnet/runtime|[System.IO.FileSystem.Tests.WorkItemExecution](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1197801&view=ms.vss-test-web.build-test-results-tab&runId=33149392&resultId=170860)||

|[1197409](https://dev.azure.com/dnceng-public/public/_build/results?buildId=1197409)|dotnet/runtime|[System.IO.FileSys...

</details>

- Fixes #120974

<!-- START COPILOT CODING AGENT TIPS -->
---

💬 We'd love your input! Share your thoughts on Copilot coding agent in
our [2 minute survey](https://gh.io/copilot-coding-agent-survey).

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: jkotas <6668460+jkotas@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants