Skip to content
Open
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
146 changes: 0 additions & 146 deletions .github/actions/setup-miniconda/action.yml

This file was deleted.

11 changes: 6 additions & 5 deletions .github/workflows/CPUTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
cpu:
name: "CPU tests"
Expand All @@ -18,9 +21,9 @@ jobs:
os: [ubuntu-latest]
python-version: ['3.12']
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
Expand All @@ -38,13 +41,11 @@ jobs:
- name: Analysing the code with pylint in end_to_end/
run: |
pylint --fail-under=7 end_to_end/ && \
echo 'PyLint check on pend_to_end/ is successful' || { echo \
echo 'PyLint check on end_to_end/ is successful' || { echo \
'PyLint check has failed. Please run bash code_style.sh to fix issues'; exit 20; }
- name: Analysing the code with pyink in maxdiffusion/
run: |
pyink src/maxdiffusion --check --diff --color --pyink-indentation=2 --line-length=125
- name: Analysing the code with pyink in end_to_end/
run: |
pyink end_to_end --check --diff --color --pyink-indentation=2 --line-length=125


15 changes: 5 additions & 10 deletions .github/workflows/UnitTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: read

jobs:
build:
strategy:
Expand All @@ -39,17 +42,16 @@ jobs:
name: "TPU test (${{ matrix.tpu-type }})"
runs-on: ["self-hosted","${{ matrix.tpu-type }}"]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
- name: Set up Python 3.12
uses: actions/setup-python@v5
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: '3.12'
- name: Install dependencies
run: |
bash setup.sh MODE=stable
export PATH=$PATH:$HOME/.local/bin
pip install ruff
pip install isort
pip install pytest
- name: Analysing the code with ruff
run: |
Expand All @@ -62,10 +64,3 @@ jobs:
run: | #--deselect=src/maxdiffusion/tests/input_pipeline_interface_test.py
export LIBTPU_INIT_ARGS='--xla_tpu_scoped_vmem_limit_kib=65536'
HF_HUB_CACHE=/mnt/disks/github-runner-disk/ HF_HOME=/mnt/disks/github-runner-disk/ TOKENIZERS_PARALLELISM=false python3 -m pytest --ignore=src/maxdiffusion/kernels/ --deselect=src/maxdiffusion/tests/ltx_transformer_step_test.py -x
# add_pull_ready
# if: github.ref != 'refs/heads/main'
# permissions:
# checks: read
# pull-requests: write
# needs: build
# uses: ./.github/workflows/AddLabel.yml
11 changes: 7 additions & 4 deletions .github/workflows/UploadDockerImages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,26 @@
# See the License for the specific language governing permissions and
# limitations under the License.

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
# This workflow builds the MaxDiffusion stable and nightly dependency/runner Docker images
# and pushes them to GCR via .github/workflows/build_and_upload_images.sh.

name: Build Images

on:
schedule:
# Run the job daily at 12AM UTC
- cron: '0 0 * * *'

workflow_dispatch:

permissions:
contents: read

jobs:
build-image:
runs-on: ["self-hosted", "e2", "cpu"]
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
- name: Cleanup old docker images
run: docker system prune --all --force
- name: build maxdiffusion stable image
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/XLML.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
-H "Authorization: token $GITHUB_TOKEN" \
-H "Accept: application/vnd.github.v3+json" \
"https://api.github.com/repos/${{ github.repository }}/issues/$PR_NUMBER/comments" \
-d '{ "body": "e2e testgrid: https://8bcf50593faf4ea38060e236169827e5-dot-us-central1.composer.googleusercontent.com/dags/maxdiffusion_tpu_e2e/grid" }'
-d '{ "body": "e2e testgrid: https://8bcf50593faf4ea38060e236169827e5-dot-us-central1.composer.googleusercontent.com/dags/maxdiffusion_tpu_e2e/grid" }'
20 changes: 13 additions & 7 deletions .github/workflows/gemini-dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defaults:
jobs:
debugger:
# Debug mode: with a repository variable called DEBUG to true
if: |-
if: |-
${{ fromJSON(vars.DEBUG || vars.ACTIONS_STEP_DEBUG || false) }}
runs-on: 'ubuntu-latest'
permissions:
Expand All @@ -35,7 +35,7 @@ jobs:
DEBUG_event__pull_request__author_association: '${{ github.event.pull_request.author_association }}'
DEBUG_event__review__author_association: '${{ github.event.review.author_association }}'
DEBUG_event: '${{ toJSON(github.event) }}'
run: |-
run: |-
env | grep '^DEBUG_'

dispatch:
Expand Down Expand Up @@ -67,7 +67,7 @@ jobs:
id: 'mint_identity_token'
if: |-
${{ vars.APP_ID }}
uses: 'actions/create-github-app-token@v2'
uses: 'actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349' # v2.2.2
with:
app-id: '${{ vars.APP_ID }}'
private-key: '${{ secrets.APP_PRIVATE_KEY }}'
Expand All @@ -77,7 +77,7 @@ jobs:

- name: 'Extract command'
id: 'extract_command'
uses: 'actions/github-script@v8'
uses: 'actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd' # v8.0.0
env:
EVENT_TYPE: '${{ github.event_name }}.${{ github.event.action }}'
REQUEST: '${{ github.event.comment.body || github.event.review.body || github.event.issue.body }}'
Expand Down Expand Up @@ -126,7 +126,10 @@ jobs:
pull-requests: 'write'
with:
additional_context: '${{ needs.dispatch.outputs.additional_context }}'
secrets: 'inherit'
secrets:
APP_PRIVATE_KEY: '${{ secrets.APP_PRIVATE_KEY }}'
GEMINI_API_KEY: '${{ secrets.GEMINI_API_KEY }}'
GOOGLE_API_KEY: '${{ secrets.GOOGLE_API_KEY }}'

invoke:
needs: 'dispatch'
Expand All @@ -140,7 +143,10 @@ jobs:
pull-requests: 'write'
with:
additional_context: '${{ needs.dispatch.outputs.additional_context }}'
secrets: 'inherit'
secrets:
APP_PRIVATE_KEY: '${{ secrets.APP_PRIVATE_KEY }}'
GEMINI_API_KEY: '${{ secrets.GEMINI_API_KEY }}'
GOOGLE_API_KEY: '${{ secrets.GOOGLE_API_KEY }}'

fallthrough:
needs:
Expand All @@ -159,7 +165,7 @@ jobs:
id: 'mint_identity_token'
if: |-
${{ vars.APP_ID }}
uses: 'actions/create-github-app-token@v2'
uses: 'actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349' # v2.2.2
with:
app-id: '${{ vars.APP_ID }}'
private-key: '${{ secrets.APP_PRIVATE_KEY }}'
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/gemini-invoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ on:
type: 'string'
description: 'Any additional context from the request'
required: false
secrets:
APP_PRIVATE_KEY:
required: false
GEMINI_API_KEY:
required: false
GOOGLE_API_KEY:
required: false

concurrency:
# any single pull request, only one invoke runs at a time
Expand All @@ -30,7 +37,7 @@ jobs:
id: 'mint_identity_token'
if: |-
${{ vars.APP_ID }}
uses: 'actions/create-github-app-token@v2'
uses: 'actions/create-github-app-token@fee1f7d63c2ff003460e3d139729b119787bc349' # v2.2.2
with:
app-id: '${{ vars.APP_ID }}'
private-key: '${{ secrets.APP_PRIVATE_KEY }}'
Expand All @@ -39,9 +46,9 @@ jobs:
permission-pull-requests: 'write'

- name: 'Run Gemini CLI'
# Trigger Gemini with context
# Trigger Gemini with context
id: 'run_gemini'
uses: 'google-github-actions/run-gemini-cli@main'
uses: 'google-github-actions/run-gemini-cli@f77273f4c914e4bf38440cf36a0369cb64a37489' # v0.1.22
env:
TITLE: '${{ github.event.pull_request.title || github.event.issue.title }}'
DESCRIPTION: '${{ github.event.pull_request.body || github.event.issue.body }}'
Expand Down
Loading
Loading