Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Optimize Build Jobs

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

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

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
15/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
csharp
Lĩnh vực
build-system, ci-cd

Hướng nghiên cứu

Không có tệp, workflow hoặc bài kiểm thử cụ thể nào được nêu. Hãy bắt đầu bằng cách xem xét các CI build job và các issue Labs-Windows và Tooling-Submodule liên quan để lập sơ đồ build WinUI2 hiện tại kéo dài 90 phút. Hoàn thành có nghĩa là các công việc về package, test, platform, phát hiện thay đổi và smoke test được lập lịch độc lập, đồng thời cung cấp phản hồi nhanh hơn.

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

Mô tả

bug :bug: build :fire: CI/pipeline 🔬 dev loop ➰
Describe the bug

Currently our WinUI2 build is taking like 90 minutes... 😟

We should split things up to ensure we can have quicker response times on feedback for the CI.

Related issues CommunityToolkit/Labs-Windows#66, CommunityToolkit/Labs-Windows#133, CommunityToolkit/Tooling-Submodule#9, (and CommunityToolkit/Tooling-Submodule#6)

We can try and mitigate this in a few ways:

  • Split up building experiments as NuGet packages from rest of build, this does a few things:
    • Means we can have them as a separate dependent job
    • Only build them once
    • Include as artifacts to the build
    • Run tests on them independently
    • In PR, If tests pass, push to a nuget feed so they can be poked while rest of CI builds still more quickly
  • Use NuGet packages vs. ProjectReferences in the CI lets us: (ties into CommunityToolkit/Labs-Windows#133)
    • Separate tests out as an independent job for quicker results
    • Separate matrix for each runtime and platform's sample app to build independently as a separate job
      • Hopefully, reduces Memory pressure on CI for CommunityToolkit/Tooling-Submodule#9
  • Detect which things have changed (#66)
    • Only build the new-experiment job if the common/template folders or root config files have changed
    • Have a job which only builds the solution for the experiment(s) that have been modified
      • Only update NuGet package(s) of changed experiments
    • Have a job which builds/tests the infrastructure of labs vs. doing that along with other jobs (if any of it has been touched)
  • Smoke Tests - Check packages work on target frameworks (with NuGet packages and scoping above)
    • with new uno templates from dotnet new (Uno.UI & Uno.WinUI)
    • with new base UWP/WinAppSDK templates
    • Check binary package size changes (i.e. measure footprint)
Steps to reproduce
Run build...
Expected behavior

Faster feedback

Screenshots

No response

Code Platform
  • UWP
  • WinAppSDK / WinUI 3
  • Web Assembly (WASM)
  • Android
  • iOS
  • MacOS
  • Linux / GTK
Windows Build Number
  • Windows 10 1809 (Build 17763)
  • Windows 10 1903 (Build 18362)
  • Windows 10 1909 (Build 18363)
  • Windows 10 2004 (Build 19041)
  • Windows 10 20H2 (Build 19042)
  • Windows 10 21H1 (Build 19043)
  • Windows 11 21H2 (Build 22000)
  • Other (specify)
Other Windows Build number

No response

App minimum and target SDK version
  • Windows 10, version 1809 (Build 17763)
  • Windows 10, version 1903 (Build 18362)
  • Windows 10, version 1909 (Build 18363)
  • Windows 10, version 2004 (Build 19041)
  • Other (specify)
Other SDK version

No response

Visual Studio Version

No response

Visual Studio Build Number

No response

Device form factor

No response

Additional context

No response

Help us help you

Yes, but only if others can assist.

Ngôn ngữ chính
C#
Star
485
Fork
89
Merge trung bình
1 ngày 11 giờ
Pull request đã merge (30 ngày)
3

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.

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 CommunityToolkit/Labs-Windows

Tất cả issue của CommunityToolkit/Labs-Windows

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.