-
Notifications
You must be signed in to change notification settings - Fork 579
feat: add Arena Stream rollout integration #1547
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
yulangz
wants to merge
7
commits into
main
Choose a base branch
from
feature/arena-stream-rollout
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
27aa000
feat: add Arena Stream rollout integration
yulangz fd39ecc
feat(examples): add one-command Arena rollout launcher
yulangz 91ac1ea
fix(examples): disable Arena model health checks
yulangz 46e540d
feat(examples): select Arena protocol from Stream harness
yulangz 893f485
feat(examples): configure Arena task environment
yulangz a6eedae
feat(swe): use OpenAPI LLM model routes
CormickKneey c7b2f9f
fix(examples): register Arena rollouts as chat upstreams
CormickKneey File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -201,5 +201,7 @@ api_key.json | |
| .vscode/ | ||
| wandb/ | ||
| outputs/ | ||
| rl_logs/ | ||
| .arena-rollout.env | ||
| sympy/ | ||
| !/docs/figures/* | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| """Utilities for safely serializing application configuration.""" | ||
|
|
||
| from __future__ import annotations | ||
|
|
||
| from typing import Any | ||
|
|
||
| REDACTED_VALUE = "<redacted>" | ||
|
|
||
|
|
||
| def _is_sensitive_key(key: object) -> bool: | ||
| if not isinstance(key, str): | ||
| return False | ||
| normalized = key.lower() | ||
| return ( | ||
| normalized in {"authorization", "password", "secret", "token"} | ||
| or "api_key" in normalized | ||
| or normalized.endswith(("_password", "_secret", "_token", "_credential")) | ||
| or "private_key" in normalized | ||
| ) | ||
|
|
||
|
|
||
| def redact_sensitive_config(value: Any) -> Any: | ||
| """Return a copy with credentials redacted while preserving ordinary fields.""" | ||
| if isinstance(value, dict): | ||
| return { | ||
| key: REDACTED_VALUE | ||
| if _is_sensitive_key(key) and item not in (None, "") | ||
| else redact_sensitive_config(item) | ||
| for key, item in value.items() | ||
| } | ||
| if isinstance(value, list): | ||
| return [redact_sensitive_config(item) for item in value] | ||
| if isinstance(value, tuple): | ||
| return tuple(redact_sensitive_config(item) for item in value) | ||
| return value |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If
messagesis a one-shot iterator or generator, iterating over it directly will consume its elements. If an unsupported message type is encountered and the function returnsmessagesearly, the caller will receive a partially consumed iterator, leading to silent data loss. Convertingmessagesto a list first avoids this issue.