Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,15 @@ Reuse fails closed when authorized but ineligible or invalid. Pushes to `main`
never run a sweep: `run-sweep.yml` is PR-only, and without reuse authorization
the Merge Ingest run fails and nothing is benchmarked or ingested.

## Stored Artifact Sanitization

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

## Repository Scope

Scheduled and run-completion jobs (Klaud, the runner offline digest,
Expand All @@ -386,7 +395,7 @@ configured by these repository variables:
| Variable | Default | Effect |
| ----------------- | ------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `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. |
| `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`. |
| `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. |

## Validation Architecture

Expand Down
36 changes: 36 additions & 0 deletions .github/workflows/benchmark-multinode-tmpl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,42 @@ jobs:
fi
"$INFERENCEX_RESULTS_PYTHON" -P -m infx.results.fixed_sequence --all

- name: Redact stored artifacts
if: ${{ always() && env.INFERENCEX_RESULTS_PYTHON != '' }}
env:
PYTHONPATH: ${{ github.workspace }}/.result-tooling/inferencex-e2e
run: |
source "$PYTHONPATH/benchmarks/check_env.sh"
check_env_vars INFERENCEX_RESULTS_PYTHON INFERENCEX_E2E_ROOT RESULT_FILENAME SCENARIO_TYPE EVAL_ONLY RUN_EVAL
cd "$INFERENCEX_E2E_ROOT"
shopt -s nullglob globstar
paths=(multinode_server_logs.tar.gz srt-setup.log srt-bind.log job_event.json)
if [[ "$EVAL_ONLY" != true ]]; then
paths+=(
"$RESULT_FILENAME"_*.json "agg_$RESULT_FILENAME"_*.json
"power_validation_$RESULT_FILENAME"_*.json LOGS/power
"result_processing_$RESULT_FILENAME.json" LOGS/*/results_*.json
LOGS/agentic/**/agentic_power_concurrency_*.json
LOGS/agentic/**/agentic_power_timezone_offset.txt
LOGS/agentic/**/power_validation.json
)
fi
if [[ "$SCENARIO_TYPE" == agentic-coding ]]; then
for path in LOGS/agentic/**; do
case "$path" in
*/aiperf_artifacts/inputs.json | */aiperf_artifacts/profile_export_raw.jsonl) ;;
*) if [[ -f "$path" ]]; then paths+=("$path"); fi ;;
esac
done
fi
if [[ "$RUN_EVAL" == true || "$EVAL_ONLY" == true ]]; then
paths+=(
meta_env.json results*.json al_gate_*.json ./*_report.json ./*_results.jsonl
sample*.jsonl ./*_artifacts.tar.gz
)
fi
"$INFERENCEX_RESULTS_PYTHON" -P -m infx.results.redact "${paths[@]}"

- name: Upload result
if: ${{ success() && env.RESULT_FILENAME != '' && !inputs.eval-only && inputs.scenario-type != 'agentic-coding' }}
uses: $/.github/actions/upload-artifact-retry
Expand Down
62 changes: 54 additions & 8 deletions .github/workflows/benchmark-tmpl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -333,14 +333,6 @@ jobs:
results/aiperf_artifacts \
--failed-request-threshold "$AIPERF_FAILED_REQUEST_THRESHOLD"

- name: Upload video results
if: ${{ always() && inputs.scenario-type == 'video-generation' && env.RESULT_FILENAME != '' }}
uses: $/.github/actions/upload-artifact-retry
with:
name: ${{ env.VIDEO_ARTIFACT_NAME }}
path: ${{ env.INFERENCEX_E2E_ROOT }}/h3-results
if-no-files-found: error

- name: Process result
if: ${{ always() && env.RESULT_FILENAME != '' && !inputs.eval-only && inputs.scenario-type != 'agentic-coding' && inputs.scenario-type != 'video-generation' }}
env:
Expand All @@ -359,6 +351,60 @@ jobs:
fi
"$INFERENCEX_RESULTS_PYTHON" -P -m infx.results.fixed_sequence

- name: Redact stored artifacts
if: ${{ always() && env.INFERENCEX_RESULTS_PYTHON != '' }}
env:
RUNNER_LABEL: ${{ inputs.runner }}
PYTHONPATH: ${{ github.workspace }}/.result-tooling/inferencex-e2e
run: |
if [[ "$RUNNER_LABEL" == cluster:mi355x-amds ]]; then
sudo chown -R "$(id -u):$(id -g)" "$GITHUB_WORKSPACE"
fi
source "$PYTHONPATH/benchmarks/check_env.sh"
check_env_vars INFERENCEX_RESULTS_PYTHON INFERENCEX_E2E_ROOT RESULT_FILENAME SCENARIO_TYPE EVAL_ONLY RUN_EVAL
cd "$INFERENCEX_E2E_ROOT"
shopt -s nullglob globstar
paths=(
server.log results/*.log results/*_config.json
srt-single-node-logs.tar.gz srt-video-logs.tar.gz srt-single-node-submission.json
srt-slurm-sha.txt srt-setup.log srt-bind.log job_event.json
)
if [[ "$EVAL_ONLY" != true ]]; then
paths+=(
"$RESULT_FILENAME.json" "agg_$RESULT_FILENAME.json"
"power_validation_$RESULT_FILENAME.json" "$RESULT_FILENAME"_conc*.json
"power_validation_$RESULT_FILENAME"_conc*.json
results/agentic_power_timezone_offset.txt LOGS/power
LOGS/agentic/**/agentic_power_concurrency_*.json
LOGS/video/**/benchmark_concurrency_*.json LOGS/video/server/*.json
"LOGS/$RESULT_FILENAME.json" power-producer-sha.txt exporter-image.sha256
)
fi
if [[ "$SCENARIO_TYPE" == agentic-coding ]]; then
paths+=("$RESULT_FILENAME.json")
for path in results/**; do
case "$path" in
results/aiperf_artifacts/inputs.json | results/aiperf_artifacts/profile_export_raw.jsonl) ;;
*) if [[ -f "$path" ]]; then paths+=("$path"); fi ;;
esac
done
fi
if [[ "$RUN_EVAL" == true || "$EVAL_ONLY" == true ]]; then
paths+=(
meta_env.json results*.json al_gate_*.json ./*_report.json ./*_results.jsonl
./*_artifacts.tar.gz sample*.jsonl
)
fi
"$INFERENCEX_RESULTS_PYTHON" -P -m infx.results.redact "${paths[@]}"

- name: Upload video results
if: ${{ always() && inputs.scenario-type == 'video-generation' && env.RESULT_FILENAME != '' }}
uses: $/.github/actions/upload-artifact-retry
with:
name: ${{ env.VIDEO_ARTIFACT_NAME }}
path: ${{ env.INFERENCEX_E2E_ROOT }}/h3-results
if-no-files-found: error

- name: Upload result
if: ${{ success() && env.RESULT_FILENAME != '' && !inputs.eval-only && inputs.scenario-type != 'agentic-coding' && inputs.scenario-type != 'video-generation' }}
uses: $/.github/actions/upload-artifact-retry
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/collectivex-sweep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ jobs:
[ -z "$CX_MODES" ] || args+=(--modes "$CX_MODES")
[ -z "$CX_PRECISIONS" ] || args+=(--precisions "$CX_PRECISIONS")
collectivex/run.sh "$CX_SHARD_SKU" --shard "$CX_SHARD" "${args[@]}"
- name: Redact stored artifacts
if: always()
env:
PYTHONPATH: inferencex-e2e
run: python3 -m infx.results.redact "collectivex/results/$CX_SHARD_SKU"
- name: Upload results
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/operatorx-sweep.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,9 @@ jobs:
timeout 15 sinfo --Node --noheader --format='%N|%P|%t' \
> "$OPERATORX_OUTPUT/slurm-nodes.log" 2>&1 || true
fi
- name: Redact stored artifacts
if: always()
run: python3 -m infx.results.redact "$OPERATORX_OUTPUT"
- name: Upload results and diagnostics
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/profile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,22 @@ jobs:
check_env_vars INFERENCEX_RESULTS_PYTHON
"$INFERENCEX_RESULTS_PYTHON" -P -m infx.results.fixed_sequence

- name: Redact stored artifacts
if: ${{ always() && env.INFERENCEX_RESULTS_PYTHON != '' }}
env:
PYTHONPATH: ${{ github.workspace }}/.result-tooling/inferencex-e2e
TRACE: ${{ steps.run.outputs.trace }}
TP0_DECODE: ${{ steps.run.outputs.tp0_decode }}
TP0_EXTEND: ${{ steps.run.outputs.tp0_extend }}
run: |
source "$PYTHONPATH/benchmarks/check_env.sh"
check_env_vars INFERENCEX_RESULTS_PYTHON INFERENCEX_E2E_ROOT
paths=("$INFERENCEX_E2E_ROOT/moe_debug.tp0.log")
for trace in "$TRACE" "$TP0_DECODE" "$TP0_EXTEND"; do
if [[ -n "$trace" ]]; then paths+=("$trace"); fi
done
"$INFERENCEX_RESULTS_PYTHON" -P -m infx.results.redact "${paths[@]}"

- name: Upload profile as artifact
if: ${{ steps.run.outputs.trace != '' }}
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/speedbench-al.yml
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,20 @@ jobs:
--base main \
--head "$BRANCH"

- name: Redact stored artifacts
if: ${{ always() && env.INFERENCEX_LAUNCH_PYTHON != '' }}
env:
PYTHONPATH: ${{ github.workspace }}/.launch-tooling/inferencex-e2e
run: |
source "$PYTHONPATH/benchmarks/check_env.sh"
check_env_vars INFERENCEX_LAUNCH_PYTHON INFERENCEX_E2E_ROOT
cd "$INFERENCEX_E2E_ROOT"
shopt -s nullglob
paths=(speedbench_results/server_*.log speedbench_results/speedbench_*)
if (( ${#paths[@]} )); then
"$INFERENCEX_LAUNCH_PYTHON" -P -m infx.results.redact "${paths[@]}"
fi

- name: Upload server logs
if: always()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stage-results-callback.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
APP_REPO: ${{ vars.APP_REPO || 'SemiAnalysisAI/InferenceX-app' }}
STAGING_APP_URL: ${{ vars.STAGING_APP_URL || 'https://inferencemax-app-git-staging-semianalysisai.vercel.app' }}
STAGING_APP_URL: ${{ vars.STAGING_APP_URL }}
run: python3 -m infx.workflows.stage_results_callback
Loading
Loading