Skip to content

Conversation

@clee2000
Copy link
Contributor

@clee2000 clee2000 commented Jun 7, 2024

For repos that want to merge via @pytorchbot merge, the repo should put mergebot: True in their pytorch-probot.yml

In preparation for letting torchao trigger their own merges through bot

Risks:
If we can't query for the config for some reason, it will not merge

todo before this gets merged:
Add mergebot: True in pytorch's config file

@vercel
Copy link

vercel bot commented Jun 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
torchci ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 7, 2024 6:28pm

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jun 7, 2024
@clee2000 clee2000 marked this pull request as ready for review June 7, 2024 18:47
@clee2000 clee2000 requested a review from a team June 7, 2024 18:47
Copy link
Contributor

@ZainRizvi ZainRizvi left a comment

Choose a reason for hiding this comment

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

🚢

import { CachedConfigTracker } from "./utils";

function pytorchBot(app: Probot): void {
const cachedConfigTracker = new CachedConfigTracker(app);
Copy link
Contributor

Choose a reason for hiding this comment

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

any idea how long the cache is persisted?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

It's not persisted at all, but repeated calls to config methods during execution of the command would not need to make new network calls to fetch the same info.

Copy link
Contributor

@huydhn huydhn left a comment

Choose a reason for hiding this comment

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

LGTM! Pending your change on PT bot config

pytorchmergebot pushed a commit to pytorch/pytorch that referenced this pull request Jun 17, 2024
Fixes #ISSUE_NUMBER
* Companion to pytorch/test-infra#5312
* See the above for details + possible risks
* Without the above PR, this should have no effects
Pull Request resolved: #128840
Approved by: https://github.com/huydhn
import { CachedConfigTracker } from "./utils";

function pytorchBot(app: Probot): void {
const cachedConfigTracker = new CachedConfigTracker(app);
Copy link
Contributor

Choose a reason for hiding this comment

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

It's not persisted at all, but repeated calls to config methods during execution of the command would not need to make new network calls to fetch the same info.

@clee2000 clee2000 merged commit c8927d2 into main Jun 17, 2024
@clee2000 clee2000 mentioned this pull request Jun 17, 2024
clee2000 added a commit to pytorch/ao that referenced this pull request Jun 20, 2024
Tested locally using --dry-run

Apparently there is precedent for just copying the files over (see executorch PR huy linked below), so this copies over trymerge + dependencies

Removes check for release notes labels and sev

Can merge both ghstack and normal PRs. Be warned though, PRs merged this way will show up as "closed" instead of "merged" on the github UI

Future work: move trymerge + dependencies to test-infra (or download from pytorch), make sure its repo agnostic

Depends on pytorch/test-infra#5312
@clee2000 clee2000 deleted the csl/mergebot_configure_via_config branch September 30, 2025 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants