Skip to content

Instantly share code, notes, and snippets.

@ryan-williams
Last active September 16, 2025 18:37
Show Gist options
  • Save ryan-williams/60cc76918efac5e36f0400b62ec2c6c1 to your computer and use it in GitHub Desktop.
Save ryan-williams/60cc76918efac5e36f0400b62ec2c6c1 to your computer and use it in GitHub Desktop.
marin-community/thalas#4 - 2-way sync via github-pr.py (ryan-williams/git-helpers)

marin-community/thalas#4 Factor executor code+history from marin-community/marin

Extend/Replace #3

Marin test: #1567

marin#1567 uses this branch, and has green CI.

Failing tests (worked around)

Previous writeup re: test failures; fixed / worked around by @dlwh in f3ffcee:

I'm not sure what's causing the test failures:

FAILED tests/test_executor.py::test_executor - ray.util.state.exception.ServerUnavailable: Failed to make request to http://127.0.0.1:8265/api/v0/nodes. Failed to connect to API server. Please check the API server log for details. Make sure dependencies are installed with `pip install ray[default]`. Please also check dashboard is available, and included when starting ray cluster, i.e. `ray start --include-dashboard=True --head`.
FAILED tests/test_executor.py::test_force_run_failed - ray.util.state.exception.ServerUnavailable: Failed to make request to http://127.0.0.1:8265/api/v0/nodes. Failed to connect to API server. Please check the API server log for details. Make sure dependencies are installed with `pip install ray[default]`. Please also check dashboard is available, and included when starting ray cluster, i.e. `ray start --include-dashboard=True --head`.
FAILED tests/test_executor.py::test_versioning - ray.util.state.exception.ServerUnavailable: Failed to make request to http://127.0.0.1:8265/api/v0/nodes. Failed to connect to API server. Please check the API server log for details. Make sure dependencies are installed with `pip install ray[default]`. Please also check dashboard is available, and included when starting ray cluster, i.e. `ray start --include-dashboard=True --head`.
FAILED tests/test_executor.py::test_dedup_version - ray.util.state.exception.ServerUnavailable: Failed to make request to http://127.0.0.1:8265/api/v0/nodes. Failed to connect to API server. Please check the API server log for details. Make sure dependencies are installed with `pip install ray[default]`. Please also check dashboard is available, and included when starting ray cluster, i.e. `ray start --include-dashboard=True --head`.
FAILED tests/test_executor.py::test_run_only_some_steps - ray.util.state.exception.ServerUnavailable: Failed to make request to http://127.0.0.1:8265/api/v0/nodes. Failed to connect to API server. Please check the API server log for details. Make sure dependencies are installed with `pip install ray[default]`. Please also check dashboard is available, and included when starting ray cluster, i.e. `ray start --include-dashboard=True --head`.
FAILED tests/test_executor.py::test_parent_version_bubbles_into_skip_child - ray.util.state.exception.ServerUnavailable: Failed to make request to http://127.0.0.1:8265/api/v0/nodes. Failed to connect to API server. Please check the API server log for details. Make sure dependencies are installed with `pip install ray[default]`. Please also check dashboard is available, and included when starting ray cluster, i.e. `ray start --include-dashboard=True --head`.
FAILED tests/test_executor.py::test_parent_doesnt_run_on_skip_parent - ray.util.state.exception.ServerUnavailable: Failed to make request to http://127.0.0.1:8265/api/v0/nodes. Failed to connect to API server. Please check the API server log for details. Make sure dependencies are installed with `pip install ray[default]`. Please also check dashboard is available, and included when starting ray cluster, i.e. `ray start --include-dashboard=True --head`.
FAILED tests/test_executor.py::test_skippable_parent_will_run_if_asked - ray.util.state.exception.ServerUnavailable: Failed to make request to http://127.0.0.1:8265/api/v0/nodes. Failed to connect to API server. Please check the API server log for details. Make sure dependencies are installed with `pip install ray[default]`. Please also check dashboard is available, and included when starting ray cluster, i.e. `ray start --include-dashboard=True --head`.
FAILED tests/test_executor.py::test_parent_will_run_if_some_child_is_not_skippable - ray.util.state.exception.ServerUnavailable: Failed to make request to http://127.0.0.1:8265/api/v0/nodes. Failed to connect to API server. Please check the API server log for details. Make sure dependencies are installed with `pip install ray[default]`. Please also check dashboard is available, and included when starting ray cluster, i.e. `ray start --include-dashboard=True --head`.
  • It may have to do with changes in marin#1546 (which landed after #3's history was created).
  • We may also need some secrets from marin added to this repo.
  • Here's an example of the same test_executor tests passing in Marin.

Scripts gist

This gist contains scripts used to:

  • Generate filtered history
  • Rebase on this repo's current initial empty commit
  • Apply 2 patches on top:
    • Rename imports/files
    • Add additional "exports" to src/thalas/__init__.py

As long as we don't decide to change the replayed history, we can "merge" further upstream commits onto this branch (without force-pushing), while reviewing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment