Linux arm64 single-file CI failures caused by inconsistent .NET 11 host package restore

Đang mở
#6,213 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
azure, csharp
Lĩnh vực
ci-cd, devtools, testing

Hướng nghiên cứu

Start by comparing the CI logs and binlogs for builds 1674595 and 1674668, then inspect NuGet.config and the single-file test targets that restore Microsoft.NETCore.App.Host.linux-arm64. Trace how package source selection affects the host package and the DBI identity used by the DbgShim and SOS tests. Done means Linux arm64 .NET 11 single-file tests use a host and test runtime components from a consistent build, with CI confirming the fix.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Description

Linux arm64 CI is failing for .NET 11 single-file targets in:

  • Microsoft.Diagnostics.DbgShimTests.CreateDebuggingInterfaceFromVersion3LoadPolicy
  • SOS.Tests.ClrStackFrameCountTests.ClrStack_ICorDebugFrameCount, running clrstack -i

The passing and failing builds restored different contents for Microsoft.NETCore.App.Host.linux-arm64, despite requesting the same 11.0.0 version.

Evidence

Build Queued, UTC Host package source
1674595, Linux arm64 passing November 11, 03:06 darc-pub-dotnet-dotnet-a586537b-1
1674668, first observed failure November 11, 05:08 dotnet-public

Both restored Microsoft.NETCore.App.Runtime.linux-arm64 11.0.0 from the pinned Darc feed. The host package content hashes differ between builds.

The binlogs confirm that OverrideTestingVersions executes, ResolveAppHosts requests exactly [11.0.0], and single-file publishing consumes the restored host. The override is not being skipped. However, NuGet.config permits both feeds without package source mapping, so the version constraint does not identify a unique build.

The failing single-file target requests DBI build ID 53f2b051911c0e4fdc667d2615853c36052740f9, which does not match the supplied DBI. The DbgShim provider rejects that mismatch. SOS records the same requested DBI identity and reports:

clrstack -i is unsupported on this target.
The ICorDebug interface cannot be constructed.

No repository SDK/runtime pin changed between these builds. The installed runtime remains pinned to 11.0.0-rtm.26514.118.

Expected behavior

Single-file hosts and the runtime/DAC/DBI supplied for testing should come from a consistent runtime build. Restore should enforce package provenance or content identity, rather than relying solely on the shared 11.0.0 version.

Verified by CI log, binlog, and package inspection; no local execution repro. The exact reason restore selected different feeds, and the precise SOS activation failure, remain unconfirmed.

Ngôn ngữ chính
C++
Star
1.3k
Fork
407
Merge trung bình
21 giờ 5 phút
Pull request đã merge (30 ngày)
78

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

  • Không có Dockerfile hay tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của dotnet/diagnostics

Tất cả issue của dotnet/diagnostics

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.