[ci] Mount buildkite agent on Docker container to upload benchmark results (#5330)
Signed-off-by: kevin <kevin@anyscale.com>
This commit is contained in:
parent
f7f9c5f97b
commit
c5602f0baa
@ -54,12 +54,12 @@ tail -n 24 benchmark_serving.txt >> benchmark_results.md # last 24 lines
|
|||||||
echo '```' >> benchmark_results.md
|
echo '```' >> benchmark_results.md
|
||||||
|
|
||||||
# if the agent binary is not found, skip uploading the results, exit 0
|
# if the agent binary is not found, skip uploading the results, exit 0
|
||||||
if [ ! -f /workspace/buildkite-agent ]; then
|
if [ ! -f buildkite-agent ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# upload the results to buildkite
|
# upload the results to buildkite
|
||||||
/workspace/buildkite-agent annotate --style "info" --context "benchmark-results" < benchmark_results.md
|
buildkite-agent annotate --style "info" --context "benchmark-results" < benchmark_results.md
|
||||||
|
|
||||||
# exit with the exit code of the benchmarks
|
# exit with the exit code of the benchmarks
|
||||||
if [ $bench_latency_exit_code -ne 0 ]; then
|
if [ $bench_latency_exit_code -ne 0 ]; then
|
||||||
@ -75,4 +75,4 @@ if [ $bench_serving_exit_code -ne 0 ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
rm ShareGPT_V3_unfiltered_cleaned_split.json
|
rm ShareGPT_V3_unfiltered_cleaned_split.json
|
||||||
/workspace/buildkite-agent artifact upload "*.json"
|
buildkite-agent artifact upload "*.json"
|
||||||
|
@ -49,6 +49,9 @@ steps:
|
|||||||
{% if not step.no_gpu %}
|
{% if not step.no_gpu %}
|
||||||
gpus: all
|
gpus: all
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if step.label == "Benchmarks" %}
|
||||||
|
mount-buildkite-agent: true
|
||||||
|
{% endif %}
|
||||||
command: ["bash", "-c", "cd {{ (step.working_dir or default_working_dir) | safe }} && {{ step.command or (step.commands | join(' && ')) | safe }}"]
|
command: ["bash", "-c", "cd {{ (step.working_dir or default_working_dir) | safe }} && {{ step.command or (step.commands | join(' && ')) | safe }}"]
|
||||||
environment:
|
environment:
|
||||||
- VLLM_USAGE_SOURCE=ci-test
|
- VLLM_USAGE_SOURCE=ci-test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user