Skip to content

[Train] ignore tensorflow test for py312#56244

Merged
matthewdeng merged 1 commit intoray-project:masterfrom
xinyuangui2:disable-tensorflow-test-for-py312
Sep 4, 2025
Merged

[Train] ignore tensorflow test for py312#56244
matthewdeng merged 1 commit intoray-project:masterfrom
xinyuangui2:disable-tensorflow-test-for-py312

Conversation

@xinyuangui2
Copy link
Copy Markdown
Contributor

Why are these changes needed?

Tensorflow is not installed for Python 3.12 because of keras compatibility. Skip the test.

Related issue number

Checks

  • I've signed off every commit(by using the -s flag, i.e., git commit -s) in this PR.
  • I've run scripts/format.sh to lint the changes in this PR.
  • I've included any doc changes needed for https://docs.ray.io/en/master/.
    • I've added any new APIs to the API Reference. For example, if I added a
      method in Tune, I've added it in doc/source/tune/api/ under the
      corresponding .rst file.
  • I've made sure the tests are passing. Note that there might be a few flaky tests, see the recent failures at https://flakey-tests.ray.io/
  • Testing Strategy
    • Unit tests
    • Release tests
    • This PR is not tested :(

Signed-off-by: xgui <xgui@anyscale.com>
@xinyuangui2 xinyuangui2 requested a review from a team as a code owner September 4, 2025 16:56
Copy link
Copy Markdown
Contributor

@liulehui liulehui left a comment

Choose a reason for hiding this comment

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

Thanks!

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request correctly skips the test_tensorflow_linear_local_mode test on Python 3.12 and newer versions by adding a @pytest.mark.skipif decorator. This is necessary as Tensorflow is not installed for these Python versions in the CI environment, which would otherwise cause a test failure. The change is straightforward, correct, and aligns with the existing version checks in the file.

@ray-gardener ray-gardener bot added the train Ray Train Related Issue label Sep 4, 2025
@matthewdeng matthewdeng enabled auto-merge (squash) September 4, 2025 20:02
@github-actions github-actions bot added the go add ONLY when ready to merge, run all tests label Sep 4, 2025
@matthewdeng matthewdeng merged commit 3346d67 into ray-project:master Sep 4, 2025
6 checks passed
sampan-s-nayak pushed a commit to sampan-s-nayak/ray that referenced this pull request Sep 8, 2025
Signed-off-by: xgui <xgui@anyscale.com>
Signed-off-by: sampan <sampan@anyscale.com>
jugalshah291 pushed a commit to jugalshah291/ray_fork that referenced this pull request Sep 11, 2025
Signed-off-by: xgui <xgui@anyscale.com>
Signed-off-by: jugalshah291 <shah.jugal291@gmail.com>
wyhong3103 pushed a commit to wyhong3103/ray that referenced this pull request Sep 12, 2025
Signed-off-by: xgui <xgui@anyscale.com>
Signed-off-by: yenhong.wong <yenhong.wong@grabtaxi.com>
dstrodtman pushed a commit that referenced this pull request Oct 6, 2025
Signed-off-by: xgui <xgui@anyscale.com>
Signed-off-by: Douglas Strodtman <douglas@anyscale.com>
landscapepainter pushed a commit to landscapepainter/ray that referenced this pull request Nov 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go add ONLY when ready to merge, run all tests train Ray Train Related Issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants