Skip to content

Commit 1326ce6

Browse files
seungrokjclaude
andcommitted
Merge origin/main into kk31-amd-kernels-image
Resolve the perf-changelog.yaml conflict by keeping main's new entries (#5120, #5109) and moving the #5196 block to the end of the file. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2 parents 7f9d894 + 542c5de commit 1326ce6

31 files changed

Lines changed: 777 additions & 223 deletions

File tree

‎.agents/skills/debug-runs/SKILL.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ A PR's sweep is kicked by labels. The `/sweep` comment trigger was removed, so a
5151
- **`full-sweep-fail-fast`** runs a canary first when a point qualifies: the lowest-concurrency non-eval single-node point, else a multi-node AgentX point. Sweeps with only multi-node fixed-sequence or eval points have none and fan out at once. If the canary fails, every other matrix is skipped. Each matrix bails on its first failure for faster feedback while debugging. It is the **strongly recommended default** and the label that `/nuke` attaches.
5252
- **`full-sweep-enabled`** has the same canary gate but no fail-fast, so every job runs to completion despite failures. Use it only when a flaky job killing its matrix's in-flight results is unacceptable.
5353
- **`non-canary-full-sweep-enabled`** has neither a canary nor fail-fast, so every job runs to completion despite failures. Use it only when canary gating is also unsuitable.
54-
- Modifiers need a primary label; alone they start no GPU sweep (`check-changelog` still runs). `all-evals` expands eval selection to every eligible config, keeps throughput, and stays reuse-eligible. `evals-only` suppresses throughput. `agentx-fast` uses one AgentX warmup request per lane and a 20-minute profile. Reuse is rejected while the PR carries `evals-only` or `agentx-fast`.
54+
- Modifiers need a primary label; alone they start no GPU sweep (`check-changelog` still runs). `all-evals` expands eval selection to every eligible config, keeps throughput, and stays reuse-eligible. `evals-only` suppresses throughput. `agentx-fast` uses one AgentX warmup request per lane and a 20-minute profile. `evals-last` starts eval jobs only after every throughput job finishes (same-repository sweeps only); without it they start alongside throughput. Reuse is rejected while the PR carries `evals-only` or `agentx-fast`.
5555
- No label trims concurrency. For a lowest-concurrency smoke, dispatch `e2e-tests.yml` (below) with `-f trim-conc=true`.
5656
- Adding or removing a primary or modifier label cancels the in-progress sweep, and a new one starts only while a primary label remains. To re-trigger a sweep without a new commit, remove and re-add the primary label.
5757

‎.github/PULL_REQUEST_TEMPLATE/pull_request_template.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
- [ ] I have tested my changes locally
3434
- [ ] I have updated documentation if necessary
3535
- [ ] **If `python -m infx.matrix.changed --base origin/main` lists affected config keys, I have appended one new entry covering them to the physical end of `inferencex-e2e/perf-changelog.yaml`; if it lists none, I have added none. I have not edited historical entries**
36-
- [ ] **If this PR appends an `inferencex-e2e/perf-changelog.yaml` entry, it carries exactly one primary sweep label** (a maintainer applies it on fork PRs): `full-sweep-fail-fast` (recommended), `full-sweep-enabled`, or `non-canary-full-sweep-enabled`. Optional modifiers `all-evals`, `evals-only`, and `agentx-fast` require a primary label; the last two block reuse while applied.
36+
- [ ] **If this PR appends an `inferencex-e2e/perf-changelog.yaml` entry, it carries exactly one primary sweep label** (a maintainer applies it on fork PRs): `full-sweep-fail-fast` (recommended), `full-sweep-enabled`, or `non-canary-full-sweep-enabled`. Optional modifiers `all-evals`, `evals-only`, `agentx-fast`, and `evals-last` require a primary label; `evals-only` and `agentx-fast` block reuse while applied.
3737
- [ ] **Before merging via reuse, a maintainer with write access to the repository has commented `/use <run_id>` (or the legacy `/reuse-sweep-run`) on this PR**. Do this **only once there is a final full sweep that is all green with evals passing**, since after this comment the primary sweep label will no longer automatically kick off new sweeps. Remove and re-add the primary sweep label to force a new sweep.
3838

3939
</details>

‎.github/workflows/README.md‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,10 @@ All primary labels run the full selected concurrency matrix. Modifiers require
177177
a primary label: `all-evals` expands eligible evals while retaining throughput;
178178
`evals-only` suppresses throughput; `agentx-fast` uses one extra AgentX warmup
179179
request after mandatory primers and a 20-minute profile, leaving fixed-sequence
180-
and eval settings canonical. `all-evals`/`evals-only` reject changelog additions
180+
and eval settings canonical; `evals-last` holds the eval jobs until every
181+
throughput job has finished with any result, where by default they start
182+
alongside throughput. `evals-last` applies to same-repository sweeps only and
183+
its runs stay reusable. `all-evals`/`evals-only` reject changelog additions
181184
with `append-only: true` or `no-evals: true`. Do not reuse an `evals-only` or
182185
`agentx-fast` run. For lowest-concurrency smoke, dispatch `e2e-tests.yml` with
183186
`trim-conc: true`; no PR label trims concurrency.

‎.github/workflows/codeowner-signoff-verify.yml‎

Lines changed: 82 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,19 @@ jobs:
120120
checks: read # Read check-runs on PR commits.
121121
outputs:
122122
verification-succeeded: ${{ steps.outcome.outputs.succeeded }}
123+
env:
124+
VERDICT_PATH: /tmp/codeowner-signoff-verdict.md
125+
VERIFIER_CLAUDE_ARGS: |
126+
--model 'claude-opus-5-5'
127+
--allowedTools "Read,Write,Glob,Grep,WebFetch,mcp__github_ci__*,Bash(gh pr view:*),Bash(gh pr diff:*),Bash(gh api:*),Bash(gh run view:*),Bash(gh run list:*),Bash(gh run download:*),Bash(git log:*),Bash(git show:*),Bash(docker manifest inspect:*),Bash(uv run --project inferencex-e2e --locked python -m infx.workflows.pareto_coverage:*),Bash(uv run --project inferencex-e2e --locked python -m infx.workflows.signoff_facts:*),Bash(uv run --project inferencex-e2e --locked python -m infx.workflows.signoff_validate:*)"
128+
--disallowedTools "Read(//proc/**),Write(//proc/**)"
129+
# claude-code-action hides the transcript, so log only why the agent stopped and what it was denied.
130+
CLAUDE_RUN_SUMMARY_JQ: |
131+
.[] | select(.type == "result")
132+
| "Stop: \(.subtype) after \(.num_turns) turns",
133+
"Final message:", (.result // "(none)"),
134+
"Permission denials (\(.permission_denials | length)):",
135+
(.permission_denials[]? | "- \(.tool_name): \(.tool_input.command // .tool_input.file_path // .tool_input.url // (.tool_input | tostring))")
123136
steps:
124137
- name: Checkout trusted workflow code
125138
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -185,35 +198,97 @@ jobs:
185198
settings: |
186199
{"fastMode": true}
187200
188-
claude_args: |
189-
--model 'claude-opus-5-5'
190-
--allowedTools "Read,Write,Glob,Grep,WebFetch,mcp__github_ci__*,Bash(gh pr view:*),Bash(gh pr diff:*),Bash(gh api:*),Bash(gh run view:*),Bash(gh run list:*),Bash(gh run download:*),Bash(git log:*),Bash(git show:*),Bash(docker manifest inspect:*),Bash(uv run --project inferencex-e2e --locked python -m infx.workflows.pareto_coverage:*),Bash(uv run --project inferencex-e2e --locked python -m infx.workflows.signoff_facts:*),Bash(uv run --project inferencex-e2e --locked python -m infx.workflows.signoff_validate:*)"
191-
--disallowedTools "Read(//proc/**),Write(//proc/**)"
201+
claude_args: ${{ env.VERIFIER_CLAUDE_ARGS }}
192202
prompt: |
193203
Read the file /tmp/codeowner-signoff-verify-prompt.md and follow the
194204
instructions in it exactly — it is your complete task specification,
195205
already rendered with this run's PR number, head SHA, and sign-off
196206
metadata.
197207
208+
- name: Summarize Claude run
209+
if: always() && steps.claude.outputs.execution_file != ''
210+
continue-on-error: true
211+
env:
212+
EXECUTION_FILE: ${{ steps.claude.outputs.execution_file }}
213+
# Agent text can be steered by the PR, so print it with workflow commands disabled.
214+
run: |
215+
token="$(openssl rand -hex 16)"
216+
echo "::stop-commands::$token"
217+
trap 'echo "::$token::"' EXIT
218+
jq -r "$CLAUDE_RUN_SUMMARY_JQ" "$EXECUTION_FILE"
219+
220+
- name: Check for verdict
221+
id: verdict
222+
if: steps.claude.outcome == 'success'
223+
run: |
224+
if [[ -f "$VERDICT_PATH" ]]; then
225+
echo "written=true" >> "$GITHUB_OUTPUT"
226+
fi
227+
228+
# The agent sometimes ends its turn before writing the verdict; resuming keeps its findings.
229+
- name: Resume Claude to write the verdict
230+
id: claude_resume
231+
if: steps.claude.outcome == 'success' && steps.verdict.outputs.written != 'true' && steps.claude.outputs.session_id != ''
232+
uses: anthropics/claude-code-action@9171db3e57d6a3140a37ddc2ba92788584e0ead6 # v1.0.234
233+
env:
234+
GH_TOKEN: ${{ github.token }}
235+
GITHUB_TOKEN: ${{ github.token }}
236+
BASH_DEFAULT_TIMEOUT_MS: "1800000"
237+
BASH_MAX_TIMEOUT_MS: "3600000"
238+
with:
239+
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} # zizmor: ignore[secrets-outside-env]
240+
github_token: ${{ github.token }}
241+
path_to_claude_code_executable: ${{ steps.claude_cli.outputs.path }}
242+
track_progress: false
243+
allowed_bots: ''
244+
additional_permissions: |
245+
actions: read
246+
settings: |
247+
{"fastMode": true}
248+
249+
claude_args: |
250+
${{ env.VERIFIER_CLAUDE_ARGS }}
251+
--resume ${{ steps.claude.outputs.session_id }}
252+
prompt: |
253+
You ended your turn without writing /tmp/codeowner-signoff-verdict.md, so no
254+
verdict was published. Finish any checks from
255+
/tmp/codeowner-signoff-verify-prompt.md that you have not completed, then write
256+
the verdict file and run signoff_validate on it as that file's "Verdict and
257+
output" section requires. Do not stop until the file exists and validates.
258+
259+
- name: Summarize resumed Claude run
260+
if: always() && steps.claude_resume.outputs.execution_file != ''
261+
continue-on-error: true
262+
env:
263+
EXECUTION_FILE: ${{ steps.claude_resume.outputs.execution_file }}
264+
run: |
265+
token="$(openssl rand -hex 16)"
266+
echo "::stop-commands::$token"
267+
trap 'echo "::$token::"' EXIT
268+
jq -r "$CLAUDE_RUN_SUMMARY_JQ" "$EXECUTION_FILE"
269+
198270
- name: Record verification outcome
199271
id: outcome
200272
if: always()
201273
env:
202-
CLAUDE_SUCCEEDED: ${{ steps.claude.outcome == 'success' }}
203-
VERDICT_PATH: /tmp/codeowner-signoff-verdict.md
274+
CLAUDE_SUCCEEDED: ${{ steps.claude.outcome == 'success' && steps.claude_resume.outcome != 'failure' }}
204275
run: |
205276
succeeded=false
206277
if [[ "$CLAUDE_SUCCEEDED" == true && -f "$VERDICT_PATH" ]]; then
207278
succeeded=true
208279
fi
209280
echo "succeeded=$succeeded" >> "$GITHUB_OUTPUT"
281+
if [[ "$succeeded" != true ]]; then
282+
echo "::error::Verifier did not write $VERDICT_PATH"
283+
exit 1
284+
fi
210285
211286
- name: Upload verdict
212287
if: always() && steps.outcome.outputs.succeeded == 'true'
213288
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
214289
with:
215290
name: codeowner-signoff-verdict
216-
path: /tmp/codeowner-signoff-verdict.md
291+
path: ${{ env.VERDICT_PATH }}
217292
if-no-files-found: error
218293
retention-days: 7
219294

‎.github/workflows/merge-ingest.yml‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,15 +135,28 @@ jobs:
135135
SOURCE_HEAD_SHA: ${{ steps.reuse.outputs.reuse-source-head-sha }}
136136
SOURCE_RUN_ATTEMPT: ${{ steps.reuse.outputs.reuse-source-run-attempt }}
137137
run: |
138+
source "$GITHUB_WORKSPACE/inferencex-e2e/benchmarks/check_env.sh"
139+
check_env_vars GITHUB_WORKSPACE RUNNER_TEMP SOURCE_RUN_ID SOURCE_RUN_ATTEMPT SOURCE_HEAD_SHA
138140
python3 -m infx.results.video_artifacts --artifacts-dir video-artifacts \
139-
--run-id "$SOURCE_RUN_ID" --run-attempt "$SOURCE_RUN_ATTEMPT" --head-sha "$SOURCE_HEAD_SHA"
141+
--run-id "$SOURCE_RUN_ID" --run-attempt "$SOURCE_RUN_ATTEMPT" --head-sha "$SOURCE_HEAD_SHA" \
142+
--selection-output "$RUNNER_TEMP/video-publication-selection.json"
143+
144+
- name: Upload validated video publication selection
145+
if: steps.plan.outputs.video == 'true'
146+
id: video-selection
147+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
148+
with:
149+
name: video-publication-selection
150+
path: ${{ runner.temp }}/video-publication-selection.json
151+
if-no-files-found: error
140152

141153
- name: Publish reused videos
142154
if: steps.plan.outputs.video == 'true'
143155
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
144156
env:
145157
SOURCE_RUN_ID: ${{ steps.reuse.outputs.reuse-source-run-id }}
146158
MERGE_RUN_ID: ${{ github.run_id }}
159+
SELECTION_ARTIFACT_ID: ${{ steps.video-selection.outputs.artifact-id }}
147160
APP_REPO: ${{ vars.APP_REPO || 'SemiAnalysisAI/InferenceX-app' }}
148161
with:
149162
github-token: ${{ secrets.FRONTEND_PAT }} # zizmor: ignore[secrets-outside-env]
@@ -156,6 +169,7 @@ jobs:
156169
client_payload: {
157170
source_run_id: process.env.SOURCE_RUN_ID,
158171
merge_run_id: process.env.MERGE_RUN_ID,
172+
selection_artifact_id: process.env.SELECTION_ARTIFACT_ID,
159173
},
160174
});
161175

‎.github/workflows/pr-recipe-reminder.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
Thanks for the contribution!
4747
4848
- **Review:** If this PR changes files owned by someone other than a repository admin or \`@SemiAnalysisAI/core\`, ask one eligible [CODEOWNER](https://github.com/SemiAnalysisAI/InferenceX/blob/main/.github/CODEOWNERS) to complete the latest [PR_REVIEW_CHECKLIST.md](https://github.com/SemiAnalysisAI/InferenceX/blob/main/inferencex-e2e/docs/PR_REVIEW_CHECKLIST.md) before contacting a core maintainer on Slack. Follow the template exactly, including \`As a PR reviewer and CODEOWNER, I have reviewed this and have\`, so sign-off verification triggers.
49-
- **PR verification:** Sweeps run only when the PR appends an \`inferencex-e2e/perf-changelog.yaml\` entry and carries exactly one primary label: \`full-sweep-fail-fast\` (strongly recommended; canary plus per-matrix fail-fast), \`full-sweep-enabled\` (canary; matrix jobs continue after a failure), or \`non-canary-full-sweep-enabled\` (no canary or fail-fast). The modifiers \`all-evals\`, \`evals-only\`, and \`agentx-fast\` require a primary label. On fork PRs, a maintainer applies the label. See [sweep labels and reuse](https://github.com/SemiAnalysisAI/InferenceX/blob/main/.github/AGENT_OPERATIONS.md#sweep-labels-and-reuse).
49+
- **PR verification:** Sweeps run only when the PR appends an \`inferencex-e2e/perf-changelog.yaml\` entry and carries exactly one primary label: \`full-sweep-fail-fast\` (strongly recommended; canary plus per-matrix fail-fast), \`full-sweep-enabled\` (canary; matrix jobs continue after a failure), or \`non-canary-full-sweep-enabled\` (no canary or fail-fast). The modifiers \`all-evals\`, \`evals-only\`, \`agentx-fast\`, and \`evals-last\` require a primary label. On fork PRs, a maintainer applies the label. See [sweep labels and reuse](https://github.com/SemiAnalysisAI/InferenceX/blob/main/.github/AGENT_OPERATIONS.md#sweep-labels-and-reuse).
5050
- **After merging:** PR authors must ensure all GitHub Actions jobs pass. Transient failures often pass on rerun; see [how to rerun failed jobs](https://docs.github.com/en/actions/how-tos/manage-workflow-runs/re-run-workflows-and-jobs#re-running-failed-jobs-in-a-workflow).
5151
5252
<details>
@@ -55,7 +55,7 @@ jobs:
5555
感谢你的贡献!
5656
5757
- **审阅:**如果 PR 修改的文件归属于仓库管理员及 \`@SemiAnalysisAI/core\` 之外的 CODEOWNER,请先联系一位有资格的 [CODEOWNER](https://github.com/SemiAnalysisAI/InferenceX/blob/main/.github/CODEOWNERS) 填写最新的 [PR_REVIEW_CHECKLIST.md](https://github.com/SemiAnalysisAI/InferenceX/blob/main/inferencex-e2e/docs/PR_REVIEW_CHECKLIST.md),再通过 Slack 联系核心维护者。必须严格遵循模板,并保留 \`As a PR reviewer and CODEOWNER, I have reviewed this and have\`,才能触发签核验证。
58-
- **PR 验证:**只有当 PR 在 \`inferencex-e2e/perf-changelog.yaml\` 末尾追加了条目,并且恰好带有一个主标签时,才会运行扫描:\`full-sweep-fail-fast\`(强烈推荐;canary 加逐矩阵 fail-fast)、\`full-sweep-enabled\`(有 canary;矩阵任务在失败后继续运行)或 \`non-canary-full-sweep-enabled\`(无 canary,也无 fail-fast)。修饰标签 \`all-evals\`、\`evals-only\` 和 \`agentx-fast\` 必须与主标签一起使用。fork PR 的标签由维护者添加。参见[扫描标签与复用](https://github.com/SemiAnalysisAI/InferenceX/blob/main/.github/AGENT_OPERATIONS.md#sweep-labels-and-reuse)。
58+
- **PR 验证:**只有当 PR 在 \`inferencex-e2e/perf-changelog.yaml\` 末尾追加了条目,并且恰好带有一个主标签时,才会运行扫描:\`full-sweep-fail-fast\`(强烈推荐;canary 加逐矩阵 fail-fast)、\`full-sweep-enabled\`(有 canary;矩阵任务在失败后继续运行)或 \`non-canary-full-sweep-enabled\`(无 canary,也无 fail-fast)。修饰标签 \`all-evals\`、\`evals-only\`、\`agentx-fast\` 和 \`evals-last\` 必须与主标签一起使用。fork PR 的标签由维护者添加。参见[扫描标签与复用](https://github.com/SemiAnalysisAI/InferenceX/blob/main/.github/AGENT_OPERATIONS.md#sweep-labels-and-reuse)。
5959
- **合并后:**PR 作者必须确保所有 GitHub Actions 任务通过。临时性失败通常可以通过重新运行恢复;参见[重新运行失败任务的说明](https://docs.github.com/en/actions/how-tos/manage-workflow-runs/re-run-workflows-and-jobs#re-running-failed-jobs-in-a-workflow)。
6060
6161
</details>`.replace(/^ /gm, '');

0 commit comments

Comments
 (0)