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

[RLlib; RLlib contrib] Move tuned_examples into rllib_contrib and remove CI learning tests for contrib algos. #40444

Merged
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
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
35 changes: 26 additions & 9 deletions .buildkite/pipeline.ml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,10 @@
- conda activate rllib_contrib
- (cd rllib_contrib/a2c && pip install -r requirements.txt && pip install -e ".[development]")
- ./ci/env/env_info.sh
- pytest rllib_contrib/a2c/tests/
# Examples:
- python rllib_contrib/a2c/examples/a2c_cartpole_v1.py --run-as-test
Copy link
Contributor

Choose a reason for hiding this comment

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

should we move examples to the bazel BUILD file?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great idea, was thinking about this, too. Will make it cleaner. 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

# BAZEL (learning and compilation) tests:
- bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only --test_tag_filters=-flaky rllib_contrib/a2c/...

- label: ":exploding_death_star: RLlib Contrib: A3C Tests"
conditions: ["NO_WHEELS_REQUIRED", "RAY_CI_RLLIB_CONTRIB_AFFECTED"]
Expand All @@ -175,7 +177,8 @@
- conda activate rllib_contrib
- (cd rllib_contrib/a3c && pip install -r requirements.txt && pip install -e ".[development]")
- ./ci/env/env_info.sh
- pytest rllib_contrib/a3c/tests/test_a3c.py
# BAZEL (learning and compilation) tests:
- bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only --test_tag_filters=-flaky rllib_contrib/a3c/...

- label: ":exploding_death_star: RLlib Contrib: AlphaStar Tests"
conditions: ["NO_WHEELS_REQUIRED", "RAY_CI_RLLIB_CONTRIB_AFFECTED"]
Expand All @@ -186,8 +189,10 @@
- conda activate rllib_contrib
- (cd rllib_contrib/alpha_star && pip install -r requirements.txt && pip install -e ".[development]")
- ./ci/env/env_info.sh
- pytest rllib_contrib/alpha_star/tests/
# Examples:
- python rllib_contrib/alpha_star/examples/multi-agent-cartpole-alpha-star.py --run-as-test
# BAZEL (learning and compilation) tests:
- bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only --test_tag_filters=-flaky rllib_contrib/alpha_star/...

- label: ":exploding_death_star: RLlib Contrib: AlphaZero Tests"
conditions: ["NO_WHEELS_REQUIRED", "RAY_CI_RLLIB_CONTRIB_AFFECTED"]
Expand All @@ -198,8 +203,10 @@
- conda activate rllib_contrib
- (cd rllib_contrib/alpha_zero && pip install -r requirements.txt && pip install -e ".[development]")
- ./ci/env/env_info.sh
- pytest rllib_contrib/alpha_zero/tests/
# Examples:
- python rllib_contrib/alpha_zero/examples/alpha_zero_cartpole_sparse_rewards.py --run-as-test
# BAZEL (learning and compilation) tests:
- bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only --test_tag_filters=-flaky rllib_contrib/alpha_zero/...

- label: ":exploding_death_star: RLlib Contrib: APEX DDPG Tests"
conditions: ["NO_WHEELS_REQUIRED", "RAY_CI_RLLIB_CONTRIB_AFFECTED"]
Expand All @@ -210,8 +217,10 @@
- conda activate rllib_contrib
- (cd rllib_contrib/apex_ddpg && pip install -r requirements.txt && pip install -e ".[development]")
- ./ci/env/env_info.sh
- pytest rllib_contrib/apex_ddpg/tests/
# Examples:
- python rllib_contrib/apex_ddpg/examples/apex_ddpg_pendulum_v1.py --run-as-test
# BAZEL (learning and compilation) tests:
- bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only --test_tag_filters=-flaky rllib_contrib/apex_ddpg/...

- label: ":exploding_death_star: RLlib Contrib: APEX DQN Tests"
conditions: ["NO_WHEELS_REQUIRED", "RAY_CI_RLLIB_CONTRIB_AFFECTED"]
Expand All @@ -222,8 +231,10 @@
- conda activate rllib_contrib
- (cd rllib_contrib/apex_dqn && pip install -r requirements.txt && pip install -e ".[development]")
- ./ci/env/env_info.sh
- pytest rllib_contrib/apex_dqn/tests/
# Examples:
- python rllib_contrib/apex_dqn/examples/apex_dqn_cartpole_v1.py --run-as-test
# BAZEL (learning and compilation) tests:
- bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only --test_tag_filters=-flaky rllib_contrib/apex_dqn/...

- label: ":exploding_death_star: RLlib Contrib: ARS Tests"
conditions: ["NO_WHEELS_REQUIRED", "RAY_CI_RLLIB_CONTRIB_AFFECTED"]
Expand All @@ -234,8 +245,10 @@
- conda activate rllib_contrib
- (cd rllib_contrib/ars && pip install -r requirements.txt && pip install -e ".[development"])
- ./ci/env/env_info.sh
- pytest rllib_contrib/ars/tests/
# Examples:
- python rllib_contrib/ars/examples/ars_cartpole_v1.py --run-as-test
# BAZEL (learning and compilation) tests:
- bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only --test_tag_filters=-flaky rllib_contrib/ars/...

- label: ":exploding_death_star: RLlib Contrib: Bandit Tests"
conditions: ["NO_WHEELS_REQUIRED", "RAY_CI_RLLIB_CONTRIB_AFFECTED"]
Expand All @@ -246,8 +259,10 @@
- conda activate rllib_contrib
- (cd rllib_contrib/bandit && pip install -r requirements.txt && pip install -e ".[development]")
- ./ci/env/env_info.sh
- pytest rllib_contrib/bandit/tests/
# Examples:
- python rllib_contrib/bandit/examples/bandit_linucb_interest_evolution_recsim.py --run-as-test
# BAZEL (learning and compilation) tests:
- bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only --test_tag_filters=-flaky rllib_contrib/bandit/...

- label: ":exploding_death_star: RLlib Contrib: CRR Tests"
conditions: ["NO_WHEELS_REQUIRED", "RAY_CI_RLLIB_CONTRIB_AFFECTED"]
Expand All @@ -258,8 +273,10 @@
- conda activate rllib_contrib
- (cd rllib_contrib/crr && pip install -r requirements.txt && pip install -e ".[development]")
- ./ci/env/env_info.sh
- pytest rllib_contrib/crr/tests/
# Examples:
- python rllib_contrib/crr/examples/crr_cartpole_v1.py --run-as-test
# BAZEL (learning and compilation) tests:
- bazel test --config=ci $(./ci/run/bazel_export_options) --build_tests_only --test_tag_filters=-flaky rllib_contrib/crr/...

- label: ":exploding_death_star: RLlib Contrib: DDPG Tests"
conditions: ["NO_WHEELS_REQUIRED", "RAY_CI_RLLIB_CONTRIB_AFFECTED"]
Expand Down
Loading
Loading