|
| 1 | +name: GoodputDebug |
| 2 | + |
| 3 | +on: |
| 4 | + schedule: |
| 5 | + - cron: '30 1 * * *' |
| 6 | + workflow_dispatch: |
| 7 | + |
| 8 | +env: |
| 9 | + CARGO_TERM_COLOR: always |
| 10 | + QUIC_IMAGES: gquiche=tquicgroup/qirgq,lsquic=tquicgroup/qirls,picoquic=tquicgroup/qirpq,quiche=tquicgroup/qircq |
| 11 | + |
| 12 | +jobs: |
| 13 | + measure: |
| 14 | + runs-on: ubuntu-latest |
| 15 | + |
| 16 | + strategy: |
| 17 | + matrix: |
| 18 | + impl: [tquic,lsquic] |
| 19 | + case: [goodput10m] |
| 20 | + cc: [bbr] |
| 21 | + |
| 22 | + # The scheduled workflow only runs for the main repository. |
| 23 | + # You can manually trigger it if necessary. |
| 24 | + if: ${{ ( github.event_name == 'schedule' && github.repository == 'tencent/tquic' ) || github.event_name == 'workflow_dispatch' }} |
| 25 | + steps: |
| 26 | + - uses: actions/checkout@v4 |
| 27 | + with: |
| 28 | + submodules: 'recursive' |
| 29 | + |
| 30 | + - name: Build docker image |
| 31 | + run: docker build -t tquic_interop:v1 -f interop/Dockerfile . |
| 32 | + |
| 33 | + - name: Install quic-interop-runner |
| 34 | + run: | |
| 35 | + git clone https://github.com/tquic-group/quic-interop-runner.git |
| 36 | + cd quic-interop-runner |
| 37 | + pip3 install -r requirements.txt |
| 38 | +
|
| 39 | + - name: Install dependencies |
| 40 | + run: | |
| 41 | + sudo modprobe ip6table_filter |
| 42 | + sudo add-apt-repository -y ppa:wireshark-dev/stable |
| 43 | + sudo apt install -y tshark |
| 44 | +
|
| 45 | + - name: Run the interop tests |
| 46 | + run: | |
| 47 | + cd quic-interop-runner |
| 48 | + python3 run.py -r "$QUIC_IMAGES,tquic=tquic_interop:v1" -s ${{ matrix.impl }} -c ${{ matrix.impl }} -t ${{ matrix.case }} -a ${{ matrix.cc }} -d -n "drop-rate --delay=15ms --bandwidth=30Mbps --queue=25 --rate_to_server=0 --rate_to_client=0" -j ${{ matrix.case }}-0-${{ matrix.cc }}-${{ matrix.impl }}.json |
| 49 | +
|
| 50 | + - name: Store measurement results |
| 51 | + uses: actions/upload-artifact@v4 |
| 52 | + with: |
| 53 | + name: ${{ matrix.case }}-${{ matrix.cc }}-${{ matrix.impl }} |
| 54 | + path: quic-interop-runner/* |
| 55 | + |
| 56 | + result: |
| 57 | + runs-on: ubuntu-latest |
| 58 | + needs: measure |
| 59 | + steps: |
| 60 | + - name: Download all workflow run artifacts |
| 61 | + uses: actions/download-artifact@v4 |
| 62 | + |
| 63 | + - name: Display structure of downloaded files |
| 64 | + run: ls -R |
| 65 | + |
| 66 | + - name: Display all measurement details |
| 67 | + run: grep "details.*" . -Ro |
| 68 | + |
| 69 | + - name: Download plot tools |
| 70 | + uses: actions/checkout@v4 |
| 71 | + with: |
| 72 | + path: tools |
| 73 | + |
| 74 | + - name: Install dependencies |
| 75 | + run: | |
| 76 | + sudo apt install python3-matplotlib |
| 77 | +
|
| 78 | + - name: Plot all measurement results |
| 79 | + run: python3 tools/.github/workflows/plot-goodput.py . |
| 80 | + |
| 81 | + - name: Store all measurement results |
| 82 | + uses: actions/upload-artifact@v4 |
| 83 | + with: |
| 84 | + name: goodput-all-result |
| 85 | + path: goodput* |
0 commit comments