File tree Expand file tree Collapse file tree 2 files changed +20
-5
lines changed
Expand file tree Collapse file tree 2 files changed +20
-5
lines changed Original file line number Diff line number Diff line change 6060 OTEL_LAYER : ${{ github.event.inputs.otel-layer }}
6161 ROTEL_LAYER : ${{ github.event.inputs.rotel-layer }}
6262 run : |
63- ./scripts/benchmark-coldstart.sh
63+ ./scripts/benchmark-coldstart.sh /tmp/coldstart.out
64+
65+ - uses : actions/upload-artifact@v4
66+ with :
67+ name : coldstart-output-${{ github.job }}.csv
68+ path : /tmp/coldstart.out
69+ overwrite : true
70+
Original file line number Diff line number Diff line change 22
33COUNT=${COUNT:- 10}
44
5+ if [ $# -ne 1 ]; then
6+ echo " Usage: $0 <output-file>"
7+ exit 1
8+ fi
9+
10+ OUTPUT=" $1 "
11+ shift
12+
513if [ -z " $AWS_ROLE_ARN " ]; then
614 echo " Must set AWS_ROLE_ARN"
715 exit 1
@@ -38,16 +46,16 @@ cd benchmark
3846echo " Testing base case"
3947
4048uv run main.py --path ../function.zip --count $COUNT --function-name benchmark-coldstart \
41- --role-arn " $AWS_ROLE_ARN " --region " $AWS_REGION "
49+ --role-arn " $AWS_ROLE_ARN " --region " $AWS_REGION " --output " $OUTPUT "
4250
43- echo " Testing OpenTelmetry collector layer"
51+ echo " Testing OpenTelemetry collector layer"
4452
4553uv run main.py --path ../function.zip --count $COUNT --function-name benchmark-coldstart-otel \
4654 --environment OPENTELEMETRY_COLLECTOR_CONFIG_URI=/var/task/collector.yaml \
47- --role-arn " $AWS_ROLE_ARN " --region " $AWS_REGION " --layer " $OTEL_LAYER "
55+ --role-arn " $AWS_ROLE_ARN " --region " $AWS_REGION " --layer " $OTEL_LAYER " --output " $OUTPUT "
4856
4957echo " Testing Rotel layer"
5058
5159uv run main.py --path ../function.zip --count $COUNT --function-name benchmark-coldstart-rotel \
5260 --environment ROTEL_ENV_FILE=/var/task/rotel.env \
53- --role-arn " $AWS_ROLE_ARN " --region " $AWS_REGION " --layer " $ROTEL_LAYER "
61+ --role-arn " $AWS_ROLE_ARN " --region " $AWS_REGION " --layer " $ROTEL_LAYER " --output " $OUTPUT "
You can’t perform that action at this time.
0 commit comments