Skip to content

[claude code review] Add CONTRIBUTOR role to Claude Code precheck conditions#176522

Closed
izaitsevfb wants to merge 1 commit intomainfrom
claude-code-review-add-contributor-precheck
Closed

[claude code review] Add CONTRIBUTOR role to Claude Code precheck conditions#176522
izaitsevfb wants to merge 1 commit intomainfrom
claude-code-review-add-contributor-precheck

Conversation

@izaitsevfb
Copy link
Contributor

@izaitsevfb izaitsevfb commented Mar 5, 2026

There is a bug in github webhooks.

When fired for pull_request_review_comment trigger, the author_association is CONTRIBUTOR (always?).
This messes up the pre-check logic for review workflow, causing it to skip.

This PR relaxes the pre-check (it's an optimization anyway), and I also relaxed bedrock environment protection rules, allowing PR merge branches.

tested in ciforge

@izaitsevfb izaitsevfb requested a review from a team as a code owner March 5, 2026 00:59
@pytorch-bot pytorch-bot bot added the topic: not user facing topic category label Mar 5, 2026
@pytorch-bot
Copy link

pytorch-bot bot commented Mar 5, 2026

🔗 Helpful Links

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

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

⏳ No Failures, 52 Pending

As of commit da0ea6e with merge base 23c859c (image):
💚 Looks good so far! There are no failures yet. 💚

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

@izaitsevfb izaitsevfb requested a review from drisspg March 5, 2026 00:59
Copy link
Contributor

@malfet malfet left a comment

Choose a reason for hiding this comment

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

Why not delete this check altogether, as bar for being a contributor is very low (you need to submit one typo fixing PR)

@izaitsevfb
Copy link
Contributor Author

Why not delete this check altogether, as bar for being a contributor is very low (you need to submit one typo fixing PR)

just to prevent somebody spamming @ claude from temp account and creating jobs

@izaitsevfb izaitsevfb requested a review from malfet March 5, 2026 01:32
@izaitsevfb
Copy link
Contributor Author

@pytorchbot merge -f 'lint passed'

@pytorchmergebot
Copy link
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

@malfet
Copy link
Contributor

malfet commented Mar 5, 2026

Why not delete this check altogether, as bar for being a contributor is very low (you need to submit one typo fixing PR)

just to prevent somebody spamming @ claude from temp account and creating jobs

What prevents them from creating issues that would spawn claude jobs as well?

@izaitsevfb
Copy link
Contributor Author

What prevents them from creating issues that would spawn claude jobs as well?

good question. we should probably limit concurrency of the triage jobs by the author
cc @drisspg

Vighaneshs pushed a commit to Vighaneshs/pytorch that referenced this pull request Mar 5, 2026
…ditions (pytorch#176522)

There is a bug in github webhooks.

When fired for `pull_request_review_comment` trigger, the `author_association` is `CONTRIBUTOR` (always?).
This messes up the pre-check logic for review workflow, causing it to skip.

This PR relaxes the pre-check (it's an optimization anyway), and I also relaxed `bedrock` environment protection rules, allowing PR merge branches.

[tested in ciforge](https://github.com/pytorch/ciforge/pull/145#discussion_r2886777001)
Pull Request resolved: pytorch#176522
Approved by: https://github.com/drisspg
ZainRizvi added a commit to pytorch/test-infra that referenced this pull request Mar 5, 2026
- Add CONTRIBUTOR to author_association check per pytorch/pytorch#176522
- Clarify setup script comment references pytorch/test-infra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants