Compress runtime/modules to reduce deployment package unzipped size
还没有人认领这个 Issue。
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 25/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 技术栈
- aws, powershell
- 领域
- build-system, cloud
调研方向
首先检查 Linux PowerShell 的发布打包方式,以及模块依赖项如何包含在 deployment ZIP 中。将当前的 172 MB 构件与提议的压缩运行时或打包模块进行比较,并考虑提到的 AWS Lambda /opt 和 /tmp 路径。完成的标准是发布构件显著变小,同时模块依赖项仍然可用,并且构件验证不再受阻。
由索引模型根据 Issue 内容生成。
描述
AWS Lambda limits ZIP deployment packages to 250 MB on-disk. The Linux PowerShell release builds are ~170 MB in the current release, which takes up ~70% of that cap. (Community members' attempts at producing "slim" PowerShell containers only reduce sizes by ~30MB, which isn't a ton in broader context.)
Pure PowerShell script modules are generally quite small, but compiled CLR module assemblies or autogenerated modules (e.g. Microsoft.Graph.*, Az.*, AWS.Tools.*) can get very large.
The current architecture only allows for ~80MB of module dependencies - AWS.Tools.S3 and Microsoft.Graph.Users (with respective dependencies) breaches the 250MB cap.
Compressing the PowerShell runtime itself would:
- Free up >100MB of deployment package size (172MB vs 66 MB)
- Unblock build artifact verification (PowerShell publishes SHAs of release artifacts)
Supporting compressed module dependencies (e.g. /opt/modules-packed.zip or /opt/modules-packed/*.nupkg gets unpacked to /tmp/modules-unpacked and added to PSModulePath) could help the situation as well.
- 主要语言
- PowerShell
- 星标
- 65
- 派生
- 21
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
awslabs/aws-lambda-powershell-runtime 的其他 Issue
-
难度 5/5 一周以上 新手友好度 35/100
awslabs/aws-lambda-powershell-runtime#44 · 2 条评论 ·
-
难度 5/5 一周以上 新手友好度 30/100
-
难度 5/5 一周以上 新手友好度 20/100
awslabs/aws-lambda-powershell-runtime#30 · 3 条评论 ·
-
难度 4/5 3-5 天 新手友好度 25/100
awslabs/aws-lambda-powershell-runtime#22 · 9 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 35/100
awslabs/aws-lambda-powershell-runtime#16 · 10 条评论 ·
查看 awslabs/aws-lambda-powershell-runtime 的全部 Issue
相似的 Issue
-
typst-0.12 未关闭
难度 2/5 1-3 小时 新手友好度 68/100
commercialhaskell/stackage#8127 ·
-
bug build
难度 1/5 1 小时以内 新手友好度 91/100
facebookincubator/velox#19194 ·
-
难度 2/5 1-3 小时 新手友好度 84/100
-
agentic-workflows maintenance
难度 2/5 1-3 小时 新手友好度 85/100
-
难度 2/5 1-3 小时 新手友好度 72/100
nebari-dev/jhub-apps#742 ·