Skip to content

nightly: fix update-metamates-rule by reading the team with pytorchbot token - #189962

Closed
huydhn wants to merge 1 commit into
mainfrom
debug-metamates-rule-fetch
Closed

huydhn wants to merge 1 commit into
mainfrom
debug-metamates-rule-fetch

Conversation

@huydhn

@huydhn huydhn commented Jul 15, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #189032

The update-metamates-rule job has failed on every scheduled run since it was added in #176303. It reads the closed pytorch/metamates team, but UPDATEBOT_TOKEN belongs to pytorchupdatebot, which is not a pytorch org member and so cannot enumerate the team's members (GitHub reports it as needing admin:org).

Fix: read the team with GH_PYTORCHBOT_TOKEN (pytorchbot is an org member); keep UPDATEBOT_TOKEN for checkout and the PR.

Testing

@pytorch-bot

pytorch-bot Bot commented Jul 15, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

❌ 1 New Failure, 2 Unclassified Failures

As of commit b9c2065 with merge base 6501a57 (image):

NEW FAILURE - The following job has failed:

  • nightly / Link checks / lint-urls / lint (gh)
    [OSDC] Step script exited with code 1. This is a script/workflow error, not an infrastructure issue. Check the step logs above for the actual failure.

    AI verdict: AI verdict: not related

    The commit only changes which GitHub token is used in the update-metamates-rule job. The failing job is lint-urls / lint (a link checker), which is a completely independent job with no connection to the changed code. The same link-check job failed on trunk on Jul 13 and Jul 14 before this commit.

    Full reasoning on HUD →

UNCLASSIFIED FAILURES - DrCI could not classify the following jobs because the workflow did not run on the merge base. The failures may be pre-existing on trunk or introduced by this PR:

  • nightly / docs push / build-docs-cpp-true (gh) (this job did not run on the merge base, so DrCI cannot tell whether the failure is pre-existing)
    [OSDC] Step script exited with code 128. This is a script/workflow error, not an infrastructure issue. Check the step logs above for the actual failure.

    AI verdict: AI verdict: not related

    The commit only changes the token used in the update-metamates-rule job, but the failure is in a completely different job (docs push / build-docs-cpp-true) where git push -u origin fails with "fatal: could not read Username for 'https://github.com': No such device or address" — a transient credential/infrastructure issue unrelated to the code change.

    Full reasoning on HUD →

  • nightly / docs push / build-docs-python-true (gh) (this job did not run on the merge base, so DrCI cannot tell whether the failure is pre-existing)
    [OSDC] Step script exited with code 128. This is a script/workflow error, not an infrastructure issue. Check the step logs above for the actual failure.

    AI verdict: AI verdict: not related

    The commit only modifies the update-metamates-rule job's GH_TOKEN env var in nightly.yml. The failing job is docs push / build-docs-python-true, a completely separate job that fails due to git push authentication (fatal: could not read Username for 'https://github.com'). The commit does not touch the docs-push job or its authentication.

    Full reasoning on HUD →

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

@pytorch-bot pytorch-bot Bot added the topic: not user facing topic category label Jul 15, 2026
@huydhn huydhn added ciflow/nightly Trigger all jobs we run nightly (nightly.yml) and removed ciflow/nightly Trigger all jobs we run nightly (nightly.yml) labels Jul 15, 2026
@huydhn
huydhn had a problem deploying to update-commit-hash July 15, 2026 01:36 — with GitHub Actions Failure
@huydhn
huydhn had a problem deploying to update-commit-hash July 15, 2026 01:36 — with GitHub Actions Failure
@huydhn
huydhn had a problem deploying to update-commit-hash July 15, 2026 01:36 — with GitHub Actions Failure
@huydhn
huydhn had a problem deploying to update-commit-hash July 15, 2026 01:36 — with GitHub Actions Failure
@huydhn
huydhn had a problem deploying to update-commit-hash July 15, 2026 01:36 — with GitHub Actions Failure
@huydhn
huydhn had a problem deploying to update-commit-hash July 15, 2026 01:36 — with GitHub Actions Failure
@huydhn
huydhn had a problem deploying to update-commit-hash July 15, 2026 01:36 — with GitHub Actions Failure
@huydhn
huydhn temporarily deployed to update-commit-hash July 15, 2026 01:37 — with GitHub Actions Inactive
@huydhn
huydhn temporarily deployed to update-commit-hash July 15, 2026 01:37 — with GitHub Actions Inactive
@huydhn
huydhn temporarily deployed to update-commit-hash July 15, 2026 01:37 — with GitHub Actions Inactive
@huydhn
huydhn had a problem deploying to update-commit-hash July 15, 2026 01:37 — with GitHub Actions Failure
@huydhn
huydhn temporarily deployed to update-commit-hash July 15, 2026 01:37 — with GitHub Actions Inactive
@huydhn
huydhn temporarily deployed to update-commit-hash July 15, 2026 01:37 — with GitHub Actions Inactive
@huydhn
huydhn temporarily deployed to update-commit-hash July 15, 2026 01:37 — with GitHub Actions Inactive
@huydhn huydhn changed the title Surface gh error when metamates team fetch fails in nightly job nightly: fix update-metamates-rule (use pytorchbot token to read closed team) Jul 15, 2026
@huydhn huydhn changed the title nightly: fix update-metamates-rule (use pytorchbot token to read closed team) nightly: fix update-metamates-rule by reading the team with pytorchbot token Jul 15, 2026
…t token

The update-metamates-rule job has failed on every scheduled run since it was
added in #176303. It reads the closed pytorch/metamates team, but
UPDATEBOT_TOKEN belongs to pytorchupdatebot, which is not a pytorch org member
and so cannot enumerate the team's members (GitHub reports it as needing
admin:org). Read the team with GH_PYTORCHBOT_TOKEN (pytorchbot is an org
member); keep UPDATEBOT_TOKEN for checkout and the PR.

This PR was authored with the assistance of an AI coding agent.
@huydhn
huydhn force-pushed the debug-metamates-rule-fetch branch from 4692b04 to b9c2065 Compare July 15, 2026 01:51
@huydhn
huydhn temporarily deployed to update-commit-hash July 15, 2026 01:52 — with GitHub Actions Inactive
@huydhn
huydhn temporarily deployed to update-commit-hash July 15, 2026 01:52 — with GitHub Actions Inactive
@huydhn
huydhn temporarily deployed to update-commit-hash July 15, 2026 01:52 — with GitHub Actions Inactive
@huydhn
huydhn temporarily deployed to update-commit-hash July 15, 2026 01:52 — with GitHub Actions Inactive
@huydhn
huydhn temporarily deployed to update-commit-hash July 15, 2026 01:52 — with GitHub Actions Inactive
@huydhn
huydhn temporarily deployed to update-commit-hash July 15, 2026 01:52 — with GitHub Actions Inactive
@huydhn
huydhn temporarily deployed to update-commit-hash July 15, 2026 01:52 — with GitHub Actions Inactive
@huydhn
huydhn requested a review from atalman July 15, 2026 01:53
@huydhn
huydhn marked this pull request as ready for review July 15, 2026 01:54
@huydhn
huydhn requested a review from a team as a code owner July 15, 2026 01:54
@huydhn

huydhn commented Jul 15, 2026

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge -f 'CI only tweak, the metamates update rule works correctly now'

@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

vishalgoyal316 pushed a commit to vishalgoyal316/pytorch that referenced this pull request Jul 16, 2026
…t token (pytorch#189962)

Fixes pytorch#189032

The `update-metamates-rule` job has failed on every scheduled run since it was added in pytorch#176303. It reads the `closed` pytorch/metamates team, but `UPDATEBOT_TOKEN` belongs to pytorchupdatebot, which is not a pytorch org member and so cannot enumerate the team's members (GitHub reports it as needing `admin:org`).

Fix: read the team with `GH_PYTORCHBOT_TOKEN` (pytorchbot is an org member); keep `UPDATEBOT_TOKEN` for checkout and the PR.

### Testing

* Example failure https://github.com/pytorch/pytorch/actions/runs/29382038881/job/87247646479
* Successful run with the right token https://github.com/pytorch/pytorch/actions/runs/29382692304/job/87249529930
Pull Request resolved: pytorch#189962
Approved by: https://github.com/jeanschmidt
DamJanusz pushed a commit to DamJanusz/pytorch that referenced this pull request Jul 21, 2026
…t token (pytorch#189962)

Fixes pytorch#189032

The `update-metamates-rule` job has failed on every scheduled run since it was added in pytorch#176303. It reads the `closed` pytorch/metamates team, but `UPDATEBOT_TOKEN` belongs to pytorchupdatebot, which is not a pytorch org member and so cannot enumerate the team's members (GitHub reports it as needing `admin:org`).

Fix: read the team with `GH_PYTORCHBOT_TOKEN` (pytorchbot is an org member); keep `UPDATEBOT_TOKEN` for checkout and the PR.

### Testing

* Example failure https://github.com/pytorch/pytorch/actions/runs/29382038881/job/87247646479
* Successful run with the right token https://github.com/pytorch/pytorch/actions/runs/29382692304/job/87249529930
Pull Request resolved: pytorch#189962
Approved by: https://github.com/jeanschmidt
youlituao pushed a commit to youlituao/pytorch that referenced this pull request Jul 28, 2026
…t token (pytorch#189962)

Fixes pytorch#189032

The `update-metamates-rule` job has failed on every scheduled run since it was added in pytorch#176303. It reads the `closed` pytorch/metamates team, but `UPDATEBOT_TOKEN` belongs to pytorchupdatebot, which is not a pytorch org member and so cannot enumerate the team's members (GitHub reports it as needing `admin:org`).

Fix: read the team with `GH_PYTORCHBOT_TOKEN` (pytorchbot is an org member); keep `UPDATEBOT_TOKEN` for checkout and the PR.

### Testing

* Example failure https://github.com/pytorch/pytorch/actions/runs/29382038881/job/87247646479
* Successful run with the right token https://github.com/pytorch/pytorch/actions/runs/29382692304/job/87249529930
Pull Request resolved: pytorch#189962
Approved by: https://github.com/jeanschmidt
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
…t token (pytorch#189962)

Fixes pytorch#189032

The `update-metamates-rule` job has failed on every scheduled run since it was added in pytorch#176303. It reads the `closed` pytorch/metamates team, but `UPDATEBOT_TOKEN` belongs to pytorchupdatebot, which is not a pytorch org member and so cannot enumerate the team's members (GitHub reports it as needing `admin:org`).

Fix: read the team with `GH_PYTORCHBOT_TOKEN` (pytorchbot is an org member); keep `UPDATEBOT_TOKEN` for checkout and the PR.

### Testing

* Example failure https://github.com/pytorch/pytorch/actions/runs/29382038881/job/87247646479
* Successful run with the right token https://github.com/pytorch/pytorch/actions/runs/29382692304/job/87249529930
Pull Request resolved: pytorch#189962
Approved by: https://github.com/jeanschmidt
@github-actions
github-actions Bot deleted the debug-metamates-rule-fetch branch August 15, 2026 02:06

This branch was previously deployed

1 inactive deployment
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.

nightly / update-metamates-rule failing since ~2026-06-29 — UPDATEBOT_TOKEN can't read the pytorch/metamates team

3 participants