Skip to content

Commit 02dfdeb

Browse files
Copilottrask
andcommitted
Add GitHub Actions stress test workflow for micrometer FunctionTimer test
Co-authored-by: trask <[email protected]>
1 parent 6891dc6 commit 02dfdeb

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Micrometer FunctionTimer Stress Test
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'agent/instrumentation/micrometer-1.0/**'
7+
- '.github/workflows/micrometer-stress-test.yml'
8+
workflow_dispatch:
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
stress-test-function-timer:
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
run: [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]
20+
fail-fast: false
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
- name: Set up JDK for running Gradle
25+
uses: actions/setup-java@v4
26+
with:
27+
distribution: temurin
28+
java-version: 17
29+
30+
- name: Setup Gradle
31+
uses: gradle/actions/setup-gradle@v4
32+
33+
- name: Run shouldCaptureFunctionTimer test (Run ${{ matrix.run }})
34+
run: >
35+
./gradlew :agent:instrumentation:micrometer-1.0:test
36+
--tests "MicrometerTest.shouldCaptureFunctionTimer"
37+
--info
38+
39+
- name: Upload test reports on failure
40+
uses: actions/upload-artifact@v4
41+
if: failure()
42+
with:
43+
name: test-reports-run-${{ matrix.run }}
44+
path: '**/build/reports/tests/test/**/*'

0 commit comments

Comments
 (0)