Optimize Build Jobs
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ả
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
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
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của CommunityToolkit/Labs-Windows
-
bug :bug:
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 80/100
CommunityToolkit/Labs-Windows#815 ·
-
bug :bug:
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
CommunityToolkit/Labs-Windows#816 ·
-
bug :bug:
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
CommunityToolkit/Labs-Windows#814 ·
-
experiment :test_tube:
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
CommunityToolkit/Labs-Windows#812 ·
-
ux :paintbrush:
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
CommunityToolkit/Labs-Windows#808 · 1 bình luận ·
Tất cả issue của CommunityToolkit/Labs-Windows
Issue tương tự
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Self-contained Windows build crashes on "Open Explorer": System.Diagnostics.Process not foundĐang mởBug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
icsharpcode/ILSpy#4277 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
k2-fsa/sherpa-onnx#4098 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug effort:S P3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
nightscout/nocturne#2633 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue hacktoberfest
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100