Repository navigation
fix(runtime): Integrate quick test sizing and Steam GBM isolation - #72
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Advanced Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9cc80ee02c
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
| pytest-quick.parallel = 2; | ||
| # Three focused jobs fit below the quick slice's 9G MemoryHigh at their | ||
| # measured per-job peak; a fourth would exceed it. | ||
| pytest-quick.parallel = 3; |
There was a problem hiding this comment.
Prevent the third quick job from overlapping the corpus
When a pytest-heavy corpus overlaps standalone or previously queued quick checks, this declaration admits all three because the heavy pool is exclusive only with agent. The corpus's documented working set is about 10.05 GiB and the quick pool was raised because two jobs already pressured the old 5 GiB ceiling, but both leaves share agentctl-pytest.slice, whose unchanged MemoryMax=14G; the healthy aggregate can therefore hit the hard ancestor cap and be OOM-killed rather than merely throttled at 12G. Make the heavy and quick pools mutually exclusive, or resize the ancestor for their admitted concurrency.
AGENTS.md reference: AGENTS.md:L95-L105
Useful? React with 👍 / 👎.
| pytest-quick.parallel = 2; | ||
| # Three focused jobs fit below the quick slice's 9G MemoryHigh at their | ||
| # measured per-job peak; a fourth would exceed it. | ||
| pytest-quick.parallel = 3; |
There was a problem hiding this comment.
Update the documented quick-pool width
After this change the generated configuration admits three pytest-quick tasks, while docs/agentctl.md:173-176 still states pytest-quick:2 as the declaration carried into /etc/sinnix/agentctl.json. Operators consulting the documented AgentCTL contract will consequently reason about the wrong admission limit, so update that contract alongside the configuration.
AGENTS.md reference: AGENTS.md:L220-L223
Useful? React with 👍 / 👎.
Summary
Carry the remaining quick pytest sizing and Steam GBM isolation changes from
fix/pytest-quick-slice-sizingonto current master. The catalog and service pool commits from that branch already landed separately.Problem
The quick pytest slice has a 5G shared
MemoryHighwhile two focused jobs can run concurrently. The branch's recorded live measurements showed sustained reclaim and oomd kills at that limit. Steam inherits the compositor'sGBM_BACKEND, which requests an NVIDIA backend unavailable inside Steam's pressure-vessel runtime.Solution
Set the quick slice to 9G
MemoryHighand 10GMemoryMax, and admit three focused jobs based on the branch's measured peak. UnsetGBM_BACKENDin Steam's wrapper profile while leaving the desktop setting intact.Verification
nix-instantiate --parseon all three changed Nix files: passed.nixfmt --checkon all three changed Nix files: passed.nix eval --json .#nixosConfigurations.sinnix-prime.config.sinnix.services.agentctl.pools.pytest-quick.parallel:3.nix eval --json .#nixosConfigurations.sinnix-prime.config.systemd.user.slices.agentctl-pytest-quick.sliceConfig.MemoryHigh:"9G".nix eval --raw .#nixosConfigurations.sinnix-prime.config.programs.steam.package.drvPath: evaluated; the derivation's structured profile containsunset GBM_BACKEND.agentctl job start sinnix check_focused --workspace /realm/worktrees/sinnix-integrate-quick-slice-steam -- .#checks.x86_64-linux.dev-agent-tools-runtime: job 1911 succeeded.git diff --check origin/master..HEAD: passed.The host has not been activated, so live Steam behavior and the new slice envelope remain to be observed after deployment.