Skip to content

ci(conpty): 支持只跑单个作业的定向采样 - #289

Merged
JavaZeroo merged 1 commit into
mainfrom
ci/focus-input
Oct 31, 2026
Merged

JavaZeroo merged 1 commit into
mainfrom
ci/focus-input

Conversation

@JavaZeroo

Copy link
Copy Markdown
Owner

内容

给 conpty-compat.yml 加一个可选的 only 输入:设置时只跑指定的那个作业,留空则与现在完全一致(跑全部 8 个)。

on:
  workflow_dispatch:
    inputs:
      only:
        type: choice
        default: ''
        options: ['', windows-2022-conpty, windows-2025-actions-repeat, …]

每个作业加:

if: ${{ github.event.inputs.only == '' || github.event.inputs.only == '<job>' }}

为什么

最近 5 轮采样的实测:7 个作业 5–8 分钟就结束,唯独 actions-repeat 要 10–20 分钟,而 #194 的几何断言只在这个作业里。

方式 单次成本
现在(全跑) 8 个作业,等最慢的那个 ≈ 15 分钟
定向(only=windows-2025-actions-repeat) 1 个作业 ≈ 12 分钟,且不占其他 runner

验证

  • 8 个作业的 if 守卫已逐一确认(Select-String 列出 8 行);
  • 默认值 '' 使默认运行路径不变——这是本次改动的安全边界。

边界

  • 只影响手动触发的这个工作流;PR 检查里其它工作流不受影响;
  • only 只接受预定义作业名(choice 类型),拼错会被表单拦下。

Sampling one failure shape no longer costs all eight jobs; an empty input keeps the default run identical.
@JavaZeroo
JavaZeroo merged commit dc9138d into main Oct 31, 2026
8 checks passed
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.

1 participant