Skip to content

Commit 6312334

Browse files
committed
Merge remote-tracking branch 'upstream/master' into upstream
2 parents 9d1ef4d + cc68294 commit 6312334

12,177 files changed

Lines changed: 1420212 additions & 453328 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.bazelrc

Lines changed: 548 additions & 468 deletions
Large diffs are not rendered by default.

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
7.4.1
1+
7.7.0
22
# NOTE: Update Bazel version in tensorflow/tools/ci_build/release/common.sh.oss

.github/workflows/arm-cd.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ jobs:
5252
run: find /home/ubuntu/actions-runner/_work/tensorflow/tensorflow/. -name . -o -prune -exec sudo rm -rf -- {} + || true
5353
- name: Checkout repository for nightly (skipped for releases)
5454
if: ${{ github.event_name == 'schedule' }}
55-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
55+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
5656
with:
5757
ref: 'nightly'
5858
- name: Checkout repository for releases (skipped for nightly)
5959
if: ${{ github.event_name == 'push' }}
60-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
60+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
6161
- name: Build and test pip wheel
6262
shell: bash
6363
run: |

.github/workflows/arm-ci-extended-cpp.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ jobs:
5050
run: find /home/ubuntu/actions-runner/_work/tensorflow/tensorflow/. -name . -o -prune -exec sudo rm -rf -- {} + || true
5151
- name: Checkout repository for nightly (skipped for releases)
5252
if: ${{ github.event_name == 'schedule' }}
53-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
53+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
5454
with:
5555
ref: 'nightly'
5656
- name: Checkout repository
5757
if: ${{ github.event_name == 'push' }}
58-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
58+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
5959
- name: Build binary and run C++ tests
6060
shell: bash
6161
run: |

.github/workflows/arm-ci-extended.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ jobs:
5151
run: find /home/ubuntu/actions-runner/_work/tensorflow/tensorflow/. -name . -o -prune -exec sudo rm -rf -- {} + || true
5252
- name: Checkout repository for nightly (skipped for releases)
5353
if: ${{ github.event_name == 'schedule' }}
54-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
54+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
5555
with:
5656
ref: 'nightly'
5757
- name: Checkout repository
5858
if: ${{ github.event_name == 'push' }}
59-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
59+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
6060
- name: Build binary and run python tests on nightly for all python versions
6161
shell: bash
6262
run: |

.github/workflows/arm-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
shell: bash
4848
run: find /home/ubuntu/actions-runner/_work/tensorflow/tensorflow/. -name . -o -prune -exec sudo rm -rf -- {} + || true
4949
- name: Checkout repository
50-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
50+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
5151
- name: Build binary and run python tests
5252
shell: bash
5353
run: |
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# Copyright 2026 The TensorFlow Authors. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
# ==============================================================================
15+
name: Reusable Build
16+
on:
17+
workflow_call:
18+
inputs:
19+
runner:
20+
description: 'Which runner should the workflow run on?'
21+
required: true
22+
type: string
23+
tfci:
24+
description: 'TFCI environment variable'
25+
required: true
26+
type: string
27+
job_name:
28+
description: 'Name of the job'
29+
required: false
30+
type: string
31+
default: 'build-and-test'
32+
33+
permissions:
34+
contents: read
35+
36+
jobs:
37+
build-and-test:
38+
name: ${{ inputs.job_name }}
39+
runs-on: ${{ inputs.runner }}
40+
env:
41+
PIP_NO_CACHE_DIR: 1
42+
defaults:
43+
run:
44+
shell: bash
45+
container: ${{ (contains(inputs.runner, 'linux-x86') && 'us-docker.pkg.dev/ml-oss-artifacts-published/ml-public-container/ml-build:latest') ||
46+
(contains(inputs.runner, 'linux-arm64') && 'us-docker.pkg.dev/ml-oss-artifacts-published/ml-public-container/ml-build-arm64:latest') ||
47+
(contains(inputs.runner, 'windows-x86') && null) }}
48+
timeout-minutes: 300
49+
steps:
50+
51+
- name: Checkout
52+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # ratchet:actions/checkout@v4
53+
env:
54+
GIT_CONFIG_PARAMETERS: "'checkout.workers=12' 'core.featureManyFiles=true'"
55+
with:
56+
ref: ${{ github.sha }}
57+
persist-credentials: false
58+
fetch-depth: 1
59+
60+
- name: Build and test
61+
env:
62+
TFCI: ${{ inputs.tfci }}
63+
TFCI_GITHUB_ACTIONS: true
64+
run: ./ci/official/pycpp.sh
65+
66+
- name: Upload Profile
67+
if: always()
68+
continue-on-error: true
69+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
70+
with:
71+
name: "profile-${{ github.workflow }}-${{ inputs.runner }}-${{ inputs.tfci }}-${{ github.run_number }}-${{ github.run_attempt }}"
72+
path: build_output/profile.json.gz
73+
if-no-files-found: warn

.github/workflows/cffconvert.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
runs-on: ubuntu-latest
3131
steps:
3232
- name: Check out a copy of the repository
33-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
33+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
3434

3535
- name: Check whether the citation metadata from CITATION.cff is valid
3636
uses: citation-file-format/cffconvert-github-action@4cf11baa70a673bfdf9dad0acc7ee33b3f4b6084 # v2.0.0

.github/workflows/ci-build.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Copyright 2026 The TensorFlow Authors. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
# ==============================================================================
15+
name: CI
16+
17+
on:
18+
pull_request:
19+
branches:
20+
- master
21+
- r2.**
22+
23+
permissions:
24+
contents: read
25+
26+
concurrency:
27+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
28+
# Don't cancel in-progress jobs for master branches.
29+
cancel-in-progress: ${{ github.ref != 'master' }}
30+
31+
jobs:
32+
build-linux-x86-cpu:
33+
uses: ./.github/workflows/build-reusable.yml
34+
with:
35+
runner: 'linux-x86-n2-16'
36+
tfci: 'py313,linux_x86,rbe,no_docker'
37+
38+
build-linux-x86-cuda:
39+
uses: ./.github/workflows/build-reusable.yml
40+
with:
41+
runner: 'linux-x86-n2-16'
42+
tfci: 'py313,linux_x86_cuda,rbe,no_docker'
43+
44+
build-linux-x86-cuda13:
45+
uses: ./.github/workflows/build-reusable.yml
46+
with:
47+
runner: 'linux-x86-n2-16'
48+
tfci: 'py313,linux_x86_cuda13_nvcc,rbe,no_docker'
49+
50+
build-arm64:
51+
uses: ./.github/workflows/build-reusable.yml
52+
with:
53+
runner: 'linux-x86-n2-16'
54+
tfci: 'py313,linux_arm64_cross_compile,rbe,no_docker,enable_pycpp_build'
55+
job_name: 'build-only'
56+
57+
build-windows-x86:
58+
uses: ./.github/workflows/build-reusable.yml
59+
with:
60+
runner: 'windows-x86-n2-16'
61+
tfci: 'py313,windows_x86_ml_actions,rbe'

.github/workflows/issue-on-pr-rollback.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ jobs:
3333
startsWith(github.event.head_commit.message, 'Rollback of PR #')
3434
steps:
3535
- name: Checkout repo
36-
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
36+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
3737
- name: Create a new Github Issue
38-
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
38+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
3939
with:
4040
github-token: ${{secrets.GITHUB_TOKEN}}
4141
script: |

0 commit comments

Comments
 (0)