github / github/copilot-sdk

Feature Request: discoverable and configurable execution environment capacity

Đang mở
#2,684 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Java
Star
10.5k
Fork
1.5k
Merge trung bình
1 ngày 14 giờ
Pull request đã merge (30 ngày)
129

Mô tả

## Problem

Sessions that run in a hosted environment receive a fixed allocation of CPU, memory, and disk. That allocation is not visible before the session starts and is not configurable. For a large repository, the first indication that capacity is insufficient is a failure partway through dependency installation, a build, or a test run — after the setup time has already been spent.

Large repositories, native application builds, and multi-platform validation all need substantially more capacity than a small allocation provides. There is also no documented pattern for delegating validation that the hosted environment cannot perform to external CI and consuming the result.

## What is missing

- Effective CPU, memory, disk, operating system, and timeout values are not reported to the caller.
- There is no way to select a larger or differently configured environment where one is available.
- Caching behavior across sessions is undocumented.
- There is no documented pattern for delegating unsupported platform validation to external CI.

## Proposed behavior

- The session reports its effective environment — operating system, CPU count, memory, available disk, timeout, and cache configuration — before work begins.
- Repository or organization owners can select from approved environment profiles.
- Documented guidance exists for delegating validation that cannot run in the hosted environment to external CI, and for the session to consume those results.
- Capacity-related failures are identified as such, rather than surfacing as generic build or test errors.

## Example scenario

A caller starts a session against a large repository. The session reports its capacity up front, so the caller knows immediately whether a full build is viable or whether validation should be delegated to external CI.

## Acceptance criteria

- Effective environment capacity is programmatically discoverable.
- At least one mechanism exists to request a larger environment where supported.
- Capacity exhaustion produces a distinct, documented error.

## Related

- #1223 — sandbox support, which overlaps on lifecycle, providers, and resource configuration.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Không có tệp, bài kiểm thử hay điểm vào cụ thể nào được nêu. Hãy bắt đầu bằng cách lần theo vòng đời của các phiên được lưu trữ cùng với các nhà cung cấp và cấu hình tài nguyên được thảo luận trong issue liên quan #1223. Công việc được xem là hoàn tất khi các tiêu chí chấp nhận được đáp ứng: dung lượng có thể phát hiện, một cơ chế được hỗ trợ cho các môi trường lớn hơn và các lỗi về dung lượng được phân biệt và ghi chép rõ ràng.

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

Đánh giá

Công nghệ
java
Lĩnh vực
ci-cd, cloud, infrastructure
Loại issue
Tính năng
Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức độ hoạt động
Sôi nổi
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
30/100

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.