Track CI build performance optimizations

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

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

@max-charlamb đang làm issue này rồi.

Từ ngày 18/11/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

tracking

Goal

Reduce PR validation time while keeping the current test coverage and make the improvements measurable against a stable baseline.

Pre-change baseline

The baseline uses eight successful builds from eight unique PRs after the pipeline topology change in #6236 and before the optimizations in #6262 and #6264.

  • Median queue-to-finish time: 64.3 minutes
  • Average queue wait before pipeline start: 3.2 minutes (median 0.4 minutes; one 18.4-minute outlier raised the average)
  • Median pipeline timeline span: 63.6 minutes
  • Median time until all build jobs completed: 30.6 minutes
  • Direct test jobs: approximately 5-7 minutes
  • Helix jobs: approximately 20-24 minutes median, with substantial queue/runtime variance

Median Build task durations:

Platform Duration
Linux x64 9.0 min
Windows x64 10.7 min
macOS x64 17.2 min
macOS arm64 21.4 min

Gathering and publishing TestArtifacts adds approximately 1.7-3.3 minutes per build leg. This work currently also happens on the Linux arm, Linux musl arm, and Linux musl arm64 packaging-only legs, which have no downstream test jobs.

Baseline build IDs: 1688667, 1688123, 1687333, 1686411, 1686321, 1686317, 1686085, and 1685939.

Optimizations

Measurement methodology

For the after-change comparison:

  1. Select the eight most recent successful builds from eight unique PRs using the same pipeline topology.
  2. Compare the Build task, TestArtifacts gather/publish tasks, complete build jobs, and direct/Helix test jobs separately.
  3. Report median, mean, P90, minimum, and maximum durations.
  4. Report queue-to-finish and timeline span, but identify whether build execution, agent availability, or Helix was on the critical path.
  5. Compare both absolute minutes and percentage change against this baseline.

Task-level measurements are the primary success criteria because end-to-end pipeline duration can be dominated by agent and Helix queue variance.

Ngôn ngữ chính
C++
Star
1.3k
Fork
409
Merge trung bình
17 giờ 55 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.