Skip to content

make the torchprime E2E test work for forked repos #9344

@zhanyong-wan

Description

@zhanyong-wan

🐛 Bug

If a PR is created via a forked torch_xla repo (e.g. if the contributor has no write permission to the original torch_xla repo), the torchprime E2E test will fail in CI. See #9338 for an example.

The error:

Error when evaluating 'secrets'. .github/workflows/build_and_test.yml (Line: 81, Col: 11): Secret TORCH_XLA_BOT_TOKEN is required, but not provided while calling., .github/workflows/build_and_test.yml (Line: 81, Col: 11): Secret GCLOUD_SERVICE_KEY is required, but not provided while calling.

The root cause is that PRs made from a fork won't have access to any secrets of the original repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    CICI related changebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions