|
1 | 1 | name: Run Load Tests |
2 | 2 | permissions: |
3 | 3 | pull-requests: write |
4 | | - contents: read |
| 4 | + contents: write |
5 | 5 | packages: read |
6 | 6 |
|
7 | 7 | on: |
@@ -71,12 +71,11 @@ jobs: |
71 | 71 | run: | |
72 | 72 | cat > direct_config.toml << EOF |
73 | 73 | connstr = "couchbase://${{ steps.start-cluster.outputs.node-ip }}" |
74 | | - num-users = [25, 50, 100, 200, 400] |
75 | | - sleep = "100ms" |
| 74 | + num-users = [25, 50, 100, 200, 400, 600, 800] |
| 75 | + sleep = "1s" |
76 | 76 | ramp-time = "10s" |
77 | 77 | run-time = "30s" |
78 | 78 | workload = "user-profile" |
79 | | - sleep = "1s" |
80 | 79 | tls-skip-verify = true |
81 | 80 | bucket = "default" |
82 | 81 | scope = "_default" |
@@ -127,14 +126,41 @@ jobs: |
127 | 126 | metrics_p50.png |
128 | 127 | metrics_p95.png |
129 | 128 |
|
| 129 | + - name: Push Graphs to Branch |
| 130 | + if: github.event_name == 'pull_request' |
| 131 | + id: push-graphs |
| 132 | + run: | |
| 133 | + SERVER="${{ matrix.server }}" |
| 134 | + BRANCH="ci-load-test-pr-${{ github.event.pull_request.number }}-${SERVER//./-}" |
| 135 | + REPO="${{ github.repository }}" |
| 136 | +
|
| 137 | + mkdir -p /tmp/graph-upload |
| 138 | + cp metrics_p50.png metrics_p95.png /tmp/graph-upload/ |
| 139 | +
|
| 140 | + cd /tmp/graph-upload |
| 141 | + git init |
| 142 | + git config user.email "github-actions[bot]@users.noreply.github.com" |
| 143 | + git config user.name "github-actions[bot]" |
| 144 | + git add . |
| 145 | + git commit -m "Load test graphs for $SERVER" |
| 146 | + git push "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$REPO.git" HEAD:refs/heads/$BRANCH --force |
| 147 | +
|
| 148 | + echo "p50-url=https://raw.githubusercontent.com/$REPO/$BRANCH/metrics_p50.png" >> $GITHUB_OUTPUT |
| 149 | + echo "p95-url=https://raw.githubusercontent.com/$REPO/$BRANCH/metrics_p95.png" >> $GITHUB_OUTPUT |
| 150 | +
|
130 | 151 | - name: Post Graphs to PR |
131 | 152 | uses: thollander/actions-comment-pull-request@v2 |
132 | 153 | if: github.event_name == 'pull_request' |
133 | 154 | with: |
134 | 155 | comment_tag: perf-report-${{ matrix.server }} |
135 | 156 | message: | |
136 | | - ### 📊 Performance Metrics Report ${{ matrix.server }} |
137 | | - [View Performance Graphs](${{ steps.upload-graphs.outputs.artifact-url }}) |
| 157 | + ### Performance Metrics Report ${{ matrix.server }} |
| 158 | +
|
| 159 | + **P50 Latency:** |
| 160 | +  |
| 161 | +
|
| 162 | + **P95 Latency:** |
| 163 | +  |
138 | 164 |
|
139 | 165 | - name: Collect couchbase logs |
140 | 166 | timeout-minutes: 10 |
|
0 commit comments