Skip to content

Add allowlist.yml file for Cross Repo CI Relay - #178681

Closed
fffrog wants to merge 4 commits into
gh/fffrog/162/basefrom
gh/fffrog/162/head
Closed

fffrog wants to merge 4 commits into
gh/fffrog/162/basefrom
gh/fffrog/162/head

Conversation

@fffrog

@fffrog fffrog commented Mar 28, 2026 •

Copy link
Copy Markdown
Collaborator

Stack from ghstack (oldest at bottom):

Please refer to this comment for the overall implementation.

The PyTorch repository should be the preferred location for storing the allowlist.yml file.

Downstream repositories are essentially extensions (or plugins) of the PyTorch repository, so they should only need to be aware of PyTorch itself. Infrastructure repositories such as test-infra and ci-infra should remain transparent to downstream repositories and not be directly exposed.

[ghstack-poisoned]
@fffrog
fffrog requested a review from a team as a code owner March 28, 2026 13:06
@pytorch-bot

pytorch-bot Bot commented Mar 28, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

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

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

✅ No Failures

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

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 Mar 28, 2026
fffrog added a commit that referenced this pull request Mar 28, 2026
The PyTorch repository should be the preferred location for storing the allowlist.yml file.

Downstream repositories are essentially extensions (or plugins) of the PyTorch repository, so they should only need to be aware of PyTorch itself. Infrastructure repositories such as test-infra and ci-infra should remain transparent to downstream repositories and not be directly exposed.


ghstack-source-id: a936347
Pull-Request: #178681
fffrog added a commit that referenced this pull request Mar 28, 2026
Please refer to this [comment](pytorch/rfcs#90 (comment)) for the overall implementation.

The PyTorch repository should be the preferred location for storing the allowlist.yml file.

Downstream repositories are essentially extensions (or plugins) of the PyTorch repository, so they should only need to be aware of PyTorch itself. Infrastructure repositories such as test-infra and ci-infra should remain transparent to downstream repositories and not be directly exposed.

ghstack-source-id: a936347
Pull-Request: #178681
[ghstack-poisoned]
fffrog added a commit that referenced this pull request Mar 30, 2026
Please refer to this [comment](pytorch/rfcs#90 (comment)) for the overall implementation.

The PyTorch repository should be the preferred location for storing the allowlist.yml file.

Downstream repositories are essentially extensions (or plugins) of the PyTorch repository, so they should only need to be aware of PyTorch itself. Infrastructure repositories such as test-infra and ci-infra should remain transparent to downstream repositories and not be directly exposed.

ghstack-source-id: b187886
Pull-Request: #178681
[ghstack-poisoned]
fffrog added a commit that referenced this pull request Mar 30, 2026
Please refer to this [comment](pytorch/rfcs#90 (comment)) for the overall implementation.

The PyTorch repository should be the preferred location for storing the allowlist.yml file.

Downstream repositories are essentially extensions (or plugins) of the PyTorch repository, so they should only need to be aware of PyTorch itself. Infrastructure repositories such as test-infra and ci-infra should remain transparent to downstream repositories and not be directly exposed.

ghstack-source-id: 90e2e71
Pull-Request: #178681
@fffrog
fffrog requested a review from albanD March 31, 2026 11:28

@ZainRizvi ZainRizvi 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.

This can be good for v1. What are your thoughts on how we can later unlock automatically moving repos to lower levels if they're unhealthy? Esp the L4 and L3 repos?

@ZainRizvi ZainRizvi 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.

One small nit on the example formatting.

Comment thread .github/allowlist.yml Outdated
# - org2/downstream-repo2
#
# L3:
# - org3/downstream-repo3:@oncall1,oncall2

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.

Nit: the L3/L4 examples don't have a space after the colon (repo3:@oncall1). In YAML that gets parsed as a plain string rather than a key-value mapping, which would cause a parse error in the allowlist parser. Should be:

# L3:
#     - org3/downstream-repo3: @oncall1,oncall2

(same for L4 below)

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Good catch, thank you a lot.

Have updated.

[ghstack-poisoned]
fffrog added a commit that referenced this pull request Apr 1, 2026
Please refer to this [comment](pytorch/rfcs#90 (comment)) for the overall implementation.

The PyTorch repository should be the preferred location for storing the allowlist.yml file.

Downstream repositories are essentially extensions (or plugins) of the PyTorch repository, so they should only need to be aware of PyTorch itself. Infrastructure repositories such as test-infra and ci-infra should remain transparent to downstream repositories and not be directly exposed.

ghstack-source-id: 052e046
Pull-Request: #178681
@fffrog

fffrog commented Apr 1, 2026

Copy link
Copy Markdown
Collaborator Author

This can be good for v1. What are your thoughts on how we can later unlock automatically moving repos to lower levels if they're unhealthy? Esp the L4 and L3 repos?

My initial thought is that PyTorch already has a bot that tracks CI health metrics. We could define clear rules for each level, and have the bot automatically submit PRs to downgrade repositories based on their health over a period of time.

I think this would be quite important for improving the CI user experience in PyTorch. I’ll think more about this approach and would be happy to discuss it further with you.

@ZainRizvi

Copy link
Copy Markdown
Contributor

This can be good for v1. What are your thoughts on how we can later unlock automatically moving repos to lower levels if they're unhealthy? Esp the L4 and L3 repos?

My initial thought is that PyTorch already has a bot that tracks CI health metrics. We could define clear rules for each level, and have the bot automatically submit PRs to downgrade repositories based on their health over a period of time.

I think this would be quite important for improving the CI user experience in PyTorch. I’ll think more about this approach and would be happy to discuss it further with you.

Having PRs is one approach, but that'll be gated on getting the PR approved by a human which will slow the process down.

Another approach could be to expose an endpoint on HUD that determines the effective tiers. It would:

  • Take this file as an input for "where repos should ideally be"
  • Check the data in ClickHouse to verify each repo is compliant with it's level
  • Internally recognizes which repos should be considered to be at a lower tier

The AWS lambda would use that api call to determine a repo's tiers instead of reading this file directly.
(Let's stick with this simple file for now, and can implement the auto-tiering system after L3 or L4 are implemented)

@ZainRizvi

Copy link
Copy Markdown
Contributor

@pytorchbot merge

@pytorch-bot pytorch-bot Bot added the ciflow/trunk Trigger trunk jobs on your pull request label Apr 8, 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

@github-actions
github-actions Bot deleted the gh/fffrog/162/head branch May 9, 2026 02:25
gplutop7 pushed a commit to gplutop7/pytorch that referenced this pull request Jul 15, 2026
Please refer to this [comment](pytorch/rfcs#90 (comment)) for the overall implementation.

The PyTorch repository should be the preferred location for storing the allowlist.yml file.

Downstream repositories are essentially extensions (or plugins) of the PyTorch repository, so they should only need to be aware of PyTorch itself. Infrastructure repositories such as test-infra and ci-infra should remain transparent to downstream repositories and not be directly exposed.
Pull Request resolved: pytorch#178681
Approved by: https://github.com/ZainRizvi, https://github.com/albanD
aws-kingrj pushed a commit to amazon-contributing/upstream-to-pytorch that referenced this pull request Jul 29, 2026
Please refer to this [comment](pytorch/rfcs#90 (comment)) for the overall implementation.

The PyTorch repository should be the preferred location for storing the allowlist.yml file.

Downstream repositories are essentially extensions (or plugins) of the PyTorch repository, so they should only need to be aware of PyTorch itself. Infrastructure repositories such as test-infra and ci-infra should remain transparent to downstream repositories and not be directly exposed.
Pull Request resolved: pytorch#178681
Approved by: https://github.com/ZainRizvi, https://github.com/albanD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/trunk Trigger trunk jobs on your pull request Merged open source topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants