Skip to content

Report stalled issues linked to a complete 250-commit PR - #1315

Merged
mergify[bot] merged 3 commits into
mainfrom
lean178/1174-stalled-commit-limit
Nov 26, 2026
Merged

mergify[bot] merged 3 commits into
mainfrom
lean178/1174-stalled-commit-limit

Conversation

@eowca

@eowca eowca commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Report stalled issues linked to a complete 250-commit PR

Context and goal

  • Goal: Report stalls when a linked PR’s full 250-commit history is available.
  • Problem: The activity reader treats every 250-row result as truncated.
  • Context: GitHub caps the PR commits response at 250 rows. The PR detail reports the total.

Closes #1174.

Acceptance

  • A verified 250-row list produces the same stalled alert as the 101-row control.
  • A larger or unavailable count leaves activity unknown.
  • Live collection and frozen replay agree, with a detail read only at the cap.

Base

Base: b0ab7dd

Validation

Recorded for 95f8767d9915

  • uv run --group dev ruff check src tests: exit 0
  • uv run --group dev tach check: exit 0
  • uv run --python 3.14 python scripts/check_architecture_docs.py: exit 0
  • scripts/size_budget.sh: exit 0
  • uv run --group dev pytest -q: exit 0

The offline replay now reports the same stall for 101 commits and a verified 250 commits. A total of 251 or an unavailable count still yields unknown activity. Frozen replay matches live collection.


Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Review

Co-Authored-By: Codex <noreply@openai.com>

@loopzero-feder-positronics loopzero-feder-positronics 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.

loopzero primary review by claude on fbcce3a2ec6bcae5517e4e557044c76cf68eb8c0, 16.7s: approve (0 critical, 0 important, 0 suggestion)

Settings per native call (launch configuration and CLI claims, not backend attestation):

  • Call 1: requested model claude-opus-5-5 (effort medium); CLI-reported model claude-opus-5-5 (effort unknown); configured model claude-opus-5-5 (effort medium)

Native Claude output is retained in the restricted local review receipt.

@eowca
eowca marked this pull request as ready for review November 26, 2026 01:42
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

@Mergifyio queue

@mergify

mergify Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

❌ Left the queue · checks fails with this pull request

2 min in the queue, with no time running CI.

So far

  • ✅ Entered the queue Thu 26 Nov, 01:42 · rule main · triggered by @eowca with the @mergifyio queue command
  • ❌ Checks failed · draft #1331
  • 🚫 Left the queue 01:45 · fbcce3a

The failure is in this pull request. It failed tested alone on top of main.

Reason

The merge conditions cannot be satisfied due to failing checks

  • checks

Failing checks:

To get back in the queue

  • Push a fix: the pull request is queued again once its queue conditions match.
  • If the failure is a flake, comment @mergifyio queue to queue it again as it is.

Merge conditions not met when it left the queue

  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-neutral = checks
    • check-skipped = checks
    • check-success = checks
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-neutral = Loop-zero Eligibility
    • check-skipped = Loop-zero Eligibility
    • check-success = Loop-zero Eligibility
1 merge condition met
  • github-review-approved · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required

Times in UTC · dashboard · how the merge queue works

@mergify mergify Bot added the queued label Nov 26, 2026
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

No description provided.

Co-Authored-By: Codex <noreply@openai.com>

@loopzero-feder-positronics loopzero-feder-positronics 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.

loopzero delta review by claude on 95f8767d991510c6ffaa981c54f29488211669f5, 17.1s: approve (0 critical, 0 important, 1 suggestion)

Settings per native call (launch configuration and CLI claims, not backend attestation):

  • Call 1: requested model claude-opus-5-5 (effort medium); CLI-reported model claude-opus-5-5 (effort unknown); configured model claude-opus-5-5 (effort medium)

Native Claude output is retained in the restricted local review receipt.

],
"issues/5/timeline": [pull_ref],
"pulls/3/commits": [{"commit": {"committer": {"date": "2026-05-28T21:00:00Z"}}}],
"pulls/3": {"commits": commit_total},

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

suggestion: 'Unavailable count' case now only covers an explicit null, not a missing field or a failed detail read

With the fixture rewrite, the (250, None) case serves {"commits": null}. The old test served {}, which covered a missing key. Neither version covers the case where the gh api repos/.../pulls/3 detail read itself fails (CalledProcessError, so inputs.get returns None). That is the more realistic meaning of an unavailable count in the acceptance criteria. _complete_pr_commits (scripts/retro_metrics.py:303) handles all three through (detail or {}).get("commits") and the int type check, so the code has no bug. Only the regression coverage is thinner. Smallest fix: when commit_total is None, leave pulls/3 out of rows, or raise CalledProcessError for that path in collect. That exercises the failure path and still asserts one detail read and unknown activity.

@mergify mergify Bot removed the dequeued label Nov 26, 2026
@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

Blocked at 95f8767d991510c6ffaa981c54f29488211669f5. The full local check passed and the delta review approved this head. loopzero ready exited 1 because the required hosted checks job failed the test-line budget. Current main has 13,483 test lines, and the merged tree has 13,510 against the 13,500 limit. The source change is complete and the PR has used both review rounds.

Once the merged tree fits the test-line budget, rerun the failed hosted check and run loopzero ready --wait followed by loopzero merge --wait. #1174 remains open.

@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

The check receipt guard is the only readiness blocker at 5e73aed391cab3b4e2ea3e09314574d972f7da2a. The remote receipt lacks its settings fingerprint, and every stage of loopzero check passed. Both required hosted checks passed, including eligibility with the inherited approval. Using the documented owner queue route so Mergify can verify the integration candidate.

@eowca

eowca commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

@Mergifyio queue

@mergify

mergify Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

✅ Merged into main as d24022f at 02:38 UTC

5 min in the queue, 4 min of it CI.

So far

  • ✅ Entered the queue Thu 26 Nov, 02:32 · rule main · triggered by @eowca with the @mergifyio queue command
  • ✅ Passed · draft #1407
  • ✅ Merged 02:38 · d24022f · squash
3 merge conditions met
  • github-review-approved · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-success = checks
    • check-neutral = checks
    • check-skipped = checks
  • any of · required by GitHub repository ruleset rule main: PR only, Mergify queue, existing checks required:
    • check-success = Loop-zero Eligibility
    • check-neutral = Loop-zero Eligibility
    • check-skipped = Loop-zero Eligibility

Times in UTC · dashboard · how the merge queue works

@mergify mergify Bot added the queued label Nov 26, 2026
@mergify
mergify Bot merged commit d24022f into main Nov 26, 2026
7 checks passed
@mergify mergify Bot removed the queued label Nov 26, 2026
@eowca
eowca deleted the lean178/1174-stalled-commit-limit branch November 26, 2026 02:39
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.

Recognize complete 250-commit pull requests in stalled-issue metrics

1 participant