Skip to content

Migrate to RHAPSODY#84

Merged
AymenFJA merged 11 commits intomainfrom
feature/rhapsody
Feb 27, 2026
Merged

Migrate to RHAPSODY#84
AymenFJA merged 11 commits intomainfrom
feature/rhapsody

Conversation

@AymenFJA
Copy link
Collaborator

@AymenFJA AymenFJA commented Feb 26, 2026

1-Migrate the runtime system used by ROSE from asyncflow to RHAPSODY
2-Update tests to comply with the changes above
3-Update examples/tutorials and use cases to comply with the changes above

1-Migrate the runtime system used by ROSE from asyncflow to RHAPSODY
2-Update tests to comply with the changes above
3-Update examples/tutorials and use cases to comply with the changes above
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@AymenFJA AymenFJA self-assigned this Feb 26, 2026
@AymenFJA AymenFJA added Q1 documentation Improvements or additions to documentation enhancement New feature or request High labels Feb 26, 2026
@gemini-code-assist
Copy link

Summary of Changes

Hello @AymenFJA, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request refactors the ROSE project to utilize RHAPSODY as its primary workflow execution backend, moving away from the previous asyncflow implementation. This strategic shift aims to leverage RHAPSODY's capabilities for workflow orchestration. The changes encompass updating import statements across the entire codebase, including documentation, examples, and test suites, to ensure seamless integration and functionality with the new backend. Additionally, the project's dependencies have been adjusted to reflect this migration.

Highlights

  • Runtime System Migration: The core runtime system used by ROSE has been migrated from radical.asyncflow to RHAPSODY, enhancing the underlying workflow orchestration capabilities.
  • Dependency Update: The project's pyproject.toml file has been updated to replace the radical.pilot dependency with rhapsody-py, aligning with the new runtime system.
  • Codebase Adaptation: All relevant files, including documentation, examples, tutorials, and tests, have been updated to reflect the new import paths for execution backends (e.g., RadicalExecutionBackend, ConcurrentExecutionBackend) from rhapsody.backends.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • README.md
    • Updated import path for RadicalExecutionBackend from radical.asyncflow to rhapsody.backends.
  • docs/user-guide/advanced-rl-workflow.md
    • Updated import path for RadicalExecutionBackend from radical.asyncflow to rhapsody.backends.
  • docs/user-guide/basic-acl-workflow.md
    • Updated import path for RadicalExecutionBackend from radical.asyncflow to rhapsody.backends.
  • docs/user-guide/basic-rl-workflow.md
    • Updated import path for RadicalExecutionBackend from radical.asyncflow to rhapsody.backends.
  • docs/user-guide/parallel_learners_docs.md
    • Updated import path for RadicalExecutionBackend from radical.asyncflow to rhapsody.backends.
  • docs/user-guide/target-resources.md
    • Updated textual references to RadicalExecutionBackend to include RHAPSODY.
    • Updated import path for RadicalExecutionBackend from radical.asyncflow to rhapsody.backends.
  • examples/active_learn/advanced/advanced-tutorial.ipynb
    • Updated import path for RadicalExecutionBackend from radical.asyncflow to rhapsody.backends.
    • Removed trailing newline at end of file.
  • examples/active_learn/advanced/run_me.py
    • Updated import path for ConcurrentExecutionBackend from radical.asyncflow to rhapsody.backends.
  • examples/active_learn/algorithm_selector/algorithm-selector-tutorial.ipynb
    • Updated import path for RadicalExecutionBackend from radical.asyncflow to rhapsody.backends.
    • Removed trailing newline at end of file.
  • examples/active_learn/algorithm_selector/run_me.py
    • Updated import path for RadicalExecutionBackend from radical.asyncflow to rhapsody.backends.
  • examples/active_learn/basic/basic-tutorial.ipynb
    • Updated import path for RadicalExecutionBackend from radical.asyncflow to rhapsody.backends.
    • Removed trailing newline at end of file.
  • examples/active_learn/basic/run_me.py
    • Updated import path for RadicalExecutionBackend from radical.asyncflow to rhapsody.backends.
  • examples/active_learn/highly_parallel_surrogates_on_hpc.ipynb
    • Updated import path for ConcurrentExecutionBackend from radical.asyncflow to rhapsody.backends.
    • Removed trailing newline at end of file.
  • examples/active_learn/parallel/run_me_per_learner_config.py
    • Updated import path for ConcurrentExecutionBackend from radical.asyncflow to rhapsody.backends.
  • examples/active_learn/parallel/run_me_per_learner_per_iter_config.py
    • Updated import path for RadicalExecutionBackend from radical.asyncflow to rhapsody.backends.
  • examples/active_learn/parallel/run_me_with_dynamic_config.py
    • Updated import path for RadicalExecutionBackend from radical.asyncflow to rhapsody.backends.
  • examples/active_learn/state_control.py
    • Updated import path for ConcurrentExecutionBackend from radical.asyncflow to rhapsody.backends.
  • examples/active_learn/uq_based_al/basic-tutorial.ipynb
    • Updated import path for RadicalExecutionBackend from radical.asyncflow to rhapsody.backends.
    • Removed trailing newline at end of file.
  • examples/active_learn/uq_based_al/run_me.py
    • Updated import path for RadicalExecutionBackend from radical.asyncflow to rhapsody.backends.
  • examples/integrations/mlflow/mlflow_rose.py
    • Updated import path for ConcurrentExecutionBackend from radical.asyncflow to rhapsody.backends.
  • examples/reinforcement_learn/mujoco/mujocolearning.ipynb
    • Updated import path for RadicalExecutionBackend from radical.asyncflow to rhapsody.backends.
    • Removed trailing newline at end of file.
  • examples/reinforcement_learn/parallelexperience.ipynb
    • Updated import path for RadicalExecutionBackend from radical.asyncflow to rhapsody.backends.
    • Removed trailing newline at end of file.
  • examples/reinforcement_learn/reinforcementlearning.ipynb
    • Updated import path for RadicalExecutionBackend from radical.asyncflow to rhapsody.backends.
    • Removed trailing newline at end of file.
  • examples/reinforcement_learn/run_me.py
    • Updated import path for ConcurrentExecutionBackend from radical.asyncflow to rhapsody.backends.
  • examples/tutorials/00-active-learning.ipynb
    • Updated import path for ConcurrentExecutionBackend from radical.asyncflow to rhapsody.backends.
    • Removed trailing newline at end of file.
  • examples/tutorials/01-reinforcement-learning.ipynb
    • Updated import path for ConcurrentExecutionBackend from radical.asyncflow to rhapsody.backends.
    • Removed trailing newline at end of file.
  • examples/uq_active_learn/run_me.py
    • Updated import paths for ConcurrentExecutionBackend and RadicalExecutionBackend from radical.asyncflow to rhapsody.backends.
  • examples/use_cases/neutron-scattering/run_me.py
    • Updated import path for RadicalExecutionBackend from radical.asyncflow to rhapsody.backends.
  • pyproject.toml
    • Updated project dependency from radical.pilot to rhapsody-py.
  • tests/integration/test_run_parallel_learner.py
    • Updated import path for ConcurrentExecutionBackend from radical.asyncflow to rhapsody.backends.
  • tests/integration/test_run_rl_par_learner.py
    • Updated import path for ConcurrentExecutionBackend from radical.asyncflow to rhapsody.backends.
  • tests/integration/test_run_rl_seq_learner.py
    • Updated import path for ConcurrentExecutionBackend from radical.asyncflow to rhapsody.backends.
  • tests/integration/test_run_sequential_learner.py
    • Updated import path for ConcurrentExecutionBackend from radical.asyncflow to rhapsody.backends.
  • tests/integration/test_run_uq_learner.py
    • Updated import path for ConcurrentExecutionBackend from radical.asyncflow to rhapsody.backends.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@gemini-code-assist
Copy link

Warning

Gemini encountered an error creating the summary. You can try again by commenting /gemini summary.

@AymenFJA
Copy link
Collaborator Author

Warning

Gemini encountered an error creating the summary. You can try again by commenting /gemini summary.

/gemini summary

@gemini-code-assist
Copy link

Summary of Changes

This pull request refactors the ROSE project by migrating its underlying workflow execution backend from radical.asyncflow to RHAPSODY. This change involves updating import statements across the entire codebase, including documentation, examples, and tests, to ensure compatibility and leverage the new backend's capabilities. The project's dependencies have also been adjusted to reflect this significant architectural shift.

Highlights

  • Runtime System Migration: The core runtime system for ROSE has been migrated from radical.asyncflow to RHAPSODY, specifically using backends from rhapsody.backends.
  • Dependency Update: The project's pyproject.toml file has been updated to replace the radical.pilot dependency with rhapsody-py, aligning with the new runtime system.
  • Codebase Adaptation: All relevant files, including documentation, examples, tutorials, and test suites, have been updated to reflect the new import paths for execution backends like RadicalExecutionBackend and ConcurrentExecutionBackend.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • README.md
    • Updated import path for RadicalExecutionBackend.
  • docs/user-guide/advanced-rl-workflow.md
    • Updated import path for RadicalExecutionBackend.
  • docs/user-guide/basic-acl-workflow.md
    • Updated import path for RadicalExecutionBackend.
  • docs/user-guide/basic-rl-workflow.md
    • Updated import path for RadicalExecutionBackend.
  • docs/user-guide/parallel_learners_docs.md
    • Updated import path for RadicalExecutionBackend.
  • docs/user-guide/target-resources.md
    • Updated textual references to RadicalExecutionBackend and radical.asyncflow to mention RHAPSODY and rhapsody-py.
    • Updated import path for RadicalExecutionBackend.
  • examples/active_learn/advanced/advanced-tutorial.ipynb
    • Updated import path for RadicalExecutionBackend.
    • Standardized notebook formatting by removing a trailing newline and setting execution_count to null.
  • examples/active_learn/advanced/run_me.py
    • Updated import path for ConcurrentExecutionBackend.
  • examples/active_learn/algorithm_selector/algorithm-selector-tutorial.ipynb
    • Updated import path for RadicalExecutionBackend.
    • Standardized notebook formatting by removing a trailing newline and setting execution_count to null.
  • examples/active_learn/algorithm_selector/run_me.py
    • Updated import path for RadicalExecutionBackend.
  • examples/active_learn/basic/basic-tutorial.ipynb
    • Updated import path for RadicalExecutionBackend.
    • Standardized notebook formatting by removing a trailing newline and setting execution_count to null.
  • examples/active_learn/basic/run_me.py
    • Updated import path for RadicalExecutionBackend.
  • examples/active_learn/highly_parallel_surrogates_on_hpc.ipynb
    • Updated import path for ConcurrentExecutionBackend.
    • Standardized notebook formatting by removing a trailing newline and setting execution_count to null.
  • examples/active_learn/parallel/run_me_per_learner_config.py
    • Updated import path for ConcurrentExecutionBackend.
  • examples/active_learn/parallel/run_me_per_learner_per_iter_config.py
    • Updated import path for RadicalExecutionBackend.
  • examples/active_learn/parallel/run_me_with_dynamic_config.py
    • Updated import path for RadicalExecutionBackend.
  • examples/active_learn/state_control.py
    • Updated import path for ConcurrentExecutionBackend.
  • examples/active_learn/uq_based_al/basic-tutorial.ipynb
    • Updated import path for RadicalExecutionBackend.
    • Standardized notebook formatting by removing a trailing newline and setting execution_count to null.
  • examples/active_learn/uq_based_al/run_me.py
    • Updated import path for RadicalExecutionBackend.
  • examples/integrations/mlflow/mlflow_rose.py
    • Updated import path for ConcurrentExecutionBackend.
  • examples/reinforcement_learn/mujoco/mujocolearning.ipynb
    • Updated import path for RadicalExecutionBackend.
    • Standardized notebook formatting by removing a trailing newline and setting execution_count to null.
  • examples/reinforcement_learn/parallelexperience.ipynb
    • Updated import path for RadicalExecutionBackend.
    • Standardized notebook formatting by removing a trailing newline and setting execution_count to null.
  • examples/reinforcement_learn/reinforcementlearning.ipynb
    • Updated import path for RadicalExecutionBackend.
    • Standardized notebook formatting by removing a trailing newline and setting execution_count to null.
  • examples/reinforcement_learn/run_me.py
    • Updated import path for ConcurrentExecutionBackend.
  • examples/tutorials/00-active-learning.ipynb
    • Updated import path for ConcurrentExecutionBackend.
    • Standardized notebook formatting by removing a trailing newline and setting execution_count to null.
  • examples/tutorials/01-reinforcement-learning.ipynb
    • Updated import path for ConcurrentExecutionBackend.
    • Standardized notebook formatting by removing a trailing newline and setting execution_count to null.
  • examples/uq_active_learn/run_me.py
    • Updated import paths for ConcurrentExecutionBackend and RadicalExecutionBackend.
  • examples/use_cases/neutron-scattering/run_me.py
    • Updated import path for RadicalExecutionBackend.
  • pyproject.toml
    • Updated project dependency from radical.pilot to rhapsody-py.
  • tests/integration/test_run_parallel_learner.py
    • Updated import path for ConcurrentExecutionBackend.
  • tests/integration/test_run_rl_par_learner.py
    • Updated import path for ConcurrentExecutionBackend.
  • tests/integration/test_run_rl_seq_learner.py
    • Updated import path for ConcurrentExecutionBackend.
  • tests/integration/test_run_sequential_learner.py
    • Updated import path for ConcurrentExecutionBackend.
  • tests/integration/test_run_uq_learner.py
    • Updated import path for ConcurrentExecutionBackend.
Activity
  • A bot, review-notebook-app[bot], posted a link to ReviewNB for visual diffs on Jupyter Notebooks.
  • Another bot, gemini-code-assist[bot], provided an initial summary of changes, highlighting the migration to RHAPSODY, dependency updates, and codebase adaptation.
  • gemini-code-assist[bot] reported an error creating a summary and suggested retrying.
  • The author, AymenFJA, re-requested a summary by commenting '/gemini summary'.

@AymenFJA AymenFJA changed the title This commit: Migrate to RHAPSODY Feb 26, 2026
@AymenFJA AymenFJA merged commit caa3a00 into main Feb 27, 2026
10 checks passed
@AymenFJA AymenFJA deleted the feature/rhapsody branch February 27, 2026 20:00
@AymenFJA AymenFJA mentioned this pull request Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request High Q1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant