Skip to content

[pr-review] Group the OpInfo test items next to "Use OpInfo" - #202617

Closed
ezyang wants to merge 2 commits into
mainfrom
ptq/20261029-pytorch-adhoc-5476ae
Closed

ezyang wants to merge 2 commits into
mainfrom
ptq/20261029-pytorch-adhoc-5476ae

Conversation

@ezyang

@ezyang ezyang commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

Human Note

Opus misunderstood Driss's meaning, this is actually very small

Agent Report

What changed

Follow-up to #202615, from a review comment there on the "Use OpInfo" checklist item. Moves "Use toleranceOverride" and "Use DecorateInfo for OpInfo skips" up in .agents/skills/pr-review/review-checklist.md so they sit directly after "Use OpInfo". The text of every item is unchanged; this is a pure reorder.

Validation

Markdown-only change.

python3 -m unittest discover -s scripts/pr_review -t .
lintrunner
Agent Worklog

2026-10-29

  • Review comment on [pr-review] Remove guidance on when tests are required #202615, anchored on the "Use OpInfo" line, quoted the toleranceOverride / DecorateInfo items and asked whether they should go "closer to opinfos".
  • A directory REVIEW.md was considered and rejected: REVIEW.md only applies to changed files under its directory, and these items are violated in test files spread across test/. Read the comment as asking to group the items with "Use OpInfo" in the checklist.

This PR was generated by ptq with human review.

Move "Use toleranceOverride" and "Use DecorateInfo for OpInfo skips"
up so they sit with "Use OpInfo" in the Test Patterns checklist. No
item text changes.

Test Plan:

```
python3 -m unittest discover -s scripts/pr_review -t .
lintrunner
```

This PR was authored with the assistance of an AI agent.
@ezyang ezyang added the topic: not user facing topic category label Oct 29, 2026
@pytorch-bot

pytorch-bot Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

PR Status: Approved 🚀

Please fix all CI failures and trigger merge by commenting "@pytorchbot merge".

✅ AUTOMATED REVIEW - Ready for human review:

This PR moves three OpInfo-related items in
`.agents/skills/pr-review/review-checklist.md` so they come right after "Use
OpInfo". It is a pure reorder that adds and removes no content, and the earlier
automated finding is fixed at HEAD. Recommendation: Approve.

Reviewed commit: 6753219

Review run

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/202617

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 6753219 with merge base 19df395 (image):
💚 Looks good so far! There are no failures yet. 💚

🟡 GREEN LIGHT - OUTDATED (earlier commit) - PR requires human review:

  • Reviewer steering
    • Edits .agents/skills/pr-review/review-checklist.md, the pr-review skill an automated reviewer runs from
    • hardened-pr-review-run.yml copies trusted/.agents/skills/pr-review into ~/.claude/skills/pr-review for the review job
    • Same reason the .claude/ skills tree is never trivial: a markdown-only edit here changes a later reviewer's instructions
  • Observable effect
    • The checklist feeds the prompt hash in hardened-pr-review-run.yml, so even a reorder changes that hash
  • Correctness
    • Pure reorder: the moved Use toleranceOverride and Use DecorateInfo for OpInfo skips lines are byte-identical

reason: not_trivial
Reviewed commit: a1bdfd3 (NOT the current head 6753219)

Inference job

🐛 Report a wrong verdict

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@ezyang
ezyang requested a review from drisspg October 29, 2026 18:33
@ezyang ezyang added autoland mergedog mergedog is watching this PR labels Oct 29, 2026
@pytorchgreenlight pytorchgreenlight Bot added the GL/human GreenLight marked as needing human review label Oct 29, 2026
@ezyang

ezyang commented Oct 29, 2026

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge

@pytorch-bot pytorch-bot Bot added the ciflow/trunk Trigger trunk jobs on your pull request label Oct 29, 2026
@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge failed

Reason: GitHub GraphQL query failed: Something went wrong while executing your query on 2026-10-29T18:53:41Z. Please include 8841:35DBB:1E7909D:638B6E9:6AE3962D when reporting this issue.

Details for Dev Infra team

Raised by workflow job

GraphQL variables:

{
  "name": "pytorch",
  "owner": "pytorch",
  "number": 202617
}

GraphQL errors:

[
  {
    "message": "Something went wrong while executing your query on 2026-10-29T18:53:41Z. Please include `8841:35DBB:1E7909D:638B6E9:6AE3962D` when reporting this issue."
  }
]

GraphQL query:

fragment PRReviews on PullRequestReviewConnection {
  nodes {
    author {
      login
    }
    bodyText
    createdAt
    authorAssociation
    editor {
      login
    }
    databaseId
    url
    state
  }
  pageInfo {
    startCursor
    hasPreviousPage
  }
}

fragment PRCheckSuites on CheckSuiteConnection {
  edges {
    node {
      workflowRun {
        workflow {
          name
          databaseId
        }
        databaseId
        url
      }
      checkRuns(first: 50) {
        nodes {
          name
          conclusion
          detailsUrl
          databaseId
          title
          summary
        }
        pageInfo {
          endCursor
          hasNextPage
        }
      }
      conclusion
    }
    cursor
  }
  pageInfo {
    hasNextPage
  }
}

fragment CommitAuthors on PullRequestCommitConnection {
  nodes {
    commit {
      authors(first: 2) {
        nodes {
          user {
            login
          }
          email
          name
        }
      }
      oid
    }
  }
  pageInfo {
    endCursor
    hasNextPage
  }
}

query ($owner: String!, $name: String!, $number: Int!) {
  repository(owner: $owner, name: $name) {
    pullRequest(number: $number) {
      closed
      isCrossRepository
      author {
        login
      }
      title
      body
      headRefName
      headRepository {
        nameWithOwner
      }
      baseRefName
      baseRefOid
      baseRepository {
        nameWithOwner
        isPrivate
        defaultBranchRef {
          name
        }
      }
      mergeCommit {
        oid
      }
      commits_with_authors: commits(first: 100) {
        ...CommitAuthors
        totalCount
      }
      commits(last: 1) {
        nodes {
          commit {
            checkSuites(first: 10) {
              ...PRCheckSuites
            }
            status {
              contexts {
                context
                state
                targetUrl
              }
            }
            oid
          }
        }
      }
      changedFiles
      files(first: 100) {
        nodes {
          path
        }
        pageInfo {
          endCursor
          hasNextPage
        }
      }
      reviews(last: 100) {
        ...PRReviews
      }
      comments(last: 5) {
        nodes {
          bodyText
          createdAt
          author {
            login
            url
          }
          authorAssociation
          editor {
            login
          }
          databaseId
          url
        }
        pageInfo {
          startCursor
          hasPreviousPage
        }
      }
      labels(first: 100) {
        edges {
          node {
            name
          }
        }
      }
    }
  }
}

@pytorchbot pytorchbot added the in progress PR is being worked on by the author, until the automated review accepts it label Oct 29, 2026
github-actions[bot]

This comment was marked as outdated.

@ezyang

ezyang commented Oct 29, 2026

Copy link
Copy Markdown
Contributor Author

mergedog handoff

Note

This PR is being shepherded by mergedog, an automation tool run by a maintainer. It watches CI and may push fixes; the PR author does not need to act unless a maintainer asks.

All CI is green (or skipped). Ready for human review and @pytorchbot merge.

Current PR head: a1bdfd35ce47b12ab780840c694dd450aca16811.

Autonomous changes pushed

  • None.

During shepherding, the configured LLM was invoked 1 time. If any CI shows red, it judged that failure unrelated to this PR's changes — please verify below before merging.

Session 1 — fix-CI (2026-10-29T19:00:36+00:00)

  • Before: a1bdfd35ce47
  • Verdict: judged failures spurious (no commit) — failing jobs: linux-jammy-py3.14-clang21 / test (dynamo_wrapped, 2, 7, mt-l-x86iavx512-8-64); rationale: SPURIOUS: linux-jammy-py3.14-clang21 / test (dynamo_wrapped, 2, 7, mt-l-x86iavx512-8-64) The job failed during "Set up job", before checkout or any test ran: ##[error]Unable to resolve action pytorch/pytorch@main, unable to find version main That error comes from the GitHub Actions runner failing to resolve the action ref, and the log already shows it downloading pytorch/pytorch@main at SHA 28daa4c. It is a transient infra/GitHub-side failure. The PR only reorders lines in .agents/skills/pr-review/review-checklist.md (a markdown file), so it cannot affect action resolution or dynamo_wrapped tests. Dr. CI also reports no failures for this head commit. A rerun should clear it.
LLM transcript
claude session e47ac50e
claude → Bash: cat > .mergedog-spurious <<'EOF'
               SPURIOUS: linux-jammy-py3.14-clang21 / test (dynamo_wrapped, 2, 7, mt-l-x86iavx512-8-64)
               
               The job failed during "Set up job", before checkout or any test ran:
                 ##[error]Unable to resolve action `pytorch/pytorch@main`, unable to find version `main`
               That error comes from the GitHub Actions runner failing to resolve the action ref, and the
               log already shows it downloading pytorch/pytorch@main at SHA 28daa4ce. It is a transient
               infra/GitHub-side failure. The PR only reorders lines in
               .agents/skills/pr-review/review-checklist.md (a markdown file), so it cannot affect action
               resolution or dynamo_wrapped tests. Dr. CI also reports no failures for this head commit.
               A rerun should clear it.
               EOF
               cat .mergedog-spurious
claude: I signaled SPURIOUS by writing my reasoning to `.mergedog-spurious`. I made no commit.
claude: The one failing check, `linux-jammy-py3.14-clang21 / test (dynamo_wrapped, 2, 7, mt-l-x86iavx512-8-64)`, died during job setup, before checkout or any test ran. The error was:
claude: `Unable to resolve action pytorch/pytorch@main, unable to find version main`
claude: This is a GitHub Actions infrastructure problem, not a test failure. The same log shows the runner had already downloaded that action at a specific commit just before the error. The PR only reorders lines in a markdown file (`.agents/skills/pr-review/review-checklist.md`), so it can't affect action resolution or the dynamo tests. Dr. CI also reports no failures for this commit. Rerunning the job should clear it.
claude finished: success (cost $0.2599)

The automated review pointed out that this item is just as tied to
OpInfo as the two already moved: `@ops(op_db)` parametrizes over OpInfo
entries. Put it directly after "Use OpInfo". Item text is unchanged.

This PR was authored with the assistance of an AI agent.
@pytorchgreenlight pytorchgreenlight Bot added GL/superseded GreenLight review is superseded by changes and removed GL/human GreenLight marked as needing human review labels Oct 30, 2026

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Automated review of 6753219: nothing blocking; ready for human review.

This PR moves three OpInfo-related items in .agents/skills/pr-review/review-checklist.md so they come right after "Use OpInfo". It is a pure reorder that adds and removes no content, and the earlier automated finding is fixed at HEAD. Recommendation: Approve.

This review is AI-generated and advisory. Each new automated review replaces the previous one.

@github-actions
github-actions Bot dismissed their stale review October 30, 2026 02:22

Withdrawn: the automated review of 6753219 found nothing blocking.

@pytorch-bot pytorch-bot Bot added ready for review Automated review passed, ready for a final review by a maintainer. and removed in progress PR is being worked on by the author, until the automated review accepts it labels Oct 30, 2026
@ezyang

ezyang commented Oct 30, 2026

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

pytorchmergebot pushed a commit that referenced this pull request Nov 3, 2026
…2802)

✴️ iz2: `add_numbered_label("merged")` counted every label containing "merged", so a PR carrying the unrelated `mergedog` label landed as `mergedX1` instead of `Merged` (e.g. #202615, #202617; 90 PRs carry `mergedX1`). Anything that checks for `Merged` then reads these lands as closed unmerged. #98551 meant the numbering to count only the label's own repeats.

This change counts only labels equal to the base or fully matching `<base>X<n>`.

Matching stays case-sensitive on purpose. The repo labels are `Merged` and `Reverted`, which `"merged" in "Merged"` never matched, so re-merges have always kept plain `Merged` (no PR carries `Merged` + `mergedX1` without `mergedog`, and none carries `revertedX1`). This keeps that behaviour; only PRs with a substring-matching label change.

Test plan: new `TestAddNumberedLabel` cases (`mergedog`, `mergedX1foo`/`mergedx1`, `Merged`, own repeats) fail on the old condition and pass with the fix. `python -m unittest test_trymerge`: 216 run, all pass except two git end-to-end tests that fail identically on unmodified main in my environment (tmp-dir cleanup `OSError`).
Pull Request resolved: #202802
Approved by: https://github.com/huydhn
dominikjastrzebskix pushed a commit to dominikjastrzebskix/pytorch that referenced this pull request Nov 5, 2026
…#202617)

## Human Note
Opus misunderstood Driss's meaning, this is actually very small

## Agent Report
### What changed

Follow-up to pytorch#202615, from a review comment there on the "Use OpInfo" checklist item. Moves "Use toleranceOverride" and "Use DecorateInfo for OpInfo skips" up in `.agents/skills/pr-review/review-checklist.md` so they sit directly after "Use OpInfo". The text of every item is unchanged; this is a pure reorder.

### Validation

Markdown-only change.

```
python3 -m unittest discover -s scripts/pr_review -t .
lintrunner
```

<details>
<summary>Agent Worklog</summary>

### 2026-10-29

- Review comment on pytorch#202615, anchored on the "Use OpInfo" line, quoted the toleranceOverride / DecorateInfo items and asked whether they should go "closer to opinfos".
- A directory REVIEW.md was considered and rejected: REVIEW.md only applies to changed files under its directory, and these items are violated in test files spread across test/. Read the comment as asking to group the items with "Use OpInfo" in the checklist.

</details>

---
*This PR was generated by [ptq](https://github.com/drisspg/pt_job_queue) with human review.*
Pull Request resolved: pytorch#202617
Approved by: https://github.com/Skylion007, https://github.com/drisspg
dominikjastrzebskix pushed a commit to dominikjastrzebskix/pytorch that referenced this pull request Nov 5, 2026
…orch#202802)

✴️ iz2: `add_numbered_label("merged")` counted every label containing "merged", so a PR carrying the unrelated `mergedog` label landed as `mergedX1` instead of `Merged` (e.g. pytorch#202615, pytorch#202617; 90 PRs carry `mergedX1`). Anything that checks for `Merged` then reads these lands as closed unmerged. pytorch#98551 meant the numbering to count only the label's own repeats.

This change counts only labels equal to the base or fully matching `<base>X<n>`.

Matching stays case-sensitive on purpose. The repo labels are `Merged` and `Reverted`, which `"merged" in "Merged"` never matched, so re-merges have always kept plain `Merged` (no PR carries `Merged` + `mergedX1` without `mergedog`, and none carries `revertedX1`). This keeps that behaviour; only PRs with a substring-matching label change.

Test plan: new `TestAddNumberedLabel` cases (`mergedog`, `mergedX1foo`/`mergedx1`, `Merged`, own repeats) fail on the old condition and pass with the fix. `python -m unittest test_trymerge`: 216 run, all pass except two git end-to-end tests that fail identically on unmodified main in my environment (tmp-dir cleanup `OSError`).
Pull Request resolved: pytorch#202802
Approved by: https://github.com/huydhn
dominikjastrzebskix pushed a commit to dominikjastrzebskix/pytorch that referenced this pull request Nov 9, 2026
…#202617)

## Human Note
Opus misunderstood Driss's meaning, this is actually very small

## Agent Report
### What changed

Follow-up to pytorch#202615, from a review comment there on the "Use OpInfo" checklist item. Moves "Use toleranceOverride" and "Use DecorateInfo for OpInfo skips" up in `.agents/skills/pr-review/review-checklist.md` so they sit directly after "Use OpInfo". The text of every item is unchanged; this is a pure reorder.

### Validation

Markdown-only change.

```
python3 -m unittest discover -s scripts/pr_review -t .
lintrunner
```

<details>
<summary>Agent Worklog</summary>

### 2026-10-29

- Review comment on pytorch#202615, anchored on the "Use OpInfo" line, quoted the toleranceOverride / DecorateInfo items and asked whether they should go "closer to opinfos".
- A directory REVIEW.md was considered and rejected: REVIEW.md only applies to changed files under its directory, and these items are violated in test files spread across test/. Read the comment as asking to group the items with "Use OpInfo" in the checklist.

</details>

---
*This PR was generated by [ptq](https://github.com/drisspg/pt_job_queue) with human review.*
Pull Request resolved: pytorch#202617
Approved by: https://github.com/Skylion007, https://github.com/drisspg
dominikjastrzebskix pushed a commit to dominikjastrzebskix/pytorch that referenced this pull request Nov 9, 2026
…orch#202802)

✴️ iz2: `add_numbered_label("merged")` counted every label containing "merged", so a PR carrying the unrelated `mergedog` label landed as `mergedX1` instead of `Merged` (e.g. pytorch#202615, pytorch#202617; 90 PRs carry `mergedX1`). Anything that checks for `Merged` then reads these lands as closed unmerged. pytorch#98551 meant the numbering to count only the label's own repeats.

This change counts only labels equal to the base or fully matching `<base>X<n>`.

Matching stays case-sensitive on purpose. The repo labels are `Merged` and `Reverted`, which `"merged" in "Merged"` never matched, so re-merges have always kept plain `Merged` (no PR carries `Merged` + `mergedX1` without `mergedog`, and none carries `revertedX1`). This keeps that behaviour; only PRs with a substring-matching label change.

Test plan: new `TestAddNumberedLabel` cases (`mergedog`, `mergedX1foo`/`mergedx1`, `Merged`, own repeats) fail on the old condition and pass with the fix. `python -m unittest test_trymerge`: 216 run, all pass except two git end-to-end tests that fail identically on unmodified main in my environment (tmp-dir cleanup `OSError`).
Pull Request resolved: pytorch#202802
Approved by: https://github.com/huydhn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autoland ciflow/trunk Trigger trunk jobs on your pull request GL/superseded GreenLight review is superseded by changes mergedog mergedog is watching this PR mergedX1 ready for review Automated review passed, ready for a final review by a maintainer. topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants