Skip to content

Only export actor classes once. - #510

Merged
pcmoritz merged 3 commits into
ray-project:masterfrom
robertnishihara:actorexports
May 10, 2017
Merged

pcmoritz merged 3 commits into
ray-project:masterfrom
robertnishihara:actorexports

Conversation

@robertnishihara

@robertnishihara robertnishihara commented May 4, 2017 •

Copy link
Copy Markdown
Collaborator

This addresses #501.

@AmplabJenkins

Copy link
Copy Markdown

Merged build finished. Test FAILed.

@AmplabJenkins

Copy link
Copy Markdown

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/657/
Test FAILed.

@AmplabJenkins

Copy link
Copy Markdown

Merged build finished. Test FAILed.

@AmplabJenkins

Copy link
Copy Markdown

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/659/
Test FAILed.

@AmplabJenkins

Copy link
Copy Markdown

Merged build finished. Test FAILed.

@AmplabJenkins

Copy link
Copy Markdown

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/671/
Test FAILed.

@AmplabJenkins

Copy link
Copy Markdown

Merged build finished. Test FAILed.

@AmplabJenkins

Copy link
Copy Markdown

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/676/
Test FAILed.

@AmplabJenkins

Copy link
Copy Markdown

Merged build finished. Test PASSed.

@AmplabJenkins

Copy link
Copy Markdown

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/693/
Test PASSed.

@pcmoritz
pcmoritz merged commit b4788ae into ray-project:master May 10, 2017
@pcmoritz
pcmoritz deleted the actorexports branch May 10, 2017 02:49
raulchen added a commit to raulchen/ray that referenced this pull request May 13, 2024
Myasuka pushed a commit to Myasuka/ray that referenced this pull request Aug 11, 2025
elliot-barn pushed a commit that referenced this pull request Oct 28, 2026
…label rules (#67341)

> [!IMPORTANT]
> Draft until rayci ships label rules
([rayci#510](ray-project/rayci#510),
[rayci#511](ray-project/rayci#511)) and this PR
bumps `.rayciversion` to that release. Don't merge it before then:
today's rayci ignores `*.labels.yaml`, so removing the per-step gates
would stop the `docstring-only` label from skipping Ray Data's suites.

## Why are these changes needed?

The `docstring-only` and `docs-example-test` labels gate steps with
Buildkite `if:` conditions, which Buildkite evaluates after rayci has
selected the steps and marked their dependencies. That causes two
problems:

- **Images build for steps that don't run.** An unlabeled prose PR
builds the 5 images only the opt-in step needs. An unlabeled Python PR
builds `docstringbuild` for `doc: docstring examples`.
- **`docstring-only` covers only Ray Data.** Each skipped step needs its
own negated `if:`. Extending the label means a gate on nearly every
premerge test step, and a new step that forgets one silently runs under
the label.

rayci#510 and #511 let PR labels adjust step selection before dependency
marking, through rules in `.buildkite/*.labels.yaml`. This PR adopts
them.

## What changes

- **Adds `.buildkite/docs.labels.yaml`** with the following rules:
- `docstring-only` keeps only steps tagged `always`, `lint`, `doc_api`,
or `docstring_examples`. That's the same set a labeled Data PR runs
today (`doc/source/ray-contribute/ci.md`): the docstring examples step,
the two API surface checks, lint, and the scope guard, which is tagged
`always`. It now applies to every library, not just Ray Data. Without
the label, it skips `doc: docstring examples`.
  - `docs-example-test` skips the opt-in step without the label.
- **Tags the two steps** in `others.rayci.yml`: `docstring_examples` on
`doc: docstring examples`, and `doc_example_optin` on `doc: docs example
tests (opt-in)`.
- **Removes the 10 negated `docstring-only` gates** from
`data.rayci.yml`.
- **Keeps the positive `if:` gates** on the examples step, the opt-in
step, and the scope guard. They're redundant now, but they show a reader
of the step why it's label-gated.

## Behavior change to review

Under `docstring-only`, examples that need torch or TensorFlow are
reported as skipped by the light examples image, and their library's
`doctest()` target is skipped with the rest of the suites. Today that's
true only for Ray Data. With this PR it's true for every library, so
those examples get no premerge coverage on a labeled PR. `ml: data
integration tests`, which #67237 gates with its own `if:`, is also
covered by the keep-only rule, so that gate becomes redundant.

## Duplicate check

No open PR adopts rayci label rules, which don't exist yet in a release.
Related open PRs: #67237 adds a `docstring-only` gate to `ml: data
integration tests`, and #67204 rewrites the `docstring-only` section of
`ci.md`. The `ci.md` update for this change (the label covering every
library) waits until #67204 lands, to avoid conflicting with it.

## Testing

I generated the premerge pipeline locally with a Linux build of rayci
#510 and #511 against this branch. Each row simulates a PR that changes
one file:

| Simulated PR | rayci v0.50.0 on master | This branch, unlabeled | This
branch, labeled |
|---|---|---|---|
| Doc prose (`doc/source/data/aggregating-data.md`) | 11 steps | 5
steps: the opt-in step and the 5 images only it needs drop | 11 steps
with `docs-example-test` |
| Ray Data docstring (`python/ray/data/dataset.py`) | 51 steps | 49
steps: `doc: docstring examples` and `docstringbuild` drop | 19 steps
with `docstring-only` |
| Core docstring (`python/ray/actor.py`) | 165 steps | 163 steps: the
same 2 drop | 19 steps with `docstring-only` |

The 19 labeled steps are test-rules, the lint steps, the scope guard,
both API surface checks, `doc: docstring examples`, and their images.
Apart from the two dropped steps, unlabeled pipelines are identical to
v0.50.0 on master. `pre-commit run` on the changed files passes. Once a
rayci release exists, the `.rayciversion` bump goes here and premerge
runs with and without each label.

This PR was prepared with AI assistance (Claude Code). It stays in draft
until a human review of every changed line and a premerge run on the
release.

---------

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
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