Skip to content

Conversation

@hongpeng-guo
Copy link
Collaborator

Checklist Before Starting

  • Search for similar PR(s).

What does this PR do?

In #1443, a new argument name_prefix was introduced for function from_detached without setting a default value. This PR sets its default value as None, in which case, RayWorkerGroup will generate a random string as the prefix. This fix makes the API compatible with existing usage, and the users don't need to worry about this new args when a name_prefix is not not context necessary.

Checklist Before Submitting

  • Read the Contribute Guide.
  • Apply pre-commit checks.
  • Add [BREAKING] to the PR title if it breaks any API.
  • Update the documentation about your changes in the docs.
  • New CI unit test(s) are added to cover the code path.
  • Rely on existing unit tests on CI that covers the code path.

Signed-off-by: Hongpeng Guo <[email protected]>
@vermouth1992 vermouth1992 merged commit 2ed63bb into volcengine:main Jun 4, 2025
32 of 33 checks passed
@hongpeng-guo hongpeng-guo deleted the hpguo/default_value_for_from_detached branch June 4, 2025 15:04
vermouth1992 pushed a commit that referenced this pull request Jun 5, 2025
### Checklist Before Starting

- [x] Search for similar PR(s).

### What does this PR do?

Follow-up of #1838, make the `name_prefix` mechanism same for
`RayWorkerGroup` and `RayResourcePool`, default to be `None` and will be
initialized randomly.

### Checklist Before Submitting

- [x] Read the [Contribute
Guide](https://github.com/volcengine/verl?tab=readme-ov-file#contribution-guide).
- [x] Apply [pre-commit
checks](https://github.com/volcengine/verl?tab=readme-ov-file#code-linting-and-formatting).
- [ ] Add `[BREAKING]` to the PR title if it breaks any API.
- [ ] Update the documentation about your changes in the
[docs](https://github.com/volcengine/verl/tree/main/docs).
- [ ] New CI unit test(s) are added to cover the code path.
- [x] Rely on existing unit tests on CI that covers the code path.

Signed-off-by: Hongpeng Guo <[email protected]>
yellowbee686 pushed a commit to yellowbee686/verl that referenced this pull request Jun 6, 2025
…refix=None)` (volcengine#1838)

### Checklist Before Starting

- [x] Search for similar PR(s).

### What does this PR do?

In volcengine#1443, a new argument `name_prefix` was introduced for function
`from_detached` without setting a default value. This PR sets its
default value as `None`, in which case, `RayWorkerGroup` will generate a
random string as the prefix. This fix makes the API compatible with
existing usage, and the users don't need to worry about this new args
when a `name_prefix` is not not context necessary.

### Checklist Before Submitting

- [x] Read the [Contribute
Guide](https://github.com/volcengine/verl?tab=readme-ov-file#contribution-guide).
- [x] Apply [pre-commit
checks](https://github.com/volcengine/verl?tab=readme-ov-file#code-linting-and-formatting).
- [ ] Add `[BREAKING]` to the PR title if it breaks any API.
- [ ] Update the documentation about your changes in the
[docs](https://github.com/volcengine/verl/tree/main/docs).
- [ ] New CI unit test(s) are added to cover the code path.
- [x] Rely on existing unit tests on CI that covers the code path.

Signed-off-by: Hongpeng Guo <[email protected]>
yellowbee686 pushed a commit to yellowbee686/verl that referenced this pull request Jun 6, 2025
…e#1851)

### Checklist Before Starting

- [x] Search for similar PR(s).

### What does this PR do?

Follow-up of volcengine#1838, make the `name_prefix` mechanism same for
`RayWorkerGroup` and `RayResourcePool`, default to be `None` and will be
initialized randomly.

### Checklist Before Submitting

- [x] Read the [Contribute
Guide](https://github.com/volcengine/verl?tab=readme-ov-file#contribution-guide).
- [x] Apply [pre-commit
checks](https://github.com/volcengine/verl?tab=readme-ov-file#code-linting-and-formatting).
- [ ] Add `[BREAKING]` to the PR title if it breaks any API.
- [ ] Update the documentation about your changes in the
[docs](https://github.com/volcengine/verl/tree/main/docs).
- [ ] New CI unit test(s) are added to cover the code path.
- [x] Rely on existing unit tests on CI that covers the code path.

Signed-off-by: Hongpeng Guo <[email protected]>
wwwjn pushed a commit to wwwjn/verl that referenced this pull request Jun 10, 2025
…refix=None)` (volcengine#1838)

### Checklist Before Starting

- [x] Search for similar PR(s).

### What does this PR do?

In volcengine#1443, a new argument `name_prefix` was introduced for function
`from_detached` without setting a default value. This PR sets its
default value as `None`, in which case, `RayWorkerGroup` will generate a
random string as the prefix. This fix makes the API compatible with
existing usage, and the users don't need to worry about this new args
when a `name_prefix` is not not context necessary.

### Checklist Before Submitting

- [x] Read the [Contribute
Guide](https://github.com/volcengine/verl?tab=readme-ov-file#contribution-guide).
- [x] Apply [pre-commit
checks](https://github.com/volcengine/verl?tab=readme-ov-file#code-linting-and-formatting).
- [ ] Add `[BREAKING]` to the PR title if it breaks any API.
- [ ] Update the documentation about your changes in the
[docs](https://github.com/volcengine/verl/tree/main/docs).
- [ ] New CI unit test(s) are added to cover the code path.
- [x] Rely on existing unit tests on CI that covers the code path.

Signed-off-by: Hongpeng Guo <[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.

2 participants