-
Notifications
You must be signed in to change notification settings - Fork 25
46 lines (45 loc) · 1.44 KB
/
stress-test.yml
File metadata and controls
46 lines (45 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Stress Test
on:
workflow_dispatch:
inputs:
duration_minutes:
description: "Stress test duration in minutes"
required: false
default: "60"
type: string
test_filter:
description: "Optional nextest filter expression (e.g. test name) to focus the stress test"
required: false
default: ""
type: string
schedule:
- cron: "0 6 * * *"
permissions:
contents: read
jobs:
stress-test:
name: Stress Test (${{ inputs.duration_minutes || '60' }} min)
runs-on: ubuntu-latest
timeout-minutes: 75
env:
RUST_BACKTRACE: 1
RUSTFLAGS: "--cfg tokio_unstable"
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Enable perf_event_open and kallsyms
run: |
sudo sysctl kernel.perf_event_paranoid=1
sudo sysctl kernel.kptr_restrict=0
- name: Install nextest
uses: taiki-e/install-action@nextest
- name: Run stress test
run: |
sudo prlimit --pid $$ --memlock=unlimited:unlimited
FILTER="${{ inputs.test_filter }}"
if [ -n "$FILTER" ]; then
cargo nextest run --all-features --stress-duration '${{ inputs.duration_minutes || '60' }}m' -E "test($FILTER)"
else
cargo nextest run --all-features --stress-duration '${{ inputs.duration_minutes || '60' }}m'
fi