Skip to content

fix(devtools): run the corpus and the required check at the pool width - #4682

Merged
Sinity merged 4 commits into
masterfrom
lane/corpus-width
Sep 5, 2026
Merged

Sinity merged 4 commits into
masterfrom
lane/corpus-width

Conversation

@Sinity

@Sinity Sinity commented Sep 5, 2026

Copy link
Copy Markdown
Owner

Summary

The corpus and the runner's affected tier run at one fixed width of eight workers, sized to the pytest pool's 12 GiB cgroup ceiling. The descriptor no longer overrides the width, the pytest slot launch timeout is 7,200 s, and the selection gate reads the width from the constant.

Problem

CORPUS_MAX_WORKERS = 2 made a full corpus run take about seven hours (measured 2026-09-05: 5% after 40 minutes), and the runner's affected tier could not finish a stale-graph run inside its 3,600 s slot timeout, so every pull request's required verify check timed out (runs 3669329 and 600822, both at 38%).

Solution

Width 8 (47 minutes for 20,860 tests, measured uncontended 2026-09-03), one constant for both tiers, timeout 7,200 s.

Verification

  • devtools verify --quick: all gates ok, including testmon-selection reporting workers=8.
  • Descriptor contract and slot tests updated for the new timeout.

Residual risk

Bead polylogue-m3018 asked for a modest width after eight workers plus lane-side pytest runs drove oomd kills on 2026-09-04; lane-side pytest is now refused (#4540, #4677) and the pool ceiling bounds the run. Browser responsiveness during a corpus run is the receipt m3018 still wants.

Beads: polylogue-m3018

🤖 Generated with Claude Code

https://claude.ai/code/session_01DNGJ3awfNrsLaMdHgQZvid

Sinity and others added 2 commits September 5, 2026 12:51
Two workers made a full corpus run take about seven hours, and the
runner's affected tier could not finish a stale-graph run inside its
3,600 s slot timeout, so no pull request could pass its required check.
The width is one fixed constant sized to the pytest pool ceiling; the
descriptor no longer overrides it, and the slot timeout is 7,200 s.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01DNGJ3awfNrsLaMdHgQZvid
@Sinity
Sinity enabled auto-merge (squash) September 5, 2026 10:57
@coderabbitai

coderabbitai Bot commented Sep 5, 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: Team

Run ID: 2c22cb0b-9ca5-4834-af09-6f3dac9f7bdb


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 5, 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-05T13:31:51.549842Z 3f1249b New commits
ℹ️ 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.

@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: 5862467f1d

ℹ️ 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".

Comment thread .agentctl/project.toml Resolved
…ist group suffix

--dist=loadgroup reports path::test@group; pytest cannot collect that
literal, so every rerun after a red corpus errored before running a test.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01DNGJ3awfNrsLaMdHgQZvid

@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: 09782f89e6

ℹ️ 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".

Comment thread devtools/verify.py Resolved
Comment thread devtools/pytest_slot.py Resolved
Comment thread devtools/verify_testmon_selection.py Resolved
…checkout graph

A test that spawns devtools test (the clock-guard collection tests) opened
the outer run's testmon datafile with its own session and reset it: the
2026-09-05 corpus run ended with a one-test graph. A nested run now loads
pytest with testmon disabled.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01DNGJ3awfNrsLaMdHgQZvid

@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: 3f1249b5d2

ℹ️ 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".

Comment thread devtools/verify.py Resolved
Comment thread devtools/run_tests.py Resolved
@Sinity
Sinity merged commit ffca452 into master Sep 5, 2026
4 checks passed
@Sinity
Sinity deleted the lane/corpus-width branch September 5, 2026 15:23
Sinity added a commit that referenced this pull request Sep 5, 2026
)

## Summary
Fixes one cluster of the 2026-09-05 master corpus reds (106 failed /
20,455 passed): status and readiness readers, local-time tests, the
twelve-verb command surface, and the descriptor contract.

- fix(daemon): keep archive FTS readiness on bounded probes
- fix(cli): keep status readable on a skewed tier and a live daemon
- fix(devtools): keep the root command surface at twelve verbs
- test: assert insight readiness by convergence and counts
- test: pin the local timezone without an ambient TZDIR
- test: prove the descriptor against the agentctl parser
- test: budget the delete-authority client for a real 513-session route
- test: compare a restored zone offset as a timedelta

## Verification
The lane's focused runs on the 25 listed tests were green before the
interruption; `devtools verify --quick` green before push. This PR was
published by the coordinator from the lane's clean checkpoint after the
agent hit its quota; the exact final focused result line was not
captured.

## Residual risk
Tests whose failure is caused by the corpus width change (#4682,
descriptor argv) were updated to the merged behaviour.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01DNGJ3awfNrsLaMdHgQZvid

---------

Co-authored-by: Claude Fable 5.1 <[email protected]>
Sinity added a commit that referenced this pull request Sep 5, 2026
…rsor probe (#4695)

## Summary
Four tests encoded behaviour changed by merged PRs: the queue runner's
name in the slot refusal (#4684), the descriptor's `verify` exec without
a width override (#4682), and the cursor-store stub's signature after
the read-only spool probe (#4683). The descriptor's `verify_all` entry
still pinned `POLYLOGUE_PYTEST_WORKERS=2`; it now follows the same
constant as the affected tier.

## Verification
`devtools test tests/unit/devtools/test_verify.py
tests/unit/devtools/test_dev_loop_service.py
tests/unit/devtools/test_pytest_slot.py
tests/unit/daemon/test_daemon_cli.py::test_spool_pending_check_ignores_terminal_cursor_states`
green (result line in the pre-push run). From the 2026-09-05 corpus on
754553b (85 failed / 20,522 passed).

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01DNGJ3awfNrsLaMdHgQZvid

Co-authored-by: Claude Fable 5.1 <[email protected]>
@Sinity

Sinity commented Sep 28, 2026

Copy link
Copy Markdown
Owner Author

Codex review threads on this PR whose cited code is gone (checked against master at 23f91a5):

Resolving these threads.

@Sinity

Sinity commented Sep 29, 2026

Copy link
Copy Markdown
Owner Author

Closing out open Codex review threads on this PR (evidence checked against master at 64a9bd0):

Resolving every thread listed; confirmed defects are fixed under the named bead.

@Sinity

Sinity commented Sep 29, 2026

Copy link
Copy Markdown
Owner Author

Closing out open Codex review threads on this PR (evidence checked against master at bf68918):

  • P2 devtools/verify.py:332: Fixed on master (checked at bf68918): Rerun handling moved to devtools/pytest_rerun.py, which converts report node IDs to selectors in one place (devtools/pytest_rerun.py:67, :236) and records flaky tests with both outcomes in the canonical report (devtools/pytest_rerun.py:11-12).

Resolving every thread listed; confirmed defects are fixed under the named bead.

@Sinity

Sinity commented Sep 29, 2026

Copy link
Copy Markdown
Owner Author

Closing out open Codex review threads on this PR (evidence checked against master at c950478):

  • P1 devtools/verify.py:84: Stale: The AgentCTL descriptor no longer exports POLYLOGUE_PYTEST_WORKERS=2: [environment.values] declares only the archive root (.agentctl/project.toml:19-20), so the nightly two-worker override is gone. (checked at 64a9bd0)

Resolving every thread listed; confirmed defects are fixed under the named bead.

@Sinity

Sinity commented Sep 29, 2026

Copy link
Copy Markdown
Owner Author

Closing out open Codex review threads on this PR (evidence checked against master at c950478):

  • P1 .agentctl/project.toml:39: Fixed on master (checked at 64a9bd0): The descriptor command (.agentctl/project.toml:83) and the contract assertion (tests/unit/devtools/test_verify.py:626) agree on devtools verify --quick; no test still requires the old env POLYLOGUE_PYTEST_WORKERS=2 form.

Resolving every thread listed; confirmed defects are fixed under the named bead.

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