Repository navigation
feat(windows): enforce committed memory process and CPU budgets - #424
Conversation
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
8d8044f to
6d1dee9
Compare
34d066a to
fcd18f9
Compare
1c0df29 to
98b21ad
Compare
440fce3 to
c494815
Compare
c494815 to
8750b96
Compare
0304784 to
c4472a7
Compare
6845e4e to
87eabfe
Compare
87eabfe to
171bf79
Compare
|
@codex review Please review the current head, 4fa37b5, against its updated #423 base. Focus on nested-job lifetime and inheritance, committed-memory/process accounting, suspended payload CPU-job assignment, setup failure behavior, and native test coverage. The new aggregate-memory fixture proves an individual allocation succeeds before a descendant holds memory and is refused while their combined allocation exceeds the job budget. CPU hard-cap installation is not presented as a behavioral CPU measurement. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Hooray! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
4fa37b5 to
fc3cd3f
Compare
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
1b29df6 to
6ba7251
Compare
6ba7251 to
3bf36b6
Compare
Windows restricted shell/exec requests enforce aggregate committed private memory, process and payload CPU budgets through owned kernel jobs. The trusted helper installs and reads back the memory/process limits; the CPU hard cap applies before the payload resumes. Cancellation, output and durable ownership stay in use. No administrator setup or VM is required.
Windows units are explicit: committed private memory excludes filesystem cache, process count includes the helper but excludes threads, and CPU is a percentage of all logical processors with the helper excluded. CPU installation is covered by API/readback and error handling, not a behavioral CPU measurement. Default Windows Auto activation follows in #425.
Rebased onto main
d3db2b4c. CI at fc3cd3f6 passed Linux checks/smoke, macOS, Windows teardown and wasm. The native Windows job passed memory/process/descendant checks, then two transport probes hit their 30-second fixture watchdog. Production permits 120 seconds for cold preparation; recovery/cancellation startup fixtures already observe for 150 seconds.23ce8879aligns the other initial-startup observers with that allowance and reports admission/status/process/output-length timing. It preserves payload assertions and the separate post-ready cancellation limit; it does not change production timeouts. The stalled phase is not established by the old timeout alone.Validation of this fixture change: Windows cross-target compilation passed;
cargo xtask check --base fc3cd3f6passed fmt, lint, strict Clippy and affected qq tests. Final diff review found no removed assertions. Native CI passed at23ce8879, including all 24 Windows transport cases, kernel resource/descendant checks, Linux checks/smoke, macOS, teardown and wasm. Codex completed a clean review of this same commit. The passing run does not identify the earlier stalled phase; progress diagnostics remain available on future failures.