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
40 changes: 0 additions & 40 deletions .buildkite/features/Chunked_Prefill.yml

This file was deleted.

38 changes: 19 additions & 19 deletions .buildkite/features/JAX-Path_Qxix_Quantization.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
# JAX-Path Qxix Quantization
steps:
- label: "Correctness tests for JAX-Path Qxix Quantization"
key: "JAX-Path_Qxix_Quantization_CorrectnessTest"
soft_fail: true
agents:
queue: tpu_v6e_queue
commands:
- echo "covered by performance tests"
- label: "Record correctness test result for JAX-Path Qxix Quantization"
key: "record_JAX-Path_Qxix_Quantization_CorrectnessTest"
depends_on: "JAX-Path_Qxix_Quantization_CorrectnessTest"
env:
CI_TARGET: "JAX-Path Qxix Quantization"
CI_STAGE: "CorrectnessTest"
agents:
queue: cpu
commands:
- |
.buildkite/scripts/record_step_result.sh JAX-Path_Qxix_Quantization_CorrectnessTest
# - label: "Correctness tests for JAX-Path Qxix Quantization"
# key: "JAX-Path_Qxix_Quantization_CorrectnessTest"
# soft_fail: true
# agents:
# queue: tpu_v6e_queue
# commands:
# - echo "covered by performance tests"
# - label: "Record correctness test result for JAX-Path Qxix Quantization"
# key: "record_JAX-Path_Qxix_Quantization_CorrectnessTest"
# depends_on: "JAX-Path_Qxix_Quantization_CorrectnessTest"
# env:
# CI_TARGET: "JAX-Path Qxix Quantization"
# CI_STAGE: "CorrectnessTest"
# agents:
# queue: cpu
# commands:
# - |
# .buildkite/scripts/record_step_result.sh JAX-Path_Qxix_Quantization_CorrectnessTest

- label: "Performance tests for JAX-Path Qxix Quantization"
key: "JAX-Path_Qxix_Quantization_PerformanceTest"
depends_on: "record_JAX-Path_Qxix_Quantization_CorrectnessTest"
# depends_on: "record_JAX-Path_Qxix_Quantization_CorrectnessTest"
soft_fail: true
env:
QUANTIZATION: "True"
Expand Down
40 changes: 0 additions & 40 deletions .buildkite/features/Prefix_Caching.yml

This file was deleted.

38 changes: 19 additions & 19 deletions .buildkite/features/Quantized_Matmul_Attention_and_KV_Cache.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
# Quantized Matmul Attention and KV Cache
steps:
- label: "Correctness tests for Quantized Matmul Attention and KV Cache"
key: "Quantized_Matmul_Attention_and_KV_Cache_CorrectnessTest"
soft_fail: true
agents:
queue: cpu
commands:
- echo "covered by performance test"
- label: "Record correctness test result for Quantized Matmul Attention and KV Cache"
key: "record_Quantized_Matmul_Attention_and_KV_Cache_CorrectnessTest"
depends_on: "Quantized_Matmul_Attention_and_KV_Cache_CorrectnessTest"
env:
CI_TARGET: "Quantized Matmul Attention and KV Cache"
CI_STAGE: "CorrectnessTest"
agents:
queue: cpu
commands:
- |
.buildkite/scripts/record_step_result.sh Quantized_Matmul_Attention_and_KV_Cache_CorrectnessTest
# - label: "Correctness tests for Quantized Matmul Attention and KV Cache"
# key: "Quantized_Matmul_Attention_and_KV_Cache_CorrectnessTest"
# soft_fail: true
# agents:
# queue: cpu
# commands:
# - echo "covered by performance test"
# - label: "Record correctness test result for Quantized Matmul Attention and KV Cache"
# key: "record_Quantized_Matmul_Attention_and_KV_Cache_CorrectnessTest"
# depends_on: "Quantized_Matmul_Attention_and_KV_Cache_CorrectnessTest"
# env:
# CI_TARGET: "Quantized Matmul Attention and KV Cache"
# CI_STAGE: "CorrectnessTest"
# agents:
# queue: cpu
# commands:
# - |
# .buildkite/scripts/record_step_result.sh Quantized_Matmul_Attention_and_KV_Cache_CorrectnessTest

- label: "Performance tests for Quantized Matmul Attention and KV Cache"
key: "Quantized_Matmul_Attention_and_KV_Cache_PerformanceTest"
depends_on: "record_Quantized_Matmul_Attention_and_KV_Cache_CorrectnessTest"
# depends_on: "record_Quantized_Matmul_Attention_and_KV_Cache_CorrectnessTest"
soft_fail: true
agents:
queue: tpu_v6e_8_queue
Expand Down
40 changes: 0 additions & 40 deletions .buildkite/features/Ragged_Paged_Attention_V3.yml

This file was deleted.

40 changes: 0 additions & 40 deletions .buildkite/features/Single_Program_Multi_Data.yml

This file was deleted.

4 changes: 4 additions & 0 deletions .buildkite/features/default_features.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Chunked Prefill
Prefix Caching
Ragged Paged Attention V3
Single Program Multi Data
48 changes: 40 additions & 8 deletions .buildkite/scripts/generate_support_matrices.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ ANY_FAILED=false

MODEL_LIST_KEY="model-list"
FEATURE_LIST_KEY="feature-list"
DEFAULT_FEATURES_FILE=".buildkite/features/default_features.txt"

# Note: This script assumes the metadata keys contain newline-separated lists.
# The `mapfile` command reads these lists into arrays, correctly handling spaces.
mapfile -t model_list < <(buildkite-agent meta-data get "${MODEL_LIST_KEY}" --default "")
mapfile -t feature_list < <(buildkite-agent meta-data get "${FEATURE_LIST_KEY}" --default "")
mapfile -t metadata_feature_list < <(buildkite-agent meta-data get "${FEATURE_LIST_KEY}" --default "")
MODEL_STAGES=("UnitTest" "IntegrationTest" "Benchmark")
FEATURE_STAGES=("CorrectnessTest" "PerformanceTest")

Expand All @@ -20,8 +21,18 @@ echo "Model,UnitTest,IntegrationTest,Benchmark" > "$model_support_matrix_csv"
feature_support_matrix_csv="feature_support_matrix.csv"
echo "Feature,CorrectnessTest,PerformanceTest" > "$feature_support_matrix_csv"

# Read the list of default features from the specified file
if [[ -f "${DEFAULT_FEATURES_FILE}" ]]; then
mapfile -t default_feature_list < <(sed 's/\r$//; /^$/d' "${DEFAULT_FEATURES_FILE}")
else
default_feature_list=()
echo "Warning: Default features file not found at ${DEFAULT_FEATURES_FILE}"
fi

process_models() {
for model in "$@"; do
local row
local result
for model in "${model_list[@]:-}"; do
row="\"$model\""
for stage in "${MODEL_STAGES[@]}"; do
result=$(buildkite-agent meta-data get "${model}:${stage}" --default "N/A")
Expand All @@ -35,25 +46,46 @@ process_models() {
}

process_features() {
for feature in "$@"; do
row="\"$feature\""
declare -A feature_rows
local result
# Process features from the default list
for feature in "${default_feature_list[@]:-}"; do
if [[ -z "$feature" ]]; then continue; fi
local row="\"$feature\""
for stage in "${FEATURE_STAGES[@]}"; do
result="✅"
row="$row,$result"
done
feature_rows["$feature"]="$row"
done
# Process features from the metadata list
for feature in "${metadata_feature_list[@]:-}"; do
if [[ -z "$feature" ]]; then continue; fi
if [[ -v feature_rows["$feature"] ]]; then
continue
fi
local row="\"$feature\""
for stage in "${FEATURE_STAGES[@]}"; do
result=$(buildkite-agent meta-data get "${feature}:${stage}" --default "N/A")
row="$row,$result"
if [ "${result}" != "✅" ] && [ "${result}" != "N/A" ] ; then
ANY_FAILED=true
fi
done
echo "$row" >> "$feature_support_matrix_csv"
feature_rows["$feature"]="$row"
done
# Output all unique rows, sorted, to the CSV file
for row in "${feature_rows[@]}"; do
echo "$row"
done | sort -V >> "$feature_support_matrix_csv"
}

if [ ${#model_list[@]} -gt 0 ]; then
process_models "${model_list[@]}"
process_models
fi

if [ ${#feature_list[@]} -gt 0 ]; then
process_features "${feature_list[@]}"
if [ ${#metadata_feature_list[@]} -gt 0 ] || [ ${#default_feature_list[@]} -gt 0 ]; then
process_features
fi

buildkite-agent meta-data set "CI_TESTS_FAILED" "${ANY_FAILED}"
Expand Down