|
1 | 1 | name: Phase 2 Packet Capture A-B |
2 | 2 |
|
3 | 3 | on: |
| 4 | + pull_request: |
| 5 | + types: [opened, synchronize, reopened, labeled] |
4 | 6 | workflow_dispatch: |
5 | 7 | inputs: |
6 | 8 | scenario: |
@@ -47,9 +49,22 @@ permissions: |
47 | 49 |
|
48 | 50 | jobs: |
49 | 51 | packet-capture-ab: |
50 | | - name: Paper 26.1.2 packet ABBA (${{ inputs.scenario }}) |
| 52 | + name: Paper 26.1.2 packet ABBA |
| 53 | + if: >- |
| 54 | + github.event_name == 'workflow_dispatch' || |
| 55 | + github.event.action != 'labeled' || |
| 56 | + github.event.label.name == 'phase2-packet-static-formal' || |
| 57 | + github.event.label.name == 'phase2-packet-visibility-formal' |
51 | 58 | runs-on: ubuntu-latest |
52 | 59 | timeout-minutes: 100 |
| 60 | + env: |
| 61 | + CAMPAIGN_SCENARIO: ${{ github.event_name == 'workflow_dispatch' && inputs.scenario || github.event.label.name == 'phase2-packet-visibility-formal' && 'visibility-return' || 'static-spawn' }} |
| 62 | + CAMPAIGN_RUNS: ${{ github.event_name == 'workflow_dispatch' && inputs.runs || github.event.action == 'labeled' && '12' || '4' }} |
| 63 | + CAMPAIGN_ITEMS: ${{ github.event_name == 'workflow_dispatch' && inputs.items || github.event.action == 'labeled' && '4096' || '1024' }} |
| 64 | + CAMPAIGN_WARMUP_SECONDS: ${{ github.event_name == 'workflow_dispatch' && inputs.warmup_seconds || github.event.action == 'labeled' && '60' || '10' }} |
| 65 | + CAMPAIGN_SETTLE_SECONDS: ${{ github.event_name == 'workflow_dispatch' && inputs.settle_seconds || github.event.action == 'labeled' && '10' || '5' }} |
| 66 | + CAMPAIGN_MEASURE_SECONDS: ${{ github.event_name == 'workflow_dispatch' && inputs.measure_seconds || github.event.action == 'labeled' && '10' || '5' }} |
| 67 | + CAMPAIGN_SNAPLEN: ${{ github.event_name == 'workflow_dispatch' && inputs.snaplen || '128' }} |
53 | 68 |
|
54 | 69 | steps: |
55 | 70 | - name: Check out immutable test source |
@@ -110,13 +125,13 @@ jobs: |
110 | 125 |
|
111 | 126 | - name: Run restart-isolated packet ABBA campaign |
112 | 127 | env: |
113 | | - SCENARIO: ${{ inputs.scenario }} |
114 | | - RUNS: ${{ inputs.runs }} |
115 | | - ITEMS: ${{ inputs.items }} |
116 | | - WARMUP_SECONDS: ${{ inputs.warmup_seconds }} |
117 | | - SETTLE_SECONDS: ${{ inputs.settle_seconds }} |
118 | | - MEASURE_SECONDS: ${{ inputs.measure_seconds }} |
119 | | - SNAPLEN: ${{ inputs.snaplen }} |
| 128 | + SCENARIO: ${{ env.CAMPAIGN_SCENARIO }} |
| 129 | + RUNS: ${{ env.CAMPAIGN_RUNS }} |
| 130 | + ITEMS: ${{ env.CAMPAIGN_ITEMS }} |
| 131 | + WARMUP_SECONDS: ${{ env.CAMPAIGN_WARMUP_SECONDS }} |
| 132 | + SETTLE_SECONDS: ${{ env.CAMPAIGN_SETTLE_SECONDS }} |
| 133 | + MEASURE_SECONDS: ${{ env.CAMPAIGN_MEASURE_SECONDS }} |
| 134 | + SNAPLEN: ${{ env.CAMPAIGN_SNAPLEN }} |
120 | 135 | run: | |
121 | 136 | set -euo pipefail |
122 | 137 | [[ "$SCENARIO" == static-spawn || "$SCENARIO" == visibility-return ]] |
|
0 commit comments