Skip to content

Commit d11b0d8

Browse files
Merge pull request #4196 from AI-Hypercomputer:github_workflow_reorg
PiperOrigin-RevId: 934472012
2 parents 03cabc3 + 4bb1ca9 commit d11b0d8

24 files changed

Lines changed: 159 additions & 179 deletions
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023–2025 Google LLC
1+
# Copyright 2023–2026 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -12,7 +12,12 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
name: Add Label
15+
# This workflow automatically adds a "pull ready" label to a PR
16+
# when it has received at least 2 approving reviews and all checks have passed.
17+
# It runs on pull request review events, workflow run completion events for the "MaxText Package Tests" workflow,
18+
# and can also be triggered manually via workflow dispatch.
19+
20+
name: Add Pull Ready Label
1621

1722
on:
1823
workflow_run:

.github/workflows/build_and_upload_images.sh

Lines changed: 0 additions & 72 deletions
This file was deleted.

.github/workflows/build_package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2025 Google LLC
1+
# Copyright 2023-2026 Google LLC
22

33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
# This file defines a module for building and uploading a maxtext pacakge
15+
# This workflow builds and uploads MaxText package
1616
# based on the pyproject.toml at the current github workspace.
1717

1818
name: Build and Upload MaxText Package

.github/workflows/check_docs_build.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# Copyright 2023-2026 Google LLC
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+
# https://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+
# This workflow checks if the documentation build is successful.
16+
117
name: Check the Documentation Build
218

319
on:

.github/workflows/build_and_test_maxtext.yml renamed to .github/workflows/ci_pipeline.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2025 Google LLC
1+
# Copyright 2023-2026 Google LLC
22

33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -12,7 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
# This workflow will build maxtext python package and run tests.
15+
# This workflow orchestrates the CI pipeline for MaxText,
16+
# including building the package, running tests, and notifying about failures.
1617

1718
name: MaxText Package Tests
1819

@@ -308,7 +309,7 @@ jobs:
308309
name: Investigate failed build # investigates failure of scheduled run and comments on tracking issue
309310
needs: [tpu-tests, gpu-tests, cpu-tests, maxtext_jupyter_notebooks, maxtext_tpu_pathways_unit_tests, maxtext_tpu_pathways_integration_tests, notify_failure]
310311
if: ${{ always() && contains(needs.*.result, 'failure') && github.event_name == 'schedule' }}
311-
uses: ./.github/workflows/gemini-investigate.yml
312+
uses: ./.github/workflows/gemini_investigate.yml
312313
permissions:
313314
contents: 'read'
314315
id-token: 'write'
Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2023–2025 Google LLC
1+
# Copyright 2023–2026 Google LLC
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -12,7 +12,9 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
name: CodeQuality
15+
# This workflow runs code quality checks using pre-commit on pull requests.
16+
17+
name: Code Quality
1618

1719
on:
1820
pull_request:
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
# Copyright 2023–2026 Google LLC
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+
# https://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+
# This workflow checks for broken links in the documentation.
116

217
name: Documentation Link Checker
318

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
# Copyright 2023–2026 Google LLC
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+
# https://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+
# This workflow acts as a central dispatcher for handling Gemini-related commands
16+
# issued via PR comments, review comments, or issue comments.
17+
# Depending on the command, it routes the request to the appropriate workflow for processing.
18+
119
name: 'Gemini Dispatch'
220

321
on:
@@ -130,7 +148,7 @@ jobs:
130148
needs: 'dispatch'
131149
if: |-
132150
${{ needs.dispatch.outputs.command == 'review' }}
133-
uses: './.github/workflows/gemini-review.yml'
151+
uses: './.github/workflows/gemini_review.yml'
134152
permissions:
135153
contents: 'read'
136154
id-token: 'write'
@@ -144,7 +162,7 @@ jobs:
144162
needs: 'dispatch'
145163
if: |-
146164
${{ needs.dispatch.outputs.command == 'invoke' }}
147-
uses: './.github/workflows/gemini-invoke.yml'
165+
uses: './.github/workflows/gemini_invoke.yml'
148166
permissions:
149167
contents: 'read'
150168
id-token: 'write'
@@ -158,7 +176,7 @@ jobs:
158176
needs: 'dispatch'
159177
if: |-
160178
${{ needs.dispatch.outputs.command == 'investigate' }}
161-
uses: './.github/workflows/gemini-investigate.yml'
179+
uses: './.github/workflows/gemini_investigate.yml'
162180
permissions:
163181
contents: 'read'
164182
id-token: 'write'
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
# Copyright 2023–2026 Google LLC
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+
# https://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+
# This workflow handles the "investigate" command for Gemini,
16+
# which is used to analyze and investigate test failures by
17+
# gathering relevant logs and context, and then running a Gemini
18+
# agent to assist in diagnosing the issue.
19+
120
name: 'Gemini Failure Investigator'
221

322
on:
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,21 @@
1+
# Copyright 2023–2026 Google LLC
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+
# https://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+
# This workflow handles "invoke" commands from the Gemini Dispatch workflow,
16+
# allowing for flexible execution of custom logic based on PR comments,
17+
# review comments, issue comments, or label events.
18+
119
name: 'Gemini Invoke'
220

321
on:

0 commit comments

Comments
 (0)