alibaba / alibaba/ROCK

[Bug]iflow CLI 认证方式废弃导致 test_rock_agent_run_iflow 测试失败

Open Beginner friendly
#847 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
485
Forks
81
Avg merge
16h 12m
Merged PRs (30d)
8

Description

**Bug Description**

flow CLI 在 2026 年 4 月 17 日更新后废弃了旧的认证方式,仅支持 OpenAI Compatible API 授权。CI 集成测试 test_rock_agent_run_iflow 中使用 @iflow-ai/iflow-cli@latest 安装最新版 iflow,但配置中缺少 selectedAuthType 设置,导致 iflow 默认使用已废弃的 iflow 认证类型,测试失败。
**Steps to Reproduce**

1. 运行 Python CI 中的 test_rock_agent_run_iflow 测试
2. iflow CLI 安装最新版本(@latest)
3. 使用 IFLOW_API_KEY 环境变量进行认证
**Expected Behavior**

iflow CLI 正常使用 OpenAI Compatible API 方式连接模型服务,测试输出包含 Hello! I am ROCK。
**Actual Behavior**

iflow CLI 返回 Auth method has been deprecated. Please reconfigure with OpenAI Compatible API.,测试断言失败。
**Error Logs**

`FAILED tests/integration/sdk/sandbox/agent/rock_agent/test_run.py::test_rock_agent_run_iflow
- AssertionError: assert 'Hello! I am ROCK' in 'Auth method has been deprecated. Please reconfigure with OpenAI Compatible API.'`
**Environment Information**
- **OS**: [e.g. Ubuntu 22.04, macOS 13.0, Windows 11]
- **Python Version**: [e.g. 3.11.5]
- **ROCK Version**: [e.g. 0.2.0]
- **Installation Method**: [e.g. pip install rl-rock, source installation with uv]
- **Docker Version**: [e.g. 24.0.6] (if using sandbox features)
- **Deployment Type**: [e.g. local, distributed, ray]

**ROCK Configuration**
- **Runtime Environment Type**: [e.g. uv, pip, conda]
- **Sandbox Image**: [e.g. python:3.11, custom image]
- **Resource Allocation**: [e.g. memory=8g, cpus=2.0]

**Component Affected**
- [ ] Sandbox
- [ ] Actions
- [ ] Deployments
- [ ] SDK & API
- [ ] Envhub
- [ ] CLI
- [ ] Performance & Optimization
- [ ] Documentation & Examples

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with tests/integration/sdk/sandbox/agent/rock_agent/test_run.py and inspect the iflow CLI setup used by test_rock_agent_run_iflow. Check how the authentication configuration is assembled and add the required OpenAI Compatible API selection. Run the focused test and confirm its output contains "Hello! I am ROCK".

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, testing-qa
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
74/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.