Skip to content

fix(data_function): declare the executor_type values the executors store (ITL-1343) - #612

Merged
eywalker merged 2 commits into
mainfrom
eywalker/itl-1343-executor_types-declared-meaning-says-ray
Nov 28, 2026
Merged

eywalker merged 2 commits into
mainfrom
eywalker/itl-1343-executor_types-declared-meaning-says-ray

Conversation

@eywalker

@eywalker eywalker commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Fixes ITL-1343

The python.function declaration now lists local, ray.v0, and none for executor_type, matching the values written by the executors and the no-executor fallback. The reference page and the still-open v1-rev1 snapshot carry the same wording.

The regression test compares the declaration with the executor identifiers without requiring Ray to be installed.

Summary by CodeRabbit

  • Bug Fixes
    • Corrected the documented Ray executor identifier to ray.v0. The supported executor types are local, ray.v0, and none.
  • Tests
    • Added coverage verifying that the documented executor types include all three values.

@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The executor_type documentation and declaration now identify the Ray executor as ray.v0. A new test checks that the listed values include the local and Ray executor identifiers and none.

Changes: Executor Type Contract

Layer / File(s) Summary
Executor values and validation
src/orcapod/data_function_types/python.function/v1-rev1.json, src/orcapod/core/data_function.py, docs/reference/data-function-types.md, tests/test_data_function_types.py, changelog.d/ITL-1343.md
The declaration and references use ray.v0 instead of ray. The test checks that the listed values include the local and Ray executor identifiers and none. The changelog records the values.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Bug fix

Possibly related PRs

Merge Risk: Minimal · up to 516fb

This documentation and declaration update aligns the listed Ray executor value with the identifier executors actually store. It has no runtime behavior change and no concrete merge risk was found.

Security architecture risk: Minimal · up to 516fb

The published description now says ray.v0, which Ray already records. The change updates an unreleased snapshot without changing how functions run or requiring existing data to be migrated.

Retained concerns
No architecture-level concerns identified.

Security review details

Trust Boundaries and Controls

  • observed — The production edit changes descriptive text, not executor selection. The new test reads the existing Ray identifier without calling its constructor; it adds no production route to Ray.
Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the change: the python.function executor_type declaration is updated to list the values that executors actually store. The changeset matches this. It changes the declaration in the ref…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the change: the python.function executor_type declaration is updated to list the values that executors actually store. The changeset matches this. It changes the declaration in the reference docs, the v1-rev1 snapshot, and data_function.py from ray to ray.v0, adds a changelog entry, and adds a regression test. The 'fix(data_function)' prefix matches the scope of the change, and ITL-1343 identifies the issue.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Usage-based review receipt

Note

This review was completed with usage-based billing: files reviewed beyond your plan's included limits are billed at $0.25/file. View usage-based billing.

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between d26d861 and 516fb5a.

Files selected for processing: 5

  • changelog.d/ITL-1343.md
  • docs/reference/data-function-types.md
  • src/orcapod/core/data_function.py
  • src/orcapod/data_function_types/python.function/v1-rev1.json
  • tests/test_data_function_types.py

Limit details: You’ve used the included review currently available. Your 96 included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

Recent review details

Context from checks skipped due to timeout: 2

  • GitHub Check: CodeRabbit
  • GitHub Check: Tests (3.13)
Additional context used

Code guidelines: 1

CLAUDE.md — auto-discovered
Path-based instructions: 7

Source excerpt: Every fenced `python` block in `README.md`, `docs/index.md`, `docs/getting-started.md`, `docs/troubleshooting.md`, `docs/concepts/`, `docs/reference/` and `docs/tutorial/` is executed by `tests/test_docs/test_doc_samples.py`...

CodeRabbit inference engine (CLAUDE.md)

Files:

  • docs/reference/data-function-types.md
Source excerpt: What runs where (developer, November 16, 2026; ITL-1181): Orcapod depends on neither Graphviz nor matplotlib, and CI installs no system package (developer, November 17, 2026; ITL-1216): a pipeline draws itself with `diagram(...

CodeRabbit inference engine (CLAUDE.md)

Files:

  • src/orcapod/core/data_function.py
  • src/orcapod/data_function_types/python.function/v1-rev1.json
Source excerpt: Never manipulate `sys.modules` directly (e.g.

CodeRabbit inference engine (CLAUDE.md)

Files:

  • changelog.d/ITL-1343.md
  • docs/reference/data-function-types.md
  • src/orcapod/core/data_function.py
  • src/orcapod/data_function_types/python.function/v1-rev1.json
  • tests/test_data_function_types.py
Source excerpt: A pull request never edits `CHANGELOG.md` (developer, November 11, 2026; ITL-961).

CodeRabbit inference engine (CLAUDE.md)

Files:

  • changelog.d/ITL-1343.md
Source excerpt: Tests use the **public interface** wherever possible (developer, November 10, 2026): drive an operator by calling it, `op(stream)`, and read the result through the stream's public methods.

CodeRabbit inference engine (CLAUDE.md)

Files:

  • tests/test_data_function_types.py
Source excerpt: `docs/` is the only source.

CodeRabbit inference engine (CLAUDE.md)

Files:

  • docs/reference/data-function-types.md
Use [Google style](https://google.github.io/styleguide/pyguide.html#38-comments-and-docstrings) Python docstrings everywhere.

CodeRabbit inference engine (CLAUDE.md)

Files:

  • src/orcapod/core/data_function.py
  • tests/test_data_function_types.py
Learnings: 1

Learning: 2026-11-24T01:41:10.097Z

Learnt from: CR
Repo: metamorphic-labs/orcapod-python PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-11-24T01:41:10.097Z
Learning: Applies to changelog.d/*.md : Source excerpt:
# Claude Code instructions for orcapod-python

## Changelog

- The file holds only the text that would have gone under the release heading in
  `CHANGELOG.md`: the same category headings `CHANGELOG.md` uses
  (`### Breaking changes and migration`, `### Added`, `### Changed`, `### Fixed`,
  `### Known limitations`), each followed by its text: bullet lines, or `####` sub-headings
  with paragraphs, as `CHANGELOG.md` itself has. No version heading, no date, no other
  `#`, `##` or `###` heading, and no empty category.

Applied to files:

  • changelog.d/ITL-1343.md

@codecov

codecov Bot commented Nov 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/orcapod/core/data_function.py 92.04% <ø> (ø)

... and 4 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@eywalker
eywalker merged commit 4c08419 into main Nov 28, 2026
16 checks passed
@eywalker
eywalker deleted the eywalker/itl-1343-executor_types-declared-meaning-says-ray branch November 28, 2026 03:36
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.

1 participant