Skip to content

[Kineto] Finish documentation and compatibility cleanup (#201671) - #201671

Closed
ryanzhang22 wants to merge 1 commit into
pytorch:mainfrom
ryanzhang22:export-D126382134
Closed

ryanzhang22 wants to merge 1 commit into
pytorch:mainfrom
ryanzhang22:export-D126382134

Conversation

@ryanzhang22

@ryanzhang22 ryanzhang22 commented Oct 21, 2026 •

Copy link
Copy Markdown
Contributor

Summary:

Finish the core move by relocating Kineto documentation, updating path references, and removing obsolete CI patterns and build metadata.

Test Plan:
Lint passed for all changed follow-up files. The combined fbcode and tools contents match the original unsplit move byte-for-byte. The atomic parent passed Buck configured-target queries for kineto and config_test.

arc lint --never-apply-patches --paths-from /tmp/kineto-split-20261019/followup-paths.txt

Reviewed By: scotts

@ryanzhang22
ryanzhang22 requested review from a team, albanD, malfet and scotts as code owners October 21, 2026 21:44
@pytorch-bot pytorch-bot Bot added ciflow/docker release notes: releng release notes category labels Oct 21, 2026
@pytorch-bot

pytorch-bot Bot commented Oct 21, 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 the last Kineto files (READMEs, interconnect image, .gitignore)
from third_party/kineto to torch/csrc/profiler/kineto and removes the leftover
third_party/kineto entries from CI, lint, labeler and merge-rule config.
Recommendation: Approve. Nothing blocks the merge, but the .gitignore issue is
worth fixing before landing because it affects every existing checkout.

Findings (1):

[minor] .lintrunner.toml:613
This entry lost its `# Kineto's own third_party` comment, which was only on the
deleted duplicate line. The other surviving entry at line 938 still has the
comment, so the two exclude lists are now inconsistent. Move the comment onto
line 613. The line sits under the `# Vendored: raw throws are upstream's call,
not ours.` header, which now only fits because of what's inside
libkineto/third_party (e.g. dynolog_headers), not because Kineto itself is
vendored. The comment makes that clear.

Reviewed commit: 00a4ede

Review run

🔗 Helpful Links

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

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

✅ No Failures

As of commit 00a4ede with merge base 2358fae (image):
💚 Looks good so far! There are no failures yet. 💚

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

  • Never trivial: merge authorization
    • Diff edits .github/merge_rules.yaml, removing the third_party/kineto pattern from the profiler rule's patterns
    • Editing the merge rules file is enough on its own to need a human review
  • Scope
    • Also edits .github/labeler.yml ciflow triggers and .lintrunner.toml exclude patterns, and renames files out of third_party/kineto
    • The PR is the final step of the Kineto relocation, so a human should check its CI and lint config cleanup

reason: not_trivial
Reviewed commit: 708831f (NOT the current head 00a4ede)

Inference job

🐛 Report a wrong verdict

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

@meta-codesync

meta-codesync Bot commented Oct 21, 2026

Copy link
Copy Markdown

@ryanzhang22 has exported this pull request. If you are a Meta employee, you can view the originating Diff in D126382134.

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

This comment was marked as outdated.

github-actions[bot]

This comment was marked as outdated.

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

Withdrawn: the automated review of 58dab73 found nothing blocking.

ryanzhang22 added a commit to ryanzhang22/pytorch that referenced this pull request Oct 21, 2026
Summary:
Pull Request resolved: pytorch#201671

Finish the core move by relocating Kineto documentation, updating path references, and removing obsolete CI patterns and build metadata.

Test Plan:
Lint passed for all changed follow-up files. The combined fbcode and tools contents match the original unsplit move byte-for-byte. The atomic parent passed Buck configured-target queries for `kineto` and `config_test`.

```sh
arc lint --never-apply-patches --paths-from /tmp/kineto-split-20261019/followup-paths.txt
```

Differential Revision: D126382134
@meta-codesync meta-codesync Bot changed the title [Kineto] Finish documentation and compatibility cleanup [Kineto] Finish documentation and compatibility cleanup (#201671) Oct 21, 2026
ryanzhang22 added a commit to ryanzhang22/pytorch that referenced this pull request Oct 21, 2026
Summary:
Pull Request resolved: pytorch#201671

Finish the core move by relocating Kineto documentation, updating path references, and removing obsolete CI patterns and build metadata.

Test Plan:
Lint passed for all changed follow-up files. The combined fbcode and tools contents match the original unsplit move byte-for-byte. The atomic parent passed Buck configured-target queries for `kineto` and `config_test`.

```sh
arc lint --never-apply-patches --paths-from /tmp/kineto-split-20261019/followup-paths.txt
```

Differential Revision: D126382134
@pytorch-bot pytorch-bot Bot added the ciflow/trunk Trigger trunk jobs on your pull request label Oct 22, 2026
Summary:
Pull Request resolved: pytorch#201671

Finish the core move by relocating Kineto documentation, updating path references, and removing obsolete CI patterns and build metadata.

Test Plan:
Lint passed for all changed follow-up files. The combined fbcode and tools contents match the original unsplit move byte-for-byte. The atomic parent passed Buck configured-target queries for `kineto` and `config_test`.

```sh
arc lint --never-apply-patches --paths-from /tmp/kineto-split-20261019/followup-paths.txt
```

Reviewed By: scotts

Differential Revision: D126382134

@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 00a4ede: nothing blocking; ready for human review.

This PR moves the last Kineto files (READMEs, interconnect image, .gitignore) from third_party/kineto to torch/csrc/profiler/kineto and removes the leftover third_party/kineto entries from CI, lint, labeler and merge-rule config. Recommendation: Approve. Nothing blocks the merge, but the .gitignore issue is worth fixing before landing because it affects every existing checkout.

⚪ 1 non-blocking finding

'torch/csrc/profiler/kineto/libkineto/third_party/**',

This entry lost its # Kineto's own third_party comment, which was only on the deleted duplicate line. The other surviving entry at line 938 still has the comment, so the two exclude lists are now inconsistent. Move the comment onto line 613. The line sits under the # Vendored: raw throws are upstream's call, not ours. header, which now only fits because of what's inside libkineto/third_party (e.g. dynolog_headers), not because Kineto itself is vendored. The comment makes that clear.

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

@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 22, 2026
@meta-codesync

meta-codesync Bot commented Oct 22, 2026

Copy link
Copy Markdown

@pytorchbot merge

(Initiating merge automatically since Phabricator Diff has merged)

@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: This PR has internal changes and must be landed via Phabricator! Please try reimporting/rexporting the PR!

Details for Dev Infra team

Raised by workflow job

@atalman

atalman commented Oct 22, 2026

Copy link
Copy Markdown
Collaborator

@pytorchmergebot merge -f "already landed internally, lets land"

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

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
…ted (#202455)

✴️ iz2: Two prompt fixes to Stage B of the hardened PR review. In both cases a real blocking review was rejected by `extract_verdict.py` and nothing was posted. Part of pytorch/test-infra#9260.

1. **Needs Discussion with a blocker.** Stage A can recommend Needs Discussion while naming a defect that must be fixed. Stage B mapped Needs Discussion to `ready_for_human_review` and the defect to `major`, and the sanitizer refuses that combination. This happened on #202251 and #201766. Now such a defect is `major` and the verdict is `changes_requested`; open questions, requests for data or discussion, and unreviewed files are not such defects. The summary keeps the Recommendation and says when a defect overrode it.
2. **Findings on files with no anchorable line.** `/tmp/pr-files.txt` lists deletions, pure renames, mode-only changes and binary files, but their diffs show no added or context line, so a finding on one is discarded and a change request left with none is rejected (#201671). The prompt now names these and points Stage B at a changed line instead.

This does not fix PRs whose every file is such a file, since they have no anchorable line at all. A separate change to the sanitizer covers that case.

Test plan: `python3 -m unittest test_workflow_contract` in `scripts/pr_review` (174 pass). Two new tests pin both rules and fail on the old prompt.
Pull Request resolved: #202455
Approved by: https://github.com/huydhn
dominikjastrzebskix pushed a commit to dominikjastrzebskix/pytorch that referenced this pull request Nov 5, 2026
…ted (pytorch#202455)

✴️ iz2: Two prompt fixes to Stage B of the hardened PR review. In both cases a real blocking review was rejected by `extract_verdict.py` and nothing was posted. Part of pytorch/test-infra#9260.

1. **Needs Discussion with a blocker.** Stage A can recommend Needs Discussion while naming a defect that must be fixed. Stage B mapped Needs Discussion to `ready_for_human_review` and the defect to `major`, and the sanitizer refuses that combination. This happened on pytorch#202251 and pytorch#201766. Now such a defect is `major` and the verdict is `changes_requested`; open questions, requests for data or discussion, and unreviewed files are not such defects. The summary keeps the Recommendation and says when a defect overrode it.
2. **Findings on files with no anchorable line.** `/tmp/pr-files.txt` lists deletions, pure renames, mode-only changes and binary files, but their diffs show no added or context line, so a finding on one is discarded and a change request left with none is rejected (pytorch#201671). The prompt now names these and points Stage B at a changed line instead.

This does not fix PRs whose every file is such a file, since they have no anchorable line at all. A separate change to the sanitizer covers that case.

Test plan: `python3 -m unittest test_workflow_contract` in `scripts/pr_review` (174 pass). Two new tests pin both rules and fail on the old prompt.
Pull Request resolved: pytorch#202455
Approved by: https://github.com/huydhn
dominikjastrzebskix pushed a commit to dominikjastrzebskix/pytorch that referenced this pull request Nov 9, 2026
…ted (pytorch#202455)

✴️ iz2: Two prompt fixes to Stage B of the hardened PR review. In both cases a real blocking review was rejected by `extract_verdict.py` and nothing was posted. Part of pytorch/test-infra#9260.

1. **Needs Discussion with a blocker.** Stage A can recommend Needs Discussion while naming a defect that must be fixed. Stage B mapped Needs Discussion to `ready_for_human_review` and the defect to `major`, and the sanitizer refuses that combination. This happened on pytorch#202251 and pytorch#201766. Now such a defect is `major` and the verdict is `changes_requested`; open questions, requests for data or discussion, and unreviewed files are not such defects. The summary keeps the Recommendation and says when a defect overrode it.
2. **Findings on files with no anchorable line.** `/tmp/pr-files.txt` lists deletions, pure renames, mode-only changes and binary files, but their diffs show no added or context line, so a finding on one is discarded and a change request left with none is rejected (pytorch#201671). The prompt now names these and points Stage B at a changed line instead.

This does not fix PRs whose every file is such a file, since they have no anchorable line at all. A separate change to the sanitizer covers that case.

Test plan: `python3 -m unittest test_workflow_contract` in `scripts/pr_review` (174 pass). Two new tests pin both rules and fail on the old prompt.
Pull Request resolved: pytorch#202455
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

ciflow/docker ciflow/trunk Trigger trunk jobs on your pull request Merged meta-exported ready for review Automated review passed, ready for a final review by a maintainer. release notes: releng release notes category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants