Skip to content

Add public is_current_run_pr_from_fork() wrapper for cache-type gating#5848

Open
subodh-dubey-amd wants to merge 1 commit into
mainfrom
users/subodh-dubey-amd/sccache-public-fork-helper
Open

Add public is_current_run_pr_from_fork() wrapper for cache-type gating#5848
subodh-dubey-amd wants to merge 1 commit into
mainfrom
users/subodh-dubey-amd/sccache-public-fork-helper

Conversation

@subodh-dubey-amd

@subodh-dubey-amd subodh-dubey-amd commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #5816, addressing the review nit at #5816 (comment) (importing the private _is_current_run_pr_from_fork across files).

Adds a public is_current_run_pr_from_fork() wrapper in s3_buckets.py and repoints compute_pytorch_cache_type.py (and its test mocks) to it. No behavior change.

Test plan

  • compute_pytorch_cache_type_test.py (8 cases) pass
  • Real fork-event smoke test: fork+sccache -> none

Submission Checklist

Look over the contributing guidelines at https://github.com/ROCm/ROCm/blob/develop/CONTRIBUTING.md#pull-requests.

Follow-up to #5816. compute_pytorch_cache_type.py imported the
module-private _is_current_run_pr_from_fork() from s3_buckets.py. Add a
public is_current_run_pr_from_fork() wrapper and import that instead, so
the helper is a supported entry point for reuse (per review feedback on
#5816).

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: TODO

Development

Successfully merging this pull request may close these issues.

1 participant