]> git.feebdaed.xyz Git - 0xmirror/msquic.git/commitdiff
Add logging for spinquic tests. (#5643)
authorJack He <jackhe@microsoft.com>
Tue, 9 Dec 2025 22:26:07 +0000 (14:26 -0800)
committerGitHub <noreply@github.com>
Tue, 9 Dec 2025 22:26:07 +0000 (22:26 +0000)
## Description

The Spin powershell script had support for gathering MsQuic logs but the
CI is never using it.

Let's add an option to configure logging in spin tests. For workflow
dispatch, the user can control the log profile. For pull request and
merge events, Basic.Light is used.

## Testing

CI

## Documentation

N/A

.github/workflows/stress.yml

index a56b9bbe0d15dbb58507cfa2c44832558a7bc636..0b3e208f0b23a93ead7502b0b5a156cc140f5606 100644 (file)
@@ -2,6 +2,20 @@ name: Stress
 
 on:
   workflow_dispatch:
+    inputs:
+      logprofile:
+        description: 'Log profile to use'
+        required: false
+        default: "None"
+        type: choice
+        options:
+          - "None"
+          - SpinQuic.Light
+          - SpinQuicWarnings.Light
+          - Basic.Light
+          - Basic.Verbose
+          - Full.Light
+          - Full.Verbose
   push:
     branches:
     - main
@@ -131,12 +145,12 @@ jobs:
       if: github.event_name == 'pull_request'
       timeout-minutes: 15
       shell: pwsh
-      run: scripts/spin.ps1 -AZP -Config ${{ matrix.vec.config }} -Arch ${{ matrix.vec.arch }} -Tls ${{ matrix.vec.tls }} -Timeout ${{ env.pr-timeout }} -RepeatCount ${{ env.pr-repeat }} -AllocFail ${{ env.pr-allocfail }} ${{ matrix.vec.xdp }}
+      run: scripts/spin.ps1 -AZP -Config ${{ matrix.vec.config }} -Arch ${{ matrix.vec.arch }} -Tls ${{ matrix.vec.tls }} -Timeout ${{ env.pr-timeout }} -RepeatCount ${{ env.pr-repeat }} -AllocFail ${{ env.pr-allocfail }} ${{ matrix.vec.xdp }} -LogProfile ${{ inputs.logprofile || 'SpinQuic.Light' }}
     - name: spinquic (Official)
       if: github.event_name != 'pull_request'
       timeout-minutes: 65
       shell: pwsh
-      run: scripts/spin.ps1 -AZP -Config ${{ matrix.vec.config }} -Arch ${{ matrix.vec.arch }} -Tls ${{ matrix.vec.tls }} -Timeout ${{ env.main-timeout }} -RepeatCount ${{ env.main-repeat }} -AllocFail ${{ env.main-allocfail }} ${{ matrix.vec.xdp }}
+      run: scripts/spin.ps1 -AZP -Config ${{ matrix.vec.config }} -Arch ${{ matrix.vec.arch }} -Tls ${{ matrix.vec.tls }} -Timeout ${{ env.main-timeout }} -RepeatCount ${{ env.main-repeat }} -AllocFail ${{ env.main-allocfail }} ${{ matrix.vec.xdp }} -LogProfile ${{ inputs.logprofile || 'SpinQuic.Light' }}
     - name: Fix log permissions for Linux XDP
       if: failure() && matrix.vec.plat == 'linux' # (matrix.vec.plat == 'linux' && matrix.vec.xdp == '-UseXdp') doesn't work for some reason
       run: |