@@ -339,111 +339,6 @@ jobs:
339
339
--required .github/interop/required.json \
340
340
web/logs/latest/result.json
341
341
342
- bench :
343
- runs-on : ubuntu-22.04
344
- needs : [env, s2n-quic-qns]
345
- steps :
346
- - uses : actions/checkout@v4
347
- with :
348
- submodules : true
349
-
350
- - name : Install rust toolchain
351
- id : toolchain
352
- run : |
353
- rustup toolchain install stable
354
- rustup override set stable
355
-
356
- - uses : camshaft/rust-cache@v1
357
-
358
- - name : Install tshark
359
- run : |
360
- wget --no-verbose https://dnglbrstg7yg.cloudfront.net/tshark/v$WIRESHARK_VERSION/tshark
361
- chmod +x tshark
362
- sudo mv tshark /usr/bin
363
- /usr/bin/tshark -v
364
-
365
- - name : Install gnuplot
366
- run : |
367
- sudo apt-get -o Acquire::Retries=3 update
368
- sudo apt-get -o Acquire::Retries=3 install -y gnuplot
369
-
370
- -
uses :
aws-actions/[email protected]
371
- if : github.repository == github.event.pull_request.head.repo.full_name
372
- with :
373
- role-to-assume : arn:aws:iam::024603541914:role/GitHubOIDCEcrRole
374
- role-session-name : S2nQuicGHAECRSession
375
- aws-region : us-east-1 # Required for ECR
376
-
377
- # authenticate pull to avoid hitting pull quota
378
- - name : Login to Amazon ECR Public
379
- if : github.repository == github.event.pull_request.head.repo.full_name
380
- id : login-ecr-public
381
- uses : aws-actions/amazon-ecr-login@v2
382
- with :
383
- registry-type : public
384
-
385
- - name : Pull s2n-quic-qns:main
386
- if : github.event.pull_request
387
- run : docker pull public.ecr.aws/s2n/s2n-quic-qns:main
388
-
389
- - uses : actions/download-artifact@v4
390
- with :
391
- name : s2n-quic-qns-debug
392
- path : s2n-quic-qns-build/
393
-
394
- - uses : actions/download-artifact@v4
395
- with :
396
- name : s2n-quic-qns-release
397
- path : s2n-quic-qns-build/
398
-
399
- - name : Setup dockerfile
400
- working-directory : s2n-quic-qns-build
401
- run : |
402
- cp ../quic/s2n-quic-qns/etc/Dockerfile .
403
- cp ../quic/s2n-quic-qns/etc/run_endpoint.sh .
404
-
405
- - name : Run docker build
406
- working-directory : s2n-quic-qns-build
407
- env :
408
- DOCKER_BUILDKIT : 1
409
- run : |
410
- docker build . --file Dockerfile --target prebuilt --tag aws/s2n-quic-qns
411
-
412
- - name : Run script for pull request
413
- if : github.event.pull_request
414
- run : sudo env "PATH=$PATH" "BUILD_S2N_QUIC=false" "COMPARE_TO_MAIN=true" ./scripts/benchmark/run-all
415
-
416
- - name : Run script for push to main
417
- if : github.event_name == 'push'
418
- run : sudo env "PATH=$PATH" "BUILD_S2N_QUIC=false" ./scripts/benchmark/run-all
419
-
420
- -
uses :
aws-actions/[email protected]
421
- if : github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name
422
- with :
423
- role-to-assume : arn:aws:iam::024603541914:role/GitHubOIDCRole
424
- role-session-name : S2nQuicGHAS3Session
425
- aws-region : us-west-2
426
-
427
- - name : Upload results
428
- if : github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name
429
- id : s3
430
- run : |
431
- TARGET="${{ github.sha }}/bench"
432
- aws s3 sync target/benchmark/results "s3://s2n-quic-ci-artifacts/$TARGET" --acl private --follow-symlinks
433
- URL="$CDN/$TARGET/index.html"
434
- echo "URL=$URL" >> $GITHUB_OUTPUT
435
-
436
- -
uses :
ouzi-dev/[email protected]
437
- if : github.event_name == 'push' || github.repository == github.event.pull_request.head.repo.full_name
438
- with :
439
- name : " bench / report"
440
- status : " success"
441
- url : " ${{ steps.s3.outputs.URL }}"
442
-
443
- - name : Assert no crashes
444
- run : |
445
- ! grep -Rq 'The s2n-quic-qns application shut down unexpectedly' target/benchmark/results
446
-
447
342
h3spec :
448
343
runs-on : ubuntu-22.04
449
344
needs : [s2n-quic-qns]
0 commit comments