-
Notifications
You must be signed in to change notification settings - Fork 5
✨feat(e2e): 接入 Host E2E 与真机 HIL 分层门禁 #340
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
JunLang-7
wants to merge
26
commits into
1024XEngineer:main
Choose a base branch
from
JunLang-7:dev/288-host-hil-gates
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
26 commits
Select commit
Hold shift + click to select a range
0d83299
✨ feat(e2e): 增加分层 Host 与 HIL 门禁
JunLang-7 6539833
🔒️ fix(e2e): 收紧分层门禁的失败证据与设备输入
JunLang-7 559b1fd
👷 ci(e2e): 暂停 HIL 自动调度保留手工入口
JunLang-7 f7c71b7
🔒️ fix(e2e): 防止恢复详情写入公开产物
JunLang-7 5c87b44
✨ feat(e2e): 增加 SparkBot 语音 HIL 旅程
JunLang-7 8da6fe8
✨ feat(e2e): 支持 PCB 语音 HIL
JunLang-7 b07fb8c
✅ test(voice): 固化百炼 SparkBot 实板测试模板
ZhaoXingPeng 3e2f929
🐛 fix(linx): 保持 listen 会话模式与协议一致
ZhaoXingPeng 7ae4f5a
🐛 fix(test): 提升百炼 SparkBot 唤醒注入重跑稳定性
ZhaoXingPeng 156d4e7
🐛 fix(linx): 完善 SparkBot 传输边界与重连诊断
ZhaoXingPeng 04c3d8d
🐛 fix(voice): 增强 SparkBot 唤醒恢复与 Linx 诊断
ZhaoXingPeng 5bdcc85
🐛 fix(test): 补齐 Linx 音频配置测试夹具
ZhaoXingPeng e89a133
Merge remote-tracking branch 'origin/main' into fix/sparkbot-wake-rec…
ZhaoXingPeng 015f88f
🐛 fix(mcp): 补齐 Linx 工具列表分页游标
ZhaoXingPeng 81faa3c
🐛 fix(voice): 恢复 SparkBot 唤醒确认音
ZhaoXingPeng 363655d
🐛 fix(voice): 对齐 SparkBot auto 监听模式
ZhaoXingPeng 8e20852
🐛 fix(voice): 修复串口注入背压并补齐 Linx 工具类型
ZhaoXingPeng 498fa4a
🐛 fix(test): 放宽串口回合结束门禁等待
ZhaoXingPeng fa3af12
🐛 fix(test): 按输入长度延长回合门禁
ZhaoXingPeng d8832e5
🐛 fix(test): 接受本地VAD回合结束证据
ZhaoXingPeng 545b8e4
🐛 fix(voice): 扩大 SparkBot 音频有界突发缓冲
ZhaoXingPeng c98a5af
🐛 fix(test): 接受 auto 模式远端 STT 回合结束
ZhaoXingPeng 5f90e15
🐛 fix(test): 修正 auto 多轮状态门禁边界
ZhaoXingPeng 74c2a25
🐛 fix(mcp): 对齐 PR338 单页工具发现协议
ZhaoXingPeng bfa80ee
Merge PR 349 voice wake recovery baseline
JunLang-7 9516dcf
✨ feat(e2e): 完整接入语音 HIL TTS 与唤醒门禁
JunLang-7 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 |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| self-hosted-runner: | ||
| labels: | ||
| - voicelife-hil | ||
| - sparkbot | ||
| - pcb |
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,154 @@ | ||
| name: HIL Manual | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| profile: | ||
| description: Device profile to run (the default runs both profiles) | ||
| required: false | ||
| type: choice | ||
| default: all | ||
| options: | ||
| - all | ||
| - sparkbot | ||
| - pcb | ||
| journey: | ||
| description: HIL journey | ||
| required: false | ||
| type: choice | ||
| default: im-pairing | ||
| options: | ||
| - im-pairing | ||
| - voice | ||
| tts_provider: | ||
| description: Host TTS fixture provider used by the voice journey | ||
| required: false | ||
| type: choice | ||
| default: dashscope | ||
| options: | ||
| - dashscope | ||
| - aliyun-nls | ||
| device: | ||
| description: Optional descriptor name; requires a single profile selection | ||
| required: false | ||
| type: string | ||
| default: "" | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: hil-nightly-${{ github.ref }}-${{ inputs.profile || 'all' }} | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| hil: | ||
| name: HIL / ${{ matrix.profile }} | ||
| runs-on: [self-hosted, voicelife-hil, "${{ matrix.profile }}"] | ||
| timeout-minutes: 30 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| profile: ${{ fromJSON(inputs.profile == 'sparkbot' && '["sparkbot"]' || inputs.profile == 'pcb' && '["pcb"]' || '["sparkbot", "pcb"]') }} | ||
| env: | ||
| HIL_DEVICE_ROOT: ${{ vars.VOICELIFE_HIL_DEVICE_ROOT || '/opt/voicelife/hil/devices' }} | ||
| HIL_LEASE_ROOT: ${{ vars.VOICELIFE_HIL_LEASE_ROOT || '/opt/voicelife/hil/leases' }} | ||
| VOICELIFE_HIL_SERVER: ${{ secrets.VOICELIFE_HIL_SERVER }} | ||
| VOICELIFE_HIL_SERVER_DIR: ${{ secrets.VOICELIFE_HIL_SERVER_DIR }} | ||
| VOICELIFE_HIL_GATEWAY_ORIGIN: ${{ secrets.VOICELIFE_HIL_GATEWAY_ORIGIN }} | ||
| VOICELIFE_HIL_USER_ID: ${{ secrets.VOICELIFE_HIL_USER_ID }} | ||
| DASHSCOPE_API_KEY: ${{ secrets.DASHSCOPE_API_KEY }} | ||
| ALIYUN_NLS_APPKEY: ${{ secrets.ALIYUN_NLS_APPKEY }} | ||
| ALIYUN_NLS_TOKEN: ${{ secrets.ALIYUN_NLS_TOKEN }} | ||
| ALIYUN_NLS_URL: ${{ vars.ALIYUN_NLS_URL }} | ||
| HIL_DEVICE_NAME: ${{ inputs.device || '' }} | ||
| defaults: | ||
| run: | ||
| shell: bash | ||
| steps: | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: 检查受控 Runner 配置 | ||
| run: | | ||
| set -euo pipefail | ||
| device_name="$HIL_DEVICE_NAME" | ||
| if [[ -n "$device_name" ]]; then | ||
| [[ "${{ inputs.profile || 'all' }}" != "all" ]] | ||
| [[ "$device_name" =~ ^[a-z0-9][a-z0-9_-]{0,63}$ ]] | ||
| descriptor="$HIL_DEVICE_ROOT/$device_name.json" | ||
| else | ||
| descriptor="$HIL_DEVICE_ROOT/${{ matrix.profile }}.json" | ||
| fi | ||
| test -r "$descriptor" | ||
| test -n "${VOICELIFE_HIL_SERVER:-}" | ||
| test -n "${VOICELIFE_HIL_SERVER_DIR:-}" | ||
| test -n "${VOICELIFE_HIL_GATEWAY_ORIGIN:-}" | ||
| test -n "${VOICELIFE_HIL_USER_ID:-}" | ||
| python3 -c 'import serial, esptool' >/dev/null | ||
| if [[ "${{ inputs.journey || 'im-pairing' }}" == "voice" ]]; then | ||
| if [[ "${{ inputs.tts_provider || 'dashscope' }}" == "dashscope" ]]; then | ||
| test -n "${DASHSCOPE_API_KEY:-}" | ||
| python3 -c 'import dashscope' >/dev/null | ||
| else | ||
| test -n "${ALIYUN_NLS_APPKEY:-}" | ||
| test -n "${ALIYUN_NLS_TOKEN:-}" | ||
| python3 -c 'import nls' >/dev/null | ||
| fi | ||
| command -v ffmpeg >/dev/null | ||
| fi | ||
| - name: 运行 HIL journey | ||
| id: journey | ||
| run: | | ||
| set +e | ||
| mkdir -p "artifacts/hil-${{ matrix.profile }}" | ||
| device_name="$HIL_DEVICE_NAME" | ||
| if [[ -n "$device_name" ]]; then | ||
| device_path="$HIL_DEVICE_ROOT/$device_name.json" | ||
| else | ||
| device_path="$HIL_DEVICE_ROOT/${{ matrix.profile }}.json" | ||
| fi | ||
| run_args=( | ||
| python3 scripts/run_e2e.py \ | ||
| --layer hil \ | ||
| --journey "${{ inputs.journey || 'im-pairing' }}" \ | ||
| --profile "${{ matrix.profile }}" \ | ||
| --artifact-dir "artifacts/hil-${{ matrix.profile }}" \ | ||
| --timeout 900 \ | ||
| --retries 0 \ | ||
| --device "$device_path" \ | ||
| --lease-dir "$HIL_LEASE_ROOT" \ | ||
| --server "$VOICELIFE_HIL_SERVER" \ | ||
| --server-dir "$VOICELIFE_HIL_SERVER_DIR" \ | ||
| --gateway-origin "$VOICELIFE_HIL_GATEWAY_ORIGIN" \ | ||
| --user-id "$VOICELIFE_HIL_USER_ID" | ||
| ) | ||
| if [[ "${{ inputs.journey || 'im-pairing' }}" == "voice" ]]; then | ||
| run_args+=( | ||
| --input-tts "${{ inputs.tts_provider || 'dashscope' }}" | ||
| --tts-model "${VOICELIFE_TTS_MODEL:-qwen-audio-3.0-tts-flash}" | ||
| --voice "${VOICELIFE_TTS_VOICE:-longanlingxi}" | ||
| --text '你好牛牛,请介绍一下你自己。' | ||
| --text '把刚才的回答再简短一点。' | ||
| --text '请用一句话总结我们刚才的对话。' | ||
| --expect-terminal | ||
| ) | ||
| fi | ||
| "${run_args[@]}" | ||
| run_status=$? | ||
| exit "$run_status" | ||
| - name: 校验 HIL 脱敏 evidence | ||
| id: validate-hil-evidence | ||
| if: always() | ||
| run: python3 scripts/check_e2e_artifacts.py "artifacts/hil-${{ matrix.profile }}" | ||
| - name: 写入 HIL job summary | ||
| if: always() | ||
| run: python3 scripts/render_e2e_summary.py "artifacts/hil-${{ matrix.profile }}" >> "$GITHUB_STEP_SUMMARY" | ||
| - name: 上传 HIL 脱敏 evidence | ||
| if: always() && steps.validate-hil-evidence.outcome == 'success' | ||
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7 | ||
| with: | ||
| name: hil-${{ matrix.profile }}-evidence | ||
| path: artifacts/hil-${{ matrix.profile }} | ||
| if-no-files-found: error | ||
| retention-days: 14 |
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
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
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.
[P1] Do not scan raw recovery details as public artifacts
run-recovery-e2e.mjswritesrecovery-<run_id>.jsoninto this directory, and each snapshot row always contains theaction_tokenfield (even when its value is null).check_e2e_artifacts.pyscans every JSON file, treats that key as sensitive, and therefore exits 1 after an otherwise successful recovery run; the subsequent upload is skipped and the nightly job is reported failed. The same directory-level validation was added to.github/workflows/ci.yml, so the PR Host recovery gate is affected too. Validate only the generatedevidence-*.jsonfiles, or sanitize/allowlist the detailed diagnostic file before running this check.