Skip to content

Commit 94def70

Browse files
authored
Skip test-samsung-models-linux on fork PRs (pytorch#15402)
### Summary Similar to pytorch#15401, skip test-samsung-models-linux on forked PRs as it requires secrets and thus fails. This should reduce false-negatives / noise on contributor PRs. Example failure (from https://github.com/pytorch/executorch/actions/runs/18856230366/job/53804732612): ``` Failed to extract download URL {"success":false,"data":null,"msg":"API key is required","page":0,"total":0} exit 1 ``` ### Test Plan Verified that test-samsung-models-linux is skipped on this PR.
1 parent 0e18b9f commit 94def70

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/pull.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -909,6 +909,8 @@ jobs:
909909
910910
test-samsung-models-linux:
911911
name: test-samsung-models-linux
912+
# Skip this job if the pull request is from a fork (secrets are not available)
913+
if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name != 'pull_request'
912914
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
913915
permissions:
914916
id-token: write

0 commit comments

Comments
 (0)