Remove bundled @github/copilot from release tarball
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 70/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- shell
- Lĩnh vực
- build-system, release
Hướng nghiên cứu
Đọc scripts/create_code_editor_tarball.sh hoặc script tạo tarball tương đương và theo dõi cách node_modules được tập hợp. Chạy quy trình đóng gói, xác minh rằng tarball kết quả không chứa các gói @github/copilot và xác nhận rằng kích thước artifact không cần thiết đã được loại bỏ.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
The CE 1.2.0-rc.1 tarball includes @github/copilot* packages in node_modules/ which add 237 MB to the release artifact:
152M node_modules/@github/copilot-linuxmusl-x64/
82M node_modules/@github/copilot/
3.0M node_modules/@github/copilot-sdk/
This was introduced by VS Code 1.119.x's built-in Copilot integration (ref: https://code.visualstudio.com/updates/v1_116).
Since SageMaker Code Editor removes all Copilot-related features for compliance/branding/legal reasons, these dependencies should also be excluded from the tarball.
Impact
- Conda package size increased from ~50 MB (CE 1.0.13) to ~150 MB (CE 1.2.0-rc.1)
- The
@github/copilot*packages account for nearly all of the increase - Unnecessary binary bloat shipped to every SMD customer
Proposed Fix
Exclude @github/copilot* from node_modules/ in the tarball creation script (scripts/create_code_editor_tarball.sh or equivalent).
rm -rf vscode-reh-web-linux-x64/node_modules/@github
Workaround
The conda-forge feedstock can strip it during packaging in build.sh as an interim fix.
- Ngôn ngữ chính
- Shell
- Star
- 26
- Fork
- 24
- Merge trung bình
- 10 phút
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- 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 aws/code-editor
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 52/100
aws/code-editor#301 ·
-
Extension persistence logic breaks when extension versions are removed from SMD imageCó thể làm lại được @pilgd-aws đã nhận 111 ngày trước và không có pull request nào đang mở. Đang mở
aws/code-editor#248 · 1 bình luận · 1 người được giao ·
Tất cả issue của aws/code-editor
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
quickemu-project/quickemu#1960 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
-
review-drift
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
oxidecomputer/hansei#14 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
sclorg/s2i-ruby-container#656 ·
-
[BUG] `mo clean` deletes DiagnosticReports directory and breaks crash reportingCó thể đã có người làm @md786-dotcom đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày