diff --git a/.github/workflows/micrometer-stress-test.yml b/.github/workflows/micrometer-stress-test.yml new file mode 100644 index 00000000000..48a2ba5627c --- /dev/null +++ b/.github/workflows/micrometer-stress-test.yml @@ -0,0 +1,43 @@ +name: Micrometer FunctionTimer Stress Test + +on: + pull_request: + paths: + - 'agent/instrumentation/micrometer-1.0/**' + - '.github/workflows/micrometer-stress-test.yml' + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: true + +jobs: + stress-test-function-timer: + runs-on: ubuntu-latest + strategy: + matrix: + 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, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100] + fail-fast: false + steps: + - uses: actions/checkout@v4 + + - name: Set up JDK for running Gradle + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 17 + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 + + - name: Run all micrometer-1.0 tests (Run ${{ matrix.run }}) + run: > + ./gradlew :agent:instrumentation:micrometer-1.0:test + --info + + - name: Upload test reports on failure + uses: actions/upload-artifact@v4 + if: failure() + with: + name: test-reports-run-${{ matrix.run }} + path: '**/build/reports/tests/test/**/*' \ No newline at end of file