Skip to content

Add run_tests_coordinator#3328

Open
xibinliu wants to merge 1 commit intomainfrom
xibin/ci
Open

Add run_tests_coordinator#3328
xibinliu wants to merge 1 commit intomainfrom
xibin/ci

Conversation

@xibinliu
Copy link
Collaborator

@xibinliu xibinliu commented Mar 5, 2026

Description

Refactor the current workflow code.

Add run_tests_coordinator.yml file.

This file is called by build_and_test_maxtext.yml to run tpu/cpu/gpu unit and integration tests.
It simplifies the caller's inputs.

Tests

See this PR's workflow action runs.

Checklist

Before submitting this PR, please make sure (put X in square brackets):

  • I have performed a self-review of my code. For an optional AI review, add the gemini-review label.
  • I have necessary comments in my code, particularly in hard-to-understand areas.
  • I have run end-to-end tests tests and provided workload links above if applicable.
  • I have made or will make corresponding changes to the doc if needed, including adding new documentation pages to the relevant Table of Contents (toctree directive) as explained in our documentation.

@codecov
Copy link

codecov bot commented Mar 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also move http://github.com/AI-Hypercomputer/maxtext/blob/main/tests/unit/rl_utils_test.py to post_train

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

export MAXTEXT_NOTEBOOKS_ROOT="$MAXTEXT_REPO_ROOT/src/maxtext/examples"

# Install dependencies for running notebooks
$PYTHON_EXE -m pip install papermill ipykernel ipywidgets
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to install these notebook dependencies? Are these not already present in post-train-requirements.txt?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed this line. Thanks for catching this.

@xibinliu xibinliu force-pushed the xibin/ci branch 2 times, most recently from a662345 to a2e7b47 Compare March 19, 2026 21:33
This file is called by build_and_test_maxtext.yml to run
tpu/cpu/gpu unit and integration tests.
It simplifies the caller's input.
pip_deps: ""
- flavor: tpu-integration
pip_deps: ""
- flavor: post-training-tpu-unit
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For consistency, let's rename this to tpu-post-training-unit

include:
- flavor: cpu-unit
pip_deps: ""
- flavor: post-training-cpu-unit
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same: cpu-post-training-unit

export MAXTEXT_PKG_DIR=$(pwd)/src/maxtext
export MAXTEXT_NOTEBOOKS_ROOT="$MAXTEXT_REPO_ROOT/src/maxtext/examples"

# Install dependencies for running notebooks
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment is wrong. We are actually registering the venv to the kernel, right?

"post-training-cpu-unit": "cpu_only"
}')[inputs.flavor] }}

pytest_extra_args: >-
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need this when we have already added not post_training marker to tpu unit tests at line 107?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants