Skip to content

[RLlib][CI] Tag those RLlib tests that needs to be tiggered upon Ray data changes#33488

Merged
gjoliver merged 3 commits into
ray-project:masterfrom
kouroshHakha:trigger-rllib-with-ray-data
Mar 23, 2023
Merged

[RLlib][CI] Tag those RLlib tests that needs to be tiggered upon Ray data changes#33488
gjoliver merged 3 commits into
ray-project:masterfrom
kouroshHakha:trigger-rllib-with-ray-data

Conversation

@kouroshHakha
Copy link
Copy Markdown
Contributor

Why are these changes needed?

We will add more tests as they get more surfaced up later down the line.

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: Kourosh Hakhamaneshi <kourosh@anyscale.com>
Signed-off-by: Kourosh Hakhamaneshi <kourosh@anyscale.com>
rllib/...

- label: ":brain: RLlib: RLlib tests on ray data"
conditions: ["NO_WHEELS_REQUIRED", "RAY_CI_DATA_AFFECTED"]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

also needs RAY_CI_RLLIB_AFFECTED?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

There is a separate test suite for all of these. This is suite is gonna be specific only to data changes?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

But if rllib is changed, you still want to run these tests, right?

The filters are OR filters, so if one of the conditions applies, the test suite will be run

- ./ci/env/env_info.sh
- bazel test --config=ci $(./ci/run/bazel_export_options)
--build_tests_only
--test_tag_filters=ray_data,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

we may want to exclude ray_data tagged tests from the other test suites so they don't get run twice on master

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I see your concern.
I can make this change so that this test suite gets run only once on master and on ci during any data or rllib changes

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1 excluding the data tests in the other rllib test suites

Signed-off-by: Kourosh Hakhamaneshi <kourosh@anyscale.com>
@kouroshHakha
Copy link
Copy Markdown
Contributor Author

Fixed @amogkam 's concern by excluding the test suite from master builds as they are already run via RLlib's regular test suites.

Copy link
Copy Markdown
Contributor

@krfricke krfricke left a comment

Choose a reason for hiding this comment

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

Let's definitely exclude the ray_data tag from the other test suites

- ./ci/env/env_info.sh
- bazel test --config=ci $(./ci/run/bazel_export_options)
--build_tests_only
--test_tag_filters=ray_data,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

+1 excluding the data tests in the other rllib test suites

rllib/...

- label: ":brain: RLlib: RLlib tests on ray data"
conditions: ["NO_WHEELS_REQUIRED", "RAY_CI_DATA_AFFECTED"]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

But if rllib is changed, you still want to run these tests, right?

The filters are OR filters, so if one of the conditions applies, the test suite will be run

@kouroshHakha
Copy link
Copy Markdown
Contributor Author

@krfricke So we want the new test suite to only run on ray_data changes. If there are ray_data changes we run the tests under this test suite. If rllib changes we run those tests but they are scattered across different rllib tests suites. To avoid running twice on master, the new rllib + ray data test suite is excluded. Why do you still want to exclude ray_data tag from rllib tests?

@krfricke
Copy link
Copy Markdown
Contributor

If a PR changes both data and rllib, it will run it twice, right? Same on branch commits? Because there is no exclusion policy for the ray_data tests

Copy link
Copy Markdown
Contributor

@krfricke krfricke left a comment

Choose a reason for hiding this comment

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

Synced offline

@gjoliver gjoliver merged commit dee4e2e into ray-project:master Mar 23, 2023
elliottower pushed a commit to elliottower/ray that referenced this pull request Apr 22, 2023
…data changes (ray-project#33488)

Signed-off-by: Kourosh Hakhamaneshi <kourosh@anyscale.com>
Signed-off-by: elliottower <elliot@elliottower.com>
ProjectsByJackHe pushed a commit to ProjectsByJackHe/ray that referenced this pull request May 4, 2023
…data changes (ray-project#33488)

Signed-off-by: Kourosh Hakhamaneshi <kourosh@anyscale.com>
Signed-off-by: Jack He <jackhe2345@gmail.com>
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.

4 participants