Skip to content

feat(roadmap): restart a suspended job on a comment of a person - #3699

Merged
dan-petty merged 5 commits into
mainfrom
feat/2754-a-person-comment-restarts-a-suspended-row
Nov 5, 2026
Merged

dan-petty merged 5 commits into
mainfrom
feat/2754-a-person-comment-restarts-a-suspended-row

Conversation

@dan-petty

Copy link
Copy Markdown
Owner

A roadmap job that failed its limit of rounds does not run again until its input changes. A comment of a person was not input, so a person who answered on an item had to wait for an unrelated issue event.

Now a comment of a person with write access is new input for such a job. A poll with a failed job reads the newest 100 comments of the repository once, in one request for each lane. The read stops at the first comment of a person. A comment of a bot, of the Service account, on a pull request, or from before the last success changes nothing. A round that a webhook starts reads no comment. The cost is at most 72 requests an hour for one repository, under the budget.

Closes #2754

Change: openspec/changes/archive/2026-11-05-2754-a-person-comment-restarts-a-suspended-row/

The change reads one repository listing of comments for a round that holds a failed job, so a person's answer starts a suspended job again within the hourly request budget.
A round that may run a job that failed before reads one listing of the repository comments, newest first, up to the first comment of a person with write access. That comment time joins the input of the job, so a person's answer starts a suspended job again. A bot, the account of the process, an account with no write access, a comment before the last success and a poll with no new comment change nothing.
…ll request comments (#2754)

A round that only polls reads at most the newest 100 comments, one page, so the
read costs one request for each lane. A round that a webhook starts reads none,
as its time is already new input. A comment on a pull request is no input.
The suspension log line and step 11 of the Roadmap service setup say so in short
sentences, and the plan states the real cost and the real reason against
PyGithub.
…2754)

Split the sentences of the plan and the setup text to at most 25 words, name
the poll interval behind the 72 requests an hour, and state why PyGithub is
not used (ADR 0006).
@dan-petty dan-petty added type/feature Type feature: a new function scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them labels Nov 5, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Test results

Narrow tests: uv run devops ci test tests/roadmap/test_roadmap_suspended_row_comment.py tests/roadmap/test_roadmap_github_store.py tests/roadmap/test_roadmap_store_contract.py tests/github/test_service_limits.py gives 284 passed.

Full uv run devops ci on the final code: 24 of 25 checks pass (lint, format, typecheck, security, docs, openspec, k8s and the others). The test check gives 19130 passed, 4 failed and 1 error. coverage has no result, because it needs a green test.

The 4 failures and the error are in tests that read the state of the host. They are not in code of this change:

  • tests/crypto/test_ssh.py::test_get_ssh_key_prefix_resolution
  • tests/telemetry/test_config_env_overrides.py::test_find_project_config_path_skips_directory (a file at /tmp/config.yaml)
  • tests/commands/test_devcontainer_install_tools_dry_run.py::test_mark_only_commands_under_global_dry_run (the tool is installed)
  • tests/ai/test_tool_executor_contract.py::...[direct] (popeye is installed; the same case errors at teardown)

Issue #3585 names these four tests and says they fail on origin/main. The test check also took 6 min 35 s on this busy host, which is over the 5-minute budget (#3593). The rebase after the run only brought release 0.63.2 (manifest, CHANGELOG, pyproject.toml, uv.lock), so the run still holds.

fail-to-pass: not run. CONTRIBUTING.md (Fail-to-Pass Evidence) asks for it only for a pull request whose title is a fix. This title is a feat.

Review findings

  • Cost claim of k8s/README.md step 11 and of the OpenSpec text: fixed. A round that a webhook starts reads no comment. A poll round reads one page (at most 100 comments) once for each lane. At the default poll interval of 151 seconds, that is at most 72 requests an hour for one repository. The budget service.github_requests_per_hour is shared by all repositories and is hard.
  • Unbounded comment read: fixed. The round takes the newest 100 comments with islice, so the session sends no request for a second page. A person comment that 100 newer comments follow counts as no comment, and the job runs once more. Tests: test_a_round_reads_one_page_of_comments_at_most, test_a_comment_of_a_person_that_a_page_of_comments_follows_starts_the_job_once_more and the store tests that count requests.
  • Comments on pull requests: fixed. The html_url of a comment tells a pull request from an issue. IssueComment.on_pull_request keeps it, and is_person_comment refuses such a comment.
  • Reason against PyGithub: fixed in the proposal and the design. Repository.get_issues_comments covers the listing. It is not used because ADR 0006 keeps every GitHub request in the gidgethub session.
  • Sentence length: the new text of the README step 11, the proposal, the design, the spec delta, the tasks and job_suspended now has sentences of at most 25 words. Three long sentences of README step 11 are not new text. They come from main, so they stay.

@dan-petty
dan-petty marked this pull request as ready for review November 5, 2026 21:08
@dan-petty
dan-petty merged commit be8d18a into main Nov 5, 2026
23 checks passed
@dan-petty
dan-petty deleted the feat/2754-a-person-comment-restarts-a-suspended-row branch November 5, 2026 23:28
dan-petty pushed a commit that referenced this pull request Nov 6, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.64.0](v0.63.2...v0.64.0)
(2026-11-06)


### Features

* **roadmap:** let the step guard allow a recorded test removal
([#3715](#3715))
([f025406](f025406))
* **roadmap:** require the eval replay for a stage check change
([#3716](#3716))
([76e8301](76e8301))
* **roadmap:** restart a suspended job on a comment of a person
([#3699](#3699))
([be8d18a](be8d18a))
* **roadmap:** the verifier reads the repository and repairs a plan
twice ([#3710](#3710))
([c1191e2](c1191e2))
* **service:** chart the Service and filter the CLI dashboard by job
([#3704](#3704))
([fecc6fb](fecc6fb))


### Bug Fixes

* **deps:** upgrade oauthlib to fix GHSA-3jp2-3mrg-2vxc
([#3709](#3709))
([6a88012](6a88012)),
closes [#3705](#3705)
* **k8s:** hold the copy source until the destination ends
([#3712](#3712))
([c7c5556](c7c5556)),
closes [#3695](#3695)
* **k8s:** the gateway stops using the 16 GiB tier
([#3697](#3697))
([842effc](842effc))
* **roadmap:** keep angle-bracket text of a code span in refine
([#3711](#3711))
([396962e](396962e))
* **roadmap:** P1 items pass the planned limit
([#3698](#3698))
([63589f0](63589f0)),
closes [#3692](#3692)
* **roadmap:** refine blocks an item with an open dependency
([#3696](#3696))
([89fbb08](89fbb08))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/roadmap The roadmap jobs: intake, refine, stage, implement and the Service that runs them type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(roadmap): a comment by a person on an item starts a suspended row again

1 participant