Skip to content

fix(runtime): Integrate quick test sizing and Steam GBM isolation - #72

Merged
Sinity merged 1 commit into
masterfrom
fix/integrate-quick-slice-steam
Sep 25, 2026
Merged

Sinity merged 1 commit into
masterfrom
fix/integrate-quick-slice-steam

Conversation

@Sinity

@Sinity Sinity commented Sep 25, 2026

Copy link
Copy Markdown
Owner

Summary

Carry the remaining quick pytest sizing and Steam GBM isolation changes from fix/pytest-quick-slice-sizing onto current master. The catalog and service pool commits from that branch already landed separately.

Problem

The quick pytest slice has a 5G shared MemoryHigh while 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's GBM_BACKEND, which requests an NVIDIA backend unavailable inside Steam's pressure-vessel runtime.

Solution

Set the quick slice to 9G MemoryHigh and 10G MemoryMax, and admit three focused jobs based on the branch's measured peak. Unset GBM_BACKEND in Steam's wrapper profile while leaving the desktop setting intact.

Verification

  • nix-instantiate --parse on all three changed Nix files: passed.
  • nixfmt --check on 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 contains unset 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.

@coderabbitai

coderabbitai Bot commented Sep 25, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: 0d4aef29-1e27-4d88-a317-77b277000a6c


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-25T18:50:41.056102Z 9cc80ee PR opened
🔒 Security Review ✅ Completed 2026-09-25T18:51:00.595491Z 9cc80ee PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Sinity
Sinity merged commit 4354cc8 into master Sep 25, 2026
1 check passed
@Sinity
Sinity deleted the fix/integrate-quick-slice-steam branch September 25, 2026 18:46

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant