这是indexloc提供的服务,不要输入任何密码
Skip to content

Fetch XLA archive using the GitHub API endpoint instead of the web link #30358

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions third_party/xla/revision.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@
# To update XLA to a new revision,
# a) update XLA_COMMIT to the new git commit hash
# b) get the sha256 hash of the commit by running:
# curl -L https://github.com/openxla/xla/archive/<git hash>.tar.gz | sha256sum
# curl -L https://api.github.com/repos/openxla/xla/tarball/{git_hash} | sha256sum
# and update XLA_SHA256 with the result.

XLA_COMMIT = "95d97a6fb9725d124a3206e48d22f7c75841b301"
XLA_SHA256 = "36d0163ae4af4861c68f57a6c2e58520ec5604e594b2ad0e881c0d09390cee6d"
# buildifier: disable=module-docstring
XLA_COMMIT = "62ff8488913b67e504d4a6e5c8ca301b8e351cfd"
XLA_SHA256 = "2699e2fcda60326f2b96344c8fcc1cc861c1022946b8aa68ae85dde99d43c45d"
8 changes: 6 additions & 2 deletions third_party/xla/workspace.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@ def repo():
tf_http_archive(
name = "xla",
sha256 = XLA_SHA256,
strip_prefix = "xla-{commit}".format(commit = XLA_COMMIT),
urls = tf_mirror_urls("https://github.com/openxla/xla/archive/{commit}.tar.gz".format(commit = XLA_COMMIT)),
type = "tar.gz",
strip_prefix = "openxla-xla-{commit}".format(commit = XLA_COMMIT[:7]),
# We use an automated tool to update the revision.bzl file. GitHub prohibits the crawling of
# web links (`/archive/`) links so we use the GitHub API endpoint to get the tarball
# instead.
urls = tf_mirror_urls("https://api.github.com/repos/openxla/xla/tarball/{commit}".format(commit = XLA_COMMIT)),
)

# For development, one often wants to make changes to the TF repository as well
Expand Down
Loading