Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[tune] Turn on new execution path per default [no_early_kickoff] #34840

Merged
merged 17 commits into from
May 2, 2023

Conversation

krfricke
Copy link
Contributor

@krfricke krfricke commented Apr 27, 2023

Why are these changes needed?

We've introduced a new execution path for Ray Tune behind a feature flag. The unit tests have been stable for some time. To get better dogfooding results, we should enable it per default, so that all unit and release tests are run using the new engine.

If we run into problems, we can easily revert this PR before we cut the 2.5 release branch.

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: Kai Fricke <kai@anyscale.com>
@pcmoritz
Copy link
Contributor

Hey Kai, are there any API changes as part of the new execution path? If no that's perfect, if yes we should make sure no existing code breaks as part of the change :)

@krfricke
Copy link
Contributor Author

No API changes! Except for not accepting the already deprecated RayTrialExecutor anymore:

    elif trial_executor:
        warnings.warn(
            "Passing a custom `trial_executor` is deprecated and will be removed "
            "in the future.",
            DeprecationWarning,
        )

Otherwise - ideally - people won't even notice.

Kai Fricke added 8 commits May 1, 2023 10:36
Signed-off-by: Kai Fricke <kai@anyscale.com>
Signed-off-by: Kai Fricke <kai@anyscale.com>
Signed-off-by: Kai Fricke <kai@anyscale.com>
Signed-off-by: Kai Fricke <kai@anyscale.com>
Signed-off-by: Kai Fricke <kai@anyscale.com>
Signed-off-by: Kai Fricke <kai@anyscale.com>
Signed-off-by: Kai Fricke <kai@anyscale.com>
@krfricke krfricke changed the title [tune] Turn on new execution path per default [tune] Turn on new execution path per default [no_early_kickoff] May 1, 2023
Kai Fricke added 6 commits May 1, 2023 17:23
@krfricke
Copy link
Contributor Author

krfricke commented May 2, 2023

With some minor changes (moving 2 code blocks and one safety check) all CI tests are passing and failing tests seem unrelated.

I've also kicked off a round of release tests (all tune_ tests and the air_benchmark_ tests), all of which are passing (except for 2 unstable tests that also fail on master).

Thus it looks like we have functional parity and can go ahead.

I'm preparing a PR to port over unit tests (#34833) which hopefully will be ready this week, too.

@krfricke krfricke merged commit ff11cb0 into ray-project:master May 2, 2023
@krfricke krfricke deleted the tune/execution/default-on branch May 2, 2023 13:24
architkulkarni pushed a commit to architkulkarni/ray that referenced this pull request May 16, 2023
…-project#34840)

We've introduced a new execution path for Ray Tune behind a feature flag. The unit tests have been stable for some time. To get better dogfooding results, we should enable it per default, so that all unit and release tests are run using the new engine.

If we run into problems, we can easily revert this PR before we cut the 2.5 release branch.

Signed-off-by: Kai Fricke <kai@anyscale.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.

3 participants