Skip to content

Commit 5146e33

Browse files
Yuhua Zhucursoragent
andcommitted
Merge origin/main into yuhzhu/qwen38next-mi355x-atom-agentx
Co-authored-by: Cursor <cursoragent@cursor.com>
2 parents 01030c8 + 921949e commit 5146e33

110 files changed

Lines changed: 5816 additions & 2248 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.github/codeowner-signoff-verify-prompt.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ configs, and the linked recipe yourself. Be rigorous and specific. The checks en
2525
the merge standard in `inferencex-e2e/docs/PR_REVIEW_CHECKLIST.md`. Read it in the checked-out
2626
default branch. It is the source of truth if wording here and there ever drifts.
2727

28+
Check only what the checklist and the checks below explicitly require. Do not invent
29+
requirements, coverage tests, or evidence standards they do not state, and never FAIL or
30+
WARN on a concern outside them.
31+
2832
Read the exact sign-off body first (especially its "Additional detail section").
2933
The sign-off was posted as a ${SIGNOFF_KIND}, so fetch it with:
3034
```bash
@@ -193,12 +197,6 @@ and the additional detail section gives no explanation backed by a rerun. Name t
193197
topology, both scores, and run links. When `cohort_scope` is `none` or the section
194198
failed, find peers with `signoff_facts evals` and name how they differ.
195199

196-
### (c) The eval exercised the changed path
197-
For a conditional backend or kernel change, configuration selection is not runtime
198-
dispatch. Check the pinned engine's eligibility and fallback guards and the assessed
199-
run's server logs. An eval covers the change only when its logs show that path ran; a
200-
concurrency label or server argument alone is not proof. FAIL when no eval covers it.
201-
202200
## Check 3 — Production-useful recipe linked, MERGED, AND complete
203201
APPLICABILITY. Read this first. The deciding factor is whether a serving setting
204202
is useful in a realistic production deployment. The upstream recipe requirement
@@ -1148,6 +1146,8 @@ single terse line. Rules:
11481146
The publisher alone inserts them when Check 14 is WARN, including an overall
11491147
REJECTED verdict with a Pareto warning.
11501148
Spend words only on the checks that fail or warn.
1149+
- Be SUCCINCT. No fluff. A FAIL or WARN row is the root issue and the fix in one or two
1150+
short sentences with a link; a PASS or N/A row is a few words.
11511151
- State conclusions, don't narrate your process. No multi-paragraph explanations, no
11521152
restating the checklist, no hedging ("if X then maybe Y"). Make the call. Link the
11531153
run/recipe instead of describing it.

‎.github/workflows/README.md‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,15 @@ Reuse fails closed when authorized but ineligible or invalid. Pushes to `main`
374374
never run a sweep: `run-sweep.yml` is PR-only, and without reuse authorization
375375
the Merge Ingest run fails and nothing is benchmarked or ingested.
376376

377+
## Stored Artifact Sanitization
378+
379+
Benchmark, multi-node, SpeedBench AL, profile, CollectiveX and OperatorX jobs run
380+
`Redact stored artifacts` (`python -m infx.results.redact`) on the files they upload, right
381+
before the first upload. Profile traces are redacted before they are uploaded or pushed to the
382+
trace storage repository. The rules are the app's `log-redaction.ts`, and both repositories test
383+
them against the same vectors. The `h3-results` video bundle is not redacted, because its
384+
`SHA256SUMS` and evidence digests seal every file.
385+
377386
## Repository Scope
378387

379388
Scheduled and run-completion jobs (Klaud, the runner offline digest,
@@ -386,7 +395,7 @@ configured by these repository variables:
386395
| Variable | Default | Effect |
387396
| ----------------- | ------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
388397
| `APP_REPO` | `SemiAnalysisAI/InferenceX-app` | App repository that `merge-ingest`, `recover-reused-ingest`, `operatorx-sweep`, and `stage-results` dispatch ingest, video, and staging events to, and the only source the ingest and staging callbacks accept. `FRONTEND_PAT` must be able to dispatch to it. |
389-
| `STAGING_APP_URL` | `https://inferencemax-app-git-staging-semianalysisai.vercel.app` | Origin of that app's staging site, without a trailing slash. Staged-run comments link to it, and the staging callback accepts chart links only on it. Set it to the app repository's own `STAGING_APP_URL`. |
398+
| `STAGING_APP_URL` | Required, no default | Origin of that app's staging site, without a trailing slash. Staged-run comments link to it, and the staging callback accepts chart links only on it. Set it to the app repository's own `STAGING_APP_URL`; the callback fails while it is unset. |
390399

391400
## Validation Architecture
392401

‎.github/workflows/benchmark-multinode-tmpl.yml‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,42 @@ jobs:
370370
fi
371371
"$INFERENCEX_RESULTS_PYTHON" -P -m infx.results.fixed_sequence --all
372372
373+
- name: Redact stored artifacts
374+
if: ${{ always() && env.INFERENCEX_RESULTS_PYTHON != '' }}
375+
env:
376+
PYTHONPATH: ${{ github.workspace }}/.result-tooling/inferencex-e2e
377+
run: |
378+
source "$PYTHONPATH/benchmarks/check_env.sh"
379+
check_env_vars INFERENCEX_RESULTS_PYTHON INFERENCEX_E2E_ROOT RESULT_FILENAME SCENARIO_TYPE EVAL_ONLY RUN_EVAL
380+
cd "$INFERENCEX_E2E_ROOT"
381+
shopt -s nullglob globstar
382+
paths=(multinode_server_logs.tar.gz srt-setup.log srt-bind.log job_event.json)
383+
if [[ "$EVAL_ONLY" != true ]]; then
384+
paths+=(
385+
"$RESULT_FILENAME"_*.json "agg_$RESULT_FILENAME"_*.json
386+
"power_validation_$RESULT_FILENAME"_*.json LOGS/power
387+
"result_processing_$RESULT_FILENAME.json" LOGS/*/results_*.json
388+
LOGS/agentic/**/agentic_power_concurrency_*.json
389+
LOGS/agentic/**/agentic_power_timezone_offset.txt
390+
LOGS/agentic/**/power_validation.json
391+
)
392+
fi
393+
if [[ "$SCENARIO_TYPE" == agentic-coding ]]; then
394+
for path in LOGS/agentic/**; do
395+
case "$path" in
396+
*/aiperf_artifacts/inputs.json | */aiperf_artifacts/profile_export_raw.jsonl) ;;
397+
*) if [[ -f "$path" ]]; then paths+=("$path"); fi ;;
398+
esac
399+
done
400+
fi
401+
if [[ "$RUN_EVAL" == true || "$EVAL_ONLY" == true ]]; then
402+
paths+=(
403+
meta_env.json results*.json al_gate_*.json ./*_report.json ./*_results.jsonl
404+
sample*.jsonl ./*_artifacts.tar.gz
405+
)
406+
fi
407+
"$INFERENCEX_RESULTS_PYTHON" -P -m infx.results.redact "${paths[@]}"
408+
373409
- name: Upload result
374410
if: ${{ success() && env.RESULT_FILENAME != '' && !inputs.eval-only && inputs.scenario-type != 'agentic-coding' }}
375411
uses: $/.github/actions/upload-artifact-retry

‎.github/workflows/benchmark-tmpl.yml‎

Lines changed: 54 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -333,14 +333,6 @@ jobs:
333333
results/aiperf_artifacts \
334334
--failed-request-threshold "$AIPERF_FAILED_REQUEST_THRESHOLD"
335335
336-
- name: Upload video results
337-
if: ${{ always() && inputs.scenario-type == 'video-generation' && env.RESULT_FILENAME != '' }}
338-
uses: $/.github/actions/upload-artifact-retry
339-
with:
340-
name: ${{ env.VIDEO_ARTIFACT_NAME }}
341-
path: ${{ env.INFERENCEX_E2E_ROOT }}/h3-results
342-
if-no-files-found: error
343-
344336
- name: Process result
345337
if: ${{ always() && env.RESULT_FILENAME != '' && !inputs.eval-only && inputs.scenario-type != 'agentic-coding' && inputs.scenario-type != 'video-generation' }}
346338
env:
@@ -359,6 +351,60 @@ jobs:
359351
fi
360352
"$INFERENCEX_RESULTS_PYTHON" -P -m infx.results.fixed_sequence
361353
354+
- name: Redact stored artifacts
355+
if: ${{ always() && env.INFERENCEX_RESULTS_PYTHON != '' }}
356+
env:
357+
RUNNER_LABEL: ${{ inputs.runner }}
358+
PYTHONPATH: ${{ github.workspace }}/.result-tooling/inferencex-e2e
359+
run: |
360+
if [[ "$RUNNER_LABEL" == cluster:mi355x-amds ]]; then
361+
sudo chown -R "$(id -u):$(id -g)" "$GITHUB_WORKSPACE"
362+
fi
363+
source "$PYTHONPATH/benchmarks/check_env.sh"
364+
check_env_vars INFERENCEX_RESULTS_PYTHON INFERENCEX_E2E_ROOT RESULT_FILENAME SCENARIO_TYPE EVAL_ONLY RUN_EVAL
365+
cd "$INFERENCEX_E2E_ROOT"
366+
shopt -s nullglob globstar
367+
paths=(
368+
server.log results/*.log results/*_config.json
369+
srt-single-node-logs.tar.gz srt-video-logs.tar.gz srt-single-node-submission.json
370+
srt-slurm-sha.txt srt-setup.log srt-bind.log job_event.json
371+
)
372+
if [[ "$EVAL_ONLY" != true ]]; then
373+
paths+=(
374+
"$RESULT_FILENAME.json" "agg_$RESULT_FILENAME.json"
375+
"power_validation_$RESULT_FILENAME.json" "$RESULT_FILENAME"_conc*.json
376+
"power_validation_$RESULT_FILENAME"_conc*.json
377+
results/agentic_power_timezone_offset.txt LOGS/power
378+
LOGS/agentic/**/agentic_power_concurrency_*.json
379+
LOGS/video/**/benchmark_concurrency_*.json LOGS/video/server/*.json
380+
"LOGS/$RESULT_FILENAME.json" power-producer-sha.txt exporter-image.sha256
381+
)
382+
fi
383+
if [[ "$SCENARIO_TYPE" == agentic-coding ]]; then
384+
paths+=("$RESULT_FILENAME.json")
385+
for path in results/**; do
386+
case "$path" in
387+
results/aiperf_artifacts/inputs.json | results/aiperf_artifacts/profile_export_raw.jsonl) ;;
388+
*) if [[ -f "$path" ]]; then paths+=("$path"); fi ;;
389+
esac
390+
done
391+
fi
392+
if [[ "$RUN_EVAL" == true || "$EVAL_ONLY" == true ]]; then
393+
paths+=(
394+
meta_env.json results*.json al_gate_*.json ./*_report.json ./*_results.jsonl
395+
./*_artifacts.tar.gz sample*.jsonl
396+
)
397+
fi
398+
"$INFERENCEX_RESULTS_PYTHON" -P -m infx.results.redact "${paths[@]}"
399+
400+
- name: Upload video results
401+
if: ${{ always() && inputs.scenario-type == 'video-generation' && env.RESULT_FILENAME != '' }}
402+
uses: $/.github/actions/upload-artifact-retry
403+
with:
404+
name: ${{ env.VIDEO_ARTIFACT_NAME }}
405+
path: ${{ env.INFERENCEX_E2E_ROOT }}/h3-results
406+
if-no-files-found: error
407+
362408
- name: Upload result
363409
if: ${{ success() && env.RESULT_FILENAME != '' && !inputs.eval-only && inputs.scenario-type != 'agentic-coding' && inputs.scenario-type != 'video-generation' }}
364410
uses: $/.github/actions/upload-artifact-retry

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

Lines changed: 13 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ jobs:
124124
VERDICT_PATH: /tmp/codeowner-signoff-verdict.md
125125
VERIFIER_CLAUDE_ARGS: |
126126
--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:*)"
127+
--allowedTools "Agent,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:*)"
128128
--disallowedTools "Read(//proc/**),Write(//proc/**)"
129129
# claude-code-action hides the transcript, so log only why the agent stopped and what it was denied.
130130
CLAUDE_RUN_SUMMARY_JQ: |
@@ -187,6 +187,7 @@ jobs:
187187
GITHUB_TOKEN: ${{ github.token }}
188188
BASH_DEFAULT_TIMEOUT_MS: "1800000"
189189
BASH_MAX_TIMEOUT_MS: "3600000"
190+
CLAUDE_CODE_DISABLE_BACKGROUND_TASKS: "1"
190191
with:
191192
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} # zizmor: ignore[secrets-outside-env]
192193
github_token: ${{ github.token }}
@@ -203,7 +204,8 @@ jobs:
203204
Read the file /tmp/codeowner-signoff-verify-prompt.md and follow the
204205
instructions in it exactly — it is your complete task specification,
205206
already rendered with this run's PR number, head SHA, and sign-off
206-
metadata.
207+
metadata. Wait for any delegated checks to finish, then write the
208+
verdict file before ending your turn.
207209
208210
- name: Summarize Claude run
209211
if: always() && steps.claude.outputs.execution_file != ''
@@ -217,69 +219,21 @@ jobs:
217219
trap 'echo "::$token::"' EXIT
218220
jq -r "$CLAUDE_RUN_SUMMARY_JQ" "$EXECUTION_FILE"
219221
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-
270222
- name: Record verification outcome
271223
id: outcome
272224
if: always()
273225
env:
274-
CLAUDE_SUCCEEDED: ${{ steps.claude.outcome == 'success' && steps.claude_resume.outcome != 'failure' }}
226+
CLAUDE_SUCCEEDED: ${{ steps.claude.outcome == 'success' }}
275227
run: |
276-
succeeded=false
277228
if [[ "$CLAUDE_SUCCEEDED" == true && -f "$VERDICT_PATH" ]]; then
278-
succeeded=true
279-
fi
280-
echo "succeeded=$succeeded" >> "$GITHUB_OUTPUT"
281-
if [[ "$succeeded" != true ]]; then
282-
echo "::error::Verifier did not write $VERDICT_PATH"
229+
echo "succeeded=true" >> "$GITHUB_OUTPUT"
230+
else
231+
echo "succeeded=false" >> "$GITHUB_OUTPUT"
232+
if [[ "$CLAUDE_SUCCEEDED" == true ]]; then
233+
echo "::error::Verifier did not write $VERDICT_PATH"
234+
else
235+
echo "::error::Claude verifier did not complete successfully"
236+
fi
283237
exit 1
284238
fi
285239

‎.github/workflows/collectivex-sweep.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,11 @@ jobs:
147147
[ -z "$CX_MODES" ] || args+=(--modes "$CX_MODES")
148148
[ -z "$CX_PRECISIONS" ] || args+=(--precisions "$CX_PRECISIONS")
149149
collectivex/run.sh "$CX_SHARD_SKU" --shard "$CX_SHARD" "${args[@]}"
150+
- name: Redact stored artifacts
151+
if: always()
152+
env:
153+
PYTHONPATH: inferencex-e2e
154+
run: python3 -m infx.results.redact "collectivex/results/$CX_SHARD_SKU"
150155
- name: Upload results
151156
if: always()
152157
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,13 @@ jobs:
143143
client_payload,
144144
});
145145
146+
# After the LLM dispatch and only for a video publish, so it never holds back LLM or AgentX results.
147+
- name: Require released video sets unchanged
148+
if: steps.plan.outputs.video == 'true'
149+
run: |
150+
uv run --no-project --exclude-newer PT12H --python 3.12 --with pyyaml \
151+
python video-generation/specs/released_sets.py
152+
146153
# Matching the manifest too keeps one bundle in its named directory; a single match unpacks flat.
147154
- name: Download the reused video bundles and matrix
148155
if: steps.plan.outputs.video == 'true'

‎.github/workflows/operatorx-sweep.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,9 @@ jobs:
226226
timeout 15 sinfo --Node --noheader --format='%N|%P|%t' \
227227
> "$OPERATORX_OUTPUT/slurm-nodes.log" 2>&1 || true
228228
fi
229+
- name: Redact stored artifacts
230+
if: always()
231+
run: python3 -m infx.results.redact "$OPERATORX_OUTPUT"
229232
- name: Upload results and diagnostics
230233
if: always()
231234
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1

‎.github/workflows/profile.yml‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,22 @@ jobs:
377377
check_env_vars INFERENCEX_RESULTS_PYTHON
378378
"$INFERENCEX_RESULTS_PYTHON" -P -m infx.results.fixed_sequence
379379
380+
- name: Redact stored artifacts
381+
if: ${{ always() && env.INFERENCEX_RESULTS_PYTHON != '' }}
382+
env:
383+
PYTHONPATH: ${{ github.workspace }}/.result-tooling/inferencex-e2e
384+
TRACE: ${{ steps.run.outputs.trace }}
385+
TP0_DECODE: ${{ steps.run.outputs.tp0_decode }}
386+
TP0_EXTEND: ${{ steps.run.outputs.tp0_extend }}
387+
run: |
388+
source "$PYTHONPATH/benchmarks/check_env.sh"
389+
check_env_vars INFERENCEX_RESULTS_PYTHON INFERENCEX_E2E_ROOT
390+
paths=("$INFERENCEX_E2E_ROOT/moe_debug.tp0.log")
391+
for trace in "$TRACE" "$TP0_DECODE" "$TP0_EXTEND"; do
392+
if [[ -n "$trace" ]]; then paths+=("$trace"); fi
393+
done
394+
"$INFERENCEX_RESULTS_PYTHON" -P -m infx.results.redact "${paths[@]}"
395+
380396
- name: Upload profile as artifact
381397
if: ${{ steps.run.outputs.trace != '' }}
382398
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1

‎.github/workflows/speedbench-al.yml‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -354,6 +354,20 @@ jobs:
354354
--base main \
355355
--head "$BRANCH"
356356
357+
- name: Redact stored artifacts
358+
if: ${{ always() && env.INFERENCEX_LAUNCH_PYTHON != '' }}
359+
env:
360+
PYTHONPATH: ${{ github.workspace }}/.launch-tooling/inferencex-e2e
361+
run: |
362+
source "$PYTHONPATH/benchmarks/check_env.sh"
363+
check_env_vars INFERENCEX_LAUNCH_PYTHON INFERENCEX_E2E_ROOT
364+
cd "$INFERENCEX_E2E_ROOT"
365+
shopt -s nullglob
366+
paths=(speedbench_results/server_*.log speedbench_results/speedbench_*)
367+
if (( ${#paths[@]} )); then
368+
"$INFERENCEX_LAUNCH_PYTHON" -P -m infx.results.redact "${paths[@]}"
369+
fi
370+
357371
- name: Upload server logs
358372
if: always()
359373
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1

0 commit comments

Comments
 (0)